修改任务清单发起的逻辑
This commit is contained in:
@@ -796,4 +796,7 @@ module.exports = {
|
|||||||
preHomeConfirmation:'Pre home confirmation',
|
preHomeConfirmation:'Pre home confirmation',
|
||||||
verificationComplianceReview:'Verification compliance review',
|
verificationComplianceReview:'Verification compliance review',
|
||||||
Deployment:'Deployment',
|
Deployment:'Deployment',
|
||||||
|
pleaseDesignConformityConfirmation:'Please complete the data of design conformity confirmation',
|
||||||
|
pleaseConfirmedByPrehomo:'Please complete the data confirmed by prehomo',
|
||||||
|
pleaseConformityVerification:'Please complete the data of Conformity verification',
|
||||||
}
|
}
|
||||||
@@ -801,4 +801,7 @@ module.exports = {
|
|||||||
designComplianceReview: '设计符合性审查',
|
designComplianceReview: '设计符合性审查',
|
||||||
preHomeConfirmation: 'Pre-Home确认',
|
preHomeConfirmation: 'Pre-Home确认',
|
||||||
verificationComplianceReview: '验证符合性审查',
|
verificationComplianceReview: '验证符合性审查',
|
||||||
|
pleaseDesignConformityConfirmation: '请补全设计符合性确认的数据',
|
||||||
|
pleaseConfirmedByPrehomo: '请补全 PreHomo确认的数据',
|
||||||
|
pleaseConformityVerification: '请补全验证符合性确认的数据'
|
||||||
}
|
}
|
||||||
@@ -873,10 +873,36 @@
|
|||||||
if (this.dataSource[i].id == selectedRowKeys[j]) {
|
if (this.dataSource[i].id == selectedRowKeys[j]) {
|
||||||
if ((this.dataSource[i].taskAffirmStatus == 'Not started' || this.dataSource[i].taskAffirmStatus == 'rejected') &&
|
if ((this.dataSource[i].taskAffirmStatus == 'Not started' || this.dataSource[i].taskAffirmStatus == 'rejected') &&
|
||||||
this.dataSource[i].engineeringInterfacePerson && this.dataSource[i].inventoryAffirmStatus == 'accepted') {
|
this.dataSource[i].engineeringInterfacePerson && this.dataSource[i].inventoryAffirmStatus == 'accepted') {
|
||||||
|
if ((this.dataSource[i].verifyDueDate && this.dataSource[i].verifyDutyId
|
||||||
|
&& this.dataSource[i].verifyInitiatorId && this.dataSource[i].verifyDeliverableType) ||
|
||||||
|
(!this.dataSource[i].verifyDueDate && !this.dataSource[i].verifyDutyId
|
||||||
|
&& !this.dataSource[i].verifyInitiatorId && !this.dataSource[i].verifyDeliverableType)) {
|
||||||
isTrue = true
|
isTrue = true
|
||||||
// if (this.dataSource[i]){
|
}else{
|
||||||
//
|
isTrue = false
|
||||||
// }
|
this.$message.warning(this.$t('pleaseConformityVerification'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if ((this.dataSource[i].prehomoDueDate && this.dataSource[i].prehomoDutyId
|
||||||
|
&& this.dataSource[i].prehomoInitiatorId && this.dataSource[i].prehomoDeliverableType) ||
|
||||||
|
(!this.dataSource[i].prehomoDueDate && !this.dataSource[i].prehomoDutyId
|
||||||
|
&& !this.dataSource[i].prehomoInitiatorId && !this.dataSource[i].prehomoDeliverableType)){
|
||||||
|
isTrue = true
|
||||||
|
}else{
|
||||||
|
isTrue = false
|
||||||
|
this.$message.warning(this.$t('pleaseConfirmedByPrehomo'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if ((this.dataSource[i].designDueDate && this.dataSource[i].designDutyId
|
||||||
|
&& this.dataSource[i].designInitiatorId && this.dataSource[i].designDeliverableType) ||
|
||||||
|
(!this.dataSource[i].designDueDate && !this.dataSource[i].designDutyId
|
||||||
|
&& !this.dataSource[i].designInitiatorId && !this.dataSource[i].designDeliverableType)){
|
||||||
|
isTrue = true
|
||||||
|
}else{
|
||||||
|
isTrue = false
|
||||||
|
this.$message.warning(this.$t('pleaseDesignConformityConfirmation'))
|
||||||
|
return
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
isTrue = false
|
isTrue = false
|
||||||
this.$message.warning(this.$t('taskDataConfirmation'))
|
this.$message.warning(this.$t('taskDataConfirmation'))
|
||||||
|
|||||||
Reference in New Issue
Block a user