From 90a08170a98b0a47585f9f3601afb6ed250bfdcc Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期四, 06 三月 2025 14:26:53 +0800
Subject: [PATCH] 1.销售退货初步功能完成

---
 H5/Js/PurchaseInventory.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/H5/Js/PurchaseInventory.js b/H5/Js/PurchaseInventory.js
index 37ac38f..f535e6e 100644
--- a/H5/Js/PurchaseInventory.js
+++ b/H5/Js/PurchaseInventory.js
@@ -51,6 +51,7 @@
                     var json = res;
                     if (json.status == 0) {
                         that.formData.sectionName = json.data.tbBillList;
+                        that.$refs.barcode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
@@ -84,10 +85,13 @@
                         that.itemTableData = json.data.tbBillList.itemInDetails;
                         that.tableData = json.data.tbBillList.invItemInCDetails;
                         that.barMessage = json.data.tbBillList.message;
+                        that.$refs.barcode.focus();
+                        that.formData.barcode = null;
                     }
                     else {
                         that.$toast.fail(json.message);
                         that.$refs.barcode.focus();
+                        that.formData.barcode = null;
                     }
                     that.$notify({ type: 'success', message: json.message });
                     that.isLoading = false;

--
Gitblit v1.9.3