From 6ab07fef73e3f12ac25f41b71e9b83cb4227de10 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 10 六月 2025 14:35:26 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/pakStore/stockAdjust.js | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/stockAdjust.js b/src/main/webapp/static/js/pakStore/stockAdjust.js index 042a8b5..13e6882 100644 --- a/src/main/webapp/static/js/pakStore/stockAdjust.js +++ b/src/main/webapp/static/js/pakStore/stockAdjust.js @@ -12,7 +12,7 @@ arrRemove(detlCols, "field", "anfme"); arrRemove(detlCols, "field", "batch"); cols.push.apply(cols, detlCols); - cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}) + return cols; } @@ -42,6 +42,7 @@ // 椤甸潰淇敼 table.on('edit(chooseData)', function (obj) { let index = obj.tr.attr("data-index"); + console.log(index) let data = matCodeData[index]; let modify = true; if (obj.field === 'count'){ @@ -50,10 +51,17 @@ layer.msg("璇疯緭鍏ユ暟瀛�", {icon: 2}); modify = false; } else { - if (vle <= 0) { - layer.msg("鏁伴噺蹇呴』澶т簬闆�", {icon: 2}); - modify = false; - } + // if (vle <= 0) { + // layer.msg("鏁伴噺蹇呴』澶т簬闆�", {icon: 2}); + // modify = false; + // } + } + } + if (obj.field === 'batch'){ + let vle = obj.value; + if (vle.length <= 0){ + layer.msg("鎵瑰彿涓嶅噯涓虹┖", {icon: 2}); + modify = false; } } if (modify) { -- Gitblit v1.9.1