From 93c861f445641d96cd794638c41f81805a02bdb2 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 05 五月 2025 12:44:03 +0800
Subject: [PATCH] #

---
 pages/rece/other.vue    |   19 ++++++++-----------
 pages/rece/standard.vue |   11 ++++++-----
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/pages/rece/other.vue b/pages/rece/other.vue
index 3de4a88..6115c4c 100644
--- a/pages/rece/other.vue
+++ b/pages/rece/other.vue
@@ -90,8 +90,7 @@
 							<view class="cu-form-group padding-lr-0">
 								<view class="title text-blue"><text
 										class="text-red text-xl vertical-middle">*</text>鏀惰揣鏁伴噺:</view>
-								<uni-number-box style="width: 70%;" v-model="item.receiptQty"
-									:step='1'></uni-number-box>
+								<uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty" :step='1'></uni-number-box>
 							</view>
 						</view>
 						<view class="content" v-else>
@@ -160,8 +159,8 @@
 		</view>
 
 		<view class="cu-bar btn-group foot" v-show="isconfirm">
-			<button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button>
-			<button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">鏀惰揣</button>
+			<button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button>			
+			<button class="cu-btn bg-blue shadow-blur" @click="confirm(false)">鏀惰揣</button>
 		</view>
 
 	</view>
@@ -185,8 +184,8 @@
 				whAreaId: '',
 				list: [],
 				range: [],
-				repeatClick: false,
-				isconfirm: false
+				isconfirm: false,
+				max: 99999999
 			}
 		},
 		computed: {
@@ -237,7 +236,7 @@
 				this.list = []
 				this.barcode = ''
 			},
-			next(event) {
+			next() {
 				if (this.list.length) {
 					this.isconfirm = true
 				} else {
@@ -287,7 +286,7 @@
 						};
 					}).filter(el => el.receiptQty !== 0);
 
-					this.repeatClick = true
+
 					const {
 						code,
 						data,
@@ -303,15 +302,13 @@
 						})
 						this.list = []
 						this.barcode = ''
-						this.isconfirm = false
-						this.repeatClick = false
+						this.isconfirm = false
 						isCom && this.complete(data.id)
 					} else {
 						uni.showToast({
 							title: msg,
 							icon: "none",
 						})
-						this.repeatClick = false
 					}
 				}
 			},
diff --git a/pages/rece/standard.vue b/pages/rece/standard.vue
index d326fdf..3d6731d 100644
--- a/pages/rece/standard.vue
+++ b/pages/rece/standard.vue
@@ -80,7 +80,7 @@
 					<view class="content" v-if="!isconfirm">
 						<view class="cu-form-group padding-lr-0">
 							<view class="title text-blue">鏀惰揣鏁伴噺:</view>
-							<uni-number-box style="width: 70%;" v-model="item.receiptQty" :step='1'></uni-number-box>
+							<uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty" :step='1'></uni-number-box>
 						</view>
 					</view>
 					<view class="content" v-else>
@@ -179,8 +179,9 @@
 				whAreaId: '',
 				list: [],
 				range: [],
-				isconfirm: false,
-				repeatClick: false
+				isconfirm: false,
+				repeatClick: false,
+				max: 99999999
 			}
 		},
 		computed: {
@@ -264,7 +265,7 @@
 						icon: "none",
 						title: '璇烽�夋嫨鏀惰揣鍖�'
 					})
-				} else {
+				} else {
 					this.repeatClick = true
 					const {
 						code,
@@ -287,7 +288,7 @@
 							icon: "none",
 							position: 'top'
 						})
-					}
+					}
 					this.repeatClick = false
 				}
 			},

--
Gitblit v1.9.1