|
|
|
@ -66,6 +66,8 @@ export class MerchantListComponent implements OnInit { |
|
|
|
|
platformMerNumber: [null, [Validators.required]], |
|
|
|
|
profitSharingStatus: ['false', [Validators.required]], |
|
|
|
|
profitSharingRatio: [null], |
|
|
|
|
profitSharingReceiversNumber: [null], |
|
|
|
|
profitSharingReceiversName: [null], |
|
|
|
|
}); |
|
|
|
|
this.getRequest(true, this.searchForm.value); |
|
|
|
|
} |
|
|
|
@ -227,6 +229,17 @@ export class MerchantListComponent implements OnInit { |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this.tripartitePlatformForm.value.profitSharingStatus === 'true' |
|
|
|
|
&& (this.tripartitePlatformForm.value.profitSharingRatio == null || |
|
|
|
|
this.tripartitePlatformForm.value.profitSharingReceiversNumber == null || |
|
|
|
|
this.tripartitePlatformForm.value.profitSharingReceiversName == null)) { |
|
|
|
|
this.modal.warning({ |
|
|
|
|
nzTitle: '提示', |
|
|
|
|
nzContent: '请填写所有必填项', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.tripartitePlatformService.editTripartitePlatform(this.tripartitePlatformForm.value, data => { |
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
this.modal.success({ |
|
|
|
|