Explorar o código

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

XuZinan %!s(int64=2) %!d(string=hai) anos
pai
achega
73f7a0b6cc

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