From 1c6231e2ec50afbc1079cede9356315d1862de67 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 20 十一月 2025 08:26:36 +0800
Subject: [PATCH] no message

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

diff --git a/pages/check/TempCheck.vue b/pages/check/TempCheck.vue
index 600d372..b053f56 100644
--- a/pages/check/TempCheck.vue
+++ b/pages/check/TempCheck.vue
@@ -62,7 +62,7 @@
 								<view class="title text-blue"><text class="text-red text-xl vertical-middle"></text>瀹炵洏鏁�:
 								</view>
 								<uni-number-box style="width: 70%;" :max="max" v-model="item.checkQty"
-									:step='1'></uni-number-box>
+									:step='0.01'></uni-number-box>
 							</view>
 						</view>
 					</view>
@@ -137,7 +137,7 @@
 								<view class="title text-blue"><text class="text-red text-xl vertical-middle"></text>瀹炵洏鏁�:
 								</view>
 								<uni-number-box style="width: 70%;" :max="max" v-model="item.checkQty"
-									:step='1'></uni-number-box>
+									:step='0.01'></uni-number-box>
 							</view>
 						</view>
 					</view>
@@ -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 {
@@ -345,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({
@@ -363,7 +364,7 @@
 				} else {
 					uni.showToast({
 						title: msg,
-						icon: "none",
+						icon: "error",
 					})
 				}
 				this.repeatClick = false

--
Gitblit v1.9.1