浏览代码

设置合同

Shannon_mu 2 年之前
父节点
当前提交
673b0c003c

+ 1 - 1
operationSupport/src/views/businessManagement/contractManagement/index.vue

@@ -93,7 +93,7 @@ export default {
                 },
                 {
                     label: '客户名称',
-                    prop: 'customerName'
+                    prop: 'userName'
                 },
                 {
                     label: '客户类型',

+ 2 - 1
operationSupport/src/views/businessManagement/contractManagement/stepPage/add.vue

@@ -50,7 +50,8 @@ export default {
                 customerPhone: '',
                 customerAddress: '',
                 idCardNo:'',
-                contractHouseDtoList: []
+                contractHouseDtoList: [],
+                userName:"",
             },
 
             //租赁规则

+ 9 - 2
operationSupport/src/views/businessManagement/contractManagement/stepPage/firstStep.vue

@@ -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() {