From 95ea3c0f5d15db522f89914d4bb053ca6d753d87 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期三, 05 十一月 2025 20:44:49 +0800
Subject: [PATCH] 临时盘点功能优化

---
 pages/check/TempCheck.vue |   16 +++++++++++-----
 pages/rece/other.vue      |    3 ---
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/pages/check/TempCheck.vue b/pages/check/TempCheck.vue
index 600d372..6450500 100644
--- a/pages/check/TempCheck.vue
+++ b/pages/check/TempCheck.vue
@@ -234,10 +234,11 @@
 					})
 					return;
 				}
-				this.list.push(...this.matnrList)
-				this.matnrList = []
-				this.isconfirm = !this.isconfirm
+				
+				this.confirmAddMatnr()
+				this.matnrList = [];
 			},
+			
 			remove(index) {
 				this.matnrList.splice(index, 1);
 			},
@@ -249,10 +250,15 @@
 					matnrs: this.matnrList
 				})
 				if (code === 200) {
-					
+					that.search()
 				} else {
-					
+					uni.showToast({
+						title: msg,
+						icon: "error",
+						position: 'top'
+					})
 				}
+				this.isconfirm = !this.isconfirm
 			},
 			async addMatnr() {
 				const {
diff --git a/pages/rece/other.vue b/pages/rece/other.vue
index 0d7bdd3..d1506bf 100644
--- a/pages/rece/other.vue
+++ b/pages/rece/other.vue
@@ -13,10 +13,7 @@
 				<text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearBarcode"></text>
 				<text class='cuIcon-search text-blue' @click="search"></text>
 			</view>
-
 		</form>
-
-
 		<view class="padding-lr margin-top-sm">
 			<block v-for="(item, index) in list" :key="index">
 				<view class="cu-list det menu sm-border margin-bottom-sm " :class="[item.barcode===barcode&&'act']"

--
Gitblit v1.9.1