Просмотр исходного кода

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

XuZinan 2 лет назад
Родитель
Сommit
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 { 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({
       type: 'finance/queryFinanceProjReport',
       payload: {
         ...filterRef.current,
+        user_id: name,
       },
     });
   };
@@ -128,6 +129,7 @@ function FinanceProject(props) {
             style={{ width: 150 }}
             showSearch
             filterOption={(inputValue, option) => option.CName.includes(inputValue)}
+            allowClear
           />
         </Form.Item>
         <Form.Item>