From 99d9d4ed78eeb7b59c5c2ce314a82765f08a600a Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 15 四月 2025 17:05:54 +0800
Subject: [PATCH] 1

---
 代码管理/NEWCode/WIDESEAWCS_PDA/pages/叫料/输送线回流.vue |   66 ++++++++++++++++++++++++--------
 1 files changed, 49 insertions(+), 17 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/\345\217\253\346\226\231/\350\276\223\351\200\201\347\272\277\345\233\236\346\265\201.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/\345\217\253\346\226\231/\350\276\223\351\200\201\347\272\277\345\233\236\346\265\201.vue"
index e159bf1..66258e9 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/\345\217\253\346\226\231/\350\276\223\351\200\201\347\272\277\345\233\236\346\265\201.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/\345\217\253\346\226\231/\350\276\223\351\200\201\347\272\277\345\233\236\346\265\201.vue"
@@ -3,17 +3,25 @@
 		<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem">
 		</uni-segmented-control>
 		<view class="content">
-		<view v-if="current === 0" class="headerstyle">
+			<view v-if="current === 0" class="headerstyle">
 				<view class="itemstyle">
 					<uni-forms label-width="120">
 						<uni-forms-item label="璧风偣鍦板潃">
 							<!-- <uni-easyinput type="text" :focus="!addressFocus" v-model="sourceAddress"
 								placeholder="璇锋壂鐬勮捣鐐瑰湴鍧�" ref='midInput' @input="inputChangebarcode" /> -->
-									<uni-data-select v-model="value" :localdata="rangs"></uni-data-select>
+							<uni-data-select v-model="value" :localdata="rangs"></uni-data-select>
 						</uni-forms-item>
 						<uni-forms-item label="缁堢偣鍦板潃">
 							<uni-easyinput type="text" :focus="!addressFocus" v-model="targetAddress"
 								placeholder="璇锋壂鎻忕粓鐐瑰湴鍧�" ref='midInput' @input="inputChangebarcode" />
+						</uni-forms-item>
+						<uni-forms-item label="绗竴鎵樼洏鏉$爜">
+							<uni-easyinput type="text" :focus="!addressFocus" v-model="pallcode" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�"
+								ref='midInput' @input="inputChangebarcode" />
+						</uni-forms-item>
+						<uni-forms-item label="绗簩鎵樼洏鏉$爜">
+							<uni-easyinput type="text" :focus="!addressFocus" v-model="pallcode1" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�"
+								ref='midInput' @input="inputChangebarcode" />
 						</uni-forms-item>
 						<uni-forms-item>
 							<button @click="inbound" type="primary" size="default"
@@ -31,7 +39,7 @@
 	const innerAudioContext = uni.createInnerAudioContext();
 	export default {
 		data() {
-			return { 	
+			return {
 				items: ['杈撻�佺嚎鎼繍'],
 				current: 0,
 				matTotal: [],
@@ -46,6 +54,9 @@
 				addressFocus: false,
 				targetAddress: "",
 				sourceAddress: "",
+				pallcode: "",
+				pallcode1: "",
+				Exception: "",
 				address: "",
 				check: true,
 				value: "",
@@ -124,27 +135,48 @@
 				})
 			},
 			inbound() {
+				// 鎻愬彇杈撳叆妗嗙殑鍊�
+				const sourceAddress = this.value;
+				const targetAddress = this.targetAddress;
+				// 鎻愬彇宸ュ崟缂栧彿
+				const pallcode =this.pallcode;
+				// 鎻愬彇鍨嬪彿
+				const pallcode1 = this.pallcode1;
+				
+				if (sourceAddress == "") {
+					this.$t.message.toast('璇烽�夋嫨璧风偣浣嶇疆');
+					return;
+				}
+				if (targetAddress == "") {
+					this.$t.message.toast('璇锋壂鐬勭粓鐐逛綅缃�');
+					return;
+				}
+				if (pallcode == "") {
+					this.$t.message.toast('璇锋壂鎻忕涓�鎷栫洏鏉$爜');
+					return;
+				}
+				if (pallcode1 == "") {
+					this.$t.message.toast('璇锋壂鎻忕浜屾嫋鐩樻潯鐮�');
+					return;
+				}
 				var postData = {
 					MainData: {
 						"sourceAddress": this.value,
 						"targetAddress": this.targetAddress,
+						"Exception": this.pallcode + "," + this.pallcode1
 					}
 				}
-
+				// console.log(Exception);
 				this.$u.post('/api/PDA/EmptyTask', postData).then(res => {
-					if (res.code == 200) {
-						uni.$showMsg("浠诲姟娣诲姞鎴愬姛");
-						this.sourceAddress = "";
-						this.targetAddress = "";
-						setTimeout(() => {
-							// this.materialtype = false;
-						}, 200);
-					} else {
-						this.$refs.uToast.show({
-							title: res.message,
-							type: "error"
-						})
-					}
+				this.$t.message.closeLoading();
+				console.log(postData);
+				if (res.code == 200) {
+					this.$t.message.toast('鍛煎彨鎴愬姛');
+					this.$refs.popup.close();
+					// this.submit();
+				} else {
+					this.$t.message.toast(res.message);
+				}
 				}).catch(err => {
 					this.$refs.uToast.show({
 						title: err.message,

--
Gitblit v1.9.3