|
@@ -251,6 +251,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="form.contactName"
|
|
v-model="form.contactName"
|
|
|
@click.native="handleGetCus"
|
|
@click.native="handleGetCus"
|
|
|
|
|
+ readonly
|
|
|
:disabled="dialogType == 'view' || !!form.contractName"
|
|
:disabled="dialogType == 'view' || !!form.contractName"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -408,6 +409,7 @@
|
|
|
return [];
|
|
return [];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
deptTreeList: {
|
|
deptTreeList: {
|
|
|
type: Array,
|
|
type: Array,
|
|
|
default: () => {
|
|
default: () => {
|
|
@@ -487,6 +489,12 @@
|
|
|
message: '请输入项目预算',
|
|
message: '请输入项目预算',
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
},
|
|
},
|
|
|
|
|
+ contactName: {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请选择客户',
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
teamId: {
|
|
teamId: {
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请选择项目团队',
|
|
message: '请选择项目团队',
|
|
@@ -598,19 +606,19 @@
|
|
|
this.form = Object.assign({}, this.form, {
|
|
this.form = Object.assign({}, this.form, {
|
|
|
contactId: base.id,
|
|
contactId: base.id,
|
|
|
contactName: base.name,
|
|
contactName: base.name,
|
|
|
- contactRelationPhone: obj.phone,
|
|
|
|
|
|
|
+ contactRelationPhone:obj.linkPhone|| obj.phone,
|
|
|
contactRelationUserName: obj.linkName
|
|
contactRelationUserName: obj.linkName
|
|
|
});
|
|
});
|
|
|
if (other.addressId) {
|
|
if (other.addressId) {
|
|
|
this.form.contactAddressId =
|
|
this.form.contactAddressId =
|
|
|
other.addressId && other.addressId.split(',');
|
|
other.addressId && other.addressId.split(',');
|
|
|
this.form.contactAddressName = other.addressName;
|
|
this.form.contactAddressName = other.addressName;
|
|
|
- this.form.address = other.address;
|
|
|
|
|
|
|
+ this.form.contactAddress = other.address;
|
|
|
} else if (base.addressId) {
|
|
} else if (base.addressId) {
|
|
|
this.form.contactAddressId =
|
|
this.form.contactAddressId =
|
|
|
base.addressId && base.addressId.split(',');
|
|
base.addressId && base.addressId.split(',');
|
|
|
this.form.contactAddressName = base.addressName;
|
|
this.form.contactAddressName = base.addressName;
|
|
|
- this.form.address = base.address;
|
|
|
|
|
|
|
+ this.form.contactAddress = base.address;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
downloadFile(file) {
|
|
downloadFile(file) {
|