yusheng 1 年間 前
コミット
444a509ac2

+ 11 - 3
src/views/project-manage/project-initiation/components/project-form.vue

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