From b3394dac77ca782c7c9192bcc750dad43a7203bb Mon Sep 17 00:00:00 2001 From: liuxy Date: Fri, 25 Aug 2023 10:16:02 +0800 Subject: [PATCH] =?UTF-8?q?rev=EF=BC=9A=E5=87=BA=E5=BA=93=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/wms/st/outbill/DivDialog.vue | 17 ++++++++++++++++- .../src/views/wms/st/outbill/StructIvt.vue | 11 ++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) 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 bcae2a808..0c3adf64d 100644 --- a/lms/nladmin-ui/src/views/wms/st/outbill/DivDialog.vue +++ b/lms/nladmin-ui/src/views/wms/st/outbill/DivDialog.vue @@ -51,6 +51,7 @@ @@ -417,10 +420,14 @@ export default { openStructIvt() { this.currentRow.remark = '' this.currentRow.stor_id = this.storId + this.loadingAlldiv = true checkoutbill.getStructIvt(this.currentRow).then(res => { this.openParam = res this.structshow = true this.openRow = this.currentRow + this.loadingAlldiv = false + }).catch(() => { + this.loadingAlldiv = false }) }, sectQueryChange(val) { @@ -527,14 +534,22 @@ export default { } }, allCancel() { + this.loadingAlldiv = true checkoutbill.allCancel(this.mstrow).then(res => { this.queryTableDtl() + this.loadingAlldiv = false + }).catch(() => { + this.loadingAlldiv = false }) }, oneCancel() { + this.loadingAlldiv = true if (this.currentRow.iostorinvdtl_id !== null) { checkoutbill.allCancel(this.currentRow).then(res => { this.queryTableDtl() + this.loadingAlldiv = false + }).catch(() => { + this.loadingAlldiv = false }) } }, diff --git a/lms/nladmin-ui/src/views/wms/st/outbill/StructIvt.vue b/lms/nladmin-ui/src/views/wms/st/outbill/StructIvt.vue index 5f12371a7..458a87810 100644 --- a/lms/nladmin-ui/src/views/wms/st/outbill/StructIvt.vue +++ b/lms/nladmin-ui/src/views/wms/st/outbill/StructIvt.vue @@ -15,7 +15,7 @@ 关闭 - 保存 + 保存 @@ -154,6 +154,7 @@ export default { return { dialogVisible: false, dialogVisible2: false, + fullscreenLoading: false, goal_unassign_qty: 0, queryrow: {}, sects: [], @@ -264,9 +265,13 @@ export default { rows.push(item) } }) + this.fullscreenLoading = true checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => { this.$emit('update:dialogShow', false) this.$emit('StructIvtClosed') + this.fullscreenLoading = false + }).catch(() => { + this.fullscreenLoading = false }) } else { this.$confirm('未分配重量不为0,是否继续提交?') @@ -277,9 +282,13 @@ export default { rows.push(item) } }) + this.fullscreenLoading = true checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => { this.$emit('update:dialogShow', false) this.$emit('StructIvtClosed') + this.fullscreenLoading = false + }).catch(() => { + this.fullscreenLoading = false }) }) .catch(_ => {