From e8d4cc42b3ce74a818705aab13c2131d81a5ed6b Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期三, 21 一月 2026 20:26:17 +0800
Subject: [PATCH] 模具出入库和维修验收优化

---
 pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue b/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
index fc363b2..5edebd6 100644
--- a/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
+++ b/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
@@ -268,7 +268,7 @@
 			let {
 				operationType
 			} = e
-			if (operationType == 0) {
+			if (operationType == 0 || operationType == 1) {
 				this.getMaxNum()
 				this.refSav = 'Add'
 			} else {
@@ -708,10 +708,23 @@
 							Message
 						} = res.data
 						if (count == 1) {
-							return uni.showToast({
-								icon: 'none',
-								title: "鎻愪氦鎴愬姛!"
-							})
+							uni.showModal({
+							    title: '鎻愮ず',
+							    content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵',
+							    success: (res) => {
+							        if (res.confirm) {
+							            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+							            uni.redirectTo({
+							                url: '/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill?operationType=1'
+							            })
+							        } else if (res.cancel) {
+							            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+							            setTimeout(() => {
+							            	uni.navigateBack();
+							            }, 50)
+							        }
+							    }
+							});
 						} else {
 							return uni.showToast({
 								icon: 'none',
@@ -723,7 +736,7 @@
 			},
 			onAddNewHandler() {
 				uni.redirectTo({
-					url: "/pages/quyangdan/TakeSampleCheckBillList?operationType=0"
+					url: "/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill?operationType=1"
 				})
 			},
 			goBack() {

--
Gitblit v1.9.1