From 7317c0c6f3e88ff9476c16e473391e8b8cb2c3ee Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期二, 15 四月 2025 16:53:02 +0800 Subject: [PATCH] 修复主页控制台进入拣货单管理异常 --- src/main/webapp/static/js/cool.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/cool.js b/src/main/webapp/static/js/cool.js index e3ae972..41fcca4 100644 --- a/src/main/webapp/static/js/cool.js +++ b/src/main/webapp/static/js/cool.js @@ -122,6 +122,14 @@ if(selectOptionDom[0].type === "orderDetl"){ $('#weight').val(selectOptionDom[0].weight); + // 鏍规嵁鐗屽彿閫夋嫨杩涜杩囨护 + checkData = firstData.filter(item => item.brand === $('#maktxV').val()) + var allWeight = 0; + for (var i in checkData){ + allWeight += (checkData[i].weightAnfme - checkData[i].qtyAnfme) + } + // 鏍规嵁鐗屽彿閲嶆柊娓叉煋 + $('#qtyWeight').val(allWeight); } } inputDom.val(""); -- Gitblit v1.9.1