添加入账记录
This commit is contained in:
@ -27,9 +27,9 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
refundStatus: any = '';
|
||||
|
||||
msg = '';
|
||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) { }
|
||||
|
||||
ngOnInit(): void {}
|
||||
ngOnInit(): void { }
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
@ -42,6 +42,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
refundStatus: this.refundStatus || null
|
||||
});
|
||||
}
|
||||
delete requestOptions?.body?.expand;
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
@ -80,6 +81,10 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
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,
|
||||
@ -92,6 +97,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
this.st.load(1);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user