|
|
@ -967,7 +967,8 @@ export default { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} else { |
|
|
|
var getbillNum = ""; |
|
|
|
var getbillNum = ""; |
|
|
|
var getTaskState=""; |
|
|
|
//判断已经生成出库单的不能再生成出库操作 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let state = element.fileName; |
|
|
@ -975,7 +976,21 @@ 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({ |
|
|
@ -1041,6 +1056,7 @@ export default { |
|
|
|
return; |
|
|
|
} else { |
|
|
|
var getbillNum = ""; |
|
|
|
var getTaskState=""; |
|
|
|
//判断已经生成出库单的不能再生成出库操作 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let state = element.fileName; |
|
|
@ -1048,8 +1064,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: |
|
|
|