From 6aa282f3aed15e3144cb81e4dfb0a3e6f5a33df8 Mon Sep 17 00:00:00 2001 From: liuxy Date: Wed, 18 Jan 2023 21:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/wms/st/outbill/DivDialog.vue | 22 ++++++++++++++++++- .../src/views/wms/st/outbill/index.vue | 6 +++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/lms/nladmin-ui/src/views/wms/st/outbill/DivDialog.vue b/lms/nladmin-ui/src/views/wms/st/outbill/DivDialog.vue index bc86fc2c0..d34361475 100644 --- a/lms/nladmin-ui/src/views/wms/st/outbill/DivDialog.vue +++ b/lms/nladmin-ui/src/views/wms/st/outbill/DivDialog.vue @@ -40,6 +40,7 @@ { this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO) this.queryTableDtl() + this.loadingAlldiv = false + }).catch(() => { + this.loadingAlldiv = false }) }, oneDiv() { @@ -488,10 +499,14 @@ export default { // this.crud.notify('请先选择库区!', CRUD.NOTIFICATION_TYPE.INFO) // return // } + this.loadingAutodiv = true if (this.currentRow.iostorinvdtl_id !== null) { this.mstrow.iostorinvdtl_id = this.currentRow.iostorinvdtl_id checkoutbill.allDivOne(this.mstrow).then(res => { this.queryTableDtl() + this.loadingAutodiv = false + }).catch(() => { + this.loadingAutodiv = false }) } }, @@ -563,18 +578,20 @@ export default { this.crud.notify('任务已生成!', CRUD.NOTIFICATION_TYPE.INFO) return } + this.loadingSetPoint = true if (this.currentDis.iostorinvdis_id !== null) { this.currentDis.point_code = this.form2.point_code checkoutbill.oneSetPoint2(this.currentDis).then(res => { this.queryTableDdis(this.currentDis.iostorinvdtl_id) this.crud.notify('设置成功!', CRUD.NOTIFICATION_TYPE.INFO) + this.loadingSetPoint = false }).catch(() => { this.currentDis.point_code = '' + this.loadingSetPoint = false }) } }, allSetPoint() { - debugger if (this.form2.point_code === '') { this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO) return @@ -583,11 +600,14 @@ export default { this.crud.notify('请选择明细!', CRUD.NOTIFICATION_TYPE.INFO) return } + this.loadingSetAllPoint = true this.currentRow.point_code = this.form2.point_code checkoutbill.allSetPoint(this.currentRow).then(res => { this.queryTableDdis(this.currentRow.iostorinvdtl_id) this.crud.notify('设置成功!', CRUD.NOTIFICATION_TYPE.INFO) + this.loadingSetAllPoint = false }).catch(() => { + this.loadingSetAllPoint = false }) }, queryTableDtl() { diff --git a/lms/nladmin-ui/src/views/wms/st/outbill/index.vue b/lms/nladmin-ui/src/views/wms/st/outbill/index.vue index 2f0e1acd6..0b26fe32b 100644 --- a/lms/nladmin-ui/src/views/wms/st/outbill/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/outbill/index.vue @@ -195,6 +195,7 @@ { this.querytable() this.crud.notify('出库成功!', CRUD.NOTIFICATION_TYPE.SUCCESS) + this.loadingConfirm = false + }).catch(() => { + this.loadingConfirm = false }) }, querytable() {