From 834294889ab62bafaf034b1b87c2ead961c33476 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 05 十二月 2025 09:37:46 +0800
Subject: [PATCH] 更新最新代码
---
项目代码/龙利得PDA/pages/stash/AGVFinish.vue | 38 +++++++++++++++++++++++---------------
1 files changed, 23 insertions(+), 15 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/AGVFinish.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/AGVFinish.vue"
index 45fc110..5b648ed 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/AGVFinish.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/AGVFinish.vue"
@@ -2,9 +2,11 @@
<view>
<view class="itemstyle">
<uni-forms label-width="180">
- <uni-forms-item label="鎵樼洏鏉$爜:">
- <uni-easyinput type="text" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' :focus="!focus" v-model="barcode"
- @input="barcodeInput" />
+ <uni-forms-item label="浠诲姟缂栧彿:">
+ <uni-easyinput type="number" v-model="taskNum" placeholder="璇疯緭鍏ヤ换鍔$紪鍙�" ref='midInput'/>
+ </uni-forms-item>
+ <uni-forms-item label="鍦板潃鏉$爜:">
+ <uni-easyinput type="text" placeholder="璇锋壂鎻忓湴鍧�鏉$爜" ref='midInput' :focus="!focus" v-model="address" @confirm="addressInput" />
</uni-forms-item>
<uni-forms-item>
<button @click="AGVFinish" type="primary" size="default" style="margin-top: 2%;">纭瀹屾垚</button>
@@ -21,7 +23,8 @@
data() {
return {
focus: false,
- barcode: "",
+ taskNum: "",
+ address: ""
}
},
onShow() {},
@@ -29,33 +32,38 @@
this.focus = false;
},
methods: {
- // voiceSpeech(src) {
- // innerAudioContext.src = src; // '../../static/success.mp3';
- // innerAudioContext.play();
- // },
- barcodeInput() {
+ addressInput() {
this.$nextTick(function(x) {
- if (this.barcode.length > 0) {
+ if (this.address.length > 0) {
this.focus = true;
}
})
},
AGVFinish() {
- if (this.barcode == "") {
+ if (this.address == "") {
this.$refs.uToast.show({
- title: "璇锋壂鎻忔墭鐩樼爜",
+ title: "璇锋壂鎻忓湴鍧�鏉$爜",
type: 'error'
})
return;
}
- this.$u.post('http://10.30.4.92:9291/api/CTU_AGV/AGVFinish?barcode=' + this.barcode).then(
+ if (this.taskNum == "") {
+ this.$refs.uToast.show({
+ title: "璇疯緭鍏ヤ换鍔$紪鍙�",
+ type: 'error'
+ })
+ return;
+ }
+ this.$u.post('http://192.168.35.3:9281/api/AGV/AGVFinish?address=' + this.address +'&taskNum='+ this.taskNum).then(
res => {
if (res.status) {
this.$refs.uToast.show({
- title: "瀹屾垚鎴愬姛",
+ title: "鎴愬姛",
type: "success"
})
- this.barcode = "";
+ this.taskNum = "";
+ this.address = "";
+ this.focus = false;
} else {
this.$refs.uToast.show({
title: res.message,
--
Gitblit v1.9.3