|
@@ -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));
|