diff --git a/src/views/collect/IoCreateOrder.vue b/src/views/collect/IoCreateOrder.vue index 5ac5748e..6dfb54b3 100644 --- a/src/views/collect/IoCreateOrder.vue +++ b/src/views/collect/IoCreateOrder.vue @@ -1746,19 +1746,28 @@ export default { } this.saveLoading = true if (this.orderFormData.billNo != null) { - deleteByOrderId(tQuery).then((response) => { - this.saveLoading = false - if (response.code === 20000) { - this.$message.success('放弃成功') - this.successCloseData() - this.result = '' - this.$refs.inputRef.focus() - } else { - this.$message.error(response.message) - } - this.loading = false - this.saveLoading = false + this.$confirm('是否确定取消此次上货?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + deleteByOrderId(tQuery).then((response) => { + this.saveLoading = false + if (response.code === 20000) { + this.$message.success('取消上货成功') + this.successCloseData() + this.result = '' + this.$refs.inputRef.focus() + } else { + this.$message.error(response.message) + } + this.loading = false + this.saveLoading = false + }) + }).catch(() => { + }) + } else { this.successCloseData() this.result = '' diff --git a/src/views/collect/device/DevicesDealOrderPre.vue b/src/views/collect/device/DevicesDealOrderPre.vue index 5090b35b..59d542c5 100644 --- a/src/views/collect/device/DevicesDealOrderPre.vue +++ b/src/views/collect/device/DevicesDealOrderPre.vue @@ -585,7 +585,6 @@ export default { selectPrescribeDialog, prescribeCodePanel, PanelOrderManuTagCode, prescribeOriginPanel, - PannelOrderBiz, DialogCreateOrderSelect, PanelOrderAllDetail }, diff --git a/src/views/collect/device/DevicesIoCreateOrder.vue b/src/views/collect/device/DevicesIoCreateOrder.vue index 3e5e8dc7..6abfdd27 100644 --- a/src/views/collect/device/DevicesIoCreateOrder.vue +++ b/src/views/collect/device/DevicesIoCreateOrder.vue @@ -47,7 +47,7 @@ 放弃 + >取消上货 @@ -1746,25 +1746,36 @@ export default { } this.saveLoading = true if (this.orderFormData.billNo != null) { - deleteByOrderId(tQuery).then((response) => { - this.saveLoading = false - if (response.code === 20000) { - this.$message.success('放弃成功') - this.successCloseData() - this.result = '' - this.$refs.inputRef.focus() - } else { - this.$message.error(response.message) - } - this.loading = false - this.saveLoading = false + this.$confirm('是否确定取消此次上货?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + deleteByOrderId(tQuery).then((response) => { + this.saveLoading = false + if (response.code === 20000) { + this.$message.success('取消上货成功') + this.successCloseData() + this.result = '' + this.$refs.inputRef.focus() + } else { + this.$message.error(response.message) + } + this.loading = false + this.saveLoading = false + }) + }).catch(() => { + }) + } else { this.successCloseData() this.result = '' this.$refs.inputRef.focus() } - + this.sharedData = 'over' + //上货页面完成 发送 over 给tabs 页面 + EventBus.$emit('update-data', { message: this.sharedData }); }, // 刷新表单 resetForm() {