From 2b6a1213371e631457ace87bb0678b183b09206e Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 23 六月 2025 17:05:08 +0800
Subject: [PATCH] #

---
 pages/outbound/wavePickItem.vue |   37 +++++++++++++++++++++++++++++++------
 1 files changed, 31 insertions(+), 6 deletions(-)

diff --git a/pages/outbound/wavePickItem.vue b/pages/outbound/wavePickItem.vue
index b1e1546..16c4057 100644
--- a/pages/outbound/wavePickItem.vue
+++ b/pages/outbound/wavePickItem.vue
@@ -75,15 +75,15 @@
 							<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%;" :max="max" v-model="item2.receiptQty"
-									:step='1'></uni-number-box>
+								<uni-number-box style="width: 70%;" :max="max" v-model="item2.demandQty"
+									:step='1' ></uni-number-box>
 							</view>
 						</view>
 					</view>
 				</view>
 				<view class="cu-item">
 					<view class="content">
-						<text class="text-gray">鏈鎷h揣鏁伴噺:<text class="text-black ">{{item.asnOrderItems.reduce((total, item) => total + (Number(item.receiptQty) ||0 ) , 0)}}</text></text>
+						<text class="text-gray">鏈鎷h揣鏁伴噺:<text class="text-black ">{{item.asnOrderItems.reduce((total, item) => total + (Number(item.demandQty) ||0 ) , 0)}}</text></text>
 					</view>						
 				</view>
 				
@@ -95,7 +95,7 @@
 
 		<view class="cu-bar btn-group foot" v-show="!isconfirm">
 			<button class="cu-btn text-blue line-blue shadow" @click="clear">娓呯┖</button>
-			<button class="cu-btn bg-blue shadow-blur" @click="next">涓嬩竴姝�</button>
+			<button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="complete">鎷h揣瀹屾垚</button>
 		</view>
 
 		
@@ -121,6 +121,7 @@
 				isconfirm: false,
 				barcode:'80003642',
 				max: 99999999,
+				repeatClick:false
 				
 			}
 		},
@@ -144,9 +145,12 @@
 			this.search()
 		},
 		methods: {
-			
-			clearCode() {
+			clear() {
 				this.barcode = ''
+				this.list = []
+			},
+			clearCode() {
+				this.barcode = ''				
 			},
 			async search() {
 				this.list = []
@@ -188,6 +192,27 @@
 			
 			
 			},
+			async complete() {
+				let that = this
+				this.repeatClick = true
+				const {
+					code,
+					data,
+					msg
+				} = await request('/saveWavePick',that.list)
+				if (code === 200) {
+					uni.showToast({
+						title: msg,
+						icon: "none",
+					})
+				} else {
+					uni.showToast({
+						title: msg,
+						icon: "none",
+					})
+				}
+				this.repeatClick = false
+			},
 		}
 	}
 </script>

--
Gitblit v1.9.1