This commit is contained in:
Taric Xin
2021-12-29 16:15:38 +08:00
parent 128e785a41
commit a82a0ba1ae
21 changed files with 471 additions and 252 deletions

View File

@ -36,9 +36,13 @@
</nz-card>
<nz-card class="content-box" nzBordered>
<st #st [data]="service.$mock_url" [columns]="columns"
<st #st [data]="service.$api_get_recharge_page" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading" [scroll]="{ x:'1200px',y: '400px' }"></st>
[loading]="service.http.loading" [scroll]="{ x:'1200px',y: '400px' }">
<ng-template st-row="transferBankAccount" let-item let-index="index" let-column="column">
{{ item.transferBankOpenName }} <br> {{ item.transferBankCardNumber }}
</ng-template>
</st>
</nz-card>

View File

@ -61,28 +61,25 @@ export class RechargeRecordComponent implements OnInit {
hidden: true
}
},
orderSn2: {
rechargeNo: {
type: 'string',
title: '充值单号',
ui: {
placeholder: '请输入'
}
},
receiveName: {
rechargeStatus: {
type: 'string',
title: '充值状态',
enum: [
{ label: '全部', value: '' },
{ label: '充值中', value: '充值中' },
{ label: '已完成', value: '已完成' }
{ label: '充值中', value: '1' },
{ label: '充值失败', value: '2' },
{ label: '充值成功', value: '3' }
],
ui: {
widget: 'select',
placeholder: '请选择',
change: (i: any) => {
this.sf.value.receiveName = i;
this.sf?.setValue('/receiveName', i);
}
placeholder: '请选择'
},
default: ''
},
@ -95,7 +92,7 @@ export class RechargeRecordComponent implements OnInit {
format: 'yyyy-MM-dd'
} as SFDateWidgetSchema
},
orderSn3: {
rechargeName: {
type: 'string',
title: '账户名称',
ui: {
@ -106,48 +103,53 @@ export class RechargeRecordComponent implements OnInit {
}
}
},
receiveName2: {
accountType: {
type: 'string',
title: '账户类型',
enum: [
{ label: '全部', value: '' },
{ label: '货主账户', value: '货主账户' },
{ label: '司机账户', value: '司机账户' }
{ label: '货主账户', value: '1' },
{ label: '司机账户', value: '2' },
{ label: '营商账户', value: '3' }
],
ui: {
widget: 'select',
placeholder: '请选择',
change: (i: any) => {
this.sf.value.receiveName2 = i;
this.sf?.setValue('/receiveName2', i);
},
visibleIf: {
expand: (value: boolean) => value
}
},
default: ''
},
page2: {
ltdid: {
type: 'string',
title: '网络货运人',
enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
},
allowClear: true,
asyncData: () => this.service.getNetworkFreightForwarder()
}
},
bankType: {
type: 'string',
title: '银行类型',
enum: [
{ label: '全部', value: '' },
{ label: '平安银行', value: '1' },
{ label: '浦发银行', value: '2' }
],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
orderSn23: {
type: 'string',
title: '银行类型',
ui: {
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
},
default: ''
}
}
};
@ -155,23 +157,23 @@ export class RechargeRecordComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '充值时间', index: 'updatedAt', type: 'date' },
{ title: '充值单号', index: 'callNo' },
{ title: '网络货运人', index: 'callNo' },
{ title: '银行类型', index: 'callNo' },
{ title: '账户类型', index: 'callNo' },
{ title: '账户名称', index: 'callNo' },
{ title: '虚拟账户', index: 'callNo' },
{ title: '充值金额', index: 'callNo' },
{ title: '充值银行账户', index: 'callNo',format: item=> `中国招商银行</br>6238293829388888` },
{ title: '充值方式', index: 'callNo' },
{ title: '充值状态', index: 'callNo' },
{ title: '银行流水号', index: 'callNo' },
{ title: '充值时间', index: 'createTime', type: 'date' },
{ title: '充值单号', index: 'rechargeNo' },
{ title: '网络货运人', index: 'ltdid' },
{ title: '银行类型', index: 'bankType', type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' } },
{ title: '账户类型', index: 'accountType', type: 'enum', enum: { 1: '平安银行', 2: '浦发银行', 3: '运营商账户' } },
{ title: '账户名称', index: 'rechargeName' },
{ title: '虚拟账户', index: 'virtualAccount' },
{ title: '充值金额', index: 'rechargeAmount' },
{ title: '充值银行账户', render: 'transferBankAccount', format: item => `中国招商银行</br>6238293829388888` },
{ title: '充值方式', index: 'payChannel', type: 'enum', enum: { 1: '线下充值' } },
{ title: '充值状态', index: 'rechargeStatus', type: 'enum', enum: { 1: '充值中', 2: '充值失败', 3: '充值成功' } },
{ title: '银行流水号', index: 'paySerialNumber' },
{
title: '操作',
buttons: [
{
text: '查看回单',
text: '查看回单'
// click: item => this.router.navigate(['/financial-management/freight-account/detail/1'])
}
]