PackingData.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <link rel="shortcut icon" href="/img/logo.png" />
  7. <link rel="bookmark" href="/img/logo.png" />
  8. <link rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
  10. <link href="/Plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  11. <link rel="stylesheet" href="../DashBoard.css?v3" />
  12. <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  13. <script src="/Plugins/xrequest/xrequest.min.js"></script>
  14. <title>东科软件</title>
  15. </head>
  16. <body class="bg-white p-0 dk-report">
  17. <!--实时缺陷记录-->
  18. <div class="box_1920_1080" style="width: 1280px; height: 720px; background-size: contain;">
  19. >
  20. <div class="position-absolute">
  21. <span id="高压加载" class="dk-report-loading" style="padding-left: 290px;font-size: 13px;color: #38dcff;font-weight: 700;float: left;padding-top: 40px;"></span>
  22. </div>
  23. <h4 class="text-center pb-2 dk-report-title" style="font-size: 60px; font-weight: bolder;color: #f8f9fa;">包装产品信息流看板</h4>
  24. <table id="包装产品信息流看板table" class="table-hover table-striped" style="font-size: 14px; width: 1244px; margin-left: 21px; margin-top: -18px;">
  25. <thead style="border: 1px solid #38dcff ">
  26. <tr style="height: 70px; width: 1866px;">
  27. <td scope="col" class="text-center" id="wd" style="width: 130px; font-size: 40px; color: #f8f9fa; text-align:left ">
  28. <div style="text-align:right;"><span id="sj" style=" font-size: 35px;">0000-00-00 00:00</span></div>
  29. </td>
  30. </tr>
  31. </thead>
  32. </table>
  33. <div style="width: 413px; height: 100px ">
  34. <table class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
  35. <thead style="border: 1px solid #38dcff ">
  36. <tr style="height: 65px; width: 1866px; ">
  37. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 42px; color: #f8f9fa; text-align: center ">产品型号</td>
  38. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 42px; color: #f8f9fa; text-align: center ">数量</td>
  39. </tr>
  40. </thead>
  41. <tbody id="leftTableBody">
  42. <tr style="height: 65px; width: 1866px; ">
  43. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  44. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  45. </tr>
  46. <tr style="height: 65px; width: 1866px; ">
  47. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  48. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  49. </tr>
  50. <tr style="height: 65px; width: 1866px; ">
  51. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  52. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  53. </tr>
  54. <tr style="height: 65px; width: 1866px; ">
  55. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  56. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  57. </tr>
  58. <tr style="height: 65px; width: 1866px; ">
  59. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  60. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  61. </tr>
  62. <tr style="height: 65px; width: 1866px; ">
  63. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  64. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  65. </tr>
  66. <tr style="height: 65px; width: 1866px; ">
  67. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  68. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. </div>
  73. <div style="width: 413px; height:100px; margin-top: -100px; margin-left: 413px;">
  74. <table class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
  75. <thead style="border: 1px solid #38dcff ">
  76. <tr style="height: 65px; width: 1866px; ">
  77. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 42px; color: #f8f9fa; text-align: center ">产品型号</td>
  78. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 42px; color: #f8f9fa; text-align: center ">数量</td>
  79. </tr>
  80. </thead>
  81. <tbody id="centerTableBody">
  82. <tr style="height: 65px; width: 1866px; ">
  83. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  84. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  85. </tr>
  86. <tr style="height: 65px; width: 1866px; ">
  87. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  88. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  89. </tr>
  90. <tr style="height: 65px; width: 1866px; ">
  91. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  92. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  93. </tr>
  94. <tr style="height: 65px; width: 1866px; ">
  95. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  96. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  97. </tr>
  98. <tr style="height: 65px; width: 1866px; ">
  99. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  100. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  101. </tr>
  102. <tr style="height: 65px; width: 1866px; ">
  103. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  104. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  105. </tr>
  106. <tr style="height: 65px; width: 1866px; ">
  107. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  108. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. </div>
  113. <div style="width: 413px; height:100px; margin-top: -100px; margin-left: 826px;">
  114. <table class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
  115. <thead style="border: 1px solid #38dcff ">
  116. <tr style="height: 65px; width: 1866px; ">
  117. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 42px; color: #f8f9fa; text-align: center ">产品型号</td>
  118. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 42px; color: #f8f9fa; text-align: center ">数量</td>
  119. </tr>
  120. </thead>
  121. <tbody id="rightTableBody">
  122. <tr style="height: 65px; width: 1866px; ">
  123. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  124. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  125. </tr>
  126. <tr style="height: 65px; width: 1866px; ">
  127. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  128. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  129. </tr>
  130. <tr style="height: 65px; width: 1866px; ">
  131. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  132. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  133. </tr>
  134. <tr style="height: 65px; width: 1866px; ">
  135. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  136. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  137. </tr>
  138. <tr style="height: 65px; width: 1866px; ">
  139. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  140. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  141. </tr>
  142. <tr style="height: 65px; width: 1866px; ">
  143. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  144. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  145. </tr>
  146. <tr style="height: 65px; width: 1866px; ">
  147. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: center "></td>
  148. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 42px; color: #f8f9fa; text-align: right "></td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. </div>
  153. </div>
  154. <!--版权信息-->
  155. <script src="/Plugins/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
  156. <script src="/Plugins/bootstrap-table/bootstrap-table.min.js"></script>
  157. <script src="/Plugins/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
  158. <script src="/Plugins/sweetalert/sweetalert.min.js"></script>
  159. <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
  160. <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
  161. <script>
  162. $(document).ready(function () {
  163. // 页面加载后自动请求后台数据
  164. initData();
  165. doGetData = setInterval(function () { initData(); }, 5000);
  166. //刷新时间
  167. loadServerTime();
  168. doGetTime = setInterval(function () { loadServerTime(); }, 60000);
  169. });
  170. //取服务器时间
  171. function loadServerTime() {
  172. $.get('PackingData.ashx?m=fwq', function (data) {
  173. var json = JSON.parse(data);
  174. if (json["success"] == true) {
  175. $('#sj').html(json["sj"]);
  176. }
  177. });
  178. }
  179. function initData() {
  180. $.get('PackingData.ashx?m=s', function (data) {
  181. var json = JSON.parse(data);
  182. if (json["success"] == true) {
  183. renderTable(json["rows"]);
  184. }
  185. });
  186. }
  187. // 渲染表格(极简版,左满右补)
  188. function renderTable(data) {
  189. if (!data) data = [];
  190. // 拿到所有行
  191. let leftRows = $("#leftTableBody tr"); // 左边
  192. let centerRows = $("#centerTableBody tr"); //
  193. let rightRows = $("#rightTableBody tr"); // 右边
  194. // 清空所有内容
  195. $("#leftTableBody td, #centerTableBody td, #rightTableBody td").text("");
  196. // 循环数据,挨个赋值
  197. for (let i = 0; i < data.length; i++) {
  198. let item = data[i];
  199. let model = item.GOODSCODE || "";
  200. let qty = item.QTY || "";
  201. // 前7条 → 左边表格
  202. if (i < 7) {
  203. leftRows.eq(i).find("td").eq(0).text(model);
  204. leftRows.eq(i).find("td").eq(1).text(qty);
  205. }
  206. // 8条到14 → 中间表格
  207. else if (i >= 7 && i < 14) {
  208. let rightIndex = i - 7;
  209. if (rightIndex < 7) {
  210. centerRows.eq(rightIndex).find("td").eq(0).text(model);
  211. centerRows.eq(rightIndex).find("td").eq(1).text(qty);
  212. }
  213. }
  214. else {
  215. let rightIndex = i - 14;
  216. if (rightIndex < 7) {
  217. rightRows.eq(rightIndex).find("td").eq(0).text(model);
  218. rightRows.eq(rightIndex).find("td").eq(1).text(qty);
  219. }
  220. }
  221. }
  222. }
  223. </script>
  224. <style>
  225. table {
  226. height: 40px;
  227. color: #f8f9fa !important;
  228. font-size: 20px;
  229. font-weight: 700;
  230. background: rgba(25, 52, 90,.5);
  231. border: 1px solid #38dcff;
  232. margin-bottom: 1rem;
  233. }
  234. td {
  235. padding: 2px !important;
  236. text-align: center !important;
  237. border-bottom: 1px solid #38dcff !important;
  238. border-right: 1px dashed #38dcff !important;
  239. border: white;
  240. }
  241. a {
  242. background-color: lightblue;
  243. }
  244. </style>
  245. </body>
  246. </html>