|
@@ -21,7 +21,11 @@
|
|
|
<template v-if="$parent.formData.customerType == 2">
|
|
|
<el-col :span="12"
|
|
|
><el-form-item label="客户名称" prop="customerName">
|
|
|
- <el-input v-model="$parent.formData.customerName" placeholder="请输入客户名称"></el-input> </el-form-item
|
|
|
+ <el-input
|
|
|
+ v-model="$parent.formData.customerName"
|
|
|
+ placeholder="请输入客户名称"
|
|
|
+ @change="userNames($parent.formData.customerName)"
|
|
|
+ ></el-input> </el-form-item
|
|
|
></el-col>
|
|
|
<el-col :span="12"
|
|
|
><el-form-item label="客户手机" prop="customerPhone">
|
|
@@ -207,10 +211,13 @@ export default {
|
|
|
this.$parent.formData.customerPhone = res.contactPhone;
|
|
|
this.$parent.formData.customerAddress = res.address;
|
|
|
this.$parent.formData.idCardNo = res.contactIdCard;
|
|
|
-
|
|
|
+ this.$parent.formData.userName = res.name;
|
|
|
this.$parent.formData.customerName = res.contactName;
|
|
|
this.$parent.formData.companyId = res.id;
|
|
|
});
|
|
|
+ },
|
|
|
+ userNames(name) {
|
|
|
+ this.$parent.formData.userName = name;
|
|
|
}
|
|
|
},
|
|
|
created() {
|