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

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
@@ -251,6 +251,12 @@ export default {
type: Boolean,
required: false,
default: false
},
// 企业的签订联系人id,收入合同新增企业联系人、邮寄联系人默认为签订联系人
signedContactId: {
type: String,
required: false,
default: undefined
}
},
data() {
@@ -352,6 +358,9 @@ export default {
})
}
},
/**
* 获取工作组列表
*/
loadWorkingGroupList() {
let param = {
companyId: this.defaultChargeCompany.id
@@ -379,12 +388,16 @@ export default {
}
// 回显选中的企业
this.selectedCompany = record.chargeCompany
this.companyChange(this.selectedCompany)
this.form.resetFields()
this.model = Object.assign({}, record)
this.model.contactsIdOne = this.model.contactsTemporaryIdOne || undefined
console.log(this.signedContactId)
// 是否存在从收入合同传入的签订联系人id
this.model.contactsIdOne = this.signedContactId || this.model.contactsTemporaryIdOne || undefined
this.model.contactsIdTwo = this.model.contactsTemporaryIdTwo || undefined
this.model.contactsIdThree = this.model.contactsTemporaryIdThree || undefined
this.model.mailContactsId = this.model.mailContactsTemporaryId || undefined
// 是否存在从收入合同传入的签订联系人id
this.model.mailContactsId = this.signedContactId || this.model.mailContactsTemporaryId || undefined
if (this.model.id) {
this.selectedContact1 = {
id: this.model.contactsTemporaryIdOne,
@@ -483,7 +496,7 @@ export default {
this.pickChargeNoticeType(chargeNoticeNo)
},
/**
* 匹配显隐
* 匹配收费通知显隐
* @param value
*/
pickChargeNoticeType(value) {