|
|
@ -17,6 +17,7 @@ function Index() {
|
|
|
|
useEffect(() => {}, []);
|
|
|
|
useEffect(() => {}, []);
|
|
|
|
|
|
|
|
|
|
|
|
const showTotal = (total) => `Total ${total} items`;
|
|
|
|
const showTotal = (total) => `Total ${total} items`;
|
|
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
|
{ title: t('products:Vendor'), key: 'vendor', dataIndex: 'travel_agency_name' },
|
|
|
|
{ title: t('products:Vendor'), key: 'vendor', dataIndex: 'travel_agency_name' },
|
|
|
|
{ title: t('products:CreatedBy'), key: 'created_by', dataIndex: 'created_by' },
|
|
|
|
{ title: t('products:CreatedBy'), key: 'created_by', dataIndex: 'created_by' },
|
|
|
@ -38,9 +39,6 @@ function Index() {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Space direction='vertical' style={{ width: '100%' }}>
|
|
|
|
<Space direction='vertical' style={{ width: '100%' }}>
|
|
|
|
<SearchForm
|
|
|
|
<SearchForm
|
|
|
|
initialValue={{
|
|
|
|
|
|
|
|
dates: [dayjs().subtract(2, 'M').startOf('M'), dayjs().endOf('M')],
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
fieldsConfig={{
|
|
|
|
fieldsConfig={{
|
|
|
|
shows: ['agency', 'auditState', 'dates', 'keyword'], // todo: 是否多选
|
|
|
|
shows: ['agency', 'auditState', 'dates', 'keyword'], // todo: 是否多选
|
|
|
|
fieldProps: {
|
|
|
|
fieldProps: {
|
|
|
@ -49,12 +47,16 @@ function Index() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sort: { agency: 1, auditState: 2, keyword: 100},
|
|
|
|
sort: { agency: 1, auditState: 2, keyword: 100},
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
|
|
|
|
initialValue={{
|
|
|
|
|
|
|
|
dates: [dayjs().subtract(2, 'M').startOf('M'), dayjs().endOf('M')],
|
|
|
|
|
|
|
|
auditState: { value: '', label: t('products:Status')},
|
|
|
|
|
|
|
|
}}
|
|
|
|
onSubmit={(err, formVal, filedsVal) => {
|
|
|
|
onSubmit={(err, formVal, filedsVal) => {
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Table bordered={true} columns={columns} dataSource={productsList} pagination={{ defaultPageSize: 20, showTotal: showTotal }} loading={loading} />
|
|
|
|
<Table bordered={true} columns={columns} dataSource={productsList} pagination={{ defaultPageSize: 20, showTotal: showTotal }} loading={loading} rowKey={'travel_agency_id'} />
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col md={24} lg={24} xxl={24}></Col>
|
|
|
|
<Col md={24} lg={24} xxl={24}></Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|