|  | @@ -562,7 +562,7 @@
 | 
	
		
			
				|  |  |      methods: {
 | 
	
		
			
				|  |  |        // 客户类别默认为客户结算方式默认月结
 | 
	
		
			
				|  |  |        query() {
 | 
	
		
			
				|  |  | -        this.$set(this.form, "fStltypeid", "月结");
 | 
	
		
			
				|  |  | +        this.$set(this.form, "fStltypeid", 1);
 | 
	
		
			
				|  |  |          this.$set(this.form, "fTypeid", "1");
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 添加行
 | 
	
	
		
			
				|  | @@ -641,6 +641,10 @@
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |          this.resetForm("form");
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | +      // 从表重置
 | 
	
		
			
				|  |  | +      contList() {
 | 
	
		
			
				|  |  | +        this.contactList = []
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |        // 状态修改
 | 
	
		
			
				|  |  |        handleStatusChange(row) {
 | 
	
		
			
				|  |  |          let text = row.fStatus === "0" ? "启用" : "停用";
 | 
	
	
		
			
				|  | @@ -676,6 +680,7 @@
 | 
	
		
			
				|  |  |        handleAdd() {
 | 
	
		
			
				|  |  |          this.reset();
 | 
	
		
			
				|  |  |          this.query();
 | 
	
		
			
				|  |  | +        this.contList();
 | 
	
		
			
				|  |  |          this.open = true;
 | 
	
		
			
				|  |  |          this.title = "添加客户详情";
 | 
	
		
			
				|  |  |        },
 | 
	
	
		
			
				|  | @@ -695,7 +700,15 @@
 | 
	
		
			
				|  |  |          this.$refs["form"].validate(valid => {
 | 
	
		
			
				|  |  |            if (valid) {
 | 
	
		
			
				|  |  |              if (this.form.fId != null) {
 | 
	
		
			
				|  |  | -              updateCorps(this.form).then(response => {
 | 
	
		
			
				|  |  | +              /*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));
 | 
	
		
			
				|  |  | +              addCorps(formDate).then(response => {
 | 
	
		
			
				|  |  |                  this.msgSuccess("修改成功");
 | 
	
		
			
				|  |  |                  this.open = false;
 | 
	
		
			
				|  |  |                  this.getList();
 |