From 65e595c85e7ff31252c651f05949b711209f45ec Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期一, 22 十二月 2025 09:49:31 +0800
Subject: [PATCH] 称重逻辑调整

---
 H5/Js/Cpbdsj.js |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/H5/Js/Cpbdsj.js b/H5/Js/Cpbdsj.js
index 938f14f..12758c9 100644
--- a/H5/Js/Cpbdsj.js
+++ b/H5/Js/Cpbdsj.js
@@ -28,6 +28,7 @@
                 //}
             ],
             DAA001: [],
+            DAA015: "",
             show: false,//鍒楄〃灞曠ず
             actions: [],//鍒楄〃鐨勫��
             xtName: "",//绾夸綋鍚嶇О
@@ -71,6 +72,8 @@
                         console.log(json.data.tbBillList.kbBarInfo[0].agvPostion);
                         that.KbBarInfo = json.data.tbBillList.kbBarInfo[0];
                         that.DAA001 = that.KbBarInfo.daA001;
+                        that.DAA015 = that.KbBarInfo.daA015;
+                        console.log(that.KbBarInfo)
                         that.KbBarMxInfo = json.data.tbBillList.kbBarMxInfo;
                         that.$refs.XBar.focus();
                         that.XbarInfo = [];
@@ -202,7 +205,6 @@
                         if (that.XbarInfo.length >= that.Xvalue) {
                             that.$refs.LsBar.focus();
                         }
-
                     }
                     else {
                         that.$playSound('error');
@@ -313,6 +315,21 @@
                 if (matchedItem.is_hedui === "1") {
                     that.$toast("宸叉牳瀵�");
                 } else {
+                    console.log(that.DAA015);
+                    if ((that.DAA015) === "462") {
+                        that.$set(matchedItem, 'is_hedui', "1");
+                        // 鍙牴鎹渶瑕佽缃� weight锛岃繖閲屼繚鎸佷负绌�/涓嶅彉
+                        that.$playSound('success');
+                        that.$notify({ type: 'success', message: "鏍稿鎴愬姛" });
+                        that.LsBar = "";
+                        // 妫�鏌ユ槸鍚︽墍鏈夎閮藉凡鏍稿
+                        const allChecked = that.XbarInfo.every(item => item.is_hedui === "1");
+                        if (allChecked && that.XbarInfo.length > 0 && that.XbarInfo.length === that.Xvalue) {
+                            that.submitAllChecked();
+                        }
+                        // 鐩存帴杩斿洖锛屼笉璋冪敤 GetWeightByXt
+                        return;
+                    }
 
                     that.AxiosHttp("post", 'Womdaa/GetWeightByXt', {
                         LsBar: that.LsBar,

--
Gitblit v1.9.3