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: