搜索: invoice status

feature/price_manager
Lei OT 1 year ago
parent d8bc4d2ff4
commit 5ef8c9a72f

@ -137,40 +137,34 @@ function getFields(props) {
99, 99,
<Form.Item name='referenceNo'> <Form.Item name='referenceNo'>
<Input placeholder={t('group:RefNo')} allowClear /> <Input placeholder={t('group:RefNo')} allowClear />
</Form.Item>,4 </Form.Item>,
fieldProps?.referenceNo?.col || 4
), ),
item( item(
'invoiceStatus', 'invoiceStatus',
99, 99,
<Form.Item name={`invoiceStatus`} initialValue={at(props, 'initialValue.invoiceStatus')[0] || (fieldProps?.invoiceStatus?.show_all ? { key: '-1', label: '所有' } : undefined)}> <Form.Item name={`invoiceStatus`} initialValue={at(props, 'initialValue.invoiceStatus')[0] || { value: '0', label: 'Status' }}>
<Select style={{ width: '100%' }} placeholder='所有状态' labelInValue> <Select
{fieldProps?.invoiceStatus?.show_all && ( style={{ width: '100%' }}
<Select.Option key='所有' value='-1'> labelInValue
所有 options={[
</Select.Option> { value: '0', label: 'Status' },
)} { value: '1', label: 'Not submitted' },
<Select.Option key='已成行' value='1'> { value: '2', label: 'Submitted' },
已成行 { value: '3', label: 'Travel advisor approved' },
</Select.Option> { value: '4', label: 'Finance Dept arrproved' },
<Select.Option key='未成行' value='0'> { value: '5', label: 'Paid' },
未成行 ]}
</Select.Option> />
</Select>
</Form.Item>, </Form.Item>,
3 fieldProps?.referenceNo?.col || 3
), ),
item( item(
'dates', 'dates',
99, 99,
<Form.Item name={'dates'} {...fieldProps.dates} initialValue={at(props, 'initialValue.dates')[0]}> <Form.Item name={'dates'} label={t('group:ArrivalDate')} {...fieldProps.dates} initialValue={at(props, 'initialValue.dates')[0]}>
{/* <DatePickerCharts isform={true} {...fieldProps.dates} form={form} /> */} {/* <DatePickerCharts isform={true} {...fieldProps.dates} form={form} /> */}
<RangePicker <RangePicker allowClear={true} inputReadOnly={true} presets={presets} placeholder={['From', 'Thru']} {...fieldComProps.dates} />
allowClear={true}
inputReadOnly={true}
presets={presets}
placeholder={['From', 'Thru']}
{...fieldComProps.dates}
/>
</Form.Item>, </Form.Item>,
fieldProps?.dates?.col || midCol fieldProps?.dates?.col || midCol
), ),

Loading…
Cancel
Save