From 69cd9f59a0fabf12f8c9147fcba7f69817a870b3 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期一, 06 十一月 2023 23:40:59 +0800 Subject: [PATCH] 更新仓内抓拍2 --- igds-web/src/main/resources/static/admin/inout/in-check.js | 42 ++++++++++++++++++++++++++++++++++++------ 1 files changed, 36 insertions(+), 6 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 8a6e3fa..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 @@ -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', @@ -124,7 +131,6 @@ var limit = data.upperLimit; //杩愮畻绗� var symbol = data.operaSymbol; - if (symbol && limit) { if (">=" == symbol) { if (newValue < limit) { @@ -356,7 +362,8 @@ title: '澶囨敞璇存槑', align: 'center', edit: 'text' - }]] + }]], + limit: this.curCheckItems.length //鏄剧ず鐨勬暟閲� }); $("thead tr").css({ @@ -484,6 +491,11 @@ //淇濆瓨鎻愪氦 function submit() { + console.log(curCheckData) + if (!curCheckData.sampleUser) { + layer.alert("璇峰厛鎵︽牱锛侊紒"); + return; + } if (curCheckData.checkStatus == "NONE" || curCheckData.checkStatus == "NONE2") { layer.alert("璇风‘璁ゅ寲楠岀粨鏋滐紒锛�"); return; @@ -494,6 +506,10 @@ } if (!curCheckData.foodLevel) { layer.alert("璇风‘璁ょ伯椋熺瓑绾э紒锛�"); + return; + } + if (!curCheckData.foodType) { + layer.alert("璇风‘璁ょ伯椋熸�ц川锛侊紒"); return; } if (!curCheckData.price) { @@ -611,7 +627,7 @@ }, { field: 'registerTime', title: '鐧昏鏃堕棿', - width: '15%', + width: '13%', style: 'font-weight: bold' }, { field: 'sampleStatus', @@ -636,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) { @@ -655,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