|
@@ -93,13 +93,14 @@ function FinanceProject(props) {
|
|
};
|
|
};
|
|
const handleSearch = () => {
|
|
const handleSearch = () => {
|
|
const { time, name } = form.getFieldsValue();
|
|
const { time, name } = form.getFieldsValue();
|
|
- filterRef.current.s_time = time[0] ? moment(time[0]).format('YYYY-MM') : null;
|
|
|
|
- filterRef.current.e_time = time[1] ? moment(time[1]).format('YYYY-MM') : null;
|
|
|
|
|
|
+ filterRef.current.s_time = time[0] ? moment(time[0]).format('YYYY-MM-DD') : null;
|
|
|
|
+ filterRef.current.e_time = time[1] ? moment(time[1]).format('YYYY-MM-DD') : null;
|
|
|
|
|
|
dispatch({
|
|
dispatch({
|
|
type: 'finance/queryFinanceProjReport',
|
|
type: 'finance/queryFinanceProjReport',
|
|
payload: {
|
|
payload: {
|
|
...filterRef.current,
|
|
...filterRef.current,
|
|
|
|
+ user_id: name,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
};
|
|
};
|
|
@@ -128,6 +129,7 @@ function FinanceProject(props) {
|
|
style={{ width: 150 }}
|
|
style={{ width: 150 }}
|
|
showSearch
|
|
showSearch
|
|
filterOption={(inputValue, option) => option.CName.includes(inputValue)}
|
|
filterOption={(inputValue, option) => option.CName.includes(inputValue)}
|
|
|
|
+ allowClear
|
|
/>
|
|
/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
<Form.Item>
|
|
<Form.Item>
|