Onecheck.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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="container-fluid pt-1 p-0 box_1920_1080">
  19. <div class="position-absolute">
  20. <span id="实时缺陷加载" class="dk-report-loading" style="padding-left: 290px;font-size: 13px;color: #38dcff;font-weight: 700;float: left;padding-top: 40px;"></span>
  21. <span id="页面跳转" class="dk-report-loading" style="padding-left: 1080px; font-size: 20px; color: #38dcff; font-weight: 700; float: left; margin-top: 40px; margin-left:-1070px ">页面跳转倒计时</span>
  22. </div>
  23. <h4 class="text-center pb-2 dk-report-title" style="font-size: 60px; font-weight: bolder;color: #f8f9fa;">一检看板</h4>
  24. <div id="1" class="box_body" style="display: flex; flex-direction: column; display:block;">
  25. <div>
  26. <table class="table-hover table-striped" style="font-size: 14px; width: 1864px; margin-left: -13px; margin-top: -28px;">
  27. <tr style="height: 27px; width: 1866px;">
  28. <td scope="col" class="text-center" id="" style="width: 818px; font-size: 65px; color: #f8f9fa; " colspan="10">交坯质量</td>
  29. </tr>
  30. </table>
  31. </div>
  32. <h3 class="text-center pb-2 dk-report-title" style="font-size: 35px; font-weight: bolder; color: #f8f9fa; margin-top: -60px; margin-left:-1490px">1#一检交接的产量:<span id="SUMALL" name="SUMALL">0</span></h3>
  33. <h3 class="text-center pb-2 dk-report-title" style="font-size: 35px; font-weight: bolder; color: #f8f9fa; margin-top: -55px; margin-left: 1449px"><span id="dqsjone" name="dqsjone">0000年00月00日00:00</span></h3>
  34. <!-- #region 横板 -->
  35. <div class="box_body" style="display: flex; flex-direction: column; margin-top:-1.1%;margin-left:-8px;">
  36. <!--表格-->
  37. <div style="width: 1866px; height: 100%; display: flex; flex-direction: row; margin-top: 2px; margin-left: -5px;">
  38. <div style="width: 100%; height: 100%; padding-right: 2px;">
  39. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; font-size: 35px;">
  40. <tr class="tr_title_warning" style=" font-size: 35px;">
  41. <td style="font-size: 40px; color: white; width: 13%;">一检工号</td>
  42. <td style="font-size: 35px; color: white; width: 15%; ">缺陷信息</td>
  43. <td style="font-size: 35px; color: white; width: 15%; ">裂</td>
  44. <td style="font-size: 35px; color: white; width: 15%; ">不平</td>
  45. <td style="font-size: 35px; color: white; width: 15%;">其他</td>
  46. <td style="font-size: 35px; color: white; width: 13%;">合格率</td>
  47. <td style="font-size: 35px; color: white; width: 12%;">产量</td>
  48. </tr>
  49. </table>
  50. <div style="display: flex; height: 100%; overflow: hidden; margin-top: -13px">
  51. <table id="firstTable_template" style="display:none;">
  52. <tr class="tr_title_warning" style=" font-size: 35px;">
  53. <td rowspan="2" style="font-size: 40px; color: white; width: 13%; ">{gh}</td>
  54. <td style="font-size: 30px; color: white; width: 15%; ">数量</td>
  55. <td style="font-size: 30px; color: white; width: 15%; ">{lie}</td>
  56. <td id="bp03sl" style="font-size: 30px; color: white; width: 15%; ">{bp}</td>
  57. <td id="qt03sl" style="font-size: 30px; color: white; width: 15%; ">{qt}</td>
  58. <td rowspan="2" id="hgl03" style="font-size: 30px; color: white; width: 13%; ">{hgl}</td>
  59. <td rowspan="2" id="cl03" style="font-size: 30px; color: white; width: 12%; ">{cl}</td>
  60. </tr>
  61. <tr class="tr_title_warning" style=" font-size: 35px;">
  62. <td style="font-size: 30px; color: white; width: 15%;">前三不良</td>
  63. <td id="l03sl" style="font-size: 20px; color: white; width: 15%; ">{lbl}</td>
  64. <td id="bp03sl" style="font-size: 20px; color: white; width: 15%; ">{bpbl}</td>
  65. <td id="qt03sl" style="font-size: 20px; color: white; width: 15%; ">{qtbl}</td>
  66. </tr>
  67. </table>
  68. <table id="firstTable" cellspacing="0" cellpadding="0" border="0" style="width: 100%; ">
  69. </table>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div id="2" style="display: flex; flex-direction: column; display:none;">
  76. <div >
  77. <table class="table-hover table-striped" style="font-size: 14px; width: 1866px; margin-left: 27px; margin-top: -15px;">
  78. <tr style="height: 27px; width: 1866px;">
  79. <td class="text-center" id="CrackSum" style="width: 918px; font-size: 65px; color: #f8f9fa; " colspan="10">重点关注成型线 </td>
  80. </tr>
  81. </table>
  82. <h3 class="text-center pb-2 dk-report-title" style="font-size: 30px; font-weight: bolder; color: #f8f9fa; margin-top: -60px; margin-left: 1446px"><span id="dqsj" name="dqsj">0000年00月00日00:00:00</span></h3>
  83. </div>
  84. <!-- #region 横板 -->
  85. <div class="box_body" style="display: flex; flex-direction: column; margin-top:-0.4%;margin-left:27px;">
  86. <!--表格-->
  87. <div style="width: 1866px; height: 980px; display: flex; flex-direction: row; ">
  88. <div style="width: 100%; height: 800px; padding-right: 1px;">
  89. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; font-size: 30px;">
  90. <tr class="tr_title_warning" style=" font-size: 35px;">
  91. <td style="font-size: 40px; color: white; width: 10%;">序号</td>
  92. <td style="font-size: 40px; color: white; width: 15%;">成型线</td>
  93. <td style="font-size: 40px; color: white; width: 13% ">成型工号</td>
  94. <td style="font-size: 40px; color: white; width: 13% ">产品编码</td>
  95. <td style="font-size: 40px; color: white; width: 23% ">注浆信息</td>
  96. <td style="font-size: 40px; color: white; width: 25% ">本日计划交坯需关注件数</td>
  97. </tr>
  98. </table>
  99. <div style="display: flex; height: 830px; overflow: hidden; margin-top: -18px">
  100. <table id="secondTable_template" style="display:none;">
  101. <tr class="tr_title_warning" style="height: 60px; font-size: 35px; ">
  102. <td style="font-size: 45px; color: white; width: 10%">{xh}</td>
  103. <td style="font-size: 45px; color: white; width: 15%">{cxx}</td>
  104. <td style="font-size: 45px; color: white; width: 13% ">{cxgh}</td>
  105. <td style="font-size: 45px; color: white; width: 13% ">{cpbm}</td>
  106. <td style="font-size: 45px; color: white; width: 23% ">{zjxx}</td>
  107. <td style="font-size: 45px; color: white; width: 25% ">{remark}</td>
  108. </tr>
  109. </table>
  110. <table id="secondTable" cellspacing="0" cellpadding="0" border="0" style="width: 100%; ">
  111. </table>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <!-- #endregion -->
  119. <!--版权信息-->
  120. <script src="/Plugins/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
  121. <script src="/Plugins/bootstrap-table/bootstrap-table.min.js"></script>
  122. <script src="/Plugins/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
  123. <script src="/Plugins/sweetalert/sweetalert.min.js"></script>
  124. <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
  125. <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
  126. <script type="text/javascript">
  127. </script>
  128. <script>
  129. var refreshTime2 = 30000;
  130. var currentTime2 = 0;
  131. var firstInterval;
  132. var firstTableRowCount = 0;
  133. var sencondInterval;
  134. var showpage = 8; //显示条数
  135. var pages = 1; //当前页数
  136. var excesspage; //剩余条数
  137. var countpage; //总条数
  138. //定时翻页
  139. var showpage1 = 11; //显示条数
  140. var pages1 = 1; //当前页数
  141. var excesspage1; //剩余条数
  142. var countpage1; //总条数
  143. var jumptime = 120000;
  144. var jumptimes = 0;
  145. var lodpage = 1;
  146. $(document).ready(function () {
  147. //刷新时间
  148. loadServerTimes();
  149. loadServerTime();
  150. getPage();
  151. getPage1();
  152. SumAll();
  153. doGetTime = setInterval(function () { loadServerTime(); }, 5000);
  154. doGetTime = setInterval(function () { loadServerTimes(); }, 5000);
  155. doGetTime = setInterval(function () { getPage(); }, 3000);
  156. doGetTime = setInterval(function () { SumAll(); }, 5000);
  157. jumptimes = jumptime;
  158. doGetData = setInterval(function () { SecondLode(); }, 1000);
  159. });
  160. function SecondLode() {
  161. if (jumptimes == 0) {
  162. ++lodpage;
  163. if ((lodpage % 2) == 0) {
  164. jumptime = 180000;
  165. sencondInterval = setInterval(function () { getPage1(); }, 10000)
  166. } else {
  167. jumptime = 120000;
  168. clearInterval(sencondInterval);
  169. }
  170. jumptimes = jumptime;
  171. timeUpdate();
  172. }
  173. else {
  174. $("#页面跳转").html('页面跳转倒计时(秒):' + jumptimes / 1000);
  175. jumptimes = jumptimes - 1000;
  176. }
  177. }
  178. function timeUpdate() {
  179. $("#1").toggle("d-none");
  180. $("#2").toggle("d-none");
  181. getPage();
  182. getPage1();
  183. }
  184. function SumAll() {
  185. $.get('Onecheck.ashx?m=SUM', function (data) {
  186. var json = JSON.parse(data);
  187. if (json["success"] == true) {
  188. $('#SUMALL').html(json["sumall"]);
  189. }
  190. });
  191. }
  192. function loadServerTime() {
  193. $.get('Onecheck.ashx?m=fwq', function (data) {
  194. var json = JSON.parse(data);
  195. if (json["success"] == true) {
  196. $('#dqsjone').html(json["sj"]);
  197. }
  198. });
  199. }
  200. function loadServerTimes() {
  201. $.get('Onecheck.ashx?m=fwq', function (data) {
  202. var json = JSON.parse(data);
  203. if (json["success"] == true) {
  204. $('#dqsj').html(json["sj"]);
  205. }
  206. });
  207. }
  208. function getPage() {
  209. $.get('Onecheck.ashx?m=count', function (data) {
  210. var json = JSON.parse(data);
  211. if (json["success"] == true) {
  212. countpage = parseInt(json["counts"]);
  213. }
  214. });
  215. excesspage = countpage - (showpage * pages)
  216. if (excesspage > 0) {
  217. pages++;
  218. }
  219. else {
  220. pages = 1;
  221. }
  222. $.get('Onecheck.ashx?m=firstTable&&page=' + pages, function (data) {
  223. var json = JSON.parse(data);
  224. if (json["success"] == true) {
  225. $("#firstTable").html("");
  226. for (var i = 0; i < json["rows"].length; i++) {
  227. var temp = $("#firstTable_template").html();
  228. temp = temp.replace("<tbody>", "").replace("</tbody>", "");
  229. temp = temp.replace('{gh}', json["rows"][i]['USERCODE']);
  230. temp = temp.replace('{lie}', json["rows"][i]['数量裂']);
  231. temp = temp.replace('{bp}', json["rows"][i]['数量不平']);
  232. temp = temp.replace('{qt}', json["rows"][i]['数量其他']);
  233. temp = temp.replace('{lbl}', json["rows"][i]['裂']);
  234. temp = temp.replace('{bpbl}', json["rows"][i]['不平']);
  235. temp = temp.replace('{qtbl}', json["rows"][i]['其他']);
  236. temp = temp.replace('{hgl}', json["rows"][i]['合格率']);
  237. temp = temp.replace('{cl}', json["rows"][i]['产量']);
  238. $("#firstTable").append(temp);
  239. }
  240. }
  241. });
  242. }
  243. function getPage1() {
  244. $.get('Onecheck.ashx?m=secondcount', function (data) {
  245. var json = JSON.parse(data);
  246. if (json["success"] == true) {
  247. countpage1 = parseInt(json["counts"]);
  248. }
  249. });
  250. excesspage1 = countpage1 - (showpage1 * pages1)
  251. if (excesspage1 > 0) {
  252. pages1++;
  253. }
  254. else {
  255. pages1 = 1;
  256. }
  257. $.get('Onecheck.ashx?m=second&&secondpages=' + pages1, function (data) {
  258. var json = JSON.parse(data);
  259. if (json["success"] == true) {
  260. $("#secondTable").html("");
  261. for (var i = 0; i < json["rows"].length; i++) {
  262. var temp = $("#secondTable_template").html();
  263. temp = temp.replace("<tbody>", "").replace("</tbody>", "");
  264. temp = temp.replace('{xh}', json["rows"][i]['序号']);
  265. temp = temp.replace('{cxx}', json["rows"][i]['GROUTINGLINECODE']);
  266. temp = temp.replace('{cxgh}', json["rows"][i]['USERCODE']);
  267. temp = temp.replace('{cpbm}', json["rows"][i]['GOODSCODE']);
  268. temp = temp.replace('{zjxx}', json["rows"][i]['MESSAGE']);
  269. temp = temp.replace('{remark}', json["rows"][i]['CONCERNMESSAGE']);
  270. $("#secondTable").append(temp);
  271. }
  272. }
  273. });
  274. }
  275. //加载数据到表格控件
  276. </script>
  277. <style>
  278. table {
  279. height: 40px;
  280. color: #f8f9fa !important;
  281. font-size: 20px;
  282. font-weight: 700;
  283. background: rgba(25, 52, 90,.5);
  284. border: 1px solid #38dcff;
  285. margin-bottom: 1rem;
  286. }
  287. td {
  288. padding: 2px !important;
  289. text-align: center !important;
  290. border-bottom: 1px solid #38dcff !important;
  291. border-right: 1px dashed #38dcff !important;
  292. border: white;
  293. }
  294. </style>
  295. </body>
  296. </html>