This commit is contained in:
wangshiming
2022-05-06 17:19:16 +08:00
parent f465578e7f
commit 9c3d26fb81
3 changed files with 19 additions and 2 deletions

View File

@ -83,6 +83,12 @@ export class WithdrawalsRecordComponent extends BasicTableComponent {
if (item) {
params = [item.id];
} else {
console.log(this.selectedRows);
if (this.selectedRows.length <= 0) {
this.service.msgSrv.error('请选择提现单!');
return;
}
params = this.selectedRows.map(node => node.id);
}
const modal = this.nzModalService.create({

View File

@ -107,6 +107,11 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni
if (item) {
params = [item.id];
} else {
if (this.selectedRows.length <= 0) {
this.service.msgSrv.error('请选择提现单!');
return;
}
params = this.selectedRows.map(node => node.id);
}
const modal = this.nzModalService.create({
@ -117,6 +122,10 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni
label: '拒绝',
type: 'default',
onClick: () => {
if (!this.msg || this.msg.trim().length === 0) {
this.service.msgSrv.warning('请填写拒绝原因 ');
return false;
}
this.service
.request(this.service.$api_disagree_refund, {
refundApplicationId: params,
@ -129,6 +138,8 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni
this.st.load(1);
}
});
return false;
}
},
{