|
|
@ -688,6 +688,7 @@ export default { |
|
|
|
//已确认 |
|
|
|
handleConfirm(row) { |
|
|
|
this.isEdit = false; |
|
|
|
this.isTaskSuccess=false; |
|
|
|
if (this.multipleSelection.length == 0) { |
|
|
|
this.$message({ |
|
|
|
message: "至少选择一行!", |
|
|
@ -696,6 +697,7 @@ export default { |
|
|
|
return; |
|
|
|
} else { |
|
|
|
var getbillNum = ""; |
|
|
|
var getTaskState=""; |
|
|
|
//判断已经生成出库单的不能再生成出库操作 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let state = element.fileName; |
|
|
@ -703,8 +705,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: |
|
|
@ -761,6 +777,7 @@ export default { |
|
|
|
//出库单 |
|
|
|
handleCreateBills(row) { |
|
|
|
this.isEdit = false; |
|
|
|
this.isTaskSuccess=false; |
|
|
|
if (this.multipleSelection.length == 0) { |
|
|
|
this.$message({ |
|
|
|
message: "至少选择一行!", |
|
|
@ -769,6 +786,7 @@ export default { |
|
|
|
return; |
|
|
|
} else { |
|
|
|
var getbillNum = ""; |
|
|
|
var getTaskState=""; |
|
|
|
//判断已经生成出库单的不能再生成出库操作 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let state = element.fileName; |
|
|
@ -776,8 +794,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: |
|
|
|