From eb7892b61b050646ad11e7a36942c2a2a16a24f2 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期四, 03 七月 2025 20:12:58 +0800
Subject: [PATCH] 1

---
 代码管理/淮安PDA/pages/stash/OutEmpty.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/OutEmpty.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/OutEmpty.vue"
index 29b279b..b25c729 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/OutEmpty.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/OutEmpty.vue"
@@ -6,6 +6,9 @@
 					<uni-easyinput type="text" placeholder="璇疯緭鍏ユ暟閲�" ref='midInput' :focus="!focus" v-model="qty"
 						@input="barcodeInput" />
 				</uni-forms-item>
+				<uni-forms-item label="鎵樼洏鏉$爜:">
+					<uni-easyinput type="text" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' :focus="focus" v-model="barcode" />
+				</uni-forms-item>
 				<uni-forms-item>
 					<button @click="OutEmpty" type="primary" size="default" style="margin-top: 2%;">绌虹鍑哄簱</button>
 				</uni-forms-item>
@@ -23,21 +26,23 @@
 				focus: false,
 				qty: "",
 				address: "",
+				barcode: "",
 			}
 		},
 		onShow() {},
 		onLoad(res) {
 			this.WarehouseId = res.warehouseId;
 			this.focus = false;
+			this.qty = 1;
 			if (res.warehouseId == 5) {
 				this.address = "8001";
 			}
 		},
 		methods: {
-			voiceSpeech(src) {
-				innerAudioContext.src = src; // '../../static/success.mp3';
-				innerAudioContext.play();
-			},
+			// voiceSpeech(src) {
+			// 	innerAudioContext.src = src; // '../../static/success.mp3';
+			// 	innerAudioContext.play();
+			// },
 			barcodeInput() {
 				// this.$nextTick(function(x) {
 				// 	if (this.barcode.length > 0) {
@@ -53,8 +58,15 @@
 					})
 					return;
 				}
+				if (this.qty < 1) {
+					this.$refs.uToast.show({
+						title: "鏁伴噺涓嶈兘灏忎簬1",
+						type: 'error'
+					})
+					return;
+				}
 				this.$u.post('/api/Task/OutEmpty?qty=' + this.qty + '&address=' + this.address + '&WarehouseId=' +
-					this.WarehouseId).then(
+					this.WarehouseId + '&barcode=' + this.barcode).then(
 					res => {
 						if (res.status) {
 							this.$refs.uToast.show({

--
Gitblit v1.9.3