This commit is contained in:
Taric Xin
2022-01-19 14:02:10 +08:00
parent d3246222f7
commit eb42a89f0f
6 changed files with 152 additions and 41 deletions

View File

@ -176,8 +176,14 @@ export class RechargeRecordComponent implements OnInit {
className: 'text-center',
buttons: [
{
text: '查看回单'
// click: item => this.router.navigate(['/financial-management/freight-account/detail/1'])
text: '查看回单',
click: item =>
this.service.getReceiptUrl(item.receiptUrl, {
bankType: item.bankType,
rmYll: item.roleId,
snglFlgCd: item.paySerialNumber,
bussType: '06'
})
}
]
}

View File

@ -27,7 +27,7 @@ export class TransactionFlowComponent implements OnInit {
private nzModalService: NzModalService,
private router: Router,
private currencyPipe: CurrencyPipe
) {}
) {}
ngOnInit(): void {}
@ -36,8 +36,8 @@ export class TransactionFlowComponent implements OnInit {
Object.assign(requestOptions.body, {
...this.sf.value,
createTime: {
start: this.sf.value.tcreateTimeime?.[0] || null,
end: this.sf.value.createTime?.[1] || null
start: this.sf.value.tcreateTimeime?.[0] || '',
end: this.sf.value.createTime?.[1] || ''
}
});
}
@ -217,22 +217,26 @@ export class TransactionFlowComponent implements OnInit {
{ title: '流水号', index: 'transactionNumber', width: 150 },
{ title: '交易类型', index: 'tradeTypeLabel', width: 120 },
{ title: '关联单号', index: 'businessNumber', width: 150 },
{ title: '账户类型', index: 'accountTypeLabel', width: 100 },
{ title: '账户类型', index: 'accountTypeLabel', width: 130 },
{ title: '账户名称', index: 'roleName', width: 100 },
{ title: '所属项目', index: 'projectName', width: 100 },
{ title: '收支类型', index: 'incomeTypeLabel', width: 100 },
{ title: '交易金额',
{ title: '所属项目', index: 'projectName', width: 140 },
{ title: '收支类型', index: 'incomeTypeLabel', width: 100, className: 'text-center' },
{
title: '交易金额',
index: 'amount',
width: 100,
type: 'currency',
format: item => `${this.currencyPipe.transform(item.amount)}`
},
{ title: '账户余额',
type: 'currency',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.amount }) }
},
{
title: '账户余额',
width: 150,
format: item => `${this.currencyPipe.transform(item.accountBalance)}`
},
{ title: '网络货运人', index: 'ltdName', width: 120 },
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) }
},
{ title: '网络货运人', index: 'ltdName', width: 140 },
{ title: '银行类型', index: 'bankTypeLabel', width: 100 },
{ title: '银行流水号', index: 'channelPaySn', width: 120 },
{
@ -242,8 +246,14 @@ export class TransactionFlowComponent implements OnInit {
width: 120,
buttons: [
{
text: '查看回单'
// click: item => this.refund(item)
text: '查看回单',
click: item =>
this.service.getReceiptUrl(item.receiptUrl, {
bankType: item.bankType,
rmYll: item.roleId,
snglFlgCd: item.channelPaySn,
bussType: '07'
})
}
]
}

View File

@ -242,32 +242,47 @@ export class WithdrawalsRecordComponent implements OnInit {
{ title: '', index: 'key', type: 'checkbox' },
{ title: '提现时间', index: 'createTime', width: 180 },
{ title: '提现单号', index: 'refundApplyCode', width: 120 },
{ title: '网络货运人', index: 'ltdName', width: 120 },
{ title: '网络货运人', index: 'ltdName', width: 140 },
{ title: '银行类型', index: 'bankTypeLabel', width: 100 },
{ title: '账户类型', index: 'bankTypeLabel', width: 100 },
{ title: '账户名称', index: 'bankAccountName', width: 100 },
{ title: '账户名称', index: 'bankAccountName', width: 140 },
{ title: '虚拟账户', index: 'virtualAccount', width: 100 },
{ title: '提现金额', index: 'amount', width: 100 },
{ title: '提现银行账户', render: 'bankCardNumber', width: 120 },
{
title: '提现金额',
index: 'amount',
width: 120,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.amount }) }
},
{ title: '提现银行账户', render: 'bankCardNumber', width: 180 },
{ title: '提现状态', index: 'refundStatusLabel', width: 100 },
{ title: '银行流水号', index: 'bankSerialNumber', width: 120 },
{ title: '失败原因', index: 'failCause', width: 150 },
{
title: '操作',
fixed: 'right',
className: 'text-center',
width: '110px',
buttons: [
{
text: '审核  ',
text: '审核',
iif: item => item.refundStatus === '1',
click: item => this.auditAction(item)
},
{
text: '查看回单',
iif: item => item.refundStatus === '3'
// click: item => this.auditAction(item)
iif: item => item.refundStatus === '3',
click: item =>
this.service.getReceiptUrl(item.receiptUrl, {
bankType: item.bankType,
rmYll: item.userId,
snglFlgCd: item.bankSerialNumber,
bussType: '06'
})
},
{
text: '详情  ',
text: '详情',
click: item => this.router.navigate(['/financial-management/withdrawals-record/detail/' + item.id])
}
]