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/Inbound.vue |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Inbound.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Inbound.vue"
index 5ed114f..bc9a2cb 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Inbound.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/LGPDA/pages/task/Inbound.vue"
@@ -10,7 +10,7 @@
 							placeholder="璇疯緭鍏ユ墭鐩樼紪鐮�" ref='midInput' />
 					</uni-forms-item>
 					<uni-forms-item label="鍏ュ簱绔欏彴">
-						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Point"
+						<uni-easyinput type="text" :focus="istrue" v-model="Point"
 							placeholder="璇疯緭鍏ュ叆搴撶珯鍙�" ref='midInput' />
 					</uni-forms-item>
 				</uni-forms>
@@ -22,11 +22,11 @@
 			<view style="padding: 5%;">
 				<uni-forms label-width="120">
 					<uni-forms-item label="鎵樼洏缂栫爜">
-						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Barcode"
+						<uni-easyinput type="text" :focus="!barcodefocus" @input="inputChangebarcode" v-model="Barcode"
 							placeholder="璇疯緭鍏ユ墭鐩樼紪鐮�" ref='midInput' />
 					</uni-forms-item>
 					<uni-forms-item label="鍏ュ簱绔欏彴">
-						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="EndAddress"
+						<uni-easyinput type="text" :focus="barcodefocus" v-model="EndAddress"
 							placeholder="璇疯緭鍏ュ叆搴撶珯鍙�" ref='midInput' />
 					</uni-forms-item>
 				</uni-forms>
@@ -43,13 +43,14 @@
 		data() {
 			return {
 				istrue: false,
+				barcodefocus: false,
 				range: [],
 				EndAddress: "",
 				StartAddress: "",
 				PalletCode: "",
 				Point: "",
 				Barcode: "",
-				items: ['鍏ュ簱', '鎶芥鍥炲簱'],
+				items: ['鍏ュ簱', '鎶芥鍏ュ簱'],
 				current: 0
 			}
 		},
@@ -62,6 +63,22 @@
 					this.current = e.currentIndex;
 				}
 			},
+			// 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;
+			// 		}
+			// 	})
+			// },
 			InboundTask() {
 				if (this.PalletCode.length <= 0 && this.Point.length) {
 					this.$refs.InboundTaskluToast.show({
@@ -112,14 +129,11 @@
 				}
 				this.$u.post('/api/PDA/SamplingInboundTask', param).then(res => {
 					if (res.status) {
-						// this.$refs.uToast.show({
-						// 	title: "鍛煎彨Agv鎼繍鎴愬姛",
-						// 	type: "success"
-						// })
 						this.$refs.SamplingInboundTaskluToast.show({
 							title: res.message,
 							type: "success"
 						})
+						this.Barcode = "";
 						this.EndAddress = "";
 						this.istrue = false;
 					} else {

--
Gitblit v1.9.3