From 43ce77a85d8297a53dc25430fff10ead57296167 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期六, 04 十一月 2023 15:43:18 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 igds-web/src/main/resources/static/admin/inout/in-check.js |   34 +++++++++++++++++++++++++++++-----
 1 files changed, 29 insertions(+), 5 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 bbc1403..47d1a88 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
@@ -362,7 +362,8 @@
             title: '澶囨敞璇存槑',
             align: 'center',
             edit: 'text'
-        }]]
+        }]],
+        limit: this.curCheckItems.length //鏄剧ず鐨勬暟閲�
     });
 
     $("thead tr").css({
@@ -490,6 +491,11 @@
 
 //淇濆瓨鎻愪氦
 function submit() {
+    console.log(curCheckData)
+    if (!curCheckData.sampleUser) {
+        layer.alert("璇峰厛鎵︽牱锛侊紒");
+        return;
+    }
     if (curCheckData.checkStatus == "NONE" || curCheckData.checkStatus == "NONE2") {
         layer.alert("璇风‘璁ゅ寲楠岀粨鏋滐紒锛�");
         return;
@@ -500,6 +506,10 @@
     }
     if (!curCheckData.foodLevel) {
         layer.alert("璇风‘璁ょ伯椋熺瓑绾э紒锛�");
+        return;
+    }
+    if (!curCheckData.foodType) {
+        layer.alert("璇风‘璁ょ伯椋熸�ц川锛侊紒");
         return;
     }
     if (!curCheckData.price) {
@@ -617,7 +627,7 @@
         }, {
             field: 'registerTime',
             title: '鐧昏鏃堕棿',
-            width: '15%',
+            width: '13%',
             style: 'font-weight: bold'
         }, {
             field: 'sampleStatus',
@@ -642,12 +652,26 @@
         }, {
             field: 'sampleTime',
             title: '鎵︽牱鏃堕棿',
-            width: '15%',
+            width: '13%',
             style: 'font-weight: bold'
+        }, {
+            field: 'foodType',
+            title: '绮鎬ц川',
+            width: '9%',
+            templet: function (item) {
+                var result = item.foodType;
+                $.each(listFoodType, function (index, data) {
+                    if (item.foodType == data.code) {
+                        result = data.name;
+                        return true;
+                    }
+                });
+                return result == null ? "" : result;
+            }
         }, {
             field: 'foodVariety',
             title: '绮鍝佺',
-            width: '11%',
+            width: '9%',
             templet: function (item) {
                 var result = item.foodVariety;
                 $.each(listFoodVariety, function (index, data) {
@@ -661,7 +685,7 @@
         }, {
             field: 'depotId',
             title: '瑁呭嵏浠撳簱',
-            width: '11%',
+            width: '10%',
             templet: function (item) {
                 var result = item.depotId;
                 $.each(listDepot, function (index, data) {

--
Gitblit v1.9.3