From c3877b2ebec19f473f45e8c2245926f65d2a3948 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 10 九月 2025 09:26:23 +0800
Subject: [PATCH] 代码提交

---
 项目代码/LGPDA/pages/task/Outbound.vue |   50 +++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 37 insertions(+), 13 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Outbound.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Outbound.vue"
index d5d7ca7..77a0902 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Outbound.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Outbound.vue"
@@ -5,9 +5,13 @@
 		<view v-show="current === 0">
 			<view style="padding: 5%;">
 				<uni-forms label-width="120">
+					<uni-forms-item label="鎵樼洏缂栫爜">
+						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="PalletCode"
+							placeholder="璇疯緭鍏ユ墭鐩樼紪鐮�" ref='midInput' />
+					</uni-forms-item>
 					<uni-forms-item label="鍑哄簱搴撲綅">
-						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="SourceAddress"
-							placeholder="璇疯緭鍏ュ嚭搴撳簱浣�" ref='midInput' />
+						<uni-easyinput type="text" :focus="istrue" v-model="SourceAddress" placeholder="璇疯緭鍏ュ嚭搴撳簱浣�"
+							ref='midInput' />
 					</uni-forms-item>
 				</uni-forms>
 				<button @click="InboundTask" type="primary" size="default" style="margin-top: 2%;">鍑哄簱</button>
@@ -17,12 +21,12 @@
 		<view v-show="current === 1">
 			<view style="padding: 5%;">
 				<uni-forms label-width="120">
-					<uni-forms-item label="鍏ュ簱绔欏彴">
-						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="StartAddress"
-							placeholder="璇疯緭鍏ュ叆搴撶珯鍙�" ref='midInput' />
+					<uni-forms-item label="鍑哄簱搴撲綅">
+						<uni-easyinput type="text" :focus="!barcodefocus" @input="inputChangebarcode"
+							v-model="StartAddress" placeholder="璇疯緭鍏ュ嚭搴撳簱浣�" ref='midInput' />
 					</uni-forms-item>
 				</uni-forms>
-				<button @click="SamplingInboundTask" type="primary" size="default" style="margin-top: 2%;">鍏ュ簱</button>
+				<button @click="SamplingInboundTask" type="primary" size="default" style="margin-top: 2%;">鎶芥鍑哄簱</button>
 				<u-toast ref="SamplingInboundTaskluToast" />
 			</view>
 		</view>
@@ -35,9 +39,11 @@
 		data() {
 			return {
 				istrue: false,
+				barcodefocus: false,
 				range: [],
 				StartAddress: "",
-				SourceAddress:"",
+				PalletCode: "",
+				SourceAddress: "",
 				items: ['鍑哄簱', '鎶芥鍑哄簱'],
 				current: 0
 			}
@@ -46,6 +52,22 @@
 		// 	this.getEndLocations();
 		// },
 		methods: {
+			// carNoInputChange() {
+			// 	this.istrue = false;
+			// 	this.$nextTick(function(x) {
+			// 		if (this.barcode != '') {
+			// 			this.istrue = true;
+			// 		}
+			// 	})
+			// },
+			// inputChangebarcode() {
+			// 	this.barcodefocus = false;
+			// 	this.$nextTick(function(x) {
+			// 		if (this.barcode != '') {
+			// 			this.barcodefocus = true;
+			// 		}
+			// 	})
+			// },
 			onClickItem(e) {
 				if (this.current != e.currentIndex) {
 					this.current = e.currentIndex;
@@ -61,17 +83,19 @@
 				}
 				var param = {
 					// MainData: {
-						"SourceAddress":this.SourceAddress
+					"PalletCode": this.PalletCode,
+					"SourceAddress": this.SourceAddress
 					// },
 				}
 				console.log(param);
 				this.$u.post('/api/PDA/OutboundTask', param).then(res => {
 					if (res.status) {
-						this.$refs.uToast.show({
-							title: "鍑哄簱浠诲姟涓嬪彂",
+						this.$refs.InboundTaskluToast.show({
+							title: res.message,
 							type: "success"
 						})
 						this.SourceAddress = "";
+						this.PalletCode = "";
 						this.istrue = false;
 					} else {
 						this.$refs.InboundTaskluToast.show({
@@ -91,13 +115,13 @@
 				}
 				var param = {
 					// MainData: {
-						"SourceAddress": this.StartAddress
+					"SourceAddress": this.StartAddress
 					// },
 				}
 				this.$u.post('/api/PDA/SamplingOutboundTask', param).then(res => {
 					if (res.status) {
-						this.$refs.uToast.show({
-							title: "鍛煎彨Agv鎼繍鎴愬姛",
+						this.$refs.SamplingInboundTaskluToast.show({
+							title: res.message,
 							type: "success"
 						})
 						this.StartAddress = "";

--
Gitblit v1.9.3