diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index a61672efa..39924c876 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -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 } }) } } diff --git a/jero-web/src/views/projectManagement/components/listEditModel.vue b/jero-web/src/views/projectManagement/components/listEditModel.vue index ed29e8b10..888cc6781 100644 --- a/jero-web/src/views/projectManagement/components/listEditModel.vue +++ b/jero-web/src/views/projectManagement/components/listEditModel.vue @@ -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 }