From fae4bd828a6b81b95f53e285fcb4749fbd80c7bf Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期一, 04 九月 2023 17:31:46 +0800
Subject: [PATCH] 增加粮情层行转换配置

---
 igds-web/src/main/resources/static/admin/inout/in-check.js |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/igds-web/src/main/resources/static/admin/inout/in-check.js b/igds-web/src/main/resources/static/admin/inout/in-check.js
index 54d4873..bbc1403 100644
--- a/igds-web/src/main/resources/static/admin/inout/in-check.js
+++ b/igds-web/src/main/resources/static/admin/inout/in-check.js
@@ -29,6 +29,13 @@
         });
 
         laydate.render({
+            elem: '#foodYear',
+            theme: '#7b8e9f',
+            value: foodYear,
+            type: 'year'
+        });
+
+        laydate.render({
             elem: '#checkTime',
             theme: '#7b8e9f',
             format: 'yyyy-MM-dd HH:mm:ss',
@@ -67,11 +74,18 @@
     //鏄剧ず鍏ュ簱娴佺▼
     showProgress();
 });
+window.onbeforeunload = function () {
+}
 
+window.onunload = function () {
+}
 window.onload = function () {
+
     //鎵弿鏋嚜鍔ㄥ洖杞︿簨浠�
-    $('#checkId').bind('keyup', function(event) {
+    $('#checkId').bind('keyup', function (event) {
         if (event.keyCode == "13") {
+            // //鍘绘帀鐒︾偣锛岄槻姝㈠埛鏂伴〉闈�
+            // $('#checkId').blur();
             getDataByCheckId();
         }
     });
@@ -117,7 +131,6 @@
     var limit = data.upperLimit;
     //杩愮畻绗�
     var symbol = data.operaSymbol;
-
     if (symbol && limit) {
         if (">=" == symbol) {
             if (newValue < limit) {
@@ -217,6 +230,7 @@
     // var url = "com.ld.igds.inout.ReportInoutCheck.d";
     // window.parent.openTab(url, "鍖栭獙缁撴灉瀵煎嚭", "checkDataExport");
 };
+
 // 鎵︽牱鏈鸿В闄ゆ�ュ仠
 function checkResetStop() {
     var param = JSON.stringify(checkDto);
@@ -359,7 +373,6 @@
 
 function showDetail(data) {
     curCheckData = data;
-
     if (!curCheckData.checkTime) {
         curCheckData.checkTime = dateFtt("yyyy-MM-dd hh:mm:ss", new Date());
     }
@@ -376,14 +389,14 @@
         shade: 0,
         content: $('#checkDetail'),
         btnAlign: 'c',
-        btn: ['浠呬繚瀛�', '淇濆瓨鎻愪氦','鍏抽棴鍙栨秷'],
+        btn: ['浠呬繚瀛�', '淇濆瓨鎻愪氦', '鍏抽棴鍙栨秷'],
         yes: function () {
             // 鏇存柊鍒伴〉闈�
             var data = form.val("form-detail");
             // 鍚堝苟鏇存柊鐣跺墠缂栬緫鏁版嵁
             Object.assign(curCheckData, data);
             saveCheckData();
-            if(scanCodeTag){
+            if (scanCodeTag) {
                 showScanCode();
             }
         }, btn2: function () {
@@ -392,18 +405,17 @@
             // 鍚堝苟鏇存柊鐣跺墠缂栬緫鏁版嵁
             Object.assign(curCheckData, data);
             submit();
-            if(scanCodeTag){
+            if (scanCodeTag) {
                 showScanCode();
             }
         }, btn3: function () {
             parent.layer.closeAll();
-            if(scanCodeTag){
+            if (scanCodeTag) {
                 showScanCode();
             }
         },
         closeBtn: 0
     });
-
     // 鑾峰彇鍖栭獙椤逛俊鎭�
     flushCheckItem(curCheckData.foodVariety);
     getPriceByFoodLevel(curCheckData.foodLevel);
@@ -417,7 +429,6 @@
     $("#check-result-tip").text("妫�楠岀粨鏋滐細#");
     $("#price-result-tip2").text("绮瀹氫环锛�#鍏�/鍏枻");
     curCheckData.foodVariety = foodVariety;
-
     var index = layer.load();
     $.ajax({
         type: "POST",
@@ -537,7 +548,7 @@
         area: ['700px', '320px'],
         shade: 0,
         content: $('#scanCodeDetail'),
-        success: function(){
+        success: function () {
             document.getElementById('checkId').focus();
         },
         btnAlign: 'c',
@@ -555,7 +566,7 @@
 //鏍规嵁璐ㄦ鍗曞彿鑾峰彇淇℃伅
 function getDataByCheckId() {
     var param = form.val("form-sacnCodeDetail");
-    if(!param.checkId){
+    if (!param.checkId) {
         layer.alert("璐ㄦ鍗曞彿涓虹┖锛岃鎵爜鎴栬緭鍏ヨ川妫�鍗曞彿");
     }
     var index = layer.load();

--
Gitblit v1.9.3