From 70ddea1608c8402a429baf69ed03028dae9c8f87 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 22 九月 2025 15:10:22 +0800
Subject: [PATCH] 1.受托退料:优化,添加成功声音、拆分后打印、退料后刷新库位列表。2.受托入库:列表查询与选择改为存储过程,添加成功声音

---
 H5/Js/Strk.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/H5/Js/Strk.js b/H5/Js/Strk.js
index bc01d1b..05fa2c4 100644
--- a/H5/Js/Strk.js
+++ b/H5/Js/Strk.js
@@ -17,7 +17,12 @@
             depot: {},
             show: false,
             actions: [],
-            ItemTblDetail:[]
+            ItemBlDetail: [], // 寰呮壂
+            ItemYsDetail: [], // 宸叉壂
+            ItemTblDetail: [],
+            ItemDetail: [],
+            ItemBarKw: [],
+            currentIndex: -1,
         }
     },
     mounted() {
@@ -43,6 +48,7 @@
                     if (json.status == 0) {
                         if (json.data.tbBillList.length <= 0) {
                             that.$toast.fail("娌℃湁鍙敤鐨勬暟鎹�");
+                            that.show = false;
                         } else {
                             that.actions = json.data.tbBillList.map(item => {
                                 return { name: item }
@@ -58,6 +64,7 @@
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                     console.log(error);
+                    that.show = false;
                 });
         },
         //onClick(index, title) {
@@ -70,6 +77,8 @@
             // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧�
             this.show = false;
             this.billNo = item.name;
+            // 娓呯┖搴撲綅鍒楄〃
+            this.ItemBarKw = [];
             this.getMesItemDetailByBillNo();
             //this.$toast(item.name);
         },
@@ -82,7 +91,9 @@
                 .then(function (res) {
                     var json = res;
                     if (json.status == 0) {
-                        that.ItemTblDetail = json.data.tbBillList;
+                        var tbBillList = json.data.tbBillList || {};
+                        that.ItemBlDetail = tbBillList.blDetails || []; // 寰呮壂
+                        that.ItemYsDetail = tbBillList.ysDetails || []; // 宸叉壂
                         that.$refs.sectionCode.focus();
                     }
                     else {
@@ -165,6 +176,7 @@
                         that.itemNo = json.data.tbBillList.itemNo;
                         that.sms = json.data.tbBillList.num;
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+                        that.$toast.success("鎵弿鎴愬姛");
                         that.$refs.barcode.focus();
                         that.barcode = null;
                         that.getMesItemDetailByBillNo();

--
Gitblit v1.9.3