From f95a05141f2bfa0e903ed24b54e8e78ef6201105 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 11 Nov 2022 18:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E5=8D=B7=E9=85=8D=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/ProductManage/ZjCasing.vue | 7 +++---- pages/ProductManage/ZjDelivery.vue | 17 +++++++++-------- pages/ProductManage/ZjInStore.vue | 8 ++++---- pages/ProductManage/ZjOutStore.vue | 16 ++++++++-------- utils/getData2.js | 3 ++- 5 files changed, 26 insertions(+), 25 deletions(-) diff --git a/pages/ProductManage/ZjCasing.vue b/pages/ProductManage/ZjCasing.vue index 152eb4c..d4e57c4 100644 --- a/pages/ProductManage/ZjCasing.vue +++ b/pages/ProductManage/ZjCasing.vue @@ -156,14 +156,13 @@ } try { let res = await casingConfirm(this.checkArr, this.val2) + this.disabled = false + this.checkArr = [] + this._queryMaterialInfo() uni.showToast({ title: res.message, icon: 'none' }) - this.disabled = false - this.checkArr = [] - this._queryMaterialInfo() - } catch (e) { this.disabled = false } diff --git a/pages/ProductManage/ZjDelivery.vue b/pages/ProductManage/ZjDelivery.vue index 53e4a0d..f2cd767 100644 --- a/pages/ProductManage/ZjDelivery.vue +++ b/pages/ProductManage/ZjDelivery.vue @@ -86,7 +86,7 @@ - + @@ -108,6 +108,7 @@ return { val1: '', val2: '', + val3: '', options: [], index: '', qty: '', @@ -151,19 +152,19 @@ /** 呼叫载具 */ async _needVehicle () { this.disabled1 = true - if (!this.checkArr.length || this.checkArr.length > 1) { + if (this.checkArr.length === 0 || this.checkArr.length > 1) { this.disabled1 = false return } try { let res = await needVehicle(this.checkArr[0]) + this.disabled1 = false + this.checkArr = [] + this._queryMaterialInfo() uni.showToast({ title: res.message, icon: 'none' }) - this.disabled1 = false - this.checkArr = [] - this._queryMaterialInfo() } catch (e) { this.disabled1 = false } @@ -177,13 +178,13 @@ } try { let res = await shippingConfirm(this.checkArr, this.val3) + this.disabled2 = false + this.checkArr = [] + this._queryMaterialInfo() uni.showToast({ title: res.message, icon: 'none' }) - this.disabled2 = false - this.checkArr = [] - this._queryMaterialInfo() } catch (e) { this.disabled2 = false } diff --git a/pages/ProductManage/ZjInStore.vue b/pages/ProductManage/ZjInStore.vue index 616bf42..89b7ccb 100644 --- a/pages/ProductManage/ZjInStore.vue +++ b/pages/ProductManage/ZjInStore.vue @@ -138,14 +138,14 @@ } try { let res = await inConfirm(this.index1, this.pkObj) - uni.showToast({ - title: res.message, - icon: 'none' - }) this.disabled = false this.pkId = '' this.pkObj = {} this._queryMaterialInfo() + uni.showToast({ + title: res.message, + icon: 'none' + }) } catch (e) { this.disabled = false } diff --git a/pages/ProductManage/ZjOutStore.vue b/pages/ProductManage/ZjOutStore.vue index 4ae5194..66e448f 100644 --- a/pages/ProductManage/ZjOutStore.vue +++ b/pages/ProductManage/ZjOutStore.vue @@ -200,14 +200,14 @@ } try { let res = await outConfirm(this.index1, this.checkArr, this.isV) - uni.showToast({ - title: res.message, - icon: 'none' - }) this.disabled1 = false this.checkArr = [] this.isV = '0' this._queryMaterialInfo() + uni.showToast({ + title: res.message, + icon: 'none' + }) } catch (e) { this.disabled1 = false } @@ -245,14 +245,14 @@ } try { let res = await conveyConfirm(this.index4) - uni.showToast({ - title: res.message, - icon: 'none' - }) this.disabled2 = false this.index3 = '' this.index4 = '' this.active = false + uni.showToast({ + title: res.message, + icon: 'none' + }) } catch (e) { this.disabled2 = false this.index3 = '' diff --git a/utils/getData2.js b/utils/getData2.js index bea3de0..b709630 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -100,6 +100,7 @@ export const needVehicle = (code) => request({ cut_jo: code } }) + // 1.3配送确认 export const shippingConfirm = (rows, code) => request({ url:'api/pda/shipping/confirm', @@ -109,7 +110,7 @@ export const shippingConfirm = (rows, code) => request({ } }) // 1.4载具送回 -export const returnVehicle = (rows, code) => request({ +export const returnVehicle = (code) => request({ url:'api/pda/shipping/returnVehicle', data: { point_code: code