From 3876860f19d3f5693fd35b956e2a375ba1a0ada1 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期四, 14 八月 2025 16:23:34 +0800
Subject: [PATCH] 1.巡检成功提示优化 2.巡检检验状态bug优化 3.产品绑定“不合格数”bug优化 4.到货单送货条码标记

---
 H5/Js/Cpbdsj.js |   50 +++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 43 insertions(+), 7 deletions(-)

diff --git a/H5/Js/Cpbdsj.js b/H5/Js/Cpbdsj.js
index 47681a5..f43b7c5 100644
--- a/H5/Js/Cpbdsj.js
+++ b/H5/Js/Cpbdsj.js
@@ -29,7 +29,8 @@
             DAA001: [],
             show: false,//鍒楄〃灞曠ず
             actions: [],//鍒楄〃鐨勫��
-            xt:"",
+            xtName: "",//绾夸綋鍚嶇О
+            xtNum: "",//绾夸綋缂栧彿
         }
     },
     mounted() {
@@ -349,17 +350,52 @@
         },
 
         onSelect(item) {
-            // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧�
-            // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧�
             this.show = false;
             console.log(item);
             // 姝e垯鍖归厤绗竴涓柟鎷彿鍐呭
-            const regex = /\[([^\]]+)\]/;
-            const matchResult = item.name.match(regex);
-            this.xt = item.name;
-            //this.$toast(item.name);
+            this.modeInfo.Xt = item;
 
         },
+        //鑾峰彇鍙懠鍙獳GV鐨勭嚎浣�
+        selectXt() {
+            this.show = true;
+            var that = this;
+            that.actions = [];
+            that.isLoading = true;
+            that.AxiosHttp("post", 'Womdaa/GetAgvXt', {
+                selectKey: that.selectKey,
+            }, false)
+                .then(function (res) {
+                    var json = res;
+                    if (json.status == 0) {
+
+                        if (json.data.tbBillList.length <= 0) {
+                            that.$toast.fail("娌℃湁鍙敤鐨勬暟鎹�");
+                            that.$playSound('error');
+                        } else {
+                            that.itemInfo = json.data.tbBillList;
+                            that.actions = json.data.tbBillList.map(item => {
+                                return {
+                                    name: item.daaInfo,  // 鎷兼帴瀛楁
+                                    subname:"[绾夸綋鍚嶇О][]"
+
+                                };
+                            });
+                        }
+                    }
+                    else {
+                        that.$toast.fail(json.message);
+                        that.$playSound('error');
+                    }
+                    that.isLoading = false;
+                })
+                .catch(function (error) {
+                    that.isLoading = false;
+                    that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
+                    console.log(error);
+                });
+        },
 
 
     }

--
Gitblit v1.9.3