From f16cc9de1c7399f1c1bb81d96f476083e34c1cd9 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 08 十二月 2025 09:03:16 +0800
Subject: [PATCH] #
---
pages/AGV/CollectionInCall.vue | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/pages/AGV/CollectionInCall.vue b/pages/AGV/CollectionInCall.vue
index 9bc264f..695e5dd 100644
--- a/pages/AGV/CollectionInCall.vue
+++ b/pages/AGV/CollectionInCall.vue
@@ -9,6 +9,10 @@
<view class="code-decs">鎵樼洏鐮�:</view>
<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode">
</view>
+ <view class="item">
+ <view class="code-decs">鐩爣鍖�:</view>
+ <uni-combox :candidates="staList" placeholder="璇烽�夋嫨绔欑偣" v-model="tarSite"></uni-combox>
+ </view>
</view>
<view class="mat-list-title">
</view>
@@ -79,13 +83,13 @@
locNo: "",
orgSite: '',
tarSite: '',
- staList: [],
+ staList: ["EO", "SO"],
}
},
onLoad() {
let that = this
const eventChannel = this.getOpenerEventChannel();
- that.getSites()
+ // that.getSites()
},
onShow() {
this.baseUrl = uni.getStorageSync('baseUrl');
@@ -260,11 +264,21 @@
this.$refs.combConfirm.close()
},
comb() {
- uni.setStorageSync('tarSite', this.tarSite);
+ // uni.setStorageSync('tarSite', this.tarSite);
uni.vibrateShort();
let that = this;
if (that.orgSite === '') {
- this.messageText = "浜х嚎绔欎负绌�"
+ this.messageText = "璧峰绔欎负绌�"
+ this.messageToggle('error')
+ return;
+ }
+ if (that.barcode === '') {
+ this.messageText = "鎵樼洏鐮佷负绌�"
+ this.messageToggle('error')
+ return;
+ }
+ if (that.tarSite === '') {
+ this.messageText = "鐩爣鍖轰负绌�"
this.messageToggle('error')
return;
}
@@ -272,7 +286,8 @@
url: that.baseUrl + '/mobile/collection/agv/call',
data: JSON.stringify({
orgSite: that.orgSite,
- barcode: that.barcode
+ barcode: that.barcode,
+ tarSite: that.tarSite
}),
method: 'POST',
header: {
@@ -319,7 +334,8 @@
resst() {
this.orgSite = ''
this.dataList = []
-
+ this.tarSite = ''
+ this.barcode = ''
},
}
--
Gitblit v1.9.1