From 98eaddc1893a3b1d6dfe9c2ecb876233ef225144 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 26 六月 2025 09:13:54 +0800
Subject: [PATCH] 1
---
项目代码/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..15c715c 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
}
},
@@ -61,6 +62,22 @@
if (this.current != e.currentIndex) {
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) {
@@ -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