添加入账记录

This commit is contained in:
潘晓云
2022-03-11 16:16:15 +08:00
parent a31290acf8
commit 867a975a92
9 changed files with 191 additions and 120 deletions

View File

@ -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;
}
},
{