|
@@ -83,12 +83,10 @@ function FinanceProject(props) {
|
|
|
|
|
|
const filterRef = useRef({ pageSize: 20 });
|
|
|
const onChangePage = pagination => {
|
|
|
- const { user_id } = form.getFieldsValue();
|
|
|
dispatch({
|
|
|
type: 'finance/queryFinanceProjReport',
|
|
|
payload: {
|
|
|
...filterRef.current,
|
|
|
- user_id,
|
|
|
currentPage: pagination.current,
|
|
|
},
|
|
|
});
|
|
@@ -97,12 +95,12 @@ function FinanceProject(props) {
|
|
|
const { time, user_id } = form.getFieldsValue();
|
|
|
filterRef.current.s_time = time[0] ? moment(time[0]).format('YYYY-MM-DD') : '';
|
|
|
filterRef.current.e_time = time[1] ? moment(time[1]).format('YYYY-MM-DD') : '';
|
|
|
+ filterRef.current.user_id = user_id || '';
|
|
|
|
|
|
dispatch({
|
|
|
type: 'finance/queryFinanceProjReport',
|
|
|
payload: {
|
|
|
...filterRef.current,
|
|
|
- user_id,
|
|
|
},
|
|
|
});
|
|
|
};
|
|
@@ -111,6 +109,7 @@ function FinanceProject(props) {
|
|
|
setCurrent({
|
|
|
s_time: filterRef.current.s_time,
|
|
|
e_time: filterRef.current.e_time,
|
|
|
+ user_id: filterRef.current.user_id,
|
|
|
project_id: item.project_id,
|
|
|
project_code: item.code,
|
|
|
project_name: item.name,
|
|
@@ -203,6 +202,7 @@ function FinanceProjectModal(props) {
|
|
|
let res = await queryFinanceProjDetail({
|
|
|
s_time: data.s_time,
|
|
|
e_time: data.e_time,
|
|
|
+ user_id: data.user_id,
|
|
|
project_id: data.project_id,
|
|
|
});
|
|
|
if (res) {
|