From 88880c03cb8b4835bfcbd32b2dcf4c9fcfed4433 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期二, 16 九月 2025 15:18:03 +0800
Subject: [PATCH] 销售出库:下拉框选择其他工单后清空库位列表

---
 H5/Js/Sctl.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/H5/Js/Sctl.js b/H5/Js/Sctl.js
index 8c28a5d..002a44f 100644
--- a/H5/Js/Sctl.js
+++ b/H5/Js/Sctl.js
@@ -17,7 +17,7 @@
             depot: {},
             show: false,
             actions: [],
-            ItemTblDetail:[]
+            ItemDetail:[]
         }
     },
     mounted() {
@@ -35,7 +35,7 @@
             var that = this;
             that.isLoading = true;
             that.AxiosHttp("post", 'MesItemTbl/GetSCTLBillNo', {
-                type: "鐢熶骇閫�鏂欑敵璇�"
+                type: "鐢熶骇閫�鏂�"
             }, false)
                 .then(function (res) {
                     var json = res;
@@ -81,13 +81,13 @@
                 .then(function (res) {
                     var json = res;
                     if (json.status == 0) {
-                        that.ItemTblDetail = json.data.tbBillList;
-                        that.$refs.sectionCode.focus();
+                        that.ItemDetail = json.data.tbBillList;
+                        //that.$refs.sectionCode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
                         that.$refs.billNo.focus();
-                        that.ItemTblDetail = null;
+                        that.ItemDetail = [];
                         that.billNo = null;
                     }
                     that.isLoading = false;
@@ -96,7 +96,7 @@
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                     that.$refs.billNo.focus();
-                    that.ItemTblDetail = null;
+                    that.ItemDetail = [];
                     that.billNo = null;
                     console.log(error);
                 });
@@ -180,15 +180,22 @@
                         that.itemNo = json.data.tbBillList.itemNo;
                         that.sms = json.data.tbBillList.num;
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+                        that.getMesItemTblDetailByBillNo();
+                        that.$refs.barcode.focus();
+                        that.barcode = null;
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$refs.barcode.focus();
+                        that.barcode = null;
                     }
                     that.isLoading = false;
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$refs.barcode.focus();
+                    that.barcode = null;
                     console.log(error);
                 });
         },

--
Gitblit v1.9.3