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()