From 06a08c2a714264b081b78476df551d5172f356ec Mon Sep 17 00:00:00 2001 From: 44673626 <44673626@qq.com> Date: Wed, 12 Jan 2022 10:45:55 +0800 Subject: [PATCH] =?UTF-8?q?H=E5=B9=B3=E5=8F=B0=E5=87=BA=E5=BA=93=E5=89=8D?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=EF=BC=8C=E5=88=A4=E6=96=AD=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E4=B8=8D=E8=83=BD=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E8=AF=A5=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/ux/vw/dataInput/hq_h_report/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/vue/src/views/ux/vw/dataInput/hq_h_report/index.vue b/vue/src/views/ux/vw/dataInput/hq_h_report/index.vue index cd1a8679..7c576835 100644 --- a/vue/src/views/ux/vw/dataInput/hq_h_report/index.vue +++ b/vue/src/views/ux/vw/dataInput/hq_h_report/index.vue @@ -570,6 +570,7 @@ export default { multipleSelection: [], tableHeight: document.documentElement.clientHeight - 260, isEdit: false, + isTaskSuccess:false, menuCateMap: [ { label: "导出", value: "导出", cssName: "warning" }, { label: "消息", value: "消息", cssName: "info" }, @@ -689,6 +690,7 @@ export default { //已确认 handleConfirm(row) { this.isEdit = false; + this.isTaskSuccess=false; if (this.multipleSelection.length == 0) { this.$message({ message: "至少选择一行!", @@ -697,6 +699,7 @@ export default { return; } else { var getbillNum = ""; + var getTaskState=""; //判断已经生成出库单的不能再生成出库操作 this.multipleSelection.forEach((element) => { let state = element.fileName; @@ -704,8 +707,22 @@ export default { this.isEdit = true; getbillNum += state + ","; } + else if(element.stateName != "Succeeded"){ + this.isTaskSuccess=true; + getTaskState+=element.taskId; + } }); } + //任务不成功的不能单击确认 + if(this.isTaskSuccess == true){ + this.$message({ + message: + "有未成功的任务请确认!单据流水号:" + + getTaskState.substr(0, getTaskState.length - 1), + type: "warning", + }); + return; + } if (this.isEdit == true) { this.$message({ message: