”结果待提交“的时候才能引用交付物

This commit is contained in:
范强强
2023-03-27 11:56:27 +08:00
parent 17fe6da36a
commit 1a2b690a91
3 changed files with 15 additions and 1 deletions
+1
View File
@@ -1715,4 +1715,5 @@ module.exports = {
reasonForReturn:'Reason For Return',
pleaseFillInTheInformationTaskProcess:'Please fill in the information of the project interface person and responsible person before initiating the task process',
complianceReporting:'Compliance Reporting',
youCanOnlySelectStatusClearSubmit:'You can only select data with a process status of Clear to Submit',
}
+1
View File
@@ -1815,4 +1815,5 @@ module.exports = {
reasonForReturn:'退回原因',
pleaseFillInTheInformationTaskProcess:'请填写工程接口人和责任人信息后再发起任务流程',
complianceReporting:'合规报告',
youCanOnlySelectStatusClearSubmit:'只能选择流程状态为清单待提交的数据',
}
@@ -1379,7 +1379,19 @@
//引用交付物
referenceDeliverablesClick() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
let isTrue
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
isTrue = true
}else{
isTrue = false
this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit'))
return
}
}
if (isTrue){
this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
}
} else {
this.$message.warning(this.$t('selectLeastOne'))
}