This commit is contained in:
Taric Xin
2022-01-11 17:47:07 +08:00
parent a69bdc3c60
commit cd037f29e8
6 changed files with 59 additions and 47 deletions

View File

@ -12,31 +12,29 @@ import { TicketService } from '../../../services/ticket.service';
export class TransactionDetailsComponent implements OnInit {
data = [];
selectedData = [];
url = `/rule?_allow_anonymous=true`;
url = `/api/fcc/ficoEtcInvoiceH/list/page`;
@ViewChild('st', { static: true })
st!: STComponent;
@ViewChild('sf', { static: false })
sf!: SFComponent;
columns: STColumn[] = [
{ title: '交易id', index: 'no' },
{ title: '交易流水号', index: 'callNo' },
{ title: '交易金额', index: 'callNo' },
{ title: '开票状态', index: 'callNo' },
{ title: '交易时间', index: 'updatedAt', type: 'date' }
{ title: '交易id', index: 'id' },
{ title: '交易流水号', index: 'tradeFlowNo' },
{ title: '交易金额', index: 'fee' },
{ title: '开票状态', index: 'state', type: 'enum', enum: { '0': '待开具', '1': '开具中', '2': '已开具', '3': '开票失败' } },
{ title: '交易时间', index: 'exTime', type: 'date' }
];
searchSchema: SFSchema = {
properties: {
receiveName: {
state: {
type: 'string',
title: '开票状态',
enum: [
{ label: '全部', value: '' },
{ label: '待受理', value: '待受理' },
{ label: '待开票', value: '待开票' },
{ label: '开票中', value: '开票中' },
{ label: '已开票', value: '已开票' },
{ label: '已撤销', value: '已撤销' },
{ label: '已拒绝', value: '已拒绝' }
{ label: '待开具', value: '1' },
{ label: '开具中', value: '2' },
{ label: '已开具', value: '3' },
{ label: '交易异常', value: '4' }
],
ui: {
widget: 'select',
@ -44,7 +42,7 @@ export class TransactionDetailsComponent implements OnInit {
},
default: ''
},
createTime: {
exTime: {
title: '交易时间',
type: 'string',
ui: {
@ -64,7 +62,11 @@ export class TransactionDetailsComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
Object.assign(requestOptions.body, {
...this.sf.value
...this.sf.value,
exTime: {
start: this.sf.value.exTime?.[0] || null,
end: this.sf.value.exTime?.[1] || null
}
});
}
return requestOptions;