|
@@ -523,6 +523,7 @@
|
|
<vxe-table
|
|
<vxe-table
|
|
border
|
|
border
|
|
show-overflow
|
|
show-overflow
|
|
|
|
+ :key="clientTableKey"
|
|
ref="clientTable"
|
|
ref="clientTable"
|
|
class="vxe-table-element"
|
|
class="vxe-table-element"
|
|
:data="inputForm.clientList"
|
|
:data="inputForm.clientList"
|
|
@@ -754,6 +755,7 @@
|
|
equityList: [], // 产权持有人联系人
|
|
equityList: [], // 产权持有人联系人
|
|
clientList: [] // 项目直接对接联系人
|
|
clientList: [] // 项目直接对接联系人
|
|
},
|
|
},
|
|
|
|
+ clientTableKey: 'default',
|
|
clientTypes: [
|
|
clientTypes: [
|
|
{value: '1', label: '委托人'},
|
|
{value: '1', label: '委托人'},
|
|
{value: '2', label: '项目对接人'}
|
|
{value: '2', label: '项目对接人'}
|
|
@@ -973,6 +975,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getContract (row) {
|
|
getContract (row) {
|
|
|
|
+ console.log(row)
|
|
this.inputForm.contractId = row.id // 合同id
|
|
this.inputForm.contractId = row.id // 合同id
|
|
this.inputForm.contractName = row.name // 合同名称
|
|
this.inputForm.contractName = row.name // 合同名称
|
|
this.inputForm.client = row.clientId // 委托方
|
|
this.inputForm.client = row.clientId // 委托方
|
|
@@ -1012,12 +1015,25 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getContact (rows, deputy) {
|
|
getContact (rows, deputy) {
|
|
- if (deputy === '0') {
|
|
|
|
- rows.forEach(item => {
|
|
|
|
- this.inputForm.clientList.push(item)
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- this.$forceUpdate()
|
|
|
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.clientList)) {
|
|
|
|
+ this.inputForm.clientList.forEach(item => {
|
|
|
|
+ rows.forEach(row => {
|
|
|
|
+ if (item.contacts === row.contacts && item.linkMobilePhoneFirst === row.linkMobilePhoneFirst && item.linkMobilePhoneSecoed === row.linkMobilePhoneSecoed) {
|
|
|
|
+ this.$message.error('联系人已存在')
|
|
|
|
+ throw new Error()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ if (deputy === '0') {
|
|
|
|
+ rows.forEach(item => {
|
|
|
|
+ this.inputForm.clientList.push(item)
|
|
|
|
+ this.clientTableKey = Math.random()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ })
|
|
},
|
|
},
|
|
openWorkClientForm (deputy) {
|
|
openWorkClientForm (deputy) {
|
|
if (!this.commonJS.isEmpty(this.inputForm.propertyHolder)) {
|
|
if (!this.commonJS.isEmpty(this.inputForm.propertyHolder)) {
|