From 802971e1c3f378354dbd5014a0c552f9081d4a00 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期二, 26 八月 2025 13:14:05 +0800
Subject: [PATCH] 部分模块加上声音提示

---
 H5/Js/PurchaseInventory.js |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/H5/Js/PurchaseInventory.js b/H5/Js/PurchaseInventory.js
index b680737..10780cb 100644
--- a/H5/Js/PurchaseInventory.js
+++ b/H5/Js/PurchaseInventory.js
@@ -47,19 +47,19 @@
         };
     },
     methods: {
+     
         getInfo() {
             this.show = true;
         },
-        onSelect(item) {
-            // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧�
-            // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧�
+
+        // 淇 onSelect 鏂规硶
+        onSelect(item) {  // item 鏄�変腑鐨勫璞★紙濡� { name: "姝e父鍏ュ簱" }锛�
+            this.rkType = item.name;  // 鎻愬彇 name 瀛楁浣滀负閫変腑鍊�
             this.show = false;
-
-            this.rkType = item.name;
-            //this.GetMesItemBlDetailByBillNo();
-            //this.$toast(item.name);
-
+            console.log('閫変腑鐨勫叆搴撶被鍨�:', this.rkType);
         },
+
+     
         getModel() {
             var that = this;
             that.isLoading = true;
@@ -70,6 +70,7 @@
                     var json = res;
                     if (json.status == 0) {
                         that.depotData = json.data.tbBillList;
+                        that.$playSound('success');
                         that.$refs.barcode.focus();
                     }
                     else {
@@ -103,13 +104,14 @@
                 that.$playSound('error');
                 return;
             }
-
+            console.log('鎻愪氦鍓� rkType 鐨勫��:', this.rkType);  // 纭鏄惁涓哄崟涓瓧绗︿覆
+            console.log('鎻愪氦鍓� rkType 鐨勭被鍨�:', typeof this.rkType);  // 搴旇緭鍑� "string"
             that.isLoading = true;
             that.AxiosHttp("post", 'MesInvItemInCDetails/SaveBarCodes', {
                 sectionCode: that.sectionCode,
                 userName: that.userInfo.loginAccount,
                 barcode: that.formData.barcode,
-                cgrkType: that.actions
+                cgrkType: this.rkType // 鐩存帴浣跨敤 rkType锛岄粯璁ゅ�兼垨閫変腑鍊�
             }, false)
                 .then(function (res) {
                     var json = res;

--
Gitblit v1.9.3