From f9e8a2d52fe52fb2389892a46c12d4d262ee9aaf Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期六, 29 十一月 2025 16:53:28 +0800
Subject: [PATCH] 增加提升机可进行一次进俩托物料出入库

---
 项目代码/PDA/pages/task/Inbound.vue |   61 +++++++++++++++++++++++++++---
 1 files changed, 55 insertions(+), 6 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/task/Inbound.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/task/Inbound.vue"
index 4d59dd8..0cf9a8b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/task/Inbound.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/task/Inbound.vue"
@@ -13,17 +13,12 @@
 						<uni-easyinput type="text" :focus="addressFocus" v-model="SourceAddress" placeholder="璇疯緭鍏ュ叆搴撹捣鐐�"
 							ref='midInput' />
 					</uni-forms-item>
-					<!-- <uni-forms-item label="鍏ュ簱缁堢偣">
-						<uni-easyinput type="text" :focus="istrue" v-model="TargetAddress" placeholder="璇疯緭鍏ュ叆搴撶粓鐐�"
-							ref='midInput' />
-					</uni-forms-item> -->
 					<uni-forms-item label="缁堢偣鍖哄煙">
 						<uni-data-select :focus="!istrue" v-model="AreaId" :localdata="range"
 							placeholder="璇疯緭閫夋嫨鍏ュ簱缁堢偣鍖哄煙"></uni-data-select>
 					</uni-forms-item>
 				</uni-forms>
 				<button @click="InboundTask" type="primary" size="default" style="margin-top: 2%;">鍏ュ簱</button>
-
 			</view>
 		</view>
 		<view v-show="current === 1">
@@ -75,6 +70,25 @@
 				<button @click="SolvePlate" type="primary" size="default" style="margin-top: 2%;">瑙g洏</button>
 			</view>
 		</view>
+		<view v-show="current === 3">
+			<view style="padding: 5%;">
+				<uni-forms label-width="120">
+					<uni-forms-item label="鎵樼洏缂栫爜">
+						<uni-easyinput type="text" :focus="barcodeFocus" v-model="PalletCode3" placeholder="璇疯緭鍏ユ墭鐩樼紪鐮�"
+							ref='midInput' @input="Changebarcode()"/>
+					</uni-forms-item>
+					<uni-forms-item label="鍏ュ簱璧风偣">
+						<uni-easyinput type="text" :focus="addressFocus" v-model="SourceAddress3" placeholder="璇疯緭鍏ュ叆搴撹捣鐐�"
+							ref='midInput' />
+					</uni-forms-item>
+					<uni-forms-item label="缁堢偣鍖哄煙">
+						<uni-data-select :focus="!istrue" v-model="acrossFloor" :localdata="rangethree"
+							placeholder="璇疯緭閫夋嫨鍏ュ簱缁堢偣鍖哄煙"></uni-data-select>
+					</uni-forms-item>
+				</uni-forms>
+				<button @click="SendTask" type="primary" size="default" style="margin-top: 2%;">鍙戦�佷换鍔�</button>
+			</view>
+		</view>
 		<u-toast ref="luToast" />
 	</view>
 </template>
@@ -93,8 +107,10 @@
 				addressFocus:false,
 				barcodefocus: false,
 				range: [],
+				rangethree:[],
 				group: [],
 				AreaId: 0,
+				acrossFloor:0,
 				quantity: "",
 				SourceAddress: "",
 				TargetAddress: "",
@@ -102,12 +118,13 @@
 				PalletCode2: "",
 				PalletCode3: "",
 				materSn: "",
-				items: ['鍏ュ簱', '缁勭洏', '瑙g洏'],
+				items: ['鍏ュ簱', '缁勭洏', '瑙g洏','鍙屾墭璺ㄦゼ灞�'],
 				current: 0
 			}
 		},
 		onLoad(res) {
 			this.range = config.AreaId;
+			this.rangethree = config.AcrossFloor;
 		},
 		methods: {
 			onClickItem(e) {
@@ -152,6 +169,38 @@
 					}
 				})
 			},
+			SendTask() {
+				if (this.PalletCode3.length <= 0 && this.SourceAddress3.length) {
+					this.$refs.luToast.show({
+						title: "鎵樼洏缂栫爜璺熺粦瀹氳揣浣嶄笉鑳戒负绌�",
+						type: "error"
+					})
+					return;
+				}
+				var param = {
+					"PalletCode": this.PalletCode3,
+					"Position": this.SourceAddress3,
+					"AreaId": this.acrossFloor,
+					"DoubleTray":1,
+				}
+				this.$u.post('/api/Task/RequestInboundTaskAsync', param).then(res => {
+					if (res.status) {
+						this.$refs.luToast.show({
+							title: res.message,
+							type: "success"
+						})
+						this.PalletCode3 = "";
+						this.SourceAddress3 = "";
+						this.acrossFloor = "";
+						this.istrue = false;
+					} else {
+						this.$refs.luToast.show({
+							title: res.message,
+							type: "error"
+						})
+					}
+				})
+			},
 			GroupPlate() {
 				if (this.PalletCode2.length <= 0 && this.InBoundOrder.length) {
 					this.$refs.luToast.show({

--
Gitblit v1.9.3