tx.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <html lang="en">
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta name="viewport" content="widtd=device-widtd, initial-scale=1.0">
  5. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  6. <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
  7. <link rel="stylesheet" type="text/css" href="/static/css/tx.css">
  8. <script src="/static/js/jquery.min.js"></script>
  9. <script src="/static/js/bootstrap.min.js"></script>
  10. <script src="/static/js/vue-2.4.0.js"></script>
  11. <script src="/static/js/axios.min.js"></script>
  12. <title>Document</title>
  13. </head>
  14. <body>
  15. <div id="app">
  16. <!-- colspan="4" -->
  17. <!-- 内容 -->
  18. <!-- container这个类是设置居中对齐 -->
  19. <div class="container">
  20. <!-- row这个类是用于设置取消内边距 -->
  21. <div class="caption">广州天玺生产配料/投料</div>
  22. <div class="condition">
  23. <div class="condition_left navbar-left">
  24. <label>
  25. <div class="navbar-nav font">制令单号</div>
  26. <div class="navbar-nav font"><input type='text' class="input form-control"/></div>
  27. <div class="navbar-nav font"><button class="btn btn-primary">查询</button></div>
  28. </label>
  29. <label>
  30. <div class="navbar-nav font">制令单号</div>
  31. <div class="navbar-nav font"><input type='text' class="input form-control"/></div>
  32. <div class="navbar-nav font"><button class="btn btn-primary">新增</button></div>
  33. </label>
  34. </div>
  35. <!-- navbar-right -->
  36. <div class="condition_right navbar-right">
  37. <label>
  38. <div class="navbar-nav font"><button class="btn btn-primary">保存配方</button></div>
  39. </label>
  40. <label>
  41. <div class="navbar-nav font"><button class="btn btn-primary">却投料</button></div>
  42. </label>
  43. <label>
  44. <div class="navbar-nav font"><button class="btn btn-primary">日志</button></div>
  45. </label>
  46. </div>
  47. </div>
  48. <table class="table table-bordered aout" id="table1">
  49. <thead>
  50. <tr>
  51. <th>品牌</th>
  52. <th colspan="2"></th>
  53. <th >产品名称</th>
  54. <th colspan="4"></th>
  55. <th colspan="1">计划量KG</th>
  56. <th colspan="2"></th>
  57. <th>实称产量KG</th>
  58. <th colspan="3"></th>
  59. </tr>
  60. <tr>
  61. <th>配方号</th>
  62. <th colspan="2">迪奥a007</th>
  63. <th >设备</th>
  64. <th colspan="3"></th>
  65. <th>计划日期</th>
  66. <th colspan="3"></th>
  67. <th>生产日期</th>
  68. <th colspan="3"></th>
  69. </tr>
  70. <tr>
  71. <th>配料人员</th>
  72. <th colspan="2"></th>
  73. <th >配料时间</th>
  74. <th colspan="3"></th>
  75. <th>投料人员</th>
  76. <th colspan="3"></th>
  77. <th>投料时间</th>
  78. <th colspan="3"></th>
  79. </tr>
  80. <tr>
  81. <th colspan="1" style="height: 40px;">生产工艺</th>
  82. <th colspan="14">
  83. <textarea rows="3" cols="150">
  84. 我是一个文本框。
  85. </textarea>
  86. </th>
  87. </tr>
  88. <tr>
  89. <th colspan="7">配方表</th>
  90. <th colspan="4">配料表</th>
  91. <th colspan="4">投料表</th>
  92. </tr>
  93. <tr>
  94. <th>序号</th>
  95. <th>相位</th>
  96. <th>原料编码</th>
  97. <th>配比%</th>
  98. <th>生产量KG</th>
  99. <th>库位</th>
  100. <th>库存量</th>
  101. <th>实称量KG</th>
  102. <th>原料批号</th>
  103. <th>称料人</th>
  104. <th>复合人</th>
  105. <th>投料量KG</th>
  106. <th>投料人</th>
  107. <th>复合人</th>
  108. <th>备注</th>
  109. </tr>
  110. </thead>
  111. <tbody>
  112. <tr>
  113. <td>Tanmay</td>
  114. <td>Bangalore</td>
  115. <td>560001</td>
  116. <td>Tanmay</td>
  117. <td>Bangalore</td>
  118. <td>560001</td>
  119. <td>Tanmay</td>
  120. <td>Bangalore</td>
  121. <td>560001</td>
  122. <td>Tanmay</td>
  123. <td>Bangalore</td>
  124. <td>560001</td>
  125. <td>Tanmay</td>
  126. <td>Bangalore</td>
  127. <td>560001</td>
  128. </tr>
  129. <tr>
  130. <td>Uma</td>
  131. <td>Pune</td>
  132. <td>411027</td>
  133. <td>Uma</td>
  134. <td>Pune</td>
  135. <td>411027</td>
  136. <td>Uma</td>
  137. <td>Pune</td>
  138. <td>411027</td>
  139. <td>Uma</td>
  140. <td>Pune</td>
  141. <td>411027</td>
  142. <td>Uma</td>
  143. <td>Pune</td>
  144. <td>411027</td>
  145. </tr>
  146. <tr>
  147. <td>Sachin</td>
  148. <td>Mumbai</td>
  149. <td>400003</td>
  150. <td>Sachin</td>
  151. <td>Mumbai</td>
  152. <td>400003</td>
  153. <td>Sachin</td>
  154. <td>Mumbai</td>
  155. <td>400003</td>
  156. <td>Sachin</td>
  157. <td>Mumbai</td>
  158. <td>400003</td>
  159. <td>Sachin</td>
  160. <td>Mumbai</td>
  161. <td>400003</td>
  162. </tr>
  163. <tr>
  164. <td>Uma</td>
  165. <td>Pune</td>
  166. <td>411027</td>
  167. <td>Uma</td>
  168. <td>Pune</td>
  169. <td>411027</td>
  170. <td>Uma</td>
  171. <td>Pune</td>
  172. <td>411027</td>
  173. <td>Uma</td>
  174. <td>Pune</td>
  175. <td>411027</td>
  176. <td>Uma</td>
  177. <td>Pune</td>
  178. <td>411027</td>
  179. </tr>
  180. <tr>
  181. <td>Uma</td>
  182. <td>Pune</td>
  183. <td>411027</td>
  184. <td>Uma</td>
  185. <td>Pune</td>
  186. <td>411027</td>
  187. <td>Uma</td>
  188. <td>Pune</td>
  189. <td>411027</td>
  190. <td>Uma</td>
  191. <td>Pune</td>
  192. <td>411027</td>
  193. <td>Uma</td>
  194. <td>Pune</td>
  195. <td>411027</td>
  196. </tr>
  197. <tr>
  198. <td>Uma</td>
  199. <td>Pune</td>
  200. <td>411027</td>
  201. <td>Uma</td>
  202. <td>Pune</td>
  203. <td>411027</td>
  204. <td>Uma</td>
  205. <td>Pune</td>
  206. <td>411027</td>
  207. <td>Uma</td>
  208. <td>Pune</td>
  209. <td>411027</td>
  210. <td>Uma</td>
  211. <td>Pune</td>
  212. <td>411027</td>
  213. </tr>
  214. </tbody>
  215. </table>
  216. </div>
  217. </div>
  218. <script>
  219. jQuery.fn.rowspan = function (colIdx) { //封装的一个JQuery小插件
  220. return this.each(function () {
  221. var that;
  222. $('tr', this).each(function (row) {
  223. $('td:eq(' + colIdx + ')', this).filter(':visible').each(function (col) {
  224. if (that != null && $(this).html() == $(that).html()) {
  225. rowspan = $(that).attr("rowSpan");
  226. if (rowspan == undefined) {
  227. $(that).attr("rowSpan", 1);
  228. rowspan = $(that).attr("rowSpan");
  229. }
  230. rowspan = Number(rowspan) + 1;
  231. $(that).attr("rowSpan", rowspan);
  232. $(this).hide();
  233. } else {
  234. that = this;
  235. }
  236. });
  237. });
  238. });
  239. }
  240. $(function () {
  241. $("#table1").rowspan(0);//传入的参数是对应的列数从0开始 第一列合并相同
  242. // $("#table1").rowspan(1);//传入的参数是对应的列数从0开始 第二列合并相同
  243. });
  244. </script>
  245. </body>
  246. </html>