update
This commit is contained in:
parent
0047563204
commit
031434488d
@ -27,19 +27,16 @@ export const BillList: React.FC<BillListProps> = (props) => {
|
||||
title: '#',
|
||||
dataIndex: 'id',
|
||||
width: 120,
|
||||
fixed: true,
|
||||
},
|
||||
{
|
||||
title: t('base.student_number'),
|
||||
dataIndex: 'student_number',
|
||||
width: 150,
|
||||
fixed: true,
|
||||
render: (value) => value ?? 'N/A'
|
||||
},
|
||||
{
|
||||
title: t('base.bill_number'),
|
||||
dataIndex: 'application_number',
|
||||
fixed: true,
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
@ -196,7 +193,7 @@ export const BillList: React.FC<BillListProps> = (props) => {
|
||||
formatPageText: (params) => (
|
||||
<div className="bill-list-pagination">
|
||||
{props.tableFooter}
|
||||
{props.source?.pagination.recordTotal && <span>{t('page.record-show',params)}</span>}
|
||||
{props.source && props.source.pagination.recordTotal > 0 && <span>{t('page.record-show',params)}</span>}
|
||||
</div>
|
||||
)
|
||||
}}
|
||||
|
@ -74,20 +74,20 @@ const SearchForm: React.FC<SearchFormProps> = (props) => {
|
||||
<div className="bill-search-form">
|
||||
<Form<SearchFormFields> onSubmit={formSubmit}>
|
||||
<Row type={'flex'} gutter={20}>
|
||||
<Col span={4}>
|
||||
<Col span={4} md={6}>
|
||||
<Form.DatePicker type={'dateRange'} field="dateRange" label={t('bill.bill_date')}
|
||||
style={{width: '100%'}}>
|
||||
</Form.DatePicker>
|
||||
</Col>
|
||||
<Col span={4}>
|
||||
<Col span={4} md={6}>
|
||||
<Form.Input field='student_number' label={t('base.student_number')} trigger='blur'
|
||||
placeholder={t('base.please_enter')}/>
|
||||
</Col>
|
||||
<Col span={4}>
|
||||
<Col span={4} md={6}>
|
||||
<Form.Input field='application_number' label={t('base.bill_number')} trigger='blur'
|
||||
placeholder={t('base.please_enter')}/>
|
||||
</Col>
|
||||
<Col span={4}>
|
||||
<Col span={4} md={6}>
|
||||
<Form.Select showClear field="payment_channel" label={t('bill.title_pay_method')}
|
||||
placeholder={t('base.please_select')} style={{width: '100%'}}>
|
||||
<Form.Select.Option value="ASIAPAY">ASIAPAY</Form.Select.Option>
|
||||
@ -95,14 +95,14 @@ const SearchForm: React.FC<SearchFormProps> = (props) => {
|
||||
<Form.Select.Option value="PPS">PPS</Form.Select.Option>
|
||||
</Form.Select>
|
||||
</Col>
|
||||
<Col span={4}>
|
||||
<Col span={4} md={6}>
|
||||
<Form.Select showClear field="bill_status" label={t('bill.pay_status')}
|
||||
placeholder={t('base.please_select')} style={{width: '100%'}}>
|
||||
{billStatusOptions.map((item, index) => (
|
||||
<Form.Select.Option key={index} value={item.value}>{item.label}</Form.Select.Option>))}
|
||||
</Form.Select>
|
||||
</Col>
|
||||
{props.showApply && <Col span={4}>
|
||||
{props.showApply && <Col span={4} md={6}>
|
||||
<Form.Select showClear field="apply_status" label={t('bill.title_reconciliation_status')}
|
||||
placeholder={t('base.please_select')} style={{width: '100%'}}>
|
||||
{applyStatusOptions.map((item, index) => (
|
||||
|
@ -59,21 +59,21 @@ const BillQuery = () => {
|
||||
}
|
||||
return (<div>
|
||||
<SearchForm showApply loading={loading} onSearch={setBillQueryParams}/>
|
||||
<Button onClick={()=>{
|
||||
Sentry.showReportDialog({
|
||||
eventId:'Error: Query bill error',//'QueryBill Report'
|
||||
user:{
|
||||
email:'123123123',
|
||||
name:'test'
|
||||
},
|
||||
lang:'zh-CN',
|
||||
title:'看起来出现问题了',
|
||||
subtitle:'请填写你遇到的问题',
|
||||
subtitle2:'',
|
||||
labelComments:'问题类型',
|
||||
labelName:'问题类型',
|
||||
})
|
||||
}}></Button>
|
||||
{/*<Button onClick={()=>{*/}
|
||||
{/* Sentry.showReportDialog({*/}
|
||||
{/* eventId:'Error: Query bill error',//'QueryBill Report'*/}
|
||||
{/* user:{*/}
|
||||
{/* email:'123123123',*/}
|
||||
{/* name:'test'*/}
|
||||
{/* },*/}
|
||||
{/* lang:'zh-CN',*/}
|
||||
{/* title:'看起来出现问题了',*/}
|
||||
{/* subtitle:'请填写你遇到的问题',*/}
|
||||
{/* subtitle2:'',*/}
|
||||
{/* labelComments:'问题类型',*/}
|
||||
{/* labelName:'问题类型',*/}
|
||||
{/* })*/}
|
||||
{/*}}></Button>*/}
|
||||
<BillList
|
||||
type={'query'} loading={loading}
|
||||
operationRender={operation} source={data}
|
||||
|
@ -30,7 +30,7 @@ const PayIndex = () => {
|
||||
const updateBillSuccess = (billId: number, type: string, ref: string) =>{
|
||||
updateBillPaymentSuccess(billId, ref, type).then(bill => {
|
||||
setState({bill})
|
||||
}).finally(()=>{
|
||||
}).catch(()=>{
|
||||
setState({result:'fail'})
|
||||
})
|
||||
}
|
||||
@ -47,7 +47,7 @@ const PayIndex = () => {
|
||||
return;
|
||||
}
|
||||
if (result == 'success') {
|
||||
updateBillSuccess(Number(bill), from , (from == 'asia_pay' ? search.get('Ref')! : search.get('callback_id')!));
|
||||
updateBillSuccess(Number(bill), from , (from == 'ASIAPAY' ? search.get('Ref')! : search.get('callback_id')!));
|
||||
}
|
||||
}
|
||||
setState({result, status})
|
||||
|
2
src/types/core.d.ts
vendored
2
src/types/core.d.ts
vendored
@ -4,7 +4,7 @@ declare type RecordList<T> = {
|
||||
total: number;
|
||||
pageSize: number;
|
||||
current: number;
|
||||
recordTotal?: number;
|
||||
recordTotal: number;
|
||||
sort?: string;
|
||||
filter?: string;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user