瀏覽代碼

[CODE]: 客户修改

maxianghua 4 年之前
父節點
當前提交
df464add3e
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/basicdata/corps/index.vue

+ 6 - 6
src/views/basicdata/corps/index.vue

@@ -690,9 +690,14 @@
         const fId = row.fId || this.ids
         getCorps(fId).then(response => {
           this.form = response.data["corp"];
+          var contactList1=response.data["customerContact"];
+          if(contactList1!=null){
+            this.contactList=contactList1;
+          }else {
+            this.query();
+          }
           this.open = true;
           this.title = "修改客户详情";
-          this.contactList=response.data["customerContact"];
         });
       },
       /** 提交按钮 */
@@ -700,11 +705,6 @@
         this.$refs["form"].validate(valid => {
           if (valid) {
             if (this.form.fId != null) {
-              /*updateCorps(this.form).then(response => {
-                this.msgSuccess("修改成功");
-                this.open = false;
-                this.getList();
-              });*/
               let formDate= new FormData()
               formDate.append('corps',JSON.stringify(this.form));
               formDate.append('customerContacts',JSON.stringify(this.contactList));