From 8643df2e582ae46f9f2ff91efc2f14620e6c3837 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 06 十一月 2025 09:55:19 +0800
Subject: [PATCH] Merge branch 'devlop_wxxr' of http://47.97.1.152:5880/r/pda-master into devlop_wxxr

---
 pages/check/TempCheck.vue |   27 ++++++++++-----------------
 1 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/pages/check/TempCheck.vue b/pages/check/TempCheck.vue
index 87a6595..a31445c 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,11 +250,7 @@
 					matnrs: this.matnrList
 				})
 				if (code === 200) {
-					uni.showToast({
-						title: msg,
-						icon: "none",
-						position: 'top'
-					})
+					that.search()
 				} else {
 					uni.showToast({
 						title: msg,
@@ -261,6 +258,7 @@
 						position: 'top'
 					})
 				}
+				this.isconfirm = !this.isconfirm
 			},
 			async addMatnr() {
 				const {
@@ -353,14 +351,9 @@
 					return;
 				}
 				this.repeatClick = true
-				const {
-					code,
-					data,
-					msg
-				} = await request('/saveCheckDiff', {
-					container: that.barcode,
-					checkId: that.check.id,
-					checkDiffItems: that.list
+				const {code, data,	msg	} = await request('/temp/check/confirm', {
+					barcode: that.barcode,
+					items: that.list
 				})
 				if (code === 200) {
 					uni.showToast({
@@ -371,7 +364,7 @@
 				} else {
 					uni.showToast({
 						title: msg,
-						icon: "none",
+						icon: "error",
 					})
 				}
 				this.repeatClick = false

--
Gitblit v1.9.1