From 087b9f6cea5b4d2eb1c9fa3959ac0dc5b09cf254 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期五, 08 八月 2025 17:03:59 +0800
Subject: [PATCH] no message
---
pages/stock/orderBindSeed.vue | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/pages/stock/orderBindSeed.vue b/pages/stock/orderBindSeed.vue
index 2ae32b2..735fb73 100644
--- a/pages/stock/orderBindSeed.vue
+++ b/pages/stock/orderBindSeed.vue
@@ -11,7 +11,7 @@
</view>
<view class="view-bg">
<uni-section title="瀹瑰櫒" type="line" />
- <input maxlength="8" placeholder="PDA鎵弿鎵樼洏/鏂欑鏍囩" v-model="barcode"/>
+ <input maxlength="20" placeholder="PDA鎵弿鎵樼洏/鏂欑鏍囩" v-model="barcode"/>
</view>
<view class="button-sp-buttom">
@@ -43,6 +43,7 @@
range: [],
orderNo: '',
barcode: '',
+ siteNo: '',
msgType1: '',
messageText: '',
msgType: '',
@@ -58,9 +59,12 @@
},
methods: {
+ /**
+ * 鑾峰彇褰撳墠鎾澧欐墍鏈夊簱浣�
+ */
getSeedLocs() {
let that = this
- toast.loading('鍔犺浇涓�')
+ this.$toast.loading('鍔犺浇涓�')
uni.request({
url: this.baseUrl + '/pda/pick/seed/locs',
header: {
@@ -80,7 +84,7 @@
}
},
complete() {
- toast.hideLoading()
+ that.$toast.hideLoading()
}
})
@@ -110,7 +114,7 @@
if (type == undefined || type == null || type == null) {
type = 'bind'
}
- toast.loading('缁戝畾涓�..')
+ this.$toast.loading('缁戝畾涓�..')
uni.request({
url: that.baseUrl + "/pda/pick/seed/bind",
data: {barcode: that.barcode, orderNo: that.orderNo, siteNo: that.siteNo, type: type},
@@ -121,22 +125,21 @@
success(res) {
let result = res.data;
if (result.code === 200) {
- toast.hideLoading()
- this.messageToggle('success', '缁戝畾鎴愬姛锛�')
+ that.messageToggle('success', '缁戝畾鎴愬姛锛�')
} else {
- toast.hideLoading()
- this.messageToggle('error', result.msg)
+ that.messageToggle('error', result.msg)
}
},
fail(res) {
- toast.hideLoading()
- this.messageToggle('error', '鏈嶅姟鍣ㄩ敊璇�')
+
+ that.messageToggle('error', '鏈嶅姟鍣ㄩ敊璇�')
},
complete() {
that.barcode = ''
that.orderNo = ''
that.siteNo = ''
+ that.$toast.hideLoading()
}
})
},
--
Gitblit v1.9.1