Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-04-11 15:13:40 +08:00
4 changed files with 25 additions and 20 deletions

View File

@ -151,8 +151,8 @@ export class PaymentRecordComponent implements OnInit {
title: '车队长收款', title: '车队长收款',
enum: [ enum: [
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '否', value: 0 }, { label: '否', value: '0' },
{ label: '是', value: 1 } { label: '是', value: '1' }
], ],
ui: { ui: {
widget: 'select', widget: 'select',

View File

@ -29,6 +29,14 @@ export class RechargeRecordComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => { beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) { if (this.sf) {
Object.assign(requestOptions.body, { ...this.sf.value }); Object.assign(requestOptions.body, { ...this.sf.value });
if (this.sf.value.createTime) {
Object.assign(requestOptions.body, {
createTime: {
start: this.sf.value.createTime?.[0] || '',
end: this.sf.value.createTime?.[1] || ''
}
});
}
} }
return requestOptions; return requestOptions;
}; };
@ -79,7 +87,7 @@ export class RechargeRecordComponent implements OnInit {
} }
exportList() { exportList() {
this.service.exportStart( { ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPageByOperator,); this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPageByOperator);
} }
private initSF(): SFSchema { private initSF(): SFSchema {
@ -117,9 +125,10 @@ export class RechargeRecordComponent implements OnInit {
title: '充值时间', title: '充值时间',
type: 'string', type: 'string',
ui: { ui: {
widget: 'date', widget: 'sl-from-to-search',
mode: 'range', format: 'yyyy-MM-dd',
format: 'yyyy-MM-dd' placeholder: '请选择',
nzShowTime: true
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
roleName: { roleName: {

View File

@ -29,8 +29,7 @@
[ui]="{ '*': { spanLabelFixed: 90,grid: { lg: 8, md: 12, sm: 12, xs: 24,gutter:15 } }}" [compact]="true" [ui]="{ '*': { spanLabelFixed: 90,grid: { lg: 8, md: 12, sm: 12, xs: 24,gutter:15 } }}" [compact]="true"
[button]="'none'"></sf> [button]="'none'"></sf>
</div> </div>
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button> <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
<button nz-button (click)="resetSF()">重置</button> <button nz-button (click)="resetSF()">重置</button>
<button nz-button> 导出</button> <button nz-button> 导出</button>

View File

@ -177,15 +177,15 @@ export class WithdrawalsRecordComponent {
placeholder: '请输入' placeholder: '请输入'
} }
}, },
refundStatus: { // refundStatus: {
type: 'string', // type: 'string',
title: '提现状态', // title: '提现状态',
ui: { // ui: {
widget: 'dict-select', // widget: 'dict-select',
params: { dictKey: 'refund:apply:status' }, // params: { dictKey: 'refund:apply:status' },
placeholder: '请选择' // placeholder: '请选择'
} // }
}, // },
createTime: { createTime: {
title: '提现时间', title: '提现时间',
type: 'string', type: 'string',
@ -201,9 +201,6 @@ export class WithdrawalsRecordComponent {
title: '账户名称', title: '账户名称',
ui: { ui: {
placeholder: '请输入', placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
} }
}, },
accountType: { accountType: {