Browse Source

H平台出库前确认,判断任务失败的不能执行该操作

branch_ccpg_220107
44673626 3 years ago
parent
commit
06a08c2a71
  1. 17
      vue/src/views/ux/vw/dataInput/hq_h_report/index.vue

17
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:

Loading…
Cancel
Save