From 6853c9181d307f41be0a46ddcc46ec83bd815501 Mon Sep 17 00:00:00 2001
From: pjb <123456>
Date: 星期二, 03 六月 2025 10:03:46 +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