From 341d00754864851eed5ebed0f9f2b8c3ef19fad2 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Fri, 10 Jan 2025 10:27:36 +0800 Subject: [PATCH] =?UTF-8?q?1/10=20=E5=8F=96=E6=B6=88=E6=A0=A1=E9=AA=8C1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/collect/splitCreateOrder.js | 8 +++ src/views/collect/IocCollectOrderVerify.vue | 65 ++++++++++++++++++++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/src/api/collect/splitCreateOrder.js b/src/api/collect/splitCreateOrder.js index fff92c4a..a623dabe 100644 --- a/src/api/collect/splitCreateOrder.js +++ b/src/api/collect/splitCreateOrder.js @@ -113,3 +113,11 @@ export function commitCheckCodeOrder(query) { data: query }); } + +export function deleteCodes(query) { + return axios({ + url: "/udiwms/basic/collect/IoCollectCodeBackup/deleteCodes", + method: "post", + data: query + }); +} diff --git a/src/views/collect/IocCollectOrderVerify.vue b/src/views/collect/IocCollectOrderVerify.vue index f5d47a93..d37bab0a 100644 --- a/src/views/collect/IocCollectOrderVerify.vue +++ b/src/views/collect/IocCollectOrderVerify.vue @@ -5,6 +5,18 @@ + 取消校验 + + + + + + + { + // this.getResultDetailList() + // this.initData() + // this.$message.success("取消成功") + // }).catch(() => { + // + // }) + // + // }, + abandonOrder(){ + let query = { + billNo : this.orderData.billNo, + selectType : 2 + } + this.$confirm('是否取消当前单据校验', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + center: true, + closeOnPressEscape: false,//按下 ESC 键关闭弹窗 + closeOnClickModal: false,//点击遮罩关闭弹窗 + distinguishCancelAndClose: true//区分取消与关闭 + }).then(() => { + deleteCodes(query).then(res => { + if (res.code == 20000){ + this.init() + this.$message.success("取消成功") + }else { + this.$message.success(res.message) + } + }) + + }).catch(() => { + + }) + }, initData(){ this.scanCode = '' this.$refs.inputRef.focus()