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; } } });