修改法规清单的流程状态弹框、批量设置、编辑

This commit is contained in:
范强强
2023-03-23 09:27:28 +08:00
parent e8c9839ea5
commit 89d818d587
2 changed files with 21 additions and 13 deletions
@@ -632,7 +632,7 @@
})
},
editModel(value) {
// this.formInline = {}
this.formInline = {}
this.visible = true
this.formInline = JSON.parse(JSON.stringify(value))
// if (this.formInline.deliverableType) {
@@ -644,7 +644,7 @@
this.getRegulationNo()
this.title = this.$t('edit')
this.$nextTick(() => {
this.formInline = {...this.formInline}
this.formInline = { ...this.formInline }
this.$refs.ruleForm.clearValidate()
})
},
@@ -773,7 +773,7 @@
},
dutyHandleChange(index) {
this.formInline.dataList[index].sdt = undefined
this.formInline = {... this.formInline}
this.formInline = { ...this.formInline }
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory, index)
},
queryPersonByProject(row, index) {
@@ -785,10 +785,18 @@
if (res.success) {
if (this.formInline.id) {
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] //工程接口人
if (res.result.engineeringInterfacePersonList && res.result.engineeringInterfacePersonList.length == 1){
this.formInline.sdt = res.result.engineeringInterfacePersonList[0].value
}else if(this.engineeringInterfacePersonList.length == 0){
this.formInline.sdt = undefined
}
} else {
this.$nextTick(()=>{
this.$nextTick(() => {
this.formInline.dataList[index].engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || []
this.formInline = {...this.formInline}
if (res.result.engineeringInterfacePersonList && res.result.engineeringInterfacePersonList.length == 1) {
this.formInline.dataList[index].sdt = res.result.engineeringInterfacePersonList[0].value
}
this.formInline = { ...this.formInline }
})
}
}
@@ -1022,11 +1022,11 @@
this.formInline.engineeringInterfacePerson = undefined
this.formInline.homologationEngineerId = undefined
this.formInline.designInitiatorId = undefined
this.formInline.designDutyId = undefined
// this.formInline.designDutyId = undefined
this.formInline.prehomoInitiatorId = undefined
this.formInline.prehomoDutyId = undefined
this.formInline.verifyInitiatorId = undefined
this.formInline.verifyDutyId = undefined
// this.formInline.verifyDutyId = undefined
this.queryPersonByProject(event)
},
@@ -1158,9 +1158,9 @@
if (!(this.designInitiatorList.some(val => val.value == row.designInitiatorId))) {
row.designInitiatorId = undefined
}
if (!(this.designDutyList.some(val => val.value == row.designDutyId))) {
row.designDutyId = undefined
}
// if (!(this.designDutyList.some(val => val.value == row.designDutyId))) {
// row.designDutyId = undefined
// }
if (!(this.prehomoInitiatorList.some(val => val.value == row.prehomoInitiatorId))) {
row.prehomoInitiatorId = undefined
}
@@ -1170,9 +1170,9 @@
if (!(this.verifyInitiatorList.some(val => val.value == row.verifyInitiatorId))) {
row.verifyInitiatorId = undefined
}
if (!(this.verifyDutyList.some(val => val.value == row.verifyDutyId))) {
row.verifyDutyId = undefined
}
// if (!(this.verifyDutyList.some(val => val.value == row.verifyDutyId))) {
// row.verifyDutyId = undefined
// }
if (!(this.regulatoryEngineerList.some(val => val.value == row.regulationOwnerId))) {
row.regulationOwnerId = undefined
}