From bb1b4579482abc4b2bc5ba244f68bc5d0ab87f2e Mon Sep 17 00:00:00 2001 From: czt <czt18638530771@163.com> Date: 星期五, 23 五月 2025 10:24:53 +0800 Subject: [PATCH] 电子货位卡-嵌入气体检测和虫害检测 --- igds-dzhwk-web/src/main/resources/templates/dzhwk/pest.html | 133 + igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon5.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas.css | 674 ++++++++ igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3-h.png | 0 igds-dzhwk-web/src/main/resources/templates/dzhwk/pest-check.html | 444 +++++ igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-export.js | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/gasImg_5.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg4.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg2.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas-check.js | 758 +++++++++ igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest.css | 642 ++++++++ igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1-h.png | 0 igds-dzhwk-web/src/main/resources/templates/dzhwk/gas-check.html | 497 ++++++ igds-dzhwk-web/src/main/resources/static/dzhwk/common/constant.js | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/grain/PrintBuilder-lay.js | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/grain/lqStyle.css | 52 igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest-check.js | 737 +++++++++ igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg3.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg2.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grainPoint1.js | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon2.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-check1.js | 8 igds-dzhwk-web/src/main/resources/templates/dzhwk/grain-check1.html | 326 +++- igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/common/igds-common.js | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/gas/PrintBuilder.js | 209 ++ igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon4.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-pic.png | 0 igds-dzhwk-web/src/main/resources/templates/dzhwk/gas.html | 133 + igds-dzhwk-web/src/main/java/com/fzzy/igds/dzhwk/controller/WebController.java | 20 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg1.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2-h.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg3.png | 0 igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/i-body.png | 0 igds-dzhwk-web/src/main/resources/static/dzhwk/pest/PrintBuilder.js | 140 + 37 files changed, 4,662 insertions(+), 111 deletions(-) diff --git a/igds-dzhwk-web/src/main/java/com/fzzy/igds/dzhwk/controller/WebController.java b/igds-dzhwk-web/src/main/java/com/fzzy/igds/dzhwk/controller/WebController.java index 7599184..3eda884 100644 --- a/igds-dzhwk-web/src/main/java/com/fzzy/igds/dzhwk/controller/WebController.java +++ b/igds-dzhwk-web/src/main/java/com/fzzy/igds/dzhwk/controller/WebController.java @@ -82,6 +82,16 @@ } /** + * 浠撳偍淇濈浣滀笟-绮俯妫�娴� + * @param view + * @return + */ + @RequestMapping("/gas-check") + public String gasCheck(ModelMap view) { + return prefix + "gas-check"; + } + + /** * 浠撳偍淇濈浣滀笟-铏妫�娴� * @param view * @return @@ -93,6 +103,16 @@ } /** + * 浠撳偍淇濈浣滀笟-绮俯妫�娴� + * @param view + * @return + */ + @RequestMapping("/pest-check") + public String pestCheck(ModelMap view) { + return prefix + "pest-check"; + } + + /** * 浠撳偍淇濈浣滀笟-閫氶浣滀笟 * @param view * @return diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/constant.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/common/constant.js similarity index 100% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/constant.js rename to igds-dzhwk-web/src/main/resources/static/dzhwk/common/constant.js diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/igds-common.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/common/igds-common.js similarity index 100% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/igds-common.js rename to igds-dzhwk-web/src/main/resources/static/dzhwk/common/igds-common.js diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/PrintBuilder.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/PrintBuilder.js new file mode 100644 index 0000000..2a37eff --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/PrintBuilder.js @@ -0,0 +1,209 @@ +/** + * 鏍规嵁姘斾綋淇℃伅鐢熸垚鎵撳嵃妯$増 + * + * @param depotData + * 浠撳簱鍩烘湰淇℃伅 + * @param grainData + * 绮儏鏁版嵁淇℃伅 + */ +builderModel = function(curData,dept) { + var depotData = curData.depotData; + var listPoint = curData.listPoint; + + var model = "<!DOCTYPE html><html lang=\"zh-cn\">\n" + + "<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"><title>姘斾綋鎶ヨ〃妯$増</title>" + + " <style>\n" + + " table,table tr th,table tr td{border:1px solid #0d1021}table{width:100%;line-height:23px;text-align:center;font-size:14px}.table-2{border-top:0px solid #0d1021 !important}.table-2 tr{border-top:0px solid #0d1021 !important}.table-2 td{border-top:0px solid #0d1021 !important}.table-row-tr{border-left:0px !important;border-right:0px !important;border-top:0px !important}.table-row-fz{border:0px !important}.link-top{width:100%;border-top:solid #0d1021 1px}</style>\n" + + "</head><body>"; + + model += "<div style=\"text-align: center\">\n" + + "<span style=\"font-size: 26px; font-weight: bold;\">\n"; + if(dept){ + model += dept.name; + }else{ + model += "--XXX--绮簱" + } + model += "</span><div class=\"link-top\"></div><div class=\"link-top\"></div>\n"; + model += "<span style=\"font-size: 18px; \">"; + model += depotData.name; + model += " 姘斾綋鎶ヨ〃</span>\n"; + model += "</div><div style=\"margin-top: 5px;\"><span style=\"float: left;\">"; + model += " 鏂瑰悜锛氫笢</span><span style=\"float: right;\">妫�娴嬫椂闂达細"; + model += curData.receiveDate; + model += "</span></div>"; + + // 鍔ㄦ�侀厤缃� + model += "<table cellspacing=\"0\" cellpadding=\"0\">"; + model += "<tr><td>閲囬泦浣�</td><td>CO2</td><td>O2</td><td>PH3</td><td>N2</td><td>閲囬泦浣�</td><td>CO2</td><td>O2</td><td>PH3</td><td>N2</td></tr>"; + + var num = Math.ceil(listPoint.length / 2); + var index = 1; + var point; + for (var i = 0; i < num; i++) { + point = listPoint[index - 1]; + model += "<tr>"; + + model += "<td class=\"table-row-fz\">閲囬泦浣� " + point.passCode + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "CO2") + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "O2") + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "PH3") + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "N2") + "</td>"; + + index++; + + if (index > listPoint.length) { + model += "<td class=\"table-row-fz\"></td>"; + model += "<td class=\"table-row-fz\"></td>"; + model += "<td class=\"table-row-fz\"></td>"; + model += "<td class=\"table-row-fz\"></td>"; + model += "<td class=\"table-row-fz\"></td>"; + } else { + point = listPoint[index - 1]; + model += "<td class=\"table-row-fz\">閲囬泦浣� " + point.passCode + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "CO2") + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "O2") + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "PH3") + "</td>"; + model += "<td class=\"table-row-fz\">" + + attrPoint(point, curData, "N2") + "</td>"; + + index++; + } + model += "</tr>"; + } + model += "</table>"; + // <!--涓嬮潰琛ㄦ牸寮�濮�--> + model += "<table cellspacing=\"0\" cellpadding=\"0\" class=\"table-2\">"; + model += "<tr><td width=\"20%\">妫�娴嬪垎鏋愶細</td>"; + model += "<td colspan=4>" + (curData.remark == null ? "/" : curData.remark) + "</td></tr>"; + model += "<tr><td width=\"20%\"></td><td width=\"20%\">鏈�楂�</td><td width=\"20%\">鏈�浣�</td><td width=\"20%\">骞冲潎</td><td width=\"20%\">澶囨敞</td></tr>"; + + // 姘斾綋鏁翠綋淇℃伅 + model += "<tr> <td>CO2锛圥PM锛�</td><td>" + curData.perCo2Max + "</td>"; + model += "<td>" + curData.perCo2Min + "</td>"; + model += "<td>" + curData.perCo2 + "</td>"; + model += "<td></td></tr>"; + + model += "<tr> <td>O2锛�%锛�</td><td>" + curData.perO2Max + "</td>"; + model += "<td>" + curData.perO2Min + "</td>"; + model += "<td>" + curData.perO2 + "</td>"; + model += "<td></td></tr>"; + + model += "<tr> <td>PH3锛圥PM锛�</td><td>" + curData.perPh3Max + "</td>"; + model += "<td>" + curData.perPh3Min + "</td>"; + model += "<td>" + curData.perPh3 + "</td>"; + model += "<td></td></tr>"; + + model += "<tr> <td>N2锛�%锛�</td><td>" + curData.perN2Max + "</td>"; + model += "<td>" + curData.perN2Min + "</td>"; + model += "<td>" + curData.perN2 + "</td>"; + model += "<td></td></tr>"; + + // 浠撳簱淇℃伅 + model += "<tr><td>浠撴埧绫诲瀷</td><td>" + depotData.depotTypeName + "</td>"; + model += "<td>鍏ヤ粨鏃ユ湡</td><td>" + (depotData.storeDate == null ? "/" : depotData.storeDate) + "</td><td ></td></tr>"; + + model += "<tr><td>绮鍝佺</td><td>" + depotData.foodVarietyName + "</td>"; + model += "<td>瀹為檯鍌ㄩ噺锛堝惃锛�</td><td>" + (depotData.storageReal == null ? "/" : (Number(depotData.storageReal)/1000).toFixed(2)) + + "</td><td ></td></tr>"; + + model += "<tr><td>鍏ヤ粨姘村垎锛�%锛�</td><td>" + (depotData.perWet == null ? "/" : depotData.perWet) + "</td>"; + model += "<td>褰撳墠姘村垎锛�%锛�</td><td>" + (depotData.perWet == null ? "/" : depotData.perWet) + "</td><td ></td></tr>"; + + model += "<tr><td>鍑虹硻鐜囷紙%锛�</td><td>" + (depotData.rough == null ? "/" : depotData.rough) + "</td>"; + model += "<td>绮浜у湴</td><td>" + (depotData.foodLocation == null ? "/" : depotData.foodLocation) + + "</td><td ></td></tr>"; + + model += "<tr><td>瀹归噸锛坘g/m3锛�</td><td>" + (depotData.bulkWeight == null ? "/" : depotData.bulkWeight) + "</td>"; + model += "<td>闈㈢瓔鎸佹按鐜囷紙%锛�</td><td>" + (depotData.waterGluten == null ? "/" : depotData.waterGluten) + "</td><td></td></tr>"; + + model += "<tr><td>鏉傝川锛�%锛�</td><td>" + (depotData.perImpurity == null ? "/" : depotData.perImpurity) + "</td>"; + model += "<td>涓嶅畬鍠勭矑锛�%锛�</td><td>" + (depotData.broken == null ? "/" : depotData.broken) + "</td><td ></td></tr>"; + + model += "<tr><td>妫�娴嬩汉</td><td>" + curData.checkUser + "</td>"; + model += "<td>淇濈鍛�</td><td>" + (depotData.storeKeeperName == null ? "/" : depotData.storeKeeperName) + + "</td><td ></td></tr>"; + + model += "</table>"; + + // 娣诲姞灏鹃儴淇℃伅 + model += "<div style=\"margin-top: 5px;\">"; + model += "<span style=\"float: left;\">娉細#琛ㄧず鏈�浣� *琛ㄧず鏈�楂�</span>"; + model += "<span style=\"float: right;\">鍒惰〃鏃堕棿锛�" + curData.sysDate + + "</span></div>"; + model += "</div></body></html>"; + + return model; +}; + +// 鏍规嵁閲囬泦鐐硅祴鍊硷紝娉ㄦ剰鏁版嵁搴撶敓鎴愮殑鍧愭爣鏄粠0寮�濮嬬殑 +attrPoint = function(point, curData, type) { + if (type == "CO2") { + if (-100.0 == point.perCo2) { + return "澶囩敤"; + } + if (curData.perCo2Max == point.perCo2) { + return point.perCo2 + "*"; + } + if (curData.perCo2Min == point.perCo2) { + return point.perCo2 + "#"; + } + } + + if (type == "O2") { + if (-100.0 == point.perO2) { + return "澶囩敤"; + } + if (curData.perO2Max == point.perO2) { + return point.perO2 + "*"; + } + if (curData.perO2Min == point.perO2) { + return point.perO2 + "#"; + } + } + + if (type == "PH3") { + if (-100.0 == point.perPh3) { + return "澶囩敤"; + } + if (curData.perPh3Max == point.perPh3) { + return point.perPh3 + "*"; + } + if (curData.perPh3Min == point.perPh3) { + return point.perPh3 + "#"; + } + } + + if (type == "N2") { + if (-100.0 == point.perN2) { + return "澶囩敤"; + } + if (curData.perN2Max == point.perN2) { + return point.perN2 + "*"; + } + if (curData.perN2Min == point.perN2) { + return point.perN2 + "#"; + } + } + + return ""; +}; + +/** + * 鏍规嵁HTML妯$増鎵撳嵃涓篈4 + * + * @param strHtml + */ +previewA4 = function(strHtml) { + var LODOP = getLodop(); + LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4"); + LODOP.PRINT_INIT("姘斾綋鎶ヨ〃"); + LODOP.ADD_PRINT_HTM(30, 40, "180mm", "100%", strHtml); + LODOP.PREVIEW(); +}; \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas-check.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas-check.js new file mode 100644 index 0000000..51ee4f6 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas-check.js @@ -0,0 +1,758 @@ +var layer; +var depotId;// 褰撳墠浠撳簱id +var curData;// 褰撳墠浠撶伯鎯呮暟鎹� +var mapData;// 鏍规嵁鏃ユ湡鏌ヨ鐨勬瘡涓粨搴撲竴鏉℃暟鎹� +var form; +var table; +var checkType; +var listData;// 榛樿椤甸潰涓殑绮儏鍒楄〃 +var gasConf;// 姘斾綋閲囬泦閰嶇疆淇℃伅锛屽寘鎷紑濮嬮噰闆嗙偣鍜屾埅鑷抽噰闆嗙偣銆� + +$(function() { + layui.use([ 'layer', 'laydate', 'form', 'table' ], function() { + form = layui.form; + layer = layui.layer; + var laydate = layui.laydate; + table = layui.table; + + // 鏃ユ湡 + laydate.render({ + elem : '#checkDateMore', + theme : '#7b8e9f' + }); + + laydate.render({ + elem : '#printCheckDate', + theme : '#7b8e9f' + }); + + // 鐩戝惉浠撳簱閫夋嫨 + form.on('select(select_depotId)', function(obj) { + flushData(null); + + //鑾峰彇褰撳墠浠撳簱鏁堟灉鍥� + // cutImg(obj.value); + //鏍规嵁浠撳簱缂栫爜鍒囨崲閲囬泦鐐逛綅缃� + // cutPoint(obj.value); + }); + + // 鐩戝惉閫夋嫨鎵规 + form.on('select(select_batchId)', function(obj) { + var value = obj.value; + if (value == "0") {// 琛ㄧず寮瑰嚭鏇村鎵规 + showMore(); + } else { + flushByBatchId(value); + } + }); + flushData(null); + }); +}); + +//鏍规嵁閲囬泦杩涘害淇℃伅娓叉煋閲囬泦鐐规晥鏋� +function renderCheckPoint(checkProgress) { + if (depotId != checkProgress.depotId) { + $("#progress-info").text(""); + return; + } + + $("#progress-info").text(checkProgress.msg); + //棣栧厛闄ゅ幓宸叉湁鏁堟灉 + $(".qt-pic-icon-active").removeClass("qt-pic-icon-active"); + + var id = "#point" + checkProgress.checkPoint+"-left"; + $(id).addClass("qt-pic-icon-active"); + id = "#point" + checkProgress.checkPoint+"-right"; + $(id).addClass("qt-pic-icon-active"); +} + +/** + * 鍒囨崲閲囬泦鐐� + * @param depotId + */ +function cutPoint(depotId) { + //棣栧厛闄ゅ幓宸叉湁鏁堟灉 + $(".qt-pic-icon-active").removeClass("qt-pic-icon-active"); + //鏍规嵁涔変箤杩欒竟鐩存帴鍒ゆ柇 + if("0135,0137,0139,0141,0143,0145,0147,0149,0151,0153".indexOf(depotId) >=0 ){ + $("#list-point-right").css("display","block"); + $("#list-point-left").css("display","none"); + }else{ + $("#list-point-right").css("display","none"); + $("#list-point-left").css("display","block"); + } +} + +// 鍗曚粨鎵撳嵃 +function printSingle() { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + layer.msg("寮�濮嬬敓鎴愭墦鍗版ā鐗堚�︹��"); + var html = builderModel(curData,dept); + layer.msg("寮�濮嬭皟鐢ㄦ墦鍗版満绋嬪簭棰勮鈥︹��"); + previewA4(html); +}; + +// 鎵归噺鎵撳嵃 +function printBatch() { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + // 棣栧厛鍘婚櫎涔嬪墠鐨勯�夋嫨 + var name; + $('#batchPrintSelect input').each(function() { + name = $(this).prop("name"); + if (name == "printCheckDate") {// 璺宠繃 + return true; + } + $(this).prop("disabled", false); + $(this).prop("checked", false); + }); + form.render(); + + // 寮瑰嚭閫夋嫨妗� + layer.open({ + type : 1, + title : '鎵归噺鎵撳嵃锛堢孩鑹茶〃绀烘病鏈夋娴嬭褰曪紝榛樿涓哄綋澶╋級', + area : [ '690px', '450px' ], + shade : 0, + content : $('#batchPrintSelect'), + btn : [ '鍏ㄩ��', '鍙嶉��', '閲嶉��', '鎵撳嵃棰勮', '鍙栨秷鎵撳嵃' ], + yes : function() { + var disabled, name; + $('#batchPrintSelect input').each(function() { + disabled = $(this).prop("disabled"); + name = $(this).prop("name"); + if (name == "printCheckDate" || disabled) { + } else { + $(this).prop("checked", true); + } + }); + form.render(); + }, + btn2 : function() { + var disabled, name; + $('#batchPrintSelect input').each(function() { + disabled = $(this).prop("disabled"); + name = $(this).prop("name"); + if (name == "printCheckDate" || disabled) { + // 涓嶅仛澶勭悊 + } else { + if ($(this).prop("checked")) { + $(this).prop("checked", false); + } else { + $(this).prop("checked", true); + } + } + }); + form.render(); + return false; + }, + btn3 : function() { + var disabled, name; + $('#batchPrintSelect input').each(function() { + disabled = $(this).prop("disabled"); + name = $(this).prop("name"); + if (name == "printCheckDate" || disabled) { + // 涓嶅仛澶勭悊 + } else { + $(this).prop("checked", false); + } + }); + form.render(); + return false; + }, + btn4 : function() { + printBatchTodo(); + }, + btn5 : function() { + layer.close(0); + }, + closeBtn : 0 + }); + + // 榛樿璋冪敤鑾峰彇鏁版嵁鏇存柊 + $("#printCheckDate").prop("value", dateFtt("yyyy-MM-dd", new Date())); + getPrintBatchDepot(); +}; + +// 鑾峰彇鎵归噺鎵撳嵃鐨勪俊鎭� +function getPrintBatchDepot() { + layer.msg("楠岃瘉绮儏妫�娴嬭褰曗�︹��"); + var checkDate = $("#printCheckDate").val(); + $.ajax({ + type : "POST", + url : "../../basic/gas/query-checkDate-map", + dataType : "json", + contentType : "application/json;charset=UTF-8", + data : JSON.stringify({ + checkDate : checkDate + }), + success : function(result) { + if (result.code != "0000") { + layer.msg(result.msg); + // 璁剧疆鎵�鏈変粨搴撲笉鍙�� + var name; + $('#batchPrintSelect input').each(function() { + name = $(this).prop("name"); + if (name != "printCheckDate") {// 璺宠繃 + $(this).prop("disabled", true); + } + }); + form.render(); + + } else { + mapData = result.data; + + // 鍔ㄦ�佽皟鏁翠粨搴撴槸鍚﹀彲浠ラ�夋嫨 + var name, value; + $('#batchPrintSelect input').each(function() { + name = $(this).prop("name"); + value = $(this).val(); + if (name != "printCheckDate") {// 璺宠繃 + if (mapData[value]) { + $(this).prop("disabled", false); + } else { + $(this).prop("disabled", true); + } + } + }); + form.render(); + } + }, + error : function() { + layer.msg("鎵归噺鎵撳嵃鑾峰彇绮儏淇℃伅澶辫触锛�"); + } + }); +}; + +// 鏍规嵁鏌ヨ鐨勬暟鎹壒閲忔墦鍗伴瑙� +function printBatchTodo() { + layer.msg("寮�濮嬫壒閲忕敓鎴愭墦鍗版ā鐗堚�︹��"); + var strHtml; + var value; + var checked; + var printData; + // 灏嗕粨搴撴暟鎹垪琛ㄨ浆鎹负MAP + var mapDepot = {}; + $.each(listDepot, function(index, data) { + mapDepot[data.id] = data; + }); + var LODOP = getLodop(); + LODOP.PRINT_INIT("姘斾綋妫�娴嬫姤琛�");// 鍒濆鍖栧湪寰幆澶� + LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4"); + $('#batchPrintSelect input').each(function() { + if ($(this).prop("name") == "printCheckDate") {// 璺宠繃 + return true; + } + checked = $(this).prop("checked"); + if (checked) { + value = $(this).val(); + LODOP.NewPage(); + printData = mapData[value]; + if (!printData) {// 濡傛灉娌℃湁绮儏鏁版嵁璺宠繃鎵ц涓嬩竴涓� + return true; + } + printData.depotData = mapDepot[value]; + strHtml = builderModel(printData,dept); + LODOP.ADD_PRINT_HTM(30, 40, "180mm", "100%", strHtml); + } + }); + layer.msg("寮�濮嬭皟鐢ㄦ墦鍗扮▼搴忛瑙堚�︹��"); + LODOP.PREVIEW(); +}; + + +// 鐐瑰嚮鍒锋柊鎿嶄綔 +function flushData(checkDate) { + depotId = $("#depotId").val(); + if (!depotId) { + layer.msg("璇峰厛閫夋嫨浠撳簱锛�"); + return; + } + cleanData(); + listData = [{"batchId":"202407151349","checkNum":5,"checkUser":"绠$悊鍛�","companyId":"1000","depotData":{"bulkWeight":600,"companyId":"1000","depotStatus":"1","depotStatusName":"绌轰粨","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"P0101","foodLevel":"02","foodLevelName":"浜岀瓑","foodType":"122","foodTypeName":"甯傜骇鍦版柟鍌ㄥ绮�","foodVariety":"1131","id":"LA02","name":"P01-01","orderNum":5,"storageMax":5000000,"storageReal":0,"storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperPhone":"####","storeType":"1"},"depotId":"LA02","listPoint":[{"passCode":1,"perCo2":497,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 13:50"},{"passCode":2,"perCo2":497,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 13:50"},{"passCode":3,"perCo2":496,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 13:50"},{"passCode":4,"perCo2":496,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 13:50"},{"passCode":5,"perCo2":482,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 13:50"}],"perCo2":493.6,"perCo2Max":497,"perCo2Min":482,"perN2":74.9,"perN2Max":74.9,"perN2Min":74.9,"perO2":25,"perO2Max":25,"perO2Min":25,"perPh3":0,"perPh3Max":0,"perPh3Min":0,"points":"1,497.0,25.0,0.0,74.9;2,497.0,25.0,0.0,74.9;3,496.0,25.0,0.0,74.9;4,496.0,25.0,0.0,74.9;5,482.0,25.0,0.0,74.9;","receiveDate":"2024-07-15 13:50","strReceiveDate":"2024-07-15 13:50","sysDate":1747964186612,"type":"0"},{"batchId":"202407141532","checkNum":5,"checkUser":"绠$悊鍛�","companyId":"1000","depotData":{"$ref":"$[0][0].depotData"},"depotId":"LA02","listPoint":[{"passCode":1,"perCo2":416,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 14:50"},{"passCode":2,"perCo2":408,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 14:50"},{"passCode":3,"perCo2":412,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 14:50"},{"passCode":4,"perCo2":433,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 14:50"},{"passCode":5,"perCo2":484,"perN2":74.9,"perO2":25,"perPh3":0,"receiveDate":"2024-07-15 14:50"}],"perCo2":430.6,"perCo2Max":484,"perCo2Min":408,"perN2":74.9,"perN2Max":74.9,"perN2Min":74.9,"perO2":25,"perO2Max":25,"perO2Min":25,"perPh3":0,"perPh3Max":0,"perPh3Min":0,"points":"1,416.0,25.0,0.0,74.9;2,408.0,25.0,0.0,74.9;3,412.0,25.0,0.0,74.9;4,433.0,25.0,0.0,74.9;5,484.0,25.0,0.0,74.9;","receiveDate":"2024-07-15 14:50","strReceiveDate":"2024-07-14 15:32","sysDate":1747964186613,"type":"0"}]; + if(!listData) return; + curData = listData[0]; + + // 娓叉煋鏁版嵁 + renderDataInfo(); + + // 鍦ㄦ壒娆¢�夋嫨涓坊鍔犱笅鎷夋暟鎹� + resetSelectBatchId(); + + // 璋冪敤鍏ㄩ儴鍏抽棴 + layer.closeAll(); + layer.msg("鏇存柊鎴愬姛鈥︹��"); + + // var data = { + // depotId : depotId, + // checkDate : checkDate + // }; + // $.ajax({ + // type : "POST", + // url : "../../basic/gas/list-data", + // dataType : "json", + // contentType : "application/json;charset=UTF-8", + // data : JSON.stringify(data), + // success : function(result) { + // if (result.code != "0000") { + // layer.msg(result.msg); + // } + // listData = result.data; + // if(!listData) return; + // curData = listData[0]; + // + // // 娓叉煋鏁版嵁 + // renderDataInfo(); + // + // // 鍦ㄦ壒娆¢�夋嫨涓坊鍔犱笅鎷夋暟鎹� + // resetSelectBatchId(); + // + // // 璋冪敤鍏ㄩ儴鍏抽棴 + // layer.closeAll(); + // layer.msg("鏇存柊鎴愬姛鈥︹��"); + // }, + // error : function() { + // layer.msg("鏍规嵁褰撳墠鏉′欢鑾峰彇绮儏鏁版嵁娓叉煋鍥炬爣澶辫触锛侊紒"); + // } + // }); +}; + +//娓呯┖鏁版嵁 +function cleanData() { + //娓呯┖妫�娴嬫椂闂存壒娆″�� + $("#batchId").empty(); + form.render(); + + $("#perO2").text("#"); + $("#perO2Max").text("#"); + $("#perO2Min").text("#"); + + $("#perCo2").text("#"); + $("#perCo2Max").text("#"); + $("#perCo2Min").text("#"); + + $("#perPh3").text("#"); + $("#perPh3Max").text("#"); + $("#perPh3Min").text("#"); + + $("#perN2").text("#"); + $("#perN2Max").text("#"); + $("#perN2Min").text("#"); + + $("#tableInfo").html(""); +} + +//鍒囨崲浠撳簱鍥剧墖 +function cutImg(depotId) { + + //鍙栦粨搴撻厤缃浘鐗� + var gasImg = gasImgMap[depotId]; + var imgPath = "../../basic/file/getImg?filePath=" + gasImg.fileImg; + + $("#depot_img").attr("src", imgPath); +} + +function renderTableInfo() { + var listPoint = curData.listPoint; + var tableHtml = "<table class=\"layui-table\" lay-even lay-skin=\"nob\">"; + tableHtml += "<colgroup><col width=\"20%\"><col width=\"20%\"><col width=\"20%\"><col width=\"20%\"><col></colgroup>"; + if(curData.type && curData.type == "1"){ + tableHtml += "<thead><tr><th style='background: #c2c2c2;' colspan='5'>妫�娴嬬被鍨嬶細鐔忚捀妫�娴�</th></tr></thead>"; + }else { + tableHtml += "<thead><tr><th style='background: #c2c2c2;' colspan='5'>妫�娴嬬被鍨嬶細甯歌妫�娴�</th></tr></thead>"; + } + tableHtml += "<thead><tr><th>閫氶亾</th><th>CO2</th><th>O2</th><th>PH3</th><th>N2</th></tr></thead>"; + tableHtml += "<tbody>"; + // 鍔ㄦ�佸垱寤鸿〃鏍� + $.each(listPoint, function(index, item) { + tableHtml += "<tr><td>" + item.passCode + "</td>"; + tableHtml += "<td>" + (item.perCo2== -100 ? "#" : item.perCo2) + "</td>"; + tableHtml += "<td>" + (item.perO2== -100 ? "#" : item.perO2) + "</td>"; + tableHtml += "<td>" + (item.perPh3== -100 ? "#" : item.perPh3) + "</td>"; + tableHtml += "<td>" + (item.perN2== -100 ? "#" : item.perN2) + "</td></tr>"; + }); + tableHtml += "</tbody></table>"; + $("#tableInfo").html(tableHtml); +}; + +// 鍥炲~妫�娴嬩俊鎭� +function renderDataInfo() { + $("#perCo2").text(curData.perCo2 == -100 ? "#" : curData.perCo2); + $("#perO2").text(curData.perO2 == -100 ? "#" : curData.perO2); + $("#perPh3").text(curData.perPh3 == -100 ? "#" : curData.perPh3); + $("#perN2").text(curData.perN2 == -100 ? "#" : curData.perN2); + + $("#perO2Max").text(curData.perO2Max == -100 ? "#" : curData.perO2Max); + $("#perO2Min").text(curData.perO2Min == -100 ? "#" : curData.perO2Min); + + $("#perCo2Max").text(curData.perCo2Max == -100 ? "#" : curData.perCo2Max); + $("#perCo2Min").text(curData.perCo2Min == -100 ? "#" : curData.perCo2Min); + + $("#perPh3Max").text(curData.perPh3Max == -100 ? "#" : curData.perPh3Max); + $("#perPh3Min").text(curData.perPh3Min == -100 ? "#" : curData.perPh3Min); + + $("#perN2Max").text(curData.perN2Max == -100 ? "#" : curData.perN2Max); + $("#perN2Min").text(curData.perN2Min == -100 ? "#" : curData.perN2Min); + + renderTableInfo(); +}; + +// 鏍规嵁鎵规鏇存柊鐨勫�艰皟鏁� +function flushByBatchId(batchId) { + var temp; + $.each(listData, function(index, item) { + if (item.batchId == batchId) { + temp = item; + return false; + } + }); + if (temp) { + curData = temp; + renderDataInfo(); + layer.msg("鏇存柊鎴愬姛鈥︹��"); + } +}; + +// 閲嶇疆鎵规涓嬫媺妗� +function resetSelectBatchId() { + // 棣栧厛娓呯┖鍘熸潵鐨勫�� + $("#batchId").empty(); + // 鏈笅鎷夋璧嬪�� + $.each(listData, function(index, item) { + $('#batchId').append(new Option(item.receiveDate, item.batchId));// 涓嬫媺鑿滃崟閲屾坊鍔犲厓绱� + }); + $('#batchId').append(new Option("閫夋嫨鏃堕棿鈥︹��", "0")); + form.render(); +}; + +// 鏇村鎵规閫夋嫨 +function showMore() { + layer.open({ + type : 1, + title : '璇烽�夋嫨鏃堕棿', + area : [ '380px', '250px' ], + shade : 0, + content : $('#dialogMoreSelect'), + btn : [ '纭閫夋嫨', '鍙栨秷' ], + yes : function() { + var checkDateMore = $("#checkDateMore").val(); + if (checkDateMore) { + flushData(checkDateMore); + } else { + layer.msg("璇峰厛纭鏃堕棿锛�"); + } + }, + btn2 : function() { + layer.close(0); + }, + closeBtn : 0 + }); +}; + +// 姘斾綋閲囬泦鐨勫叆鍙f柟娉曪紝type=1,琛ㄧず鏁翠粨閲囬泦锛泃ype=2,琛ㄧず閫夋嫨閲囬泦锛宼ype=3琛ㄧず澶氫粨閲囬泦 +function checkStart(type) { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + checkType = $("input[name='type']:checked").val(); + if(!checkType){ + layer.msg("璇峰厛閫夋嫨妫�娴嬬被鍨嬶紒"); + return; + } + if (3 == type) { + checkBatch(); + return; + } + + // 鏁翠粨閲囬泦鍜岄�夋嫨閲囬泦闇�瑕佽幏鍙栧埌姘斾綋鐨勯厤缃俊鎭悗杩涜鎿嶄綔 + depotId = $("#depotId").val(); + if (!depotId) { + layer.msg("璇峰厛閫夋嫨浠撳簱锛�"); + return; + } + + if (gasConf && gasConf.depotId == depotId) { + if (1 == type) { + check(); + } + if (2 == type) { + checkSelect(); + } + return; + } + + layer.msg("鑾峰彇褰撳墠浠撳簱鐨勯厤缃俊鎭�︹��"); + var data = { + depotId : depotId + }; + $.ajax({ + type : "POST", + url : "../../basic/gas/gas-conf", + dataType : "json", + contentType : "application/json;charset=UTF-8", + data : JSON.stringify(data), + success : function(result) { + if (result.code != "0000") { + layer.msg(result.msg); + return; + } + gasConf = result.data; + if (1 == type) { + check(); + return; + } + if (2 == type) { + checkSelect(); + return; + } + }, + error : function() { + layer.msg("鑾峰彇褰撳墠浠撳簱閰嶇疆淇℃伅澶辫触锛�"); + } + }); + +}; + +// 鍗曚釜绮儏妫�娴� +function check() { + layer.msg("寮�濮嬫皵浣撴娴嬧�︹��"); + var data = { + depotId : depotId, + type : checkType + }; + $.ajax({ + type : "POST", + url : "../../basic/gas/check-single", + dataType : "json", + contentType : "application/json;charset=UTF-8", + data : JSON.stringify(data), + success : function(result) { + if (result.code != "ORDER_SUCCESS") { + if (result.msg) { + layer.msg(result.msg); + } else { + layer.msg("鎵ц鍑虹幇寮傚父锛岃閲嶈瘯鎴栬仈绯荤鐞嗗憳"); + } + } else { + layer.msg("鍛戒护宸茬粡鎴愬姛鍙戦�侊紝寰呯粓绔搷搴斺�︹��"); + } + }, + error : function() { + layer.msg("姘斾綋妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�"); + } + }); +}; + +// 閫夋嫨閲囬泦鐐归噰闆� +function checkSelect() { + // 寮瑰嚭閫夋嫨妗嗭紝閫夋嫨淇℃伅 + var gasStart = gasConf.gasStart, gasEnd = gasConf.gasEnd; + var strHtml = ""; + for (var i = gasStart; i <= gasEnd; i++) { + if (i < 10) { + strHtml += "<input title='浣嶇疆0" + i + "' type='checkbox' value='" + + i + "'>"; + strHtml += "<div class='layui-unselect layui-form-checkbox'><span>浣嶇疆0" + + i + + "</span><i class='layui-icon layui-icon-ok'></i></div>"; + } else { + strHtml += "<input title='浣嶇疆" + i + "' type='checkbox' value='" + i + + "'>"; + strHtml += "<div class='layui-unselect layui-form-checkbox'><span>浣嶇疆" + + i + + "</span><i class='layui-icon layui-icon-ok'></i></div>"; + } + } + $("#div_point_select").html(strHtml); + form.render(); + + // 寮�濮嬮�夋嫨 + layer.open({ + type : 1, + title : '閫夋嫨閲囬泦鐐癸紙鍏ㄩ�夎浣跨敤鏁翠粨閲囬泦锛�', + area : [ '690px', '450px' ], + shade : 0, + content : $('#pointSelect'), + btn : [ '鍏ㄩ��', '鍙嶉��', '閲嶉��', '纭畾妫�娴�', '鍙栨秷妫�娴�' ], + yes : function() { + $('#pointSelect input').each(function() { + $(this).prop("checked", true); + }); + form.render(); + }, + btn2 : function() { + $('#pointSelect input').each(function() { + if ($(this).prop("checked")) { + $(this).prop("checked", false); + } else { + $(this).prop("checked", true); + } + }); + form.render(); + return false; + }, + btn3 : function() { + $('#pointSelect input').each(function() { + $(this).prop("checked", false); + }); + form.render(); + return false; + }, + btn4 : function() { + return checkSelectStep2(); + }, + btn5 : function() { + layer.close(0); + }, + closeBtn : 1 + }); +}; + +// 鎵ц閲囬泦鐐规娴� +function checkSelectStep2() { + // 鑾峰彇閫夋嫨鐨勯噰闆嗙偣 + var checkPoints = ""; + $('#pointSelect input').each(function() { + if ($(this).prop("checked")) { + checkPoints += $(this).val() + ","; + } + }); + + if (checkPoints == "") { + layer.msg("璇烽�夋嫨闇�瑕佹娴嬬殑閲囬泦鐐�"); + return false; + } + layer.msg("寮�濮嬫皵浣撴娴嬧�︹��"); + var data = { + depotId : depotId, + type : checkType, + checkPoints : checkPoints + }; + $.ajax({ + type : "POST", + url : "../../basic/gas/check-select", + dataType : "json", + contentType : "application/json;charset=UTF-8", + data : JSON.stringify(data), + success : function(result) { + if (result.code != "ORDER_SUCCESS") { + if (result.msg) { + layer.msg(result.msg); + } else { + layer.msg("鎵ц鍑虹幇寮傚父锛岃閲嶈瘯鎴栬仈绯荤鐞嗗憳"); + } + return false; + } else { + layer.msg("鍛戒护宸茬粡鎴愬姛鍙戦�侊紝寰呯粓绔搷搴斺�︹��"); + return true; + } + }, + error : function() { + layer.msg("姘斾綋妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�"); + return false; + } + }); + return true; +}; + +// 鎵归噺绮儏閲囬泦 +function checkBatch() { + // 棣栧厛鍘婚櫎涔嬪墠鐨勯�夋嫨 + $('#batchCheckSelect input').each(function() { + $(this).prop("checked", false); + }); + form.render(); + + // 寮瑰嚭閫夋嫨妗� + layer.open({ + type : 1, + title : '鎵归噺閲囬泦閫夋嫨', + area : [ '690px', '450px' ], + shade : 0, + content : $('#batchCheckSelect'), + btn : [ '鍏ㄩ��', '鍙嶉��', '閲嶉��', '鎵ц閲囬泦', '鍙栨秷閲囬泦' ], + yes : function() { + $('#batchCheckSelect input').each(function() { + $(this).prop("checked", true); + }); + form.render(); + }, + btn2 : function() { + $('#batchCheckSelect input').each(function() { + if ($(this).prop("checked")) { + $(this).prop("checked", false); + } else { + $(this).prop("checked", true); + } + }); + form.render(); + return false; + }, + btn3 : function() { + $('#batchCheckSelect input').each(function() { + $(this).prop("checked", false); + }); + form.render(); + return false; + }, + btn4 : function() { + return checkBatchStep2(); + }, + btn5 : function() { + layer.close(0); + }, + closeBtn : 0 + }); +}; + +/** + * 寮�濮嬫墽琛屾壒閲忔娴� + */ +function checkBatchStep2() { + var depotIds = ""; + $('#batchCheckSelect input').each(function() { + if ($(this).prop("checked")) { + depotIds += $(this).val() + ","; + } + }); + + if (depotIds == "") { + layer.msg("璇峰厛閫夋嫨闇�瑕佹娴嬬殑浠撳簱鈥︹��"); + return false; + } + layer.msg("寮�濮嬫墽琛屾壒閲忔娴嬧�︹��"); + // 璋冪敤鍚庡彴鎵归噺妫�娴� + var data = { + depotIds : depotIds, + type : checkType + }; + $.ajax({ + type : "POST", + url : "../../basic/gas/check-batch", + dataType : "json", + contentType : "application/json;charset=UTF-8", + data : JSON.stringify(data), + success : function(result) { + if (result.code != "ORDER_SUCCESS") { + if (result.msg) { + layer.msg(result.msg); + } else { + layer.msg("鎵ц鍑虹幇寮傚父锛岃閲嶈瘯鎴栬仈绯荤鐞嗗憳"); + } + return false; + } else { + layer.msg("鍛戒护宸茬粡鎴愬姛鍙戦�侊紝寰呯粓绔搷搴斺�︹��"); + return true; + } + }, + error : function() { + layer.msg("妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�"); + return false; + } + }); + return true; +}; + +function gasChart() { + layer.msg("鍔熻兘鏆傛湭寮�鏀锯�︹��"); +}; \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas.css b/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas.css new file mode 100644 index 0000000..2d9ca56 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/gas/gas.css @@ -0,0 +1,674 @@ +@charset "utf-8"; + +/*----------------- + Author:xq + update:2019 + -------------------*/ +body { + font-family: "寰蒋闆呴粦", Arial, sans-serif; + font-size: 14px; + background: #f3f5f8; +} + +i,em{ + font-style: normal; +} + + +.radius-3{ + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -ms-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; +} + +.radius-4, +.qt-rMenu-item a{ + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + -ms-border-radius: 4px; + -o-border-radius: 4px; + border-radius: 4px; +} + +.radius-6, +.lq-rMenu li{ + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + -ms-border-radius: 6px; + -o-border-radius: 6px; + border-radius: 6px; +} + +.box-shadow{ + -webkit-box-shadow: 0px 0px 9px 3px rgba(230,230,230,0.6); + -moz-box-shadow: 0px 0px 9px 3px rgba(230,230,230,0.6); + box-shadow: 0px 0px 9px 3px rgba(230,230,230,0.6); +} + +.fl { + float: left; +} +.fr { + float: right; +} + + +/*qtjc*/ + +.l-container{ + width: 100%; + max-width: 1680px; + min-width: 1340px; + margin-left: auto; + margin-right: auto; +} + +.l-main{ + margin: 10px; + position: relative; + padding-right: 350px; +} + +.qt-left{ + width: 100%; +} + + +.qt-lTop-l{ + width: 26%; + min-width: 260px; +} + + +.qt-left1{ + padding: 27px 8%; + background: #7b8e9f; + +} + +.lq-left1-from{ + margin-bottom: 20px; +} + +.qt-left .lq-left1-from:last-child{ + margin-bottom: 0; +} + +.qt-left .lq-left1-from .layui-form-label{ + color: #fff; + padding: 9px 0; + text-align: left; + font-size: 16px; +} + +.qt-left .lq-left1-from .layui-input-block{ + margin-left: 80px; +} + +.qt-left .layui-form-select .layui-edge{ + border-top-color: #666; +} + +.qt-left .layui-input-block .layui-input{ + font-size: 16px; + color: #000; +} + +.qt-left .layui-form-select dl dd.layui-this{ + background: #7b8e9f; +} + +.qt-lTop-r{ + width: 71.5%; +} + + +.qt-left-item{ + height: 150px; + overflow: hidden; + color: #fff; + text-align: center; +} + +.qt-left2{ + background: url(../../img/dzhwk/gas/qt-bg1.png) no-repeat; + background-size: 100% 100%; +} + +.qt-left3{ + background: url(../../img/dzhwk/gas/qt-bg2.png) no-repeat; + background-size: 100% 100%; +} + +.qt-left4{ + background: url(../../img/dzhwk/gas/qt-bg3.png) no-repeat; + background-size: 100% 100%; +} + +.qt-left5{ + background: url(../../img/dzhwk/gas/qt-bg4.png) no-repeat; + background-size: 100% 100%; +} + +.qt-left-item h3{ + height: 24px; + line-height: 24px; + font-size: 16px; + overflow: hidden; + font-weight: bold; + margin: 30px 0; +} + +.lq-cTop-ite{ + position: relative; +} + +.lq-cTop-item:after{ + display: block; + content: ''; + width: 1px; + height: 100%; + background: rgba(255,255,255,0.1); + position: absolute; + right: 0; + top: 0; + z-index: 97; +} + +.lq-cTop-item:last-child:after{ + background: none; +} + +.lq-cTop-item p{ + height: 25px; + line-height: 25px; + font-size: 16px; + margin-top: 5px; + overflow: hidden; +} + +.lq-cTop-item h4{ + font-size: 16px; + line-height: 25px; + height: 25px; + overflow: hidden; +} + +.lq-cTop-item p span{ + font-size: 22px; +} + +.qt-picBox{ + width: 96%; + margin: 2% auto; + text-align: center; + position: relative; +} + +.qt-pic{ + width: 100%; + margin: 0 auto; +} + +.qt-right{ + width: 340px; + position: absolute; + right: 0; + top: 0; + z-index: 99; +} + +.qt-rMenu{ + background: #fff; + width: 320px; + height: 120px; + overflow: hidden; + padding: 15px 10px; +} + +.qt-rMenu-item{ + height: 120px; + text-align: center; +} + + +.qt-rMenu-item a{ + display: inline-block; + width: 88px; + height: 118px; + border: 1px solid #e5e8ec; +} +.qt-icon{ + width: 48px; + height: 48px; + display: inline-block; + position: relative; + margin: 15px 0 10px; +} + +.qt-icon img, +.qt-pic-icon img{ + width: 100%; + height: 100%; + vertical-align: top; +} + +.qt-rMenu-item a p{ + line-height: 20px; + color: #324251; + font-size: 16px; + height: 20px; + overflow: hidden; +} + +.qt-rMenu-icon1{ + background: url(../../img/dzhwk/gas/qt-icon1.png); +} + +.qt-rMenu-icon2{ + background: url(../../img/dzhwk/gas/qt-icon2.png); +} + +.qt-rMenu-icon3{ + background: url(../../img/dzhwk/gas/lq-r-icon2.png); +} + +.qt-rMenu-icon4{ + background: url(../../img/dzhwk/gas/lq-r-icon4.png); +} + +.qt-rMenu-icon5{ + background: url(../../img/dzhwk/gas/lq-r-icon5.png); +} + +.qt-rMenu-icon6{ + background: url(../../img/dzhwk/gas/qt-icon3.png); +} + +.qt-rMenu-item:hover a, +.qt-rMenu-item.active a{ + background: #53adce; + border-color: #53adce; +} + + +.qt-rMenu-item:hover a p, +.qt-rMenu-item.active a p{ + color: #fff; +} + +.qt-rMenu-item:hover .qt-rMenu-icon1, +.qt-rMenu-item.active .qt-rMenu-icon1{ + background: url(../../img/dzhwk/gas/qt-icon1-h.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon2, +.qt-rMenu-item.active .qt-rMenu-icon2{ + background: url(../../img/dzhwk/gas/qt-icon2-h.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon3, +.qt-rMenu-item.active .qt-rMenu-icon3{ + background: url(../../img/dzhwk/gas/lq-r-icon2.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon4, +.qt-rMenu-item.active .qt-rMenu-icon4{ + background: url(../../img/dzhwk/gas/lq-r-icon4.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon5, +.qt-rMenu-item.active .qt-rMenu-icon5{ + background: url(../../img/dzhwk/gas/lq-r-icon5.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon6, +.qt-rMenu-item.active .qt-rMenu-icon6{ + background: url(../../img/dzhwk/gas/qt-icon3-h.png); +} + +.qt-rTable-box{ + background: #fff; + overflow: hidden; + margin-top: 10px; + width: 320px; + padding: 10px; + min-height: 320px; +} + +.qt-rTable-box .layui-table td, +.qt-rTable-box .layui-table th{ + padding: 9px 5px; + text-align: center; +} + +.qt-rTable-box .layui-table th{ + background: #dee6ec; +} + +.mr4{ + margin-right: 4%; +} + +.qt-pic-icon{ + display: inline-block; + width: 36px; + height: 36px; + position: absolute; + z-index: 99; +} + +.qt-pic-icon-active{ + -webkit-animation: twinkling 1.5s infinite ease-in-out; + animation: twinkling 1.5s infinite ease-in-out; +} + +.qt-pic-icon1{ + left: 45.5%; + top: 41%; +} +.qt-pic-icon2{ + left: 46%; + top: 33%; +} +.qt-pic-icon3{ + left: 46.6%; + top: 24%; +} +.qt-pic-icon4{ + left: 47%; + top: 15%; +} +/** 鍒嗗壊 **/ +.qt-pic-icon5{ + left: 37.5%; + top: 43%; +} +.qt-pic-icon6{ + left: 38%; + top: 39%; +} +.qt-pic-icon7{ + left: 38.5%; + top: 35%; +} +.qt-pic-icon8{ + left: 39%; + top: 31%; +} +/** 鍒嗗壊**/ +.qt-pic-icon9{ + left: 35%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon10{ + left: 39.5%; + top: 27%; +} +.qt-pic-icon11{ + left: 40%; + top: 23%; +} +.qt-pic-icon12{ + left: 40.5%; + top: 19%; +} +.qt-pic-icon13{ + left: 41%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon14{ + left: 27%; + top: 42%; +} +.qt-pic-icon15{ + left: 28%; + top: 36%; +} +.qt-pic-icon16{ + left: 29%; + top: 30%; +} +.qt-pic-icon18{ + left: 30%; + top: 25%; +} +.qt-pic-icon19{ + left: 31%; + top: 20%; +} +.qt-pic-icon20{ + left: 32%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon17{ + left: 25%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon21{ + left: 17%; + top: 43%; +} +.qt-pic-icon22 { + left: 18%; + top: 39%; +} +.qt-pic-icon23{ + left: 19%; + top: 35%; +} +.qt-pic-icon24{ + left: 20%; + top: 31%; +} +.qt-pic-icon25{ + left: 21%; + top: 27%; +} +.qt-pic-icon26{ + left: 22%; + top: 23%; +} +.qt-pic-icon27{ + left: 23%; + top: 19%; +} +.qt-pic-icon28{ + left: 24%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon29{ + left: 12%; + top: 41%; +} +.qt-pic-icon30{ + left: 14%; + top: 33%; +} +.qt-pic-icon31{ + left: 16%; + top: 24%; +} +.qt-pic-icon32{ + left: 18%; + top: 15%; +} + +/*** ---------------- 鍙充晶 ------**/ +.qt-pic-icon1-right{ + left: 51.6%; + top: 41%; +} +.qt-pic-icon2-right{ + left: 51.4%; + top: 33%; +} +.qt-pic-icon3-right{ + left: 51.2%; + top: 24%; +} +.qt-pic-icon4-right{ + left: 51%; + top: 15%; +} +/** 鍒嗗壊 **/ +.qt-pic-icon5-right{ + left: 58.8%; + top: 43%; +} +.qt-pic-icon6-right{ + left: 58.4%; + top: 39%; +} +.qt-pic-icon7-right{ + left: 58%; + top: 35%; +} +.qt-pic-icon8-right{ + left: 57.6%; + top: 31%; +} +/** 鍒嗗壊**/ +.qt-pic-icon9-right{ + left: 62%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon10-right{ + left: 57.2%; + top: 27%; +} +.qt-pic-icon11-right{ + left: 56.8%; + top: 23%; +} +.qt-pic-icon12-right{ + left: 56.4%; + top: 19%; +} +.qt-pic-icon13-right{ + left: 56%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon14-right{ + left: 68.5%; + top: 42%; +} +.qt-pic-icon15-right{ + left: 67.8%; + top: 36%; +} +.qt-pic-icon16-right{ + left: 67.1%; + top: 30%; +} +.qt-pic-icon18-right{ + left: 66.4%; + top: 25%; +} +.qt-pic-icon19-right{ + left: 65.7%; + top: 20%; +} +.qt-pic-icon20-right{ + left: 65%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon17-right{ + left: 72%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon21-right{ + left: 77.8%; + top: 43%; +} +.qt-pic-icon22-right{ + left: 77.2%; + top: 39%; +} +.qt-pic-icon23-right{ + left: 76.5%; + top: 35%; +} +.qt-pic-icon24-right{ + left: 75.8%; + top: 31%; +} +.qt-pic-icon25-right{ + left: 75.1%; + top: 27%; +} +.qt-pic-icon26-right{ + left: 74.4%; + top: 23%; +} +.qt-pic-icon27-right{ + left: 73.7%; + top: 19%; +} +.qt-pic-icon28-right{ + left: 73%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon29-right{ + left: 84.5%; + top: 41%; +} +.qt-pic-icon30-right{ + left: 83%; + top: 33%; +} +.qt-pic-icon31-right{ + left: 81.5%; + top: 24%; +} +.qt-pic-icon32-right{ + left: 80%; + top: 15%; +} + +@-webkit-keyframes twinkling { + 0% { + opacity: 0.5; + } + 100% { + opacity: 1; + } +} + +@keyframes twinkling { + 0% { + opacity: 0.5; + } + 100% { + opacity: 1; + } +} + + + +@media all and (max-width: 1650px) { + .qt-td-hide{ + display: none; + } + + .lq-cTop-item p span{ + font-size: 18px; + } +} + + + + + diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/PrintBuilder-lay.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/PrintBuilder-lay.js similarity index 100% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/PrintBuilder-lay.js rename to igds-dzhwk-web/src/main/resources/static/dzhwk/grain/PrintBuilder-lay.js diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/grain-check1.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-check1.js similarity index 99% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/grain-check1.js rename to igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-check1.js index 920fc4c..c726e03 100644 --- a/igds-dzhwk-web/src/main/resources/static/dzhwk/grain-check1.js +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-check1.js @@ -328,7 +328,7 @@ // 绮儏瀵规瘮 function compare() { - layer.msg("鏆傛湭寮�鏀撅紒"); + layer.msg("鏆傛湭瀵规帴锛�"); return; if (!depotId) { layer.msg("璇峰厛閫夋嫨浠撳簱鈥︹��"); @@ -595,7 +595,7 @@ // 鍗曚釜绮儏妫�娴� function checkGrain() { - layer.msg("鏆傛湭寮�鏀撅紒"); + layer.msg("鏆傛湭瀵规帴锛�"); return; if (!depotId) { layer.msg("璇峰厛閫夋嫨浠撳簱锛�"); @@ -626,7 +626,7 @@ // 鎵归噺绮儏閲囬泦 function checkGrainBatch() { - layer.msg("鏆傛湭寮�鏀撅紒"); + layer.msg("鏆傛湭瀵规帴锛�"); return; $('#batchCheckSelect input').each(function () { $(this).prop("checked", false); @@ -724,7 +724,7 @@ var iframeOrderIndex = 0; function showOrderProgress() { - layer.msg("鏆傛湭寮�鏀撅紒"); + layer.msg("鏆傛湭瀵规帴锛�"); return; var domId = "#layui-layer-iframe" + iframeOrderIndex; if ($(domId).length == 0) { diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/grain-export.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-export.js similarity index 100% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/grain-export.js rename to igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grain-export.js diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/grainPoint1.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grainPoint1.js similarity index 100% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/grainPoint1.js rename to igds-dzhwk-web/src/main/resources/static/dzhwk/grain/grainPoint1.js diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/lqStyle.css b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/lqStyle.css similarity index 82% rename from igds-dzhwk-web/src/main/resources/static/dzhwk/lqStyle.css rename to igds-dzhwk-web/src/main/resources/static/dzhwk/grain/lqStyle.css index 17bd560..7a07b4f 100644 --- a/igds-dzhwk-web/src/main/resources/static/dzhwk/lqStyle.css +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/grain/lqStyle.css @@ -251,36 +251,36 @@ } .lq-cTop-1{ - background: url(../img/dzhwk/grain/lq-c-bg1.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg1.png) no-repeat; background-size: 100% 100%; width: 29%; } .lq-cTop-2{ - background: url(../img/dzhwk/grain/lq-c-bg2.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg2.png) no-repeat; background-size: 100% 100%; width: 29%; } .lq-cTop-3{ - background: url(../img/dzhwk/grain/lq-c-bg3.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg3.png) no-repeat; background-size: 100% 100%; width: 19.5%; } .lq-cTop-3-2{ - background: url(../img/dzhwk/grain/lq-c-bg3.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg3.png) no-repeat; background-size: 100% 100%; } .lq-cTop-4{ - background: url(../img/dzhwk/grain/lq-c-bg4.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg4.png) no-repeat; background-size: 100% 100%; width: 19.5%; } .lq-cTop-4-2{ - background: url(../img/dzhwk/grain/lq-c-bg4.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg4.png) no-repeat; background-size: 100% 100%; } @@ -289,7 +289,7 @@ } .lq-cTop-item{ - background: url(../img/dzhwk/grain/lq-li-bg.png) right center no-repeat; + background: url(../../img/dzhwk/grain/lq-li-bg.png) right center no-repeat; } .lq-cTop-item:last-child{ @@ -368,7 +368,7 @@ margin-left: 10px; margin-top: 25px; height: 80px; - background: url(../img/dzhwk/grain/img-dnxb.png) center no-repeat; + background: url(../../img/dzhwk/grain/img-dnxb.png) center no-repeat; overflow: hidden; position: relative; } @@ -419,57 +419,57 @@ } .lq-rMenu li .lq-rMenu-icon1{ - background: url(../img/dzhwk/grain/lq-r-icon1.png); + background: url(../../img/dzhwk/grain/lq-r-icon1.png); } .lq-rMenu li .lq-rMenu-icon2{ - background: url(../img/dzhwk/grain/lq-r-icon2.png); + background: url(../../img/dzhwk/grain/lq-r-icon2.png); } .lq-rMenu li .lq-rMenu-icon3{ - background: url(../img/dzhwk/grain/lq-r-icon3.png); + background: url(../../img/dzhwk/grain/lq-r-icon3.png); } .lq-rMenu li .lq-rMenu-icon4{ - background: url(../img/dzhwk/grain/lq-r-icon4.png); + background: url(../../img/dzhwk/grain/lq-r-icon4.png); } .lq-rMenu li .lq-rMenu-icon5{ - background: url(../img/dzhwk/grain/lq-r-icon5.png); + background: url(../../img/dzhwk/grain/lq-r-icon5.png); } .lq-rMenu li .lq-rMenu-icon6{ - background: url(../img/dzhwk/grain/lq-r-icon6.png); + background: url(../../img/dzhwk/grain/lq-r-icon6.png); } .lq-a1{ - background: url(../img/dzhwk/grain/lq-c-bg1.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg1.png) no-repeat; background-size: 100% 100%; border-radius: 6px; } .lq-a2{ - background: url(../img/dzhwk/grain/lq-c-bg2.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg2.png) no-repeat; background-size: 100% 100%; border-radius: 6px; } .lq-a3{ - background: url(../img/dzhwk/grain/lq-c-bg3.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg3.png) no-repeat; background-size: 100% 100%; border-radius: 6px; } .lq-a4{ - background: url(../img/dzhwk/grain/lq-c-bg4.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg4.png) no-repeat; background-size: 100% 100%; border-radius: 6px; } .lq-a5{ - background: url(../img/dzhwk/grain/lq-c-bg5.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg5.png) no-repeat; background-size: 100% 100%; border-radius: 6px; } .lq-a6{ - background: url(../img/dzhwk/grain/lq-c-bg6.png) no-repeat; + background: url(../../img/dzhwk/grain/lq-c-bg6.png) no-repeat; background-size: 100% 100%; border-radius: 6px; } @@ -487,29 +487,29 @@ .lq-rMenu li:hover .lq-rMenu-icon1, .lq-rMenu li.active .lq-rMenu-icon1{ - background: url(../img/dzhwk/grain/lq-r-icon1-h.png); + background: url(../../img/dzhwk/grain/lq-r-icon1-h.png); } .lq-rMenu li:hover .lq-rMenu-icon2, .lq-rMenu li.active .lq-rMenu-icon2{ - background: url(../img/dzhwk/grain/lq-r-icon2-h.png); + background: url(../../img/dzhwk/grain/lq-r-icon2-h.png); } .lq-rMenu li:hover .lq-rMenu-icon3, .lq-rMenu li.active .lq-rMenu-icon3{ - background: url(../img/dzhwk/grain/lq-r-icon3-h.png); + background: url(../../img/dzhwk/grain/lq-r-icon3-h.png); } .lq-rMenu li:hover .lq-rMenu-icon4, .lq-rMenu li.active .lq-rMenu-icon4{ - background: url(../img/dzhwk/grain/lq-r-icon4-h.png); + background: url(../../img/dzhwk/grain/lq-r-icon4-h.png); } .lq-rMenu li:hover .lq-rMenu-icon5, .lq-rMenu li.active .lq-rMenu-icon5{ - background: url(../img/dzhwk/grain/lq-r-icon5-h.png); + background: url(../../img/dzhwk/grain/lq-r-icon5-h.png); } .lq-rMenu li:hover .lq-rMenu-icon6, .lq-rMenu li.active .lq-rMenu-icon6{ - background: url(../img/dzhwk/grain/lq-r-icon6-h.png); + background: url(../../img/dzhwk/grain/lq-r-icon6-h.png); } .lq-cLow{ diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/PrintBuilder.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/PrintBuilder.js new file mode 100644 index 0000000..68a9e56 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/PrintBuilder.js @@ -0,0 +1,140 @@ +/** + * 鏍规嵁姘斾綋淇℃伅鐢熸垚鎵撳嵃妯$増 + * + * @param depotData + * 浠撳簱鍩烘湰淇℃伅 + * @param grainData + * 绮儏鏁版嵁淇℃伅 + */ +builderModel = function(curData,dept) { + var depotData = curData.depotData; + var listPoint = curData.listPoint; + + var model = "<!DOCTYPE html><html lang=\"zh-cn\">\n" + + "<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"><title>姘斾綋鎶ヨ〃妯$増</title>" + + " <style>\n" + + " table,table tr th,table tr td{border:1px solid #0d1021}table{width:100%;line-height:23px;text-align:center;font-size:14px}.table-2{border-top:0px solid #0d1021 !important}.table-2 tr{border-top:0px solid #0d1021 !important}.table-2 td{border-top:0px solid #0d1021 !important}.table-row-tr{border-left:0px !important;border-right:0px !important;border-top:0px !important}.table-row-fz{border:0px !important}.link-top{width:100%;border-top:solid #0d1021 1px}</style>\n" + + "</head><body>"; + + model += "<div style=\"text-align: center\">\n" + + "<span style=\"font-size: 26px; font-weight: bold;\">\n"; + if(dept){ + model += dept.name; + }else{ + model += "--XXX--绮簱" + } + model += "</span><div class=\"link-top\"></div><div class=\"link-top\"></div>\n"; + model += "<span style=\"font-size: 18px; \">"; + model += depotData.name; + model += " 铏鎶ヨ〃</span>\n"; + model += "</div><div style=\"margin-top: 5px;\"><span style=\"float: left;\">"; + model += " 鏂瑰悜锛氫笢</span><span style=\"float: right;\">妫�娴嬫椂闂达細"; + model += curData.receiveDate; + model += "</span></div>"; + + // 鍔ㄦ�侀厤缃� + model += "<table cellspacing=\"0\" cellpadding=\"0\">"; + model += "<tr><td>閲囬泦浣�</td><td>铏澶存暟</td><td>铏绫诲瀷</td><td>閲囬泦浣�</td><td>铏澶存暟</td><td>铏绫诲瀷</td></tr>"; + + var num = Math.ceil(listPoint.length / 2); + var index = 1; + var point; + for (var i = 0; i < num; i++) { + point = listPoint[index - 1]; + model += "<tr>"; + + model += "<td class=\"table-row-fz\">閲囬泦浣� " + point.passCode + "</td>"; + model += "<td class=\"table-row-fz\">" + attrPoint(point, curData) + + "</td>"; + model += "<td class=\"table-row-fz\">" + point.pestType + "</td>"; + + index++; + + if (index > listPoint.length) { + model += "<td class=\"table-row-fz\"></td>"; + model += "<td class=\"table-row-fz\"></td>"; + model += "<td class=\"table-row-fz\"></td>"; + } else { + point = listPoint[index - 1]; + model += "<td class=\"table-row-fz\">閲囬泦浣� " + point.passCode + "</td>"; + model += "<td class=\"table-row-fz\">" + attrPoint(point, curData) + + "</td>"; + model += "<td class=\"table-row-fz\">" + point.pestType + "</td>"; + + index++; + } + model += "</tr>"; + } + model += "</table>"; + // <!--涓嬮潰琛ㄦ牸寮�濮�--> + model += "<table cellspacing=\"0\" cellpadding=\"0\" class=\"table-2\">"; + model += "<tr><td width=\"25%\">妫�娴嬪垎鏋愶細</td>"; + model += "<td colspan=3>" + curData.remark + "</td></tr>"; + model += "<tr><td width=\"25%\"></td><td width=\"25%\">鎬绘娴嬩綅鏁�</td><td width=\"25%\">妫�娴嬫渶澶氬ご鏁�</td><td width=\"25%\">澶囨敞</td></tr>"; + + // 姘斾綋鏁翠綋淇℃伅 + model += "<tr> <td>鏁翠粨</td><td>" + curData.checkNum + "</td>"; + model += "<td>" + curData.pestMax + "</td>"; + model += "<td></td></tr>"; + + + // 浠撳簱淇℃伅 + model += "<tr><td>浠撴埧绫诲瀷</td><td>" + depotData.depotTypeName + "</td>"; + model += "<td>鍏ヤ粨鏃ユ湡</td><td>" + depotData.storeDate + "</td></tr>"; + + model += "<tr><td>绮鍝佺</td><td>" + depotData.foodVarietyName + "</td>"; + model += "<td>瀹為檯鍌ㄩ噺锛堝惃锛�</td><td>" + depotData.storageReal + + "</td></tr>"; + + model += "<tr><td>鍏ヤ粨姘村垎锛�%锛�</td><td>" + depotData.perWet + "</td>"; + model += "<td>褰撳墠姘村垎锛�%锛�</td><td>" + depotData.perWet + "</td></tr>"; + + model += "<tr><td>鍙戣娊鐜囷紙%锛�</td><td></td>"; + model += "<td>绮浜у湴</td><td>" + depotData.foodLocation + + "</td></tr>"; + + model += "<tr><td>瀹归噸锛坘g/m3锛�</td><td>" + depotData.bulkWeight + "</td>"; + model += "<td>闈㈢瓔鎸佹按鐜囷紙%锛�</td><td></td></tr>"; + + model += "<tr><td>鏉傝川锛�%锛�</td><td>" + depotData.perImpurity + "</td>"; + model += "<td>涓嶅畬鍠勭矑锛�%锛�</td><td>" + depotData.broken + "</td></tr>"; + + model += "<tr><td>妫�娴嬩汉</td><td>" + curData.checkUser + "</td>"; + model += "<td>淇濈鍛�</td><td>" + depotData.storeKeeperName + + "</td></tr>"; + + model += "</table>"; + + // 娣诲姞灏鹃儴淇℃伅 + model += "<div style=\"margin-top: 5px;\">"; + model += "<span style=\"float: left;\">娉細#琛ㄧず鏈�浣� *琛ㄧず鏈�楂�</span>"; + model += "<span style=\"float: right;\">鍒惰〃鏃堕棿锛�" + curData.sysDate + + "</span></div>"; + model += "</div></body></html>"; + + return model; +}; + +// 鏍规嵁閲囬泦鐐硅祴鍊硷紝娉ㄦ剰鏁版嵁搴撶敓鎴愮殑鍧愭爣鏄粠0寮�濮嬬殑 +attrPoint = function(point, curData) { + if (-100.0 == point.pestNum) { + return "澶囩敤"; + } + if (curData.pestMax == point.pestNum) { + return point.pestNum + "*"; + } + return point.pestNum; +}; + +/** + * 鏍规嵁HTML妯$増鎵撳嵃涓篈4 + * + * @param strHtml + */ +previewA4 = function(strHtml) { + var LODOP = getLodop(); + LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4"); + LODOP.PRINT_INIT("铏鎶ヨ〃"); + LODOP.ADD_PRINT_HTM(30, 40, "180mm", "100%", strHtml); + LODOP.PREVIEW(); +}; \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest-check.js b/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest-check.js new file mode 100644 index 0000000..4f1b7d9 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest-check.js @@ -0,0 +1,737 @@ +var layer; +var depotId;// 褰撳墠浠撳簱id +var curData;// 褰撳墠浠撶伯鎯呮暟鎹� +var mapData;// 鏍规嵁鏃ユ湡鏌ヨ鐨勬瘡涓粨搴撲竴鏉℃暟鎹� +var form; +var table; +var listData;// 榛樿椤甸潰涓殑绮儏鍒楄〃 +var gasConf;// 姘斾綋閲囬泦閰嶇疆淇℃伅锛屽寘鎷紑濮嬮噰闆嗙偣鍜屾埅鑷抽噰闆嗙偣銆� + +$(function () { + layui.use(['layer', 'laydate', 'form', 'table'], function () { + form = layui.form; + layer = layui.layer; + var laydate = layui.laydate; + table = layui.table; + + // 鏃ユ湡 + laydate.render({ + elem: '#checkDateMore', + theme: '#7b8e9f' + }); + + laydate.render({ + elem: '#printCheckDate', + theme: '#7b8e9f' + }); + + // 鐩戝惉浠撳簱閫夋嫨 + form.on('select(select_depotId)', function (obj) { + flushData(null); + + //鑾峰彇褰撳墠浠撳簱鏁堟灉鍥� + // cutImg(obj.value); + //鏍规嵁浠撳簱缂栫爜鍒囨崲閲囬泦鐐逛綅缃� + // cutPoint(obj.value); + }); + + // 鐩戝惉閫夋嫨鎵规 + form.on('select(select_batchId)', function (obj) { + var value = obj.value; + if (value == "0") {// 琛ㄧず寮瑰嚭鏇村鎵规 + showMore(); + } else { + flushByBatchId(value); + } + }); + flushData(null); + }); +}); + +/** + * 鍒囨崲閲囬泦鐐� + * @param depotId + */ +function cutPoint(depotId) { + //棣栧厛闄ゅ幓宸叉湁鏁堟灉 + $(".qt-pic-icon-active").removeClass("qt-pic-icon-active"); + + $("#list-point-right").css("display","none"); + $("#list-point-left").css("display","block"); +} + + +//鏍规嵁閲囬泦杩涘害淇℃伅娓叉煋閲囬泦鐐规晥鏋� +function renderCheckPoint(checkProgress) { + if (depotId != checkProgress.depotId) { + $("#progress-info").text(""); + return; + } + $("#progress-info").text(checkProgress.msg); + + //棣栧厛闄ゅ幓宸叉湁鏁堟灉 + $(".qt-pic-icon-active").removeClass("qt-pic-icon-active"); + + var id = "#point" + checkProgress.checkPoint+"-left"; + $(id).addClass("qt-pic-icon-active"); + id = "#point" + checkProgress.checkPoint+"-right"; + $(id).addClass("qt-pic-icon-active"); +}; + +// 鍗曚粨鎵撳嵃 +function printSingle() { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + layer.msg("寮�濮嬬敓鎴愭墦鍗版ā鐗堚�︹��"); + var html = builderModel(curData,dept); + layer.msg("寮�濮嬭皟鐢ㄦ墦鍗版満绋嬪簭棰勮鈥︹��"); + previewA4(html); +}; + +// 鎵归噺鎵撳嵃 +function printBatch() { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + // 棣栧厛鍘婚櫎涔嬪墠鐨勯�夋嫨 + var name; + $('#batchPrintSelect input').each(function () { + name = $(this).prop("name"); + if (name == "printCheckDate") {// 璺宠繃 + return true; + } + $(this).prop("disabled", false); + $(this).prop("checked", false); + }); + form.render(); + + // 寮瑰嚭閫夋嫨妗� + layer.open({ + type: 1, + title: '鎵归噺鎵撳嵃锛堢孩鑹茶〃绀烘病鏈夋娴嬭褰曪紝榛樿涓哄綋澶╋級', + area: ['690px', '450px'], + shade: 0, + content: $('#batchPrintSelect'), + btn: ['鍏ㄩ��', '鍙嶉��', '閲嶉��', '鎵撳嵃棰勮', '鍙栨秷鎵撳嵃'], + yes: function () { + var disabled, name; + $('#batchPrintSelect input').each(function () { + disabled = $(this).prop("disabled"); + name = $(this).prop("name"); + if (name == "printCheckDate" || disabled) { + } else { + $(this).prop("checked", true); + } + }); + form.render(); + }, + btn2: function () { + var disabled, name; + $('#batchPrintSelect input').each(function () { + disabled = $(this).prop("disabled"); + name = $(this).prop("name"); + if (name == "printCheckDate" || disabled) { + // 涓嶅仛澶勭悊 + } else { + if ($(this).prop("checked")) { + $(this).prop("checked", false); + } else { + $(this).prop("checked", true); + } + } + }); + form.render(); + return false; + }, + btn3: function () { + var disabled, name; + $('#batchPrintSelect input').each(function () { + disabled = $(this).prop("disabled"); + name = $(this).prop("name"); + if (name == "printCheckDate" || disabled) { + // 涓嶅仛澶勭悊 + } else { + $(this).prop("checked", false); + } + }); + form.render(); + return false; + }, + btn4: function () { + printBatchTodo(); + }, + btn5: function () { + layer.close(0); + }, + closeBtn: 0 + }); + + // 榛樿璋冪敤鑾峰彇鏁版嵁鏇存柊 + $("#printCheckDate").prop("value", dateFtt("yyyy-MM-dd", new Date())); + getPrintBatchDepot(); +}; + +// 鑾峰彇鎵归噺鎵撳嵃鐨勪俊鎭� +function getPrintBatchDepot() { + layer.msg("楠岃瘉绮儏妫�娴嬭褰曗�︹��"); + var checkDate = $("#printCheckDate").val(); + $.ajax({ + type: "POST", + url: "../../basic/pest/query-checkDate-map", + dataType: "json", + contentType: "application/json;charset=UTF-8", + data: JSON.stringify({ + checkDate: checkDate + }), + success: function (result) { + if (result.code != "0000") { + layer.msg(result.msg); + // 璁剧疆鎵�鏈変粨搴撲笉鍙�� + var name; + $('#batchPrintSelect input').each(function () { + name = $(this).prop("name"); + if (name != "printCheckDate") {// 璺宠繃 + $(this).prop("disabled", true); + } + }); + form.render(); + + } else { + mapData = result.data; + + // 鍔ㄦ�佽皟鏁翠粨搴撴槸鍚﹀彲浠ラ�夋嫨 + var name, value; + $('#batchPrintSelect input').each(function () { + name = $(this).prop("name"); + value = $(this).val(); + if (name != "printCheckDate") {// 璺宠繃 + if (mapData[value]) { + $(this).prop("disabled", false); + } else { + $(this).prop("disabled", true); + } + } + }); + form.render(); + } + }, + error: function () { + layer.msg("鎵归噺鎵撳嵃鑾峰彇绮儏淇℃伅澶辫触锛�"); + } + }); +}; + +// 鏍规嵁鏌ヨ鐨勬暟鎹壒閲忔墦鍗伴瑙� +function printBatchTodo() { + layer.msg("寮�濮嬫壒閲忕敓鎴愭墦鍗版ā鐗堚�︹��"); + var strHtml; + var value; + var checked; + var printData; + // 灏嗕粨搴撴暟鎹垪琛ㄨ浆鎹负MAP + var mapDepot = {}; + $.each(listDepot, function (index, data) { + mapDepot[data.id] = data; + }); + var LODOP = getLodop(); + LODOP.PRINT_INIT("姘斾綋妫�娴嬫姤琛�");// 鍒濆鍖栧湪寰幆澶� + LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4"); + $('#batchPrintSelect input').each(function () { + if ($(this).prop("name") == "printCheckDate") {// 璺宠繃 + return true; + } + checked = $(this).prop("checked"); + if (checked) { + value = $(this).val(); + LODOP.NewPage(); + printData = mapData[value]; + if (!printData) {// 濡傛灉娌℃湁绮儏鏁版嵁璺宠繃鎵ц涓嬩竴涓� + return true; + } + printData.depotData = mapDepot[value]; + strHtml = builderModel(printData,dept); + LODOP.ADD_PRINT_HTM(30, 40, "180mm", "100%", strHtml); + } + }); + layer.msg("寮�濮嬭皟鐢ㄦ墦鍗扮▼搴忛瑙堚�︹��"); + LODOP.PREVIEW(); +}; + +// 鐐瑰嚮鍒锋柊鎿嶄綔 +function flushData(checkDate) { + depotId = $("#depotId").val(); + if (!depotId) { + layer.msg("璇峰厛閫夋嫨浠撳簱锛�"); + return; + } + cleanData(); + listData = [{"batchId":"202410230838","checkNum":5,"checkUser":"绠$悊鍛�","companyId":"1000","depotData":{"bulkWeight":600,"companyId":"1000","depotStatus":"3","depotStatusName":"灏佷粨","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"1000001001","foodLevel":"03","foodLevelName":"涓夌瓑","foodLocation":"姹熻タ鐪�","foodType":"123","foodTypeName":"鍘跨骇鍦版柟鍌ㄥ绮�","foodVariety":"1131","foodYear":"2024","id":"LB03","name":"L1-1C浠�","orderNum":3,"storageMax":5000000,"storageReal":1825000,"storeDate":1724342400000,"storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperPhone":"####","storeType":"1"},"depotId":"LB03","listPoint":[{"passCode":1,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 08:38"},{"passCode":2,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 08:38"},{"passCode":3,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 08:38"},{"passCode":4,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 08:38"},{"passCode":5,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 08:38"}],"pestEnd":5,"pestMax":2,"pestStart":1,"points":"1,0;2,0;3,0;4,0;5,2;","receiveDate":"2024-10-23 08:38","remark":"鍩烘湰鏃犺櫕绮�","sysDate":1747965415141},{"batchId":"202410100836","checkNum":5,"checkUser":"鍦扮瀹�","companyId":"1000","depotData":{"$ref":"$[0][0].depotData"},"depotId":"LB03","listPoint":[{"passCode":1,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 09:38"},{"passCode":2,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 09:38"},{"passCode":3,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 09:38"},{"passCode":4,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 09:38"},{"passCode":5,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 09:38"}],"pestEnd":5,"pestMax":0,"pestStart":1,"points":"1,0;2,0;3,0;4,0;5,0;","receiveDate":"2024-10-23 09:38","remark":"鍩烘湰鏃犺櫕绮�","sysDate":1747965415141},{"batchId":"202410081616","checkNum":5,"checkUser":"鍦扮瀹�","companyId":"1000","depotData":{"$ref":"$[0][0].depotData"},"depotId":"LB03","listPoint":[{"passCode":1,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 11:38"},{"passCode":2,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 11:38"},{"passCode":3,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 11:38"},{"passCode":4,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 11:38"},{"passCode":5,"pestNum":0,"pestType":"","receiveDate":"2024-10-23 11:38"}],"pestEnd":5,"pestMax":5,"pestStart":1,"points":"1,4;2,2;3,1;4,2;5,5;","receiveDate":"2024-10-23 11:38","remark":"涓�鑸櫕绮�","sysDate":1747965415141}]; + + if(!listData){ + return; + } + curData = listData[0]; + + // 娓叉煋鏁版嵁 + renderDataInfo(); + + // 鍦ㄦ壒娆¢�夋嫨涓坊鍔犱笅鎷夋暟鎹� + resetSelectBatchId(); + + // 璋冪敤鍏ㄩ儴鍏抽棴 + layer.closeAll(); + layer.msg("鏇存柊鎴愬姛鈥︹��"); + + + // var data = { + // depotId: depotId, + // checkDate: checkDate + // }; + // $.ajax({ + // type: "POST", + // url: "../../basic/pest/list-data", + // dataType: "json", + // contentType: "application/json;charset=UTF-8", + // data: JSON.stringify(data), + // success: function (result) { + // if (result.code != "0000") { + // layer.msg(result.msg); + // } + // listData = result.data; + // if(!listData){ + // return; + // } + // curData = listData[0]; + // + // // 娓叉煋鏁版嵁 + // renderDataInfo(); + // + // // 鍦ㄦ壒娆¢�夋嫨涓坊鍔犱笅鎷夋暟鎹� + // resetSelectBatchId(); + // + // // 璋冪敤鍏ㄩ儴鍏抽棴 + // layer.closeAll(); + // layer.msg("鏇存柊鎴愬姛鈥︹��"); + // }, + // error: function () { + // layer.msg("鏍规嵁褰撳墠鏉′欢鑾峰彇绮儏鏁版嵁娓叉煋鍥炬爣澶辫触锛侊紒"); + // } + // }); +}; + +//娓呯┖鏁版嵁 +function cleanData() { + //娓呯┖妫�娴嬫椂闂存壒娆″�� + $("#batchId").empty(); + form.render(); + + $("#checkNum").text("0"); + $("#remark").text("鏃犺櫕"); + + $("#tableInfo").html(""); +} + +//鍒囨崲浠撳簱鍥剧墖 +function cutImg(depotId) { + //榛樿鍥剧墖 + var gasImg = gasImgMap[depotId]; + var imgPath = "../../basic/file/getImg?filePath=" + gasImg.fileImg; + + $("#depot_img").attr("src", imgPath); +} + +//娓叉煋琛ㄦ牸锛屽悓鏃舵覆鏌撴帓琛� +function renderTableInfo() { + var listPoint = curData.listPoint; + var v1 = curData.pestMax, v2 = 0.0, v3 = 0.0, v4 = 0.0; + var tableHtml = "<table class=\"layui-table\" lay-even lay-skin=\"nob\" >"; + tableHtml += "<thead><tr><th>妫�娴嬩綅</th><th lay-data=\"{sort:true}\">铏澶存暟</th><th>铏绫诲瀷</th></tr></thead>"; + tableHtml += "<tbody>"; + // 鍔ㄦ�佸垱寤鸿〃鏍� + $.each(listPoint, function (index, item) { + tableHtml += "<tr><td>" + item.passCode + "</td>"; + tableHtml += "<td>" + item.pestNum + "</td>"; + tableHtml += "<td>" + item.pestType + "</td></tr>"; + + //娓叉煋鎺掕 + if (index == 0) { + $("#orderValue1").text(item.pestNum); + $("#orderName1").text("閲囬泦浣�" + item.passCode); + } + if (index == 1) { + $("#orderValue2").text(item.pestNum); + $("#orderName2").text("閲囬泦浣�" + item.passCode); + } + if (index == 2) { + $("#orderValue3").text(item.pestNum); + $("#orderName3").text("閲囬泦浣�" + item.passCode); + } + if (index == 3) { + $("#orderValue4").text(item.pestNum); + $("#orderName4").text("閲囬泦浣�" + item.passCode); + } + }); + tableHtml += "</tbody></table>"; + $("#tableInfo").html(tableHtml); +}; + +// 鍥炲~妫�娴嬩俊鎭� +function renderDataInfo() { + $("#checkNum").text(curData.checkNum); + $("#remark").text(curData.remark); + + //娓叉煋琛ㄦ牸鍜屾帓琛� + renderTableInfo(); +}; + +// 鏍规嵁鎵规鏇存柊鐨勫�艰皟鏁� +function flushByBatchId(batchId) { + var temp; + $.each(listData, function (index, item) { + if (item.batchId == batchId) { + temp = item; + return false; + } + }); + if (temp) { + curData = temp; + renderDataInfo(); + layer.msg("鏇存柊鎴愬姛鈥︹��"); + } +}; + +// 閲嶇疆鎵规涓嬫媺妗� +function resetSelectBatchId() { + // 棣栧厛娓呯┖鍘熸潵鐨勫�� + $("#batchId").empty(); + // 鏈笅鎷夋璧嬪�� + $.each(listData, function (index, item) { + $('#batchId').append(new Option(item.receiveDate, item.batchId));// 涓嬫媺鑿滃崟閲屾坊鍔犲厓绱� + }); + $('#batchId').append(new Option("閫夋嫨鏃堕棿鈥︹��", "0")); + form.render(); +}; + +// 鏇村鎵规閫夋嫨 +function showMore() { + layer.open({ + type: 1, + title: '璇烽�夋嫨鏃堕棿', + area: ['380px', '250px'], + shade: 0, + content: $('#dialogMoreSelect'), + btn: ['纭閫夋嫨', '鍙栨秷'], + yes: function () { + var checkDateMore = $("#checkDateMore").val(); + if (checkDateMore) { + flushData(checkDateMore); + } else { + layer.msg("璇峰厛纭鏃堕棿锛�"); + } + }, + btn2: function () { + layer.close(0); + }, + closeBtn: 0 + }); +}; + +// 姘斾綋閲囬泦鐨勫叆鍙f柟娉曪紝type=1,琛ㄧず鏁翠粨閲囬泦锛泃ype=2,琛ㄧず閫夋嫨閲囬泦锛宼ype=3琛ㄧず澶氫粨閲囬泦 +function checkStart(type) { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + if (3 == type) { + checkBatch(); + return; + } + + // 鏁翠粨閲囬泦鍜岄�夋嫨閲囬泦闇�瑕佽幏鍙栧埌姘斾綋鐨勯厤缃俊鎭悗杩涜鎿嶄綔 + depotId = $("#depotId").val(); + if (!depotId) { + layer.msg("璇峰厛閫夋嫨浠撳簱锛�"); + return; + } + + if (gasConf && gasConf.depotId == depotId) { + if (1 == type) { + check(); + } + if (2 == type) { + checkSelect(); + } + return; + } + + layer.msg("鑾峰彇褰撳墠浠撳簱鐨勯厤缃俊鎭�︹��"); + var data = { + depotId: depotId + }; + $.ajax({ + type: "POST", + url: "../../basic/pest/gas-conf", + dataType: "json", + contentType: "application/json;charset=UTF-8", + data: JSON.stringify(data), + success: function (result) { + if (result.code != "0000") { + layer.msg(result.msg); + return; + } + gasConf = result.data; + if (1 == type) { + check(); + return; + } + if (2 == type) { + checkSelect(); + return; + } + }, + error: function () { + layer.msg("鑾峰彇褰撳墠浠撳簱閰嶇疆淇℃伅澶辫触锛�"); + } + }); + +}; + +// 鍗曚釜绮儏妫�娴� +function check() { + layer.msg("寮�濮嬫皵浣撴娴嬧�︹��"); + var data = { + depotId: depotId + }; + $.ajax({ + type: "POST", + url: "../../basic/pest/check-single", + dataType: "json", + contentType: "application/json;charset=UTF-8", + data: JSON.stringify(data), + success: function (result) { + if (result.code != "ORDER_SUCCESS") { + if (result.msg) { + layer.msg(result.msg); + } else { + layer.msg("鎵ц鍑虹幇寮傚父锛岃閲嶈瘯鎴栬仈绯荤鐞嗗憳"); + } + } else { + layer.msg("鍛戒护宸茬粡鎴愬姛鍙戦�侊紝寰呯粓绔搷搴斺�︹��"); + } + }, + error: function () { + layer.msg("姘斾綋妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�"); + } + }); +}; + +// 閫夋嫨閲囬泦鐐归噰闆� +function checkSelect() { + // 寮瑰嚭閫夋嫨妗嗭紝閫夋嫨淇℃伅 + var gasStart = gasConf.gasStart, gasEnd = gasConf.gasEnd; + var strHtml = ""; + for (var i = gasStart; i <= gasEnd; i++) { + if (i < 10) { + strHtml += "<input title='浣嶇疆0" + i + "' type='checkbox' value='" + + i + "'>"; + strHtml += "<div class='layui-unselect layui-form-checkbox'><span>浣嶇疆0" + + i + + "</span><i class='layui-icon layui-icon-ok'></i></div>"; + } else { + strHtml += "<input title='浣嶇疆" + i + "' type='checkbox' value='" + i + + "'>"; + strHtml += "<div class='layui-unselect layui-form-checkbox'><span>浣嶇疆" + + i + + "</span><i class='layui-icon layui-icon-ok'></i></div>"; + } + } + $("#div_point_select").html(strHtml); + form.render(); + + // 寮�濮嬮�夋嫨 + layer.open({ + type: 1, + title: '閫夋嫨閲囬泦鐐癸紙鍏ㄩ�夎浣跨敤鏁翠粨閲囬泦锛�', + area: ['690px', '450px'], + shade: 0, + content: $('#pointSelect'), + btn: ['鍏ㄩ��', '鍙嶉��', '閲嶉��', '纭畾妫�娴�', '鍙栨秷妫�娴�'], + yes: function () { + $('#pointSelect input').each(function () { + $(this).prop("checked", true); + }); + form.render(); + }, + btn2: function () { + $('#pointSelect input').each(function () { + if ($(this).prop("checked")) { + $(this).prop("checked", false); + } else { + $(this).prop("checked", true); + } + }); + form.render(); + return false; + }, + btn3: function () { + $('#pointSelect input').each(function () { + $(this).prop("checked", false); + }); + form.render(); + return false; + }, + btn4: function () { + return checkSelectStep2(); + }, + btn5: function () { + layer.close(0); + }, + closeBtn: 1 + }); +}; + +// 鎵ц閲囬泦鐐规娴� +function checkSelectStep2() { + // 鑾峰彇閫夋嫨鐨勯噰闆嗙偣 + var checkPoints = ""; + $('#pointSelect input').each(function () { + if ($(this).prop("checked")) { + checkPoints += $(this).val() + ","; + } + }); + + if (checkPoints == "") { + layer.msg("璇烽�夋嫨闇�瑕佹娴嬬殑閲囬泦鐐�"); + return false; + } + layer.msg("寮�濮嬫皵浣撴娴嬧�︹��"); + var data = { + depotId: depotId, + checkPoints: checkPoints + }; + $.ajax({ + type: "POST", + url: "../../basic/pest/check-select", + dataType: "json", + contentType: "application/json;charset=UTF-8", + data: JSON.stringify(data), + success: function (result) { + if (result.code != "ORDER_SUCCESS") { + if (result.msg) { + layer.msg(result.msg); + } else { + layer.msg("鎵ц鍑虹幇寮傚父锛岃閲嶈瘯鎴栬仈绯荤鐞嗗憳"); + } + return false; + } else { + layer.msg("鍛戒护宸茬粡鎴愬姛鍙戦�侊紝寰呯粓绔搷搴斺�︹��"); + return true; + } + }, + error: function () { + layer.msg("姘斾綋妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�"); + return false; + } + }); + return true; +}; + +// 鎵归噺绮儏閲囬泦 +function checkBatch() { + // 棣栧厛鍘婚櫎涔嬪墠鐨勯�夋嫨 + $('#batchCheckSelect input').each(function () { + $(this).prop("checked", false); + }); + form.render(); + + // 寮瑰嚭閫夋嫨妗� + layer.open({ + type: 1, + title: '鎵归噺閲囬泦閫夋嫨', + area: ['690px', '450px'], + shade: 0, + content: $('#batchCheckSelect'), + btn: ['鍏ㄩ��', '鍙嶉��', '閲嶉��', '鎵ц閲囬泦', '鍙栨秷閲囬泦'], + yes: function () { + $('#batchCheckSelect input').each(function () { + $(this).prop("checked", true); + }); + form.render(); + }, + btn2: function () { + $('#batchCheckSelect input').each(function () { + if ($(this).prop("checked")) { + $(this).prop("checked", false); + } else { + $(this).prop("checked", true); + } + }); + form.render(); + return false; + }, + btn3: function () { + $('#batchCheckSelect input').each(function () { + $(this).prop("checked", false); + }); + form.render(); + return false; + }, + btn4: function () { + return checkBatchStep2(); + }, + btn5: function () { + layer.close(0); + }, + closeBtn: 0 + }); +}; + +/** + * 寮�濮嬫墽琛屾壒閲忔娴� + */ +function checkBatchStep2() { + var depotIds = ""; + $('#batchCheckSelect input').each(function () { + if ($(this).prop("checked")) { + depotIds += $(this).val() + ","; + } + }); + + if (depotIds == "") { + layer.msg("璇峰厛閫夋嫨闇�瑕佹娴嬬殑浠撳簱鈥︹��"); + return false; + } + layer.msg("寮�濮嬫墽琛屾壒閲忔娴嬧�︹��"); + // 璋冪敤鍚庡彴鎵归噺妫�娴� + var data = { + depotIds: depotIds + }; + $.ajax({ + type: "POST", + url: "../../basic/pest/check-batch", + dataType: "json", + contentType: "application/json;charset=UTF-8", + data: JSON.stringify(data), + success: function (result) { + if (result.code != "ORDER_SUCCESS") { + if (result.msg) { + layer.msg(result.msg); + } else { + layer.msg("鎵ц鍑虹幇寮傚父锛岃閲嶈瘯鎴栬仈绯荤鐞嗗憳"); + } + return false; + } else { + layer.msg("鍛戒护宸茬粡鎴愬姛鍙戦�侊紝寰呯粓绔搷搴斺�︹��"); + return true; + } + }, + error: function () { + layer.msg("妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�"); + return false; + } + }); + return true; +}; + +function gasChart() { + layer.msg("鏆傛湭瀵规帴锛�"); + return; + layer.msg("鍔熻兘鏆傛湭寮�鏀锯�︹��"); +}; \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest.css b/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest.css new file mode 100644 index 0000000..54d1e7d --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/dzhwk/pest/pest.css @@ -0,0 +1,642 @@ +@charset "utf-8"; + +/*----------------- + Author:xq + update:2019 + -------------------*/ +body { + font-family: "寰蒋闆呴粦", Arial, sans-serif; + font-size: 14px; + background: #f3f5f8; +} + +i, em { + font-style: normal; +} + +.radius-3 { + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -ms-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; +} + +.radius-4, .qt-rMenu-item a { + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + -ms-border-radius: 4px; + -o-border-radius: 4px; + border-radius: 4px; +} + +.radius-6, .lq-rMenu li { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + -ms-border-radius: 6px; + -o-border-radius: 6px; + border-radius: 6px; +} + +.box-shadow { + -webkit-box-shadow: 0px 0px 9px 3px rgba(230, 230, 230, 0.6); + -moz-box-shadow: 0px 0px 9px 3px rgba(230, 230, 230, 0.6); + box-shadow: 0px 0px 9px 3px rgba(230, 230, 230, 0.6); +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +/*qtjc*/ +.l-container { + width: 100%; + max-width: 1680px; + min-width: 1340px; + margin-left: auto; + margin-right: auto; +} + +.l-main { + margin: 10px; + position: relative; + padding-right: 350px; +} + +.qt-left { + width: 100%; +} + +.qt-lTop-l { + width: 26%; + min-width: 260px; +} + +.qt-left1 { + padding: 27px 8%; + background: #7b8e9f; +} + +.lq-left1-from { + margin-bottom: 20px; +} + +.qt-left .lq-left1-from:last-child { + margin-bottom: 0; +} + +.qt-left .lq-left1-from .layui-form-label { + color: #fff; + padding: 9px 0; + text-align: left; + font-size: 16px; +} + +.qt-left .lq-left1-from .layui-input-block { + margin-left: 80px; +} + +.qt-left .layui-form-select .layui-edge { + border-top-color: #666; +} + +.qt-left .layui-input-block .layui-input { + font-size: 16px; + color: #000; +} + +.qt-left .layui-form-select dl dd.layui-this { + background: #7b8e9f; +} + +.qt-lTop-r { + width: 71.5%; +} + +.qt-left-item { + height: 150px; + overflow: hidden; + color: #fff; + text-align: center; +} + +.qt-left2 { + background: url(../../img/dzhwk/gas/lq-c-bg3.png) no-repeat; + background-size: 100% 100%; +} + +.qt-left4 { + background: url(../../img/dzhwk/gas/lq-c-bg2.png) no-repeat; + background-size: 100% 100%; +} + +.qt-left-item h3 { + height: 24px; + line-height: 24px; + font-size: 16px; + overflow: hidden; + font-weight: bold; + margin: 30px 0; +} + +.lq-cTop-ite { + position: relative; +} + +.lq-cTop-item:after { + display: block; + content: ''; + width: 1px; + height: 100%; + background: rgba(255, 255, 255, 0.1); + position: absolute; + right: 0; + top: 0; + z-index: 97; +} + +.lq-cTop-item:last-child:after { + background: none; +} + +.lq-cTop-item p { + height: 25px; + line-height: 25px; + font-size: 16px; + margin-top: 5px; + overflow: hidden; +} + +.lq-cTop-item h4 { + font-size: 16px; + line-height: 25px; + height: 25px; + overflow: hidden; +} + +.lq-cTop-item p span { + font-size: 24px; +} + +.qt-picBox { + width: 96%; + text-align: center; + position: relative; +} + +.qt-pic { + width: 100%; + margin: 0 auto; +} + +.qt-right { + width: 340px; + position: absolute; + right: 0; + top: 0; + z-index: 99; +} + +.qt-rMenu { + background: #fff; + width: 320px; + height: 120px; + overflow: hidden; + padding: 15px 10px; +} + +.qt-rMenu-item { + height: 120px; + text-align: center; +} + +.qt-rMenu-item a { + display: inline-block; + width: 88px; + height: 118px; + border: 1px solid #e5e8ec; +} + +.qt-icon { + width: 48px; + height: 48px; + display: inline-block; + position: relative; + margin: 15px 0 10px; +} + +.qt-icon img, .qt-pic-icon img { + width: 100%; + height: 100%; + vertical-align: top; +} + +.qt-rMenu-item a p { + line-height: 20px; + color: #324251; + font-size: 16px; + height: 20px; + overflow: hidden; +} + +.qt-rMenu-icon1 { + background: url(../../img/dzhwk/gas/qt-icon1.png); +} + +.qt-rMenu-icon2 { + background: url(../../img/dzhwk/gas/qt-icon2.png); +} + +.qt-rMenu-icon3 { + background: url(../../img/dzhwk/gas/lq-r-icon2.png); +} + +.qt-rMenu-icon4 { + background: url(../../img/dzhwk/gas/lq-r-icon4.png); +} + +.qt-rMenu-icon5 { + background: url(../../img/dzhwk/gas/lq-r-icon5.png); +} + +.qt-rMenu-icon6 { + background: url(../../img/dzhwk/gas/qt-icon3.png); +} + +.qt-rMenu-item:hover a, .qt-rMenu-item.active a { + background: #53adce; + border-color: #53adce; +} + +.qt-rMenu-item:hover a p, .qt-rMenu-item.active a p { + color: #fff; +} + +.qt-rMenu-item:hover .qt-rMenu-icon1, .qt-rMenu-item.active .qt-rMenu-icon1 + { + background: url(../../img/dzhwk/gas/qt-icon1-h.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon2, .qt-rMenu-item.active .qt-rMenu-icon2 + { + background: url(../../img/dzhwk/gas/qt-icon2-h.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon3, .qt-rMenu-item.active .qt-rMenu-icon3 + { + background: url(../../img/dzhwk/gas/lq-r-icon2.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon4, .qt-rMenu-item.active .qt-rMenu-icon4 + { + background: url(../../img/dzhwk/gas/lq-r-icon4.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon5, .qt-rMenu-item.active .qt-rMenu-icon5 + { + background: url(../../img/dzhwk/gas/lq-r-icon5.png); +} + +.qt-rMenu-item:hover .qt-rMenu-icon6, .qt-rMenu-item.active .qt-rMenu-icon6 + { + background: url(../../img/dzhwk/gas/qt-icon3-h.png); +} + +.qt-rTable-box { + background: #fff; + overflow: hidden; + margin-top: 10px; + width: 320px; + padding: 10px; + min-height: 320px; +} + +.qt-rTable-box .layui-table td, .qt-rTable-box .layui-table th { + padding: 9px 5px; + text-align: center; +} + +.qt-rTable-box .layui-table th { + background: #dee6ec; +} + +.mr4 { + margin-right: 4%; +} + +.qt-pic-icon{ + display: inline-block; + width: 36px; + height: 36px; + position: absolute; + z-index: 99; +} + +.qt-pic-icon-active{ + -webkit-animation: twinkling 1.5s infinite ease-in-out; + animation: twinkling 1.5s infinite ease-in-out; +} + +.qt-pic-icon1{ + left: 45.5%; + top: 41%; +} +.qt-pic-icon2{ + left: 46%; + top: 33%; +} +.qt-pic-icon3{ + left: 46.6%; + top: 24%; +} +.qt-pic-icon4{ + left: 47%; + top: 15%; +} +/** 鍒嗗壊 **/ +.qt-pic-icon5{ + left: 37.5%; + top: 43%; +} +.qt-pic-icon6{ + left: 38%; + top: 39%; +} +.qt-pic-icon7{ + left: 38.5%; + top: 35%; +} +.qt-pic-icon8{ + left: 39%; + top: 31%; +} +/** 鍒嗗壊**/ +.qt-pic-icon9{ + left: 35%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon10{ + left: 39.5%; + top: 27%; +} +.qt-pic-icon11{ + left: 40%; + top: 23%; +} +.qt-pic-icon12{ + left: 40.5%; + top: 19%; +} +.qt-pic-icon13{ + left: 41%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon14{ + left: 27%; + top: 42%; +} +.qt-pic-icon15{ + left: 28%; + top: 36%; +} +.qt-pic-icon16{ + left: 29%; + top: 30%; +} +.qt-pic-icon18{ + left: 30%; + top: 25%; +} +.qt-pic-icon19{ + left: 31%; + top: 20%; +} +.qt-pic-icon20{ + left: 32%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon17{ + left: 25%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon21{ + left: 17%; + top: 43%; +} +.qt-pic-icon22 { + left: 18%; + top: 39%; +} +.qt-pic-icon23{ + left: 19%; + top: 35%; +} +.qt-pic-icon24{ + left: 20%; + top: 31%; +} +.qt-pic-icon25{ + left: 21%; + top: 27%; +} +.qt-pic-icon26{ + left: 22%; + top: 23%; +} +.qt-pic-icon27{ + left: 23%; + top: 19%; +} +.qt-pic-icon28{ + left: 24%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon29{ + left: 12%; + top: 41%; +} +.qt-pic-icon30{ + left: 14%; + top: 33%; +} +.qt-pic-icon31{ + left: 16%; + top: 24%; +} +.qt-pic-icon32{ + left: 18%; + top: 15%; +} + +/*** ---------------- 鍙充晶 ------**/ +.qt-pic-icon1-right{ + left: 51.6%; + top: 41%; +} +.qt-pic-icon2-right{ + left: 51.4%; + top: 33%; +} +.qt-pic-icon3-right{ + left: 51.2%; + top: 24%; +} +.qt-pic-icon4-right{ + left: 51%; + top: 15%; +} +/** 鍒嗗壊 **/ +.qt-pic-icon5-right{ + left: 58.8%; + top: 43%; +} +.qt-pic-icon6-right{ + left: 58.4%; + top: 39%; +} +.qt-pic-icon7-right{ + left: 58%; + top: 35%; +} +.qt-pic-icon8-right{ + left: 57.6%; + top: 31%; +} +/** 鍒嗗壊**/ +.qt-pic-icon9-right{ + left: 62%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon10-right{ + left: 57.2%; + top: 27%; +} +.qt-pic-icon11-right{ + left: 56.8%; + top: 23%; +} +.qt-pic-icon12-right{ + left: 56.4%; + top: 19%; +} +.qt-pic-icon13-right{ + left: 56%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon14-right{ + left: 68.5%; + top: 42%; +} +.qt-pic-icon15-right{ + left: 67.8%; + top: 36%; +} +.qt-pic-icon16-right{ + left: 67.1%; + top: 30%; +} +.qt-pic-icon18-right{ + left: 66.4%; + top: 25%; +} +.qt-pic-icon19-right{ + left: 65.7%; + top: 20%; +} +.qt-pic-icon20-right{ + left: 65%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon17-right{ + left: 72%; + top: 30%; +} +/** 鍒嗗壊**/ +.qt-pic-icon21-right{ + left: 77.8%; + top: 43%; +} +.qt-pic-icon22-right{ + left: 77.2%; + top: 39%; +} +.qt-pic-icon23-right{ + left: 76.5%; + top: 35%; +} +.qt-pic-icon24-right{ + left: 75.8%; + top: 31%; +} +.qt-pic-icon25-right{ + left: 75.1%; + top: 27%; +} +.qt-pic-icon26-right{ + left: 74.4%; + top: 23%; +} +.qt-pic-icon27-right{ + left: 73.7%; + top: 19%; +} +.qt-pic-icon28-right{ + left: 73%; + top: 15%; +} +/** 鍒嗗壊**/ +.qt-pic-icon29-right{ + left: 84.5%; + top: 41%; +} +.qt-pic-icon30-right{ + left: 83%; + top: 33%; +} +.qt-pic-icon31-right{ + left: 81.5%; + top: 24%; +} +.qt-pic-icon32-right{ + left: 80%; + top: 15%; +} + +@-webkit-keyframes twinkling { + 0% { + opacity: 0.5; + } + 100% { + opacity: 1; + } +} +@keyframes twinkling { + 0% { + opacity: 0.5; + } + 100% { + opacity: 1; + } +} + +@media all and (max-width: 1650px) { + .qt-td-hide{ + display: none; + } + + .lq-cTop-item p span{ + font-size: 18px; + } +} \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/gasImg_5.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/gasImg_5.png new file mode 100644 index 0000000..84ad376 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/gasImg_5.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/i-body.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/i-body.png new file mode 100644 index 0000000..b28054d --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/i-body.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg2.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg2.png new file mode 100644 index 0000000..0a4c46a --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg2.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg3.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg3.png new file mode 100644 index 0000000..1f72537 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-c-bg3.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon2.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon2.png new file mode 100644 index 0000000..0f1caeb --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon2.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon4.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon4.png new file mode 100644 index 0000000..419d3e2 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon4.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon5.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon5.png new file mode 100644 index 0000000..2397cac --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/lq-r-icon5.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg1.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg1.png new file mode 100644 index 0000000..fd20281 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg1.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg2.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg2.png new file mode 100644 index 0000000..faf0a9a --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg2.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg3.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg3.png new file mode 100644 index 0000000..b209c89 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg3.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg4.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg4.png new file mode 100644 index 0000000..78c75f1 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-bg4.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1-h.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1-h.png new file mode 100644 index 0000000..4cd72b3 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1-h.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1.png new file mode 100644 index 0000000..90a7868 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon1.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2-h.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2-h.png new file mode 100644 index 0000000..d3076fa --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2-h.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2.png new file mode 100644 index 0000000..749d111 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon2.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3-h.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3-h.png new file mode 100644 index 0000000..5415184 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3-h.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3.png new file mode 100644 index 0000000..a29007f --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-icon3.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-pic.png b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-pic.png new file mode 100644 index 0000000..9c8e35b --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/static/img/dzhwk/gas/qt-pic.png Binary files differ diff --git a/igds-dzhwk-web/src/main/resources/templates/dzhwk/gas-check.html b/igds-dzhwk-web/src/main/resources/templates/dzhwk/gas-check.html new file mode 100644 index 0000000..b5f2f06 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/templates/dzhwk/gas-check.html @@ -0,0 +1,497 @@ +<!DOCTYPE html> +<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="viewport" + content="width=device-width, initial-scale=1, maximum-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="renderer" content="webkit"> + <title>姘斾綋妫�娴�</title> + <link rel="stylesheet" th:href="@{/ajax/libs/layui/css/layui.css}"/> + <link rel="stylesheet" th:href="@{/dzhwk/gas/gas.css}"/> + + <style type="text/css"> + .layui-checkbox-disbaled span { + background-color: #ed5565 !important; + } + + #progress-info { + position: absolute; + z-index: 99; + display: inline-block; + height: 30px; + font-size: 16px; + font-weight: bold + } + </style> + +</head> + +<body> + +<div class="l-container"> + + <div class="l-main layui-clear"> + + <div class="qt-left"> + + <div class="qt-lTop layui-clear"> + <div class="qt-lTop-l fl"> + <div class="qt-left1 layui-clear radius-6 box-shadow"> + <form class="layui-form" action=""> + + <div class="layui-form-item lq-left1-from"> + <label class="layui-form-label">浠撳簱鍒楄〃</label> + <div class="layui-input-block"> + <select name="depotId" id="depotId" lay-filter="select_depotId"> + <option value="P0101" type="01">P01-01</option> + <option value="P0102" type="01">P01-02</option> + <option value="P0103" type="01">P01-03</option> + <option value="P0104" type="01">P01-04</option> + <option value="P0105" type="01">P01-05</option> + <option value="P0106" type="01">P01-06</option> + </select> + </div> + </div> + <div class="layui-form-item lq-left1-from"> + <label class="layui-form-label">妫�娴嬫椂闂�</label> + <div class="layui-input-block"> + <select name="batchId" id="batchId" + lay-filter="select_batchId"> + <option value=""></option> + </select> + </div> + </div> + </form> + </div> + </div> + <!--qt-lTop-l end--> + + <div class="layui-row qt-lTop-r fr"> + + <div class="layui-col-lg3"> + <div class="qt-left2 qt-left-item radius-6 mr4"> + <h3>O2 娴撳害锛�%锛�</h3> + <div class="layui-row"> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perO2Max">#</span> + </p> + <h4>鏈�楂�</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perO2">#</span> + </p> + <h4>骞冲潎</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perO2Min">#</span> + </p> + <h4>鏈�浣�</h4> + </div> + </div> + + </div> + + </div> + <!--layui-col end--> + <div class="layui-col-lg3"> + <div class="qt-left3 qt-left-item radius-6 mr4"> + <h3>CO2 娴撳害锛圥PM锛�</h3> + <div class="layui-row"> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perCo2Max">#</span> + </p> + <h4>鏈�楂�</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perCo2">#</span> + </p> + <h4>骞冲潎</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perCo2Min">#</span> + </p> + <h4>鏈�浣�</h4> + </div> + </div> + + </div> + + </div> + <!--layui-col end--> + <div class="layui-col-lg3"> + <div class="qt-left4 qt-left-item radius-6 mr4"> + <h3>PH3 娴撳害锛圥PM锛�</h3> + <div class="layui-row"> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perPh3Max">#</span> + </p> + <h4>鏈�楂�</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perPh3">#</span> + </p> + <h4>骞冲潎</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perPh3Min">#</span> + </p> + <h4>鏈�浣�</h4> + </div> + </div> + + </div> + + </div> + <!--layui-col end--> + <div class="layui-col-lg3"> + <div class="qt-left5 qt-left-item radius-6 mr4"> + <h3>N2 娴撳害锛�%锛�</h3> + <div class="layui-row"> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perN2Max">#</span> + </p> + <h4>鏈�楂�</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perN2">#</span> + </p> + <h4>骞冲潎</h4> + </div> + <div class="layui-col-lg4 lq-cTop-item"> + <p> + <span id="perN2Min">#</span> + </p> + <h4>鏈�浣�</h4> + </div> + </div> + + </div> + + </div> + <!--layui-col end--> + + </div> + <!-- qt-lTop-r end--> + + + </div> + <!--qt-lTop end--> + + <div class="qt-picBox" id="qt-picBox"> + <span id="progress-info"></span> + <img id="depot_img" class="qt-pic" th:src="@{/img/dzhwk/gas/gasImg_5.png}"/> + </div> + <!--qt-picBox end--> + + + </div> + <!--qt-left end--> + + <div class="qt-right"> + <div class="qt-rMenu layui-row radius-6"> + <div class="qt-rMenu-item layui-col-lg4" style="border: 1px solid #e5e8ec;"> + <p style="font-size: 16px;font-weight: 700;margin-top: 6px">妫�娴嬬被鍨�</p> + <form class="layui-form layui-form-pane"> + <div class="layui-input-block" style="left: -155px;width: 200px "> + <input type="radio" name="type" value="0" title="甯歌妫�娴�"> + <input type="radio" name="type" value="1" title="鐔忚捀妫�娴�"> + </div> + </form> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="checkStart(1)"> <span + class="qt-icon qt-rMenu-icon1"></span> + <p>鏁翠粨閲囬泦</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="checkStart(2)"> <span + class="qt-icon qt-rMenu-icon2"></span> + <p>閫夋嫨閲囬泦</p> + </a> + </div> + </div> + + <div class="qt-rMenu layui-row radius-6" style="padding-top: 0px;"> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="checkStart(3)" style="width: 105px "> <span + class="qt-icon qt-rMenu-icon3"></span> + <p>澶氫粨閲囬泦</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="printSingle()"> <span + class="qt-icon qt-rMenu-icon4"></span> + <p>鍗曚粨鎵撳嵃</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="printBatch()"> <span + class="qt-icon qt-rMenu-icon5"></span> + <p>澶氫粨鎵撳嵃</p> + </a> + </div> + </div> + + <div class="qt-rTable-box radius-6" id="tableInfo" style='height: 480px; overflow-y: auto;'> + <!-- <table class="layui-table" ></table> --> + </div> + <!--qt-rTable-box end--> + </div> + <!--qt-right end--> + + </div> + <!--l-main end--> +</div> +<!--l-container end--> + + +<script th:inline="javascript"> + //浠撳簱鍒楄〃 + var listDepot = [{ + "bhId": "1", + "buildingId": "91310114703439394M0010001", + "checkDate": 1605542400000, + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "02", + "depotTypeName": "娴呭渾浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0101", + "name": "P01-01", + "perImpurity": 0.36, + "perWet": 13.7, + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1668700800000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "2", + "buildingId": "91310114703439394M0010001", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0102", + "name": "P01-02", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1667836800000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "3", + "buildingId": "91310114703439394M0010002", + "companyId": "5303", + "depotStatus": "34", + "depotStatusName": "灏佷粨-娓╂帶涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2023", + "id": "P0103", + "name": "P01-03", + "storageMax": 3000000, + "storageReal": 2164420, + "storeDate": 1635696000000, + "storeKeeper": "xjh", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "寰愪匠鏄�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "4", + "buildingId": "91310114703439394M0010002", + "companyId": "5303", + "depotStatus": "32", + "depotStatusName": "灏佷粨-鐔忚捀涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1110000", + "foodVarietyName": "灏忛害", + "foodYear": "2024", + "id": "P0104", + "name": "P01-04", + "storageMax": 3000000, + "storageReal": 3000000, + "storeDate": 1720454400000, + "storeKeeper": "xjh", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "寰愪匠鏄�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "5", + "buildingId": "91310114703439394M0010003", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "02", + "foodLevelName": "浜岀瓑", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0105", + "name": "P01-05", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1604160000000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "6", + "buildingId": "91310114703439394M0010003", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0106", + "name": "P01-06", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1604160000000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }]; + + //涓氬姟绫诲瀷 + var bizType = null; + var depotId = "P0101";// 褰撳墠浠撳簱id锛屽瓨鍦ㄧ┖鎯呭喌 + //userId + var userId = null; + var deptId = "1000"; + var companyId = null; +</script> +<script th:src="@{/ajax/libs/layui/layui.js}"></script> +<script th:src="@{/js/jquery.min.js}"></script> +<script th:src="@{/dzhwk/common/igds-common.js}"></script> +<script th:src="@{/dzhwk/gas/PrintBuilder.js}"></script> +<script th:src="@{/dzhwk/gas/gas-check.js}"></script> +</body> +<!-- 鏇村鎵规閫夋嫨 --> +<div class="layui-tab-content" id="dialogMoreSelect" + style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline"> + <label class="layui-form-label">閫夋嫨鏃堕棿锛�</label> + <div class="layui-input-inline left-input"> + <input type="text" name="checkDateMore" id="checkDateMore" + placeholder="骞�-鏈�-鏃�" autocomplete="off" class="layui-input"> + </div> + </div> + </form> +</div> + +<!-- 鎵归噺閲囬泦寮瑰嚭妗� --> +<div class="layui-tab-content" id="batchCheckSelect" + style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline"> + <input type="checkbox" lay-filter="select_check_depot"> + </div> + </form> +</div> + +<!-- 閫夋嫨閲囬泦鐐� --> +<div class="layui-tab-content" id="pointSelect" style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline" id="div_point_select"></div> + </form> +</div> + +<!-- 瀹氫箟鎵归噺鎵撳嵃閫夋嫨鍐呭 --> +<div class="layui-tab-content" id="batchPrintSelect" + style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline"> + <label class="layui-form-label">閫夋嫨鏃堕棿锛�</label> + <div class="layui-input-inline left-input"> + <input type="text" name="printCheckDate" id="printCheckDate" + placeholder="骞�-鏈�-鏃�" autocomplete="off" class="layui-input"> + </div> + <button type="button" onclick="getPrintBatchDepot()" + class="layui-btn layui-btn-radius layui-btn-sm"> + <i class="layui-icon layui-icon-search"></i>纭鏌ヨ + </button> + </div> + <div class="layui-inline"> + <input type="checkbox" lay-filter="select_print_depot"> + </div> + </form> +</div> + + +</html> \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/templates/dzhwk/gas.html b/igds-dzhwk-web/src/main/resources/templates/dzhwk/gas.html new file mode 100644 index 0000000..3a0d7e7 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/templates/dzhwk/gas.html @@ -0,0 +1,133 @@ +<!DOCTYPE html> +<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"> +<head> + <meta charset="utf-8"/> + <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/> + <meta name="renderer" content="webkit"/> + <meta name="viewport" + content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/> + <meta name="format-detection" content="telephone=no"/> + <title>鐢靛瓙璐т綅鍗$郴缁�-浠撳偍淇濈浣滀笟</title> + + <link rel="stylesheet" th:href="@{/dzhwk/style.css}"/> + <style> + .m-pic1 .pic iframe{ + display: block; + width: 100%; + height: 853px; + } + </style> +</head> + +<body class=""> +<div class="screen-container"> + <div id="container"> + <div class="header"> + <div class="h-info"> + <div class="t">鐢靛瓙璐т綅鍗$郴缁�</div> + - 浠撳偍淇濈浣滀笟 + </div> + <a href="" class="logo"> + <img th:src="@{/img/dzhwk/logo.png}" alt=""> + <span>椋庢鑷磋繙閮戝窞鐩村睘搴�</span> + </a> + <div class="h-date">2025-03-26 10:10</div> + </div> + <div class="main"> + <div class="m-safeguardl"> + <div class="col-l g-boxl1"> + <div class="m-picl"> + + <div class="pic"> +<!-- <img th:src="@{/img/dzhwk/imgl1.jpg}" alt="">--> + <iframe src="../dzhwk/gas-check" style="width: 100%;height: 853px;display: block;" frameborder="0" allowfullscreen></iframe> + </div> + </div> + </div> + <div class="col-r"> + <ul class="ul-listl1 g-boxl1"> + <li> + <a href="javascript:void(0)" onclick="toPage('grain')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl2.png}" alt=""> + </div> + <div class="tt">绮俯妫�娴�</div> + </a> + </li> + <li class="on"> + <a href="javascript:void(0)" onclick="toPage('gas')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl3.png}" alt=""> + </div> + <div class="tt">姘斾綋妫�娴�</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('pest')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl4.png}" alt=""> + </div> + <div class="tt">铏妫�娴�</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('verb')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl5.png}" alt=""> + </div> + <div class="tt">閫氶浣滀笟</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('recir')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl6.png}" alt=""> + </div> + <div class="tt">娓╂帶浣滀笟</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('n2')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl7.png}" alt=""> + </div> + <div class="tt">姘旇皟浣滀笟</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('security')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl8.png}" alt=""> + </div> + <div class="tt">瀹夊叏绠$悊</div> + </a> + </li> + </ul> + <a href="javascript:void(0)" onclick="toPage('index')" class="g-backl"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl1.png}" alt=""> + </div> + <div class="tt">杩斿洖棣栭〉</div> + </a> + </div> + </div> + </div> + </div> +</div> +<script th:src="@{/js/jquery.min.js}"></script> +<script th:src="@{/dzhwk/common.js}"></script> +<script th:inline="javascript"> + var flag = [[${flag}]]; + + //鐩戝惉鎿嶄綔 + document.addEventListener('mousemove', resetTimeout); //榧犳爣绉诲姩 + document.addEventListener('click', resetTimeout); //榧犳爣鐐瑰嚮 + document.addEventListener('touchstart', resetTimeout); //瑙﹀睆 + + timeFormate(); + setInterval(function () { + timeFormate() + }, 1000); +</script> +</body> +</html> \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/templates/dzhwk/grain-check1.html b/igds-dzhwk-web/src/main/resources/templates/dzhwk/grain-check1.html index 06aca88..90ee81a 100644 --- a/igds-dzhwk-web/src/main/resources/templates/dzhwk/grain-check1.html +++ b/igds-dzhwk-web/src/main/resources/templates/dzhwk/grain-check1.html @@ -1,99 +1,98 @@ <!DOCTYPE html> <html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"> <head> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta name="renderer" content="webkit"> - <title>鏅烘収绮簱绠$悊骞冲彴-绮儏妫�娴�</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="renderer" content="webkit"> + <title>绮俯妫�娴�</title> - <link rel="stylesheet" th:href="@{/ajax/libs/layui/css/layui.css}"/> - <link rel="stylesheet" th:href="@{/dzhwk/lqStyle.css}"/> + <link rel="stylesheet" th:href="@{/ajax/libs/layui/css/layui.css}"/> + <link rel="stylesheet" th:href="@{/dzhwk/grain/lqStyle.css}"/> - <style> - .layui-checkbox-disbaled span { - background-color: #ed5565 !important; - } + <style> + .layui-checkbox-disbaled span { + background-color: #ed5565 !important; + } - #lq-left2 { - min-width: 295px; - } + #lq-left2 { + min-width: 295px; + } - .lq-left2-list li h3 { - float: left; - /*color: rgb(108, 119, 129);*/ - color: #000; - font-size: 16px; - font-style: italic; - } + .lq-left2-list li h3 { + float: left; + /*color: rgb(108, 119, 129);*/ + color: #000; + font-size: 16px; + font-style: italic; + } - @media all and (max-width: 1650px) { - .lq-cPic-box { - margin: 5% auto 0 auto; - } - - .lq-center { - /*padding-bottom: 50px;*/ - padding-bottom: 5px; - } - - .lq-left2-list li { - padding: 3% 6%; - } - - .lq-cTop-item p span { - font-size: 24px; - } - } - - .lq-wendu { - width: 90px; - height: 200px; - position: absolute; - bottom: 0; - z-index: 99; - left: 5px; - margin-bottom: 55px; + @media all and (max-width: 1650px) { + .lq-cPic-box { + margin: 5% auto 0 auto; } .lq-center { - width: 75%; - position: relative; + /*padding-bottom: 50px;*/ padding-bottom: 5px; - overflow: hidden; } - .lq-center2 { - position: relative; - padding-bottom: 5px; - overflow-y: hidden; + .lq-left2-list li { + padding: 3% 6%; } - .lq-cLow-1 { - width: 50px; - border-right: 1px solid #333; + .lq-cTop-item p span { + font-size: 24px; } + } - .lq-cLow { - width: 900px; - } + .lq-wendu { + width: 90px; + height: 200px; + position: absolute; + bottom: 0; + z-index: 99; + left: 5px; + margin-bottom: 55px; + } - .lq-cLow-3 { - width: 15px; - border-right: 1px solid #333; - } + .lq-center { + width: 75%; + position: relative; + padding-bottom: 5px; + overflow: hidden; + } - .lq-rMenu li { - height: 80px; - } + .lq-center2 { + position: relative; + padding-bottom: 5px; + overflow-y: hidden; + } - .layui-form-checkbox { - min-width: 100px; - } - </style> + .lq-cLow-1 { + width: 50px; + border-right: 1px solid #333; + } - </head> + .lq-cLow { + width: 900px; + } + + .lq-cLow-3 { + width: 15px; + border-right: 1px solid #333; + } + + .lq-rMenu li { + height: 80px; + } + + .layui-form-checkbox { + min-width: 100px; + } + </style> + +</head> <body> <div class="l-container"> @@ -433,7 +432,172 @@ <script th:inline="javascript"> //浠撳簱鍒楄〃 - var listDepot = [{"bhId":"1","buildingId":"91310114703439394M0010001","checkDate":1605542400000,"companyId":"5303","depotStatus":"4","depotStatusName":"鍑哄簱涓�","depotType":"02","depotTypeName":"娴呭渾浠�","deptId":"5303_001","foodLevel":"01","foodLevelName":"涓�绛�","foodLocation":"涓婃捣甯�","foodType":"122","foodTypeName":"鍖虹骇鍦版柟鍌ㄥ绮�","foodVariety":"1130000","foodVarietyName":"绋昏胺","foodYear":"2022","id":"P0101","name":"P01-01","perImpurity":0.36,"perWet":13.7,"storageMax":3000000,"storageReal":0,"storeDate":1668700800000,"storeKeeper":"wmf","storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperName":"鐜嬬編绂�","storeKeeperPhone":"####","storeType":"1"},{"bhId":"2","buildingId":"91310114703439394M0010001","companyId":"5303","depotStatus":"4","depotStatusName":"鍑哄簱涓�","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"5303_001","foodLevel":"01","foodLevelName":"涓�绛�","foodLocation":"涓婃捣甯�","foodType":"122","foodTypeName":"鍖虹骇鍦版柟鍌ㄥ绮�","foodVariety":"1130000","foodVarietyName":"绋昏胺","foodYear":"2022","id":"P0102","name":"P01-02","storageMax":3000000,"storageReal":0,"storeDate":1667836800000,"storeKeeper":"wmf","storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperName":"鐜嬬編绂�","storeKeeperPhone":"####","storeType":"1"},{"bhId":"3","buildingId":"91310114703439394M0010002","companyId":"5303","depotStatus":"34","depotStatusName":"灏佷粨-娓╂帶涓�","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"5303_001","foodLevel":"01","foodLevelName":"涓�绛�","foodLocation":"涓婃捣甯�","foodType":"122","foodTypeName":"鍖虹骇鍦版柟鍌ㄥ绮�","foodVariety":"1130000","foodVarietyName":"绋昏胺","foodYear":"2023","id":"P0103","name":"P01-03","storageMax":3000000,"storageReal":2164420,"storeDate":1635696000000,"storeKeeper":"xjh","storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperName":"寰愪匠鏄�","storeKeeperPhone":"####","storeType":"1"},{"bhId":"4","buildingId":"91310114703439394M0010002","companyId":"5303","depotStatus":"32","depotStatusName":"灏佷粨-鐔忚捀涓�","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"5303_001","foodLevel":"01","foodLevelName":"涓�绛�","foodLocation":"涓婃捣甯�","foodType":"122","foodTypeName":"鍖虹骇鍦版柟鍌ㄥ绮�","foodVariety":"1110000","foodVarietyName":"灏忛害","foodYear":"2024","id":"P0104","name":"P01-04","storageMax":3000000,"storageReal":3000000,"storeDate":1720454400000,"storeKeeper":"xjh","storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperName":"寰愪匠鏄�","storeKeeperPhone":"####","storeType":"1"},{"bhId":"5","buildingId":"91310114703439394M0010003","companyId":"5303","depotStatus":"4","depotStatusName":"鍑哄簱涓�","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"5303_001","foodLevel":"02","foodLevelName":"浜岀瓑","foodLocation":"涓婃捣甯�","foodType":"122","foodTypeName":"鍖虹骇鍦版柟鍌ㄥ绮�","foodVariety":"1130000","foodVarietyName":"绋昏胺","foodYear":"2022","id":"P0105","name":"P01-05","storageMax":3000000,"storageReal":0,"storeDate":1604160000000,"storeKeeper":"wmf","storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperName":"鐜嬬編绂�","storeKeeperPhone":"####","storeType":"1"},{"bhId":"6","buildingId":"91310114703439394M0010003","companyId":"5303","depotStatus":"4","depotStatusName":"鍑哄簱涓�","depotType":"01","depotTypeName":"骞虫埧浠�","deptId":"5303_001","foodLevel":"01","foodLevelName":"涓�绛�","foodLocation":"涓婃捣甯�","foodType":"122","foodTypeName":"鍖虹骇鍦版柟鍌ㄥ绮�","foodVariety":"1130000","foodVarietyName":"绋昏胺","foodYear":"2022","id":"P0106","name":"P01-06","storageMax":3000000,"storageReal":0,"storeDate":1604160000000,"storeKeeper":"wmf","storeKeeperLevel":"楂樼骇淇濈鍛�","storeKeeperName":"鐜嬬編绂�","storeKeeperPhone":"####","storeType":"1"}]; + var listDepot = [{ + "bhId": "1", + "buildingId": "91310114703439394M0010001", + "checkDate": 1605542400000, + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "02", + "depotTypeName": "娴呭渾浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0101", + "name": "P01-01", + "perImpurity": 0.36, + "perWet": 13.7, + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1668700800000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "2", + "buildingId": "91310114703439394M0010001", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0102", + "name": "P01-02", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1667836800000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "3", + "buildingId": "91310114703439394M0010002", + "companyId": "5303", + "depotStatus": "34", + "depotStatusName": "灏佷粨-娓╂帶涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2023", + "id": "P0103", + "name": "P01-03", + "storageMax": 3000000, + "storageReal": 2164420, + "storeDate": 1635696000000, + "storeKeeper": "xjh", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "寰愪匠鏄�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "4", + "buildingId": "91310114703439394M0010002", + "companyId": "5303", + "depotStatus": "32", + "depotStatusName": "灏佷粨-鐔忚捀涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1110000", + "foodVarietyName": "灏忛害", + "foodYear": "2024", + "id": "P0104", + "name": "P01-04", + "storageMax": 3000000, + "storageReal": 3000000, + "storeDate": 1720454400000, + "storeKeeper": "xjh", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "寰愪匠鏄�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "5", + "buildingId": "91310114703439394M0010003", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "02", + "foodLevelName": "浜岀瓑", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0105", + "name": "P01-05", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1604160000000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "6", + "buildingId": "91310114703439394M0010003", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0106", + "name": "P01-06", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1604160000000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }]; //涓氬姟绫诲瀷 var bizType = null; //userId @@ -447,12 +611,12 @@ </script> <script th:src="@{/ajax/libs/layui/layui.js}"></script> <script th:src="@{/js/jquery.min.js}"></script> -<script th:src="@{/dzhwk/constant.js}"></script> -<script th:src="@{/dzhwk/igds-common.js}"></script> -<script th:src="@{/dzhwk/PrintBuilder-lay.js}"></script> -<script th:src="@{/dzhwk/grainPoint1.js}"></script> -<script th:src="@{/dzhwk/grain-export.js}"></script> -<script th:src="@{/dzhwk/grain-check1.js}"></script> +<script th:src="@{/dzhwk/common/constant.js}"></script> +<script th:src="@{/dzhwk/common/igds-common.js}"></script> +<script th:src="@{/dzhwk/grain/PrintBuilder-lay.js}"></script> +<script th:src="@{/dzhwk/grain/grainPoint1.js}"></script> +<script th:src="@{/dzhwk/grain/grain-export.js}"></script> +<script th:src="@{/dzhwk/grain/grain-check1.js}"></script> </body> <!-- 鏇村鎵规閫夋嫨 --> diff --git a/igds-dzhwk-web/src/main/resources/templates/dzhwk/pest-check.html b/igds-dzhwk-web/src/main/resources/templates/dzhwk/pest-check.html new file mode 100644 index 0000000..d593f55 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/templates/dzhwk/pest-check.html @@ -0,0 +1,444 @@ +<!DOCTYPE html> +<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="viewport" + content="width=device-width, initial-scale=1, maximum-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="renderer" content="webkit"> + <title>铏妫�娴�</title> + + <link rel="stylesheet" th:href="@{/ajax/libs/layui/css/layui.css}"/> + <link rel="stylesheet" th:href="@{/dzhwk/pest/pest.css}"/> + + <style type="text/css"> + .layui-checkbox-disbaled span { + background-color: #ed5565 !important; + } + + #progress-info { + position: absolute; + z-index: 99; + display: inline-block; + height: 30px; + font-size: 16px; + font-weight: bold + } + </style> + +</head> + +<body> + +<div class="l-container"> + + <div class="l-main layui-clear"> + + <div class="qt-left"> + + <div class="qt-lTop layui-clear"> + <div class="qt-lTop-l fl"> + <div class="qt-left1 layui-clear radius-6 box-shadow"> + <form class="layui-form" action=""> + + <div class="layui-form-item lq-left1-from"> + <label class="layui-form-label">浠撳簱鍒楄〃</label> + <div class="layui-input-block"> + <select name="depotId" id="depotId" lay-filter="select_depotId"> + <option value="P0101" type="01">P01-01</option> + <option value="P0102" type="01">P01-02</option> + <option value="P0103" type="01">P01-03</option> + <option value="P0104" type="01">P01-04</option> + <option value="P0105" type="01">P01-05</option> + <option value="P0106" type="01">P01-06</option> + </select> + </div> + </div> + <div class="layui-form-item lq-left1-from"> + <label class="layui-form-label">妫�娴嬫椂闂�</label> + <div class="layui-input-block"> + <select name="batchId" id="batchId" + lay-filter="select_batchId"> + <option value=""></option> + </select> + </div> + </div> + </form> + </div> + </div> + <!--qt-lTop-l end--> + + <div class="layui-row qt-lTop-r fr"> + + <div class="layui-col-lg4"> + <div class="qt-left2 qt-left-item radius-6 mr4"> + <h3>妫�娴嬬粨鏋�</h3> + <div class="layui-row"> + <div class="layui-col-lg6 lq-cTop-item"> + <p> + <span id="checkNum">0</span> + </p> + <h4>鎬绘娴嬩綅</h4> + </div> + <div class="layui-col-lg6 lq-cTop-item"> + <p> + <span id="remark">鏃犺櫕</span> + </p> + <h4>缁撴灉</h4> + </div> + </div> + + </div> + + </div> + <!--layui-col end--> + + <!--layui-col end--> + <div class="layui-col-lg8"> + <div class="qt-left4 qt-left-item radius-6 mr4"> + <h3>妫�娴嬩綅鎺掕</h3> + <div class="layui-row"> + <div class="layui-col-lg3 lq-cTop-item"> + <p> + <span id="orderValue1">0</span> + </p> + <h4 id="orderName1">閲囬泦浣�</h4> + </div> + <div class="layui-col-lg3 lq-cTop-item"> + <p> + <span id="orderValue2">0</span> + </p> + <h4 id="orderName2">閲囬泦浣�</h4> + </div> + <div class="layui-col-lg3 lq-cTop-item"> + <p> + <span id="orderValue3">0</span> + </p> + <h4 id="orderName3">閲囬泦浣�</h4> + </div> + <div class="layui-col-lg3 lq-cTop-item"> + <p> + <span id="orderValue4">0</span> + </p> + <h4 id="orderName4">閲囬泦浣�</h4> + </div> + </div> + + </div> + + </div> + <!--layui-col end--> + + <!--layui-col end--> + + </div> + <!-- qt-lTop-r end--> + + + </div> + <!--qt-lTop end--> + + <div class="qt-picBox" id="qt-picBox"> + <span id="progress-info"></span> + <img id="depot_img" class="qt-pic" th:src="@{/img/dzhwk/gas/gasImg_5.png}"/> + </div> + <!--qt-picBox end--> + + + </div> + <!--qt-left end--> + + + <div class="qt-right"> + <div class="qt-rMenu layui-row radius-6"> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="checkStart(1)"> <span + class="qt-icon qt-rMenu-icon1"></span> + <p>鏁翠粨閲囬泦</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="checkStart(2)"> <span + class="qt-icon qt-rMenu-icon2"></span> + <p>閫夋嫨閲囬泦</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="checkStart(3)"> <span + class="qt-icon qt-rMenu-icon3"></span> + <p>澶氫粨閲囬泦</p> + </a> + </div> + </div> + + <div class="qt-rMenu layui-row radius-6" style="padding-top: 0px;"> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="printSingle()"> <span + class="qt-icon qt-rMenu-icon4"></span> + <p>鍗曚粨鎵撳嵃</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="printBatch()"> <span + class="qt-icon qt-rMenu-icon5"></span> + <p>澶氫粨鎵撳嵃</p> + </a> + </div> + <div class="qt-rMenu-item layui-col-lg4"> + <a href="javascript:;" onClick="gasChart()"> <span + class="qt-icon qt-rMenu-icon6"></span> + <p>璧板娍鍒嗘瀽</p> + </a> + </div> + </div> + + <div class="qt-rTable-box radius-6" id="tableInfo" style='height: 450px; overflow-y: auto;'> + <!-- <table class="layui-table" ></table> --> + </div> + <!--qt-rTable-box end--> + </div> + <!--qt-right end--> + + </div> + <!--l-main end--> +</div> +<!--l-container end--> + + +<script th:inline="javascript"> + //浠撳簱鍒楄〃 + //浠撳簱鍒楄〃 + var listDepot = [{ + "bhId": "1", + "buildingId": "91310114703439394M0010001", + "checkDate": 1605542400000, + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "02", + "depotTypeName": "娴呭渾浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0101", + "name": "P01-01", + "perImpurity": 0.36, + "perWet": 13.7, + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1668700800000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "2", + "buildingId": "91310114703439394M0010001", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0102", + "name": "P01-02", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1667836800000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "3", + "buildingId": "91310114703439394M0010002", + "companyId": "5303", + "depotStatus": "34", + "depotStatusName": "灏佷粨-娓╂帶涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2023", + "id": "P0103", + "name": "P01-03", + "storageMax": 3000000, + "storageReal": 2164420, + "storeDate": 1635696000000, + "storeKeeper": "xjh", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "寰愪匠鏄�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "4", + "buildingId": "91310114703439394M0010002", + "companyId": "5303", + "depotStatus": "32", + "depotStatusName": "灏佷粨-鐔忚捀涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1110000", + "foodVarietyName": "灏忛害", + "foodYear": "2024", + "id": "P0104", + "name": "P01-04", + "storageMax": 3000000, + "storageReal": 3000000, + "storeDate": 1720454400000, + "storeKeeper": "xjh", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "寰愪匠鏄�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "5", + "buildingId": "91310114703439394M0010003", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "02", + "foodLevelName": "浜岀瓑", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0105", + "name": "P01-05", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1604160000000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }, { + "bhId": "6", + "buildingId": "91310114703439394M0010003", + "companyId": "5303", + "depotStatus": "4", + "depotStatusName": "鍑哄簱涓�", + "depotType": "01", + "depotTypeName": "骞虫埧浠�", + "deptId": "5303_001", + "foodLevel": "01", + "foodLevelName": "涓�绛�", + "foodLocation": "涓婃捣甯�", + "foodType": "122", + "foodTypeName": "鍖虹骇鍦版柟鍌ㄥ绮�", + "foodVariety": "1130000", + "foodVarietyName": "绋昏胺", + "foodYear": "2022", + "id": "P0106", + "name": "P01-06", + "storageMax": 3000000, + "storageReal": 0, + "storeDate": 1604160000000, + "storeKeeper": "wmf", + "storeKeeperLevel": "楂樼骇淇濈鍛�", + "storeKeeperName": "鐜嬬編绂�", + "storeKeeperPhone": "####", + "storeType": "1" + }]; + //涓氬姟绫诲瀷 + var bizType = null; + var depotId = "P0101";// 褰撳墠浠撳簱id锛屽瓨鍦ㄧ┖鎯呭喌 + var userId = null; + var deptId = "1000"; + var companyId = null; +</script> +<script th:src="@{/ajax/libs/layui/layui.js}"></script> +<script th:src="@{/js/jquery.min.js}"></script> +<script th:src="@{/dzhwk/common/igds-common.js}"></script> +<script th:src="@{/dzhwk/pest/PrintBuilder.js}"></script> +<script th:src="@{/dzhwk/pest/pest-check.js}"></script> + +</body> +<!-- 鏇村鎵规閫夋嫨 --> +<div class="layui-tab-content" id="dialogMoreSelect" + style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline"> + <label class="layui-form-label">閫夋嫨鏃堕棿锛�</label> + <div class="layui-input-inline left-input"> + <input type="text" name="checkDateMore" id="checkDateMore" + placeholder="骞�-鏈�-鏃�" autocomplete="off" class="layui-input"> + </div> + </div> + </form> +</div> + +<!-- 鎵归噺閲囬泦寮瑰嚭妗� --> +<div class="layui-tab-content" id="batchCheckSelect" + style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline"> + <input type="checkbox" lay-filter="select_check_depot"> + </div> + </form> +</div> + +<!-- 閫夋嫨閲囬泦鐐� --> +<div class="layui-tab-content" id="pointSelect" style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline" id="div_point_select"></div> + </form> +</div> + +<!-- 瀹氫箟鎵归噺鎵撳嵃閫夋嫨鍐呭 --> +<div class="layui-tab-content" id="batchPrintSelect" + style="display: none;"> + <form class="layui-form layui-form-pane"> + <div class="layui-inline"> + <label class="layui-form-label">閫夋嫨鏃堕棿锛�</label> + <div class="layui-input-inline left-input"> + <input type="text" name="printCheckDate" id="printCheckDate" + placeholder="骞�-鏈�-鏃�" autocomplete="off" class="layui-input"> + </div> + <button type="button" onclick="getPrintBatchDepot()" + class="layui-btn layui-btn-radius layui-btn-sm"> + <i class="layui-icon layui-icon-search"></i>纭鏌ヨ + </button> + </div> + <div class="layui-inline"> + <input type="checkbox" lay-filter="select_print_depot"> + </div> + </form> +</div> + + +</html> \ No newline at end of file diff --git a/igds-dzhwk-web/src/main/resources/templates/dzhwk/pest.html b/igds-dzhwk-web/src/main/resources/templates/dzhwk/pest.html new file mode 100644 index 0000000..e318d33 --- /dev/null +++ b/igds-dzhwk-web/src/main/resources/templates/dzhwk/pest.html @@ -0,0 +1,133 @@ +<!DOCTYPE html> +<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"> +<head> + <meta charset="utf-8"/> + <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/> + <meta name="renderer" content="webkit"/> + <meta name="viewport" + content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/> + <meta name="format-detection" content="telephone=no"/> + <title>鐢靛瓙璐т綅鍗$郴缁�-浠撳偍淇濈浣滀笟</title> + + <link rel="stylesheet" th:href="@{/dzhwk/style.css}"/> + <style> + .m-pic1 .pic iframe{ + display: block; + width: 100%; + height: 853px; + } + </style> +</head> + +<body class=""> +<div class="screen-container"> + <div id="container"> + <div class="header"> + <div class="h-info"> + <div class="t">鐢靛瓙璐т綅鍗$郴缁�</div> + - 浠撳偍淇濈浣滀笟 + </div> + <a href="" class="logo"> + <img th:src="@{/img/dzhwk/logo.png}" alt=""> + <span>椋庢鑷磋繙閮戝窞鐩村睘搴�</span> + </a> + <div class="h-date">2025-03-26 10:10</div> + </div> + <div class="main"> + <div class="m-safeguardl"> + <div class="col-l g-boxl1"> + <div class="m-picl"> + + <div class="pic"> +<!-- <img th:src="@{/img/dzhwk/imgl1.jpg}" alt="">--> + <iframe src="../dzhwk/pest-check" style="width: 100%;height: 853px;display: block;" frameborder="0" allowfullscreen></iframe> + </div> + </div> + </div> + <div class="col-r"> + <ul class="ul-listl1 g-boxl1"> + <li> + <a href="javascript:void(0)" onclick="toPage('grain')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl2.png}" alt=""> + </div> + <div class="tt">绮俯妫�娴�</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('gas')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl3.png}" alt=""> + </div> + <div class="tt">姘斾綋妫�娴�</div> + </a> + </li> + <li class="on"> + <a href="javascript:void(0)" onclick="toPage('pest')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl4.png}" alt=""> + </div> + <div class="tt">铏妫�娴�</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('verb')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl5.png}" alt=""> + </div> + <div class="tt">閫氶浣滀笟</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('recir')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl6.png}" alt=""> + </div> + <div class="tt">娓╂帶浣滀笟</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('n2')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl7.png}" alt=""> + </div> + <div class="tt">姘旇皟浣滀笟</div> + </a> + </li> + <li> + <a href="javascript:void(0)" onclick="toPage('security')" class="con"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl8.png}" alt=""> + </div> + <div class="tt">瀹夊叏绠$悊</div> + </a> + </li> + </ul> + <a href="javascript:void(0)" onclick="toPage('index')" class="g-backl"> + <div class="icon"> + <img th:src="@{/img/dzhwk/iconl1.png}" alt=""> + </div> + <div class="tt">杩斿洖棣栭〉</div> + </a> + </div> + </div> + </div> + </div> +</div> +<script th:src="@{/js/jquery.min.js}"></script> +<script th:src="@{/dzhwk/common.js}"></script> +<script th:inline="javascript"> + var flag = [[${flag}]]; + + //鐩戝惉鎿嶄綔 + document.addEventListener('mousemove', resetTimeout); //榧犳爣绉诲姩 + document.addEventListener('click', resetTimeout); //榧犳爣鐐瑰嚮 + document.addEventListener('touchstart', resetTimeout); //瑙﹀睆 + + timeFormate(); + setInterval(function () { + timeFormate() + }, 1000); +</script> +</body> +</html> \ No newline at end of file -- Gitblit v1.9.3