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(_ => {