[bug] 合同作废关联项目编辑合同号不显示placeholder问题

This commit is contained in:
zhaoxiao
2021-12-23 11:23:43 +08:00
parent 88a41cd4e8
commit 5be36d42f7
3 changed files with 4 additions and 0 deletions
@@ -366,6 +366,8 @@ export default {
})
}, 100)
}
// 合同作废后合同号是null,这里置为undefined
record.contractNo = record.contractNo || undefined
this.model = Object.assign({}, record)
// 编辑状态下的企业与联系人的回显
if (record.companyId) {
@@ -374,6 +374,7 @@ export default {
record.mailContactsId = this.signedContactId || record.mailContactsTemporaryId || undefined
// 回显选中的企业
this.selectedCompany = record.chargeCompany
record.contractNum = record.contractNum || undefined
this.form.resetFields()
this.model = Object.assign({}, record)
if (this.model.id) {
@@ -467,6 +467,7 @@ export default {
this.selectedCompany = record.chargeCompany
this.companyChange(this.selectedCompany)
this.form.resetFields()
record.contractNum = record.contractNum || undefined
this.model = Object.assign({}, record)
// 是否存在从收入合同传入的签订联系人id
this.model.contactsIdOne = this.signedContactId || this.model.contactsTemporaryIdOne || undefined