修改禅道bug
This commit is contained in:
@@ -137,36 +137,42 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.dataSource = []
|
this.dataSource = []
|
||||||
this.dataSource.push({
|
if (this.standardContentListQuery.designDeliverableTypeName){
|
||||||
ProcessType: this.$t('designComplianceReview'),
|
this.dataSource.push({
|
||||||
InitiatorName: this.standardContentListQuery.designInitiatorName,
|
ProcessType: this.$t('designComplianceReview'),
|
||||||
DutyName: this.standardContentListQuery.designDutyName,
|
InitiatorName: this.standardContentListQuery.designInitiatorName,
|
||||||
DueDate: this.standardContentListQuery.designDueDate,
|
DutyName: this.standardContentListQuery.designDutyName,
|
||||||
DeliverableType: this.standardContentListQuery.designDeliverableTypeName,
|
DueDate: this.standardContentListQuery.designDueDate,
|
||||||
DeliverableTemplate: this.standardContentListQuery.designDeliverableTemplate,
|
DeliverableType: this.standardContentListQuery.designDeliverableTypeName,
|
||||||
DeliverableTemplateName: this.standardContentListQuery.designDeliverableTemplateName,
|
DeliverableTemplate: this.standardContentListQuery.designDeliverableTemplate,
|
||||||
remark: this.standardContentListQuery.designRemark
|
DeliverableTemplateName: this.standardContentListQuery.designDeliverableTemplateName,
|
||||||
})
|
remark: this.standardContentListQuery.designRemark
|
||||||
this.dataSource.push({
|
})
|
||||||
ProcessType: this.$t('preHomeConfirmation'),
|
}
|
||||||
InitiatorName: this.standardContentListQuery.prehomoInitiatorName,
|
if (this.standardContentListQuery.prehomoDeliverableTypeName){
|
||||||
DutyName: this.standardContentListQuery.prehomoDutyName,
|
this.dataSource.push({
|
||||||
DueDate: this.standardContentListQuery.prehomoDueDate,
|
ProcessType: this.$t('preHomeConfirmation'),
|
||||||
DeliverableType: this.standardContentListQuery.prehomoDeliverableTypeName,
|
InitiatorName: this.standardContentListQuery.prehomoInitiatorName,
|
||||||
DeliverableTemplate: this.standardContentListQuery.prehomoDeliverableTemplate,
|
DutyName: this.standardContentListQuery.prehomoDutyName,
|
||||||
DeliverableTemplateName: this.standardContentListQuery.prehomoDeliverableTemplateName,
|
DueDate: this.standardContentListQuery.prehomoDueDate,
|
||||||
remark: this.standardContentListQuery.prehomoRemark
|
DeliverableType: this.standardContentListQuery.prehomoDeliverableTypeName,
|
||||||
})
|
DeliverableTemplate: this.standardContentListQuery.prehomoDeliverableTemplate,
|
||||||
this.dataSource.push({
|
DeliverableTemplateName: this.standardContentListQuery.prehomoDeliverableTemplateName,
|
||||||
ProcessType: this.$t('verificationComplianceReview'),
|
remark: this.standardContentListQuery.prehomoRemark
|
||||||
InitiatorName: this.standardContentListQuery.verifyInitiatorName,
|
})
|
||||||
DutyName: this.standardContentListQuery.verifyDutyName,
|
}
|
||||||
DueDate: this.standardContentListQuery.verifyDueDate,
|
if (this.standardContentListQuery.verifyDeliverableTypeName){
|
||||||
DeliverableType: this.standardContentListQuery.verifyDeliverableTypeName,
|
this.dataSource.push({
|
||||||
DeliverableTemplate: this.standardContentListQuery.verifyDeliverableTemplate,
|
ProcessType: this.$t('verificationComplianceReview'),
|
||||||
DeliverableTemplateName: this.standardContentListQuery.verifyDeliverableTemplateName,
|
InitiatorName: this.standardContentListQuery.verifyInitiatorName,
|
||||||
remark: this.standardContentListQuery.verifyRemark
|
DutyName: this.standardContentListQuery.verifyDutyName,
|
||||||
})
|
DueDate: this.standardContentListQuery.verifyDueDate,
|
||||||
|
DeliverableType: this.standardContentListQuery.verifyDeliverableTypeName,
|
||||||
|
DeliverableTemplate: this.standardContentListQuery.verifyDeliverableTemplate,
|
||||||
|
DeliverableTemplateName: this.standardContentListQuery.verifyDeliverableTemplateName,
|
||||||
|
remark: this.standardContentListQuery.verifyRemark
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
|||||||
@@ -1355,27 +1355,50 @@
|
|||||||
let isTrue = true
|
let isTrue = true
|
||||||
this.detailedSuccessList = []
|
this.detailedSuccessList = []
|
||||||
this.detailedWarningList = []
|
this.detailedWarningList = []
|
||||||
|
let dataSource = []
|
||||||
for (let i = 0; i < this.dataSource.length; i++) {
|
for (let i = 0; i < this.dataSource.length; i++) {
|
||||||
for (let j = 0; j < selectedRowKeys.length; j++) {
|
for (let j = 0; j < selectedRowKeys.length; j++) {
|
||||||
if (this.dataSource[i].id == selectedRowKeys[j]) {
|
if (this.dataSource[i].id == selectedRowKeys[j]) {
|
||||||
if (this.dataSource[i].inventoryAffirmStatus == 'Not started' || this.dataSource[i].inventoryAffirmStatus == 'Rejected') {
|
dataSource.push(this.dataSource[i])
|
||||||
if (this.dataSource[i].homologationEngineerId && this.dataSource[i].regulationOwnerId) {
|
|
||||||
this.detailedSuccessList.push(this.dataSource[i])
|
|
||||||
} else {
|
|
||||||
this.detailedWarningList.push( < div > { this.dataSource[i].serialNumber + this.$t('TheEngineerAndCertification') } < /div>)
|
|
||||||
// this.$message.warning(this.dataSource[i].serialNumber + this.$t('TheEngineerAndCertification'))
|
|
||||||
// isTrue = false
|
|
||||||
// return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.detailedWarningList.push( < div > {this.dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected')} < /div>)
|
|
||||||
// this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected'))
|
|
||||||
// isTrue = false
|
|
||||||
// return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (let i = 0; i < dataSource.length; i++) {
|
||||||
|
if (dataSource[i].inventoryAffirmStatus == 'Not started' || dataSource[i].inventoryAffirmStatus == 'Rejected') {
|
||||||
|
if (dataSource[i].homologationEngineerId && dataSource[i].regulationOwnerId) {
|
||||||
|
if (dataSource[i].designDeliverableType){
|
||||||
|
if (!dataSource[i].designInitiatorId){
|
||||||
|
this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ','+this.$t('designComplianceReview')+ this.$t('Sponsor')+this.$t('cannotEmpty') } < /div>)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dataSource[i].prehomoDeliverableType){
|
||||||
|
if (!dataSource[i].prehomoInitiatorId){
|
||||||
|
this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ','+this.$t('preHomeConfirmation')+ this.$t('Sponsor')+this.$t('cannotEmpty') } < /div>)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dataSource[i].verifyDeliverableType){
|
||||||
|
if (!dataSource[i].verifyInitiatorId){
|
||||||
|
this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ','+this.$t('verificationComplianceReview')+ this.$t('Sponsor')+this.$t('cannotEmpty') } < /div>)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.detailedSuccessList.push(dataSource[i])
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.detailedWarningList.push( < div > { dataSource[i].serialNumber + this.$t('TheEngineerAndCertification') } < /div>)
|
||||||
|
// this.$message.warning(this.dataSource[i].serialNumber + this.$t('TheEngineerAndCertification'))
|
||||||
|
// isTrue = false
|
||||||
|
// return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.detailedWarningList.push( < div > {dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected')} < /div>)
|
||||||
|
// this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected'))
|
||||||
|
// isTrue = false
|
||||||
|
// return
|
||||||
|
}
|
||||||
|
}
|
||||||
if (this.detailedSuccessList && this.detailedSuccessList.length > 0) {
|
if (this.detailedSuccessList && this.detailedSuccessList.length > 0) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
@@ -1592,31 +1615,35 @@
|
|||||||
|
|
||||||
getRowKeys(value, callBack) {
|
getRowKeys(value, callBack) {
|
||||||
let isTrue = true
|
let isTrue = true
|
||||||
|
let dataSource = []
|
||||||
for (let i = 0; i < this.dataSource.length; i++) {
|
for (let i = 0; i < this.dataSource.length; i++) {
|
||||||
for (let j = 0; j < value.length; j++) {
|
for (let j = 0; j < value.length; j++) {
|
||||||
if (this.dataSource[i].id == value[j]) {
|
if (this.dataSource[i].id == value[j]) {
|
||||||
if (this.dataSource[i].inventoryAffirmStatus == 'List to confirm') {
|
dataSource.push(this.dataSource[i])
|
||||||
if (this.dataSource[i].roleCode == 1 && this.dataSource[i].regulationOwnerSubmitStatus) {
|
|
||||||
isTrue = false
|
|
||||||
this.$message.warning(this.$t('The') + (i + 1) + this.$t('submitted'))
|
|
||||||
return
|
|
||||||
} else if (this.dataSource[i].roleCode == 2 && this.dataSource[i].homologationEngineerSubmitStatus) {
|
|
||||||
isTrue = false
|
|
||||||
this.$message.warning(this.$t('The') + (i + 1) + this.$t('submitted'))
|
|
||||||
return
|
|
||||||
} else if (this.dataSource[i].roleCode == 4 && (this.dataSource[i].homologationEngineerSubmitStatus && this.dataSource[i].regulationOwnerSubmitStatus)) {
|
|
||||||
isTrue = false
|
|
||||||
this.$message.warning(this.$t('The') + (i + 1) + this.$t('submitted'))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
isTrue = false
|
|
||||||
this.$message.warning(this.$t('The') + (i + 1) + this.$t('incorrectsubmitted'))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (let i = 0; i < dataSource.length; i++) {
|
||||||
|
if (dataSource[i].inventoryAffirmStatus == 'List to confirm') {
|
||||||
|
if (dataSource[i].roleCode == 1 && dataSource[i].regulationOwnerSubmitStatus) {
|
||||||
|
isTrue = false
|
||||||
|
this.$message.warning(this.$t('The') + (i + 1) + this.$t('submitted'))
|
||||||
|
return
|
||||||
|
} else if (dataSource[i].roleCode == 2 && dataSource[i].homologationEngineerSubmitStatus) {
|
||||||
|
isTrue = false
|
||||||
|
this.$message.warning(this.$t('The') + (i + 1) + this.$t('submitted'))
|
||||||
|
return
|
||||||
|
} else if (dataSource[i].roleCode == 4 && (dataSource[i].homologationEngineerSubmitStatus && dataSource[i].regulationOwnerSubmitStatus)) {
|
||||||
|
isTrue = false
|
||||||
|
this.$message.warning(this.$t('The') + (i + 1) + this.$t('submitted'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
isTrue = false
|
||||||
|
this.$message.warning(this.$t('The') + (i + 1) + this.$t('incorrectsubmitted'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
if (isTrue) {
|
if (isTrue) {
|
||||||
callBack()
|
callBack()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user