From 73a077d76b715aee6b9f384b087a6792a84989d8 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <1247017146@qq.com>
Date: 星期二, 03 六月 2025 11:35:52 +0800
Subject: [PATCH] 代码提交

---
 项目代码/LGPDA/pages/task/Outbound.vue |   42 +++++++++++++++++++++++++++++++++---------
 1 files changed, 33 insertions(+), 9 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..d912bcd 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,8 +5,12 @@
 		<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"
+						<uni-easyinput type="text" :focus="istrue"  v-model="SourceAddress"
 							placeholder="璇疯緭鍏ュ嚭搴撳簱浣�" ref='midInput' />
 					</uni-forms-item>
 				</uni-forms>
@@ -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,8 +39,10 @@
 		data() {
 			return {
 				istrue: false,
+				barcodefocus: false,
 				range: [],
 				StartAddress: "",
+				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: {
+						"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({
@@ -96,8 +120,8 @@
 				}
 				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