From 77a2d94762f81da09be82aeab75cdabbf95d2926 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 25 八月 2025 10:28:10 +0800
Subject: [PATCH] 1.核对送检优化 2.样式优化

---
 H5/Js/Dbrk.js |   67 ++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 19 deletions(-)

diff --git a/H5/Js/Dbrk.js b/H5/Js/Dbrk.js
index 68f2b12..37ae208 100644
--- a/H5/Js/Dbrk.js
+++ b/H5/Js/Dbrk.js
@@ -17,6 +17,7 @@
             active: 0,
             show: false,
             actions: [],
+            ItemDetail: [],
         }
     },
     mounted() {
@@ -76,54 +77,74 @@
         GetMesItemBlDetailByBillNo() {
             var that = this;
             that.isLoading = true;
-            that.AxiosHttp("post", 'TransferOut/GetTransferOutDetailListByBillNo', {
+            that.AxiosHttp("post", 'TransferOut/GetTransferInDetailListByBillNo', {
                 billNo: that.billNo
             }, false)
                 .then(function (res) {
                     var json = res;
                     if (json.status == 0) {
-                        that.ItemBlDetail = json.data.tbBillList;
+                        //that.ItemBlDetail = json.data.tbBillList;
+                        that.ItemDetail = json.data.tbBillList;
+                        that.$refs.sectionCode.focus();
+                        that.sectionCode = "";
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$refs.billNo.focus();
+                        that.billNo = "";
+                        that.ItemBlDetail = null;
                     }
                     that.isLoading = false;
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                    console.log(error);
+                    that.$refs.billNo.focus();
+                    that.billNo = "";
+                    that.ItemBlDetail = null;
+                    //console.log(error);
                 });
         },
-        getDepot(value) {
-            if (!value) {
-                this.$toast.fail("搴撲綅缂栫爜");
-                return;
-            }
+        getDepot() {
+
 
             var that = this;
 
+            if (that.sectionCode.length == 0) {
+                this.$toast.fail("搴撲綅缂栫爜涓嶈兘涓虹┖");
+                return;
+            }
+
+
+
             that.AxiosHttp("post", 'Inventory/ScanDepotNo', {
-                depotCode: that.depotNo
+                DepotCode: that.sectionCode
             }, false)
                 .then(function (res) {
                     var json = res;
                     if (json.status == 0) {
                         that.$notify({ type: 'success', message: json.data.tbBillList });
+                        that.$refs.barcode.focus();
+                        that.barcode = "";
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$refs.sectionCode.focus();
+                        that.sectionCode = "";
+
                     }
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                    console.log(error);
+                    //console.log(error);
+                    that.$refs.sectionCode.focus();
+                    that.sectionCode = "";
                 });
         },
-        getBarcode(value) {
+        getBarcode() {
 
-            this.barcode = value;
+            //this.barcode = value;
 
             var that = this;
             that.isLoading = true;
@@ -146,11 +167,11 @@
                 return;
             }
 
-            if (!that.billNo) {
-                this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖");
-                that.isLoading = false;
-                return;
-            }
+            //if (!that.billNo) {
+            //    this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖");
+            //    that.isLoading = false;
+            //    return;
+            //}
 
             that.AxiosHttp("post", 'TransferOut/ScanReceiveBarcode', {
                 userName: that.userInfo.loginAccount,
@@ -164,19 +185,27 @@
 
                         that.itemNo = json.data.form.itemNo;
                         that.num = json.data.form.num;
-                        that.barcode = json.data.form.barcode;
+                        //that.barcode = json.data.form.barcode;
                         that.ItemBlDetail = json.data.items
                         that.$notify({ type: 'success', message: '鎵爜鎴愬姛' });
+                        that.$refs.barcode.focus();
+                        that.barcode = "";
+                        that.billNo = json.data.form.billNo;
+                        that.GetMesItemBlDetailByBillNo();
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$refs.barcode.focus();
+                        that.barcode = "";
                     }
                     that.isLoading = false;
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                    console.log(error);
+                    //console.log(error);
+                    that.$refs.barcode.focus();
+                    that.barcode = "";
                 });
         },
         tmcf() {

--
Gitblit v1.9.3