收入合同新增项目回显联系人、邮寄联系人;图标修改

This commit is contained in:
zhaoxiao
2021-09-18 18:10:02 +08:00
parent da4b9b8924
commit f1f554eb7a
5 changed files with 27 additions and 5 deletions
@@ -227,6 +227,12 @@ export default {
type: Boolean,
required: false,
default: false
},
// 企业的签订联系人id,收入合同新增企业联系人、邮寄联系人默认为签订联系人
signedContactId: {
type: String,
required: false,
default: undefined
}
},
data() {
@@ -338,8 +344,10 @@ export default {
companyName: record.chargeCompanyTemporaryName
}
}
record.contactsId = record.contactsTemporaryId
record.mailContactsId = record.mailContactsTemporaryId
// 是否存在从收入合同传入的签订联系人id
console.log(record, this.signedContactId)
record.contactsId = this.signedContactId || record.contactsTemporaryId || undefined
record.mailContactsId = this.signedContactId || record.mailContactsTemporaryId || undefined
// 回显选中的企业
this.selectedCompany = record.chargeCompany
this.form.resetFields()