From 114ead8547ca59fc6aed287178dec8b3492202ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Wed, 24 Apr 2024 17:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93-=E5=87=BA=E5=BA=93=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/outWarehouse/outWarehouse.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pages/outWarehouse/outWarehouse.vue b/pages/outWarehouse/outWarehouse.vue index 5bcab6d..abf7156 100644 --- a/pages/outWarehouse/outWarehouse.vue +++ b/pages/outWarehouse/outWarehouse.vue @@ -60,8 +60,10 @@ - 货物出库 - 出库单完成 + 货物出库 + 出库单完成 @@ -183,7 +185,7 @@ return; } if (this.subsectionCurrent === 1 && this.newMaterialList.length > 0) { - if(this.newMaterialList.length > 50){ + if (this.newMaterialList.length > 50) { uni.showModal({ title: '提示', content: '批量出库数量已达到50箱,请先出库此50箱!', @@ -251,6 +253,10 @@ }, // 货物出库 handlerDoOut() { + this.loading = true; + setTimeout(() => { + this.loading = false; + }, 30000) if (this.searchType === 3) { uni.showModal({ title: '提示', @@ -258,6 +264,7 @@ showCancel: false, confirmText: '确定' }); + this.loading = false; return; } const length = this.newMaterialList.length; @@ -268,6 +275,7 @@ showCancel: false, confirmText: '确定' }); + this.loading = false; return; } uni.showModal({ @@ -296,6 +304,7 @@ showCancel: false, confirmText: '确认' }); + this.loading = false; return; } else { newPatchCodeList.push(item.patchCode) @@ -311,6 +320,8 @@ showCancel: false, confirmText: '确认' }); + this.loading = false; + return; } WarehoseApi.doMaterialOut(data).then((res) => { if (res.code !== 200) { @@ -320,6 +331,7 @@ showCancel: false, confirmText: '确认' }); + this.loading = false; return; } else { if (res.data.item1 == 100) { @@ -330,6 +342,7 @@ confirmText: '确认' }); this.newMaterialList = []; + this.loading = false; } else if (res.data.item2 == 200) { uni.showModal({ title: '提示', @@ -338,6 +351,7 @@ confirmText: '确认' }); this.newMaterialList = []; + this.loading = false; } else { uni.showModal({ title: '提示', @@ -346,6 +360,7 @@ confirmText: '确认' }); this.newMaterialList = []; + this.loading = false; } } });