edit
This commit is contained in:
@ -32,24 +32,28 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, {
|
||||
ltdid: this.params.ltdid,
|
||||
ltdId: this.params.ltdId,
|
||||
projectId: this.params.projectId,
|
||||
enterpriseId: this.params.enterpriseId,
|
||||
roleId: this.params.roleId
|
||||
});
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
createTime: {
|
||||
start: this.sf.value?.createTime?.[0] || null,
|
||||
end: this.sf.value?.createTime?.[1] || null
|
||||
}
|
||||
});
|
||||
}
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
loadInfo() {
|
||||
console.log(1);
|
||||
|
||||
this.service
|
||||
.request(this.service.$api_get_driver_account_balance_detail, {
|
||||
...this.sf?.value,
|
||||
ltdid: this.params.ltdid,
|
||||
ltdId: this.params.ltdId,
|
||||
projectId: this.params.projectId,
|
||||
enterpriseId: this.params.enterpriseId,
|
||||
roleId: this.params.roleId,
|
||||
@ -114,33 +118,26 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
nzShowTime: true
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
orderSn2: {
|
||||
transactionNumber: {
|
||||
type: 'string',
|
||||
title: '流水号',
|
||||
ui: {
|
||||
placeholder: '请输入'
|
||||
}
|
||||
},
|
||||
orderSn3: {
|
||||
businessNumber: {
|
||||
type: 'string',
|
||||
title: '关联单号',
|
||||
ui: {
|
||||
placeholder: '请输入'
|
||||
}
|
||||
},
|
||||
receiveName: {
|
||||
tradeType: {
|
||||
type: 'string',
|
||||
title: '交易类型',
|
||||
enum: [
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '订单支付', value: '订单支付' },
|
||||
{ label: '余额充值', value: '余额充值' },
|
||||
{ label: '余额提现', value: '余额提现' },
|
||||
{ label: '资金分配', value: '资金分配' },
|
||||
{ label: '资金回收', value: '资金回收' }
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'trade:type' },
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
@ -148,16 +145,12 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
},
|
||||
default: ''
|
||||
},
|
||||
receiveName2: {
|
||||
incomeType: {
|
||||
type: 'string',
|
||||
title: '收支类型',
|
||||
enum: [
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '收入', value: '收入' },
|
||||
{ label: '支出', value: '支出' }
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'income:type' },
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
@ -171,13 +164,13 @@ export class DriverAccountDetailComponent 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: 'createTime', type: 'date' },
|
||||
{ title: '流水号', index: 'channelPaySn' },
|
||||
{ title: '交易类型', index: 'tradeTypeLabel' },
|
||||
{ title: '关联单号', index: 'businessNumber' },
|
||||
{ title: '收支类型', index: 'incomeTypeLabel' },
|
||||
{ title: '交易金额', index: 'amount' },
|
||||
{ title: '账户余额', index: 'accountBalance' }
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user