From 90973a0d28df32f953276212377642ebbd6bceab Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期三, 14 一月 2026 12:43:42 +0800
Subject: [PATCH] #空托出

---
 pages/emptyTray/outBound.vue |   45 ++++++++++++++++++++++++++++-----------------
 1 files changed, 28 insertions(+), 17 deletions(-)

diff --git a/pages/emptyTray/outBound.vue b/pages/emptyTray/outBound.vue
index e76d533..700aa95 100644
--- a/pages/emptyTray/outBound.vue
+++ b/pages/emptyTray/outBound.vue
@@ -33,6 +33,7 @@
 			<button
 				class="cu-btn bg-blue shadow-blur"
 				@click="confirm"
+				:disabled="isconfirm"
 			>
 				鍛煎彨
 			</button>
@@ -53,7 +54,8 @@
 			list: [],
 			range: [],
 			curCode: '',
-			palletTypeId: ''
+			palletTypeId: '',
+			isconfirm : false
 		}
 	},
 	computed: {
@@ -145,24 +147,33 @@
 				})
 				return
 			} else {
-				const { code, data, msg } = await request('/orders/confirm', {
-					receipts: newArr,
-					palletTypeId: this.palletTypeId
-				})
-				if (code === 200) {
-					uni.showToast({
-						title: '鍛煎彨绌烘墭鐩樹腑锛岃绋嶄綔绛夊緟'
-					})
-					this.list = []
-					this.barcode = ''
+				this.isconfirm = true
+				try{
+					const { code, data, msg } = await request(
+						'/callForEmptyContainers',
+						{
+							staNo: this.barcode,
+							type: this.palletTypeId
+						}
+					)
+					if (code === 200) {
+						uni.showToast({
+							title: '鍛煎彨绌烘墭鐩樹腑锛岃绋嶄綔绛夊緟'
+						})
+						this.list = []
+						this.barcode = ''
+						this.isconfirm = false
+					} else {
+						uni.showToast({
+							title: msg,
+							icon: 'none',
+							position: 'top'
+						})
+					}
+				}finally{
 					this.isconfirm = false
-				} else {
-					uni.showToast({
-						title: msg,
-						icon: 'none',
-						position: 'top'
-					})
 				}
+				
 			}
 
 			// const {

--
Gitblit v1.9.1