浏览代码

财务报表执行项目页增加填报人

XuZinan 2 年之前
父节点
当前提交
73f7a0b6cc
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/pages/PurchaseAdmin/PurchaseList/Report/Finance/Project.js

+ 4 - 2
src/pages/PurchaseAdmin/PurchaseList/Report/Finance/Project.js

@@ -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>