From 4616cff3a14b81c4d488697f43fc7aad3cf3f10f Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 14 七月 2025 09:27:49 +0800 Subject: [PATCH] no message --- pages/stock/orderBindSeed.vue | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/pages/stock/orderBindSeed.vue b/pages/stock/orderBindSeed.vue index 2ae32b2..fd22ef6 100644 --- a/pages/stock/orderBindSeed.vue +++ b/pages/stock/orderBindSeed.vue @@ -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