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

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) { editModel(value) {
// this.formInline = {} this.formInline = {}
this.visible = true this.visible = true
this.formInline = JSON.parse(JSON.stringify(value)) this.formInline = JSON.parse(JSON.stringify(value))
// if (this.formInline.deliverableType) { // if (this.formInline.deliverableType) {
@@ -644,7 +644,7 @@
this.getRegulationNo() this.getRegulationNo()
this.title = this.$t('edit') this.title = this.$t('edit')
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = {...this.formInline} this.formInline = { ...this.formInline }
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
}, },
@@ -773,7 +773,7 @@
}, },
dutyHandleChange(index) { dutyHandleChange(index) {
this.formInline.dataList[index].sdt = undefined this.formInline.dataList[index].sdt = undefined
this.formInline = {... this.formInline} this.formInline = { ...this.formInline }
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory, index) this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory, index)
}, },
queryPersonByProject(row, index) { queryPersonByProject(row, index) {
@@ -785,10 +785,18 @@
if (res.success) { if (res.success) {
if (this.formInline.id) { if (this.formInline.id) {
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] //工程接口人 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 { } else {
this.$nextTick(()=>{ this.$nextTick(() => {
this.formInline.dataList[index].engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] 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.engineeringInterfacePerson = undefined
this.formInline.homologationEngineerId = undefined this.formInline.homologationEngineerId = undefined
this.formInline.designInitiatorId = undefined this.formInline.designInitiatorId = undefined
this.formInline.designDutyId = undefined // this.formInline.designDutyId = undefined
this.formInline.prehomoInitiatorId = undefined this.formInline.prehomoInitiatorId = undefined
this.formInline.prehomoDutyId = undefined this.formInline.prehomoDutyId = undefined
this.formInline.verifyInitiatorId = undefined this.formInline.verifyInitiatorId = undefined
this.formInline.verifyDutyId = undefined // this.formInline.verifyDutyId = undefined
this.queryPersonByProject(event) this.queryPersonByProject(event)
}, },
@@ -1158,9 +1158,9 @@
if (!(this.designInitiatorList.some(val => val.value == row.designInitiatorId))) { if (!(this.designInitiatorList.some(val => val.value == row.designInitiatorId))) {
row.designInitiatorId = undefined row.designInitiatorId = undefined
} }
if (!(this.designDutyList.some(val => val.value == row.designDutyId))) { // if (!(this.designDutyList.some(val => val.value == row.designDutyId))) {
row.designDutyId = undefined // row.designDutyId = undefined
} // }
if (!(this.prehomoInitiatorList.some(val => val.value == row.prehomoInitiatorId))) { if (!(this.prehomoInitiatorList.some(val => val.value == row.prehomoInitiatorId))) {
row.prehomoInitiatorId = undefined row.prehomoInitiatorId = undefined
} }
@@ -1170,9 +1170,9 @@
if (!(this.verifyInitiatorList.some(val => val.value == row.verifyInitiatorId))) { if (!(this.verifyInitiatorList.some(val => val.value == row.verifyInitiatorId))) {
row.verifyInitiatorId = undefined row.verifyInitiatorId = undefined
} }
if (!(this.verifyDutyList.some(val => val.value == row.verifyDutyId))) { // if (!(this.verifyDutyList.some(val => val.value == row.verifyDutyId))) {
row.verifyDutyId = undefined // row.verifyDutyId = undefined
} // }
if (!(this.regulatoryEngineerList.some(val => val.value == row.regulationOwnerId))) { if (!(this.regulatoryEngineerList.some(val => val.value == row.regulationOwnerId))) {
row.regulationOwnerId = undefined row.regulationOwnerId = undefined
} }