Explorar el Código

部门报表弹窗去掉其他部门 & 敏捷任务 1930 表头修改

XuZinan hace 2 años
padre
commit
e9b61ac8dd

+ 8 - 8
src/pages/PurchaseAdmin/PurchaseList/Report/DepCompareModal.js

@@ -27,8 +27,8 @@ function DepCompareModal(props) {
     { title: '日常', dataIndex: 'type_normal_cnt' },
     { title: '标准化', dataIndex: 'type_standardize_cnt' },
     { title: '研发', dataIndex: 'type_rd_cnt' },
-    { title: '漏填工时', dataIndex: 'type_lost_cnt' },
-    { title: '总计', dataIndex: 'total_cnt' },
+    // { title: '漏填工时', dataIndex: 'type_lost_cnt' },
+    { title: '应填报总工时', dataIndex: 'total_cnt' },
     {
       title: '有效利用率',
       dataIndex: 'usage_percent',
@@ -99,10 +99,10 @@ function DepCompareModal(props) {
       type: 'report/queryUserReport',
       payload: filter,
     });
-    dispatch({
-      type: 'report/queryDepCompare',
-      payload: filter,
-    });
+    // dispatch({
+    //   type: 'report/queryDepCompare',
+    //   payload: filter,
+    // });
   }, [filter]);
 
   return (
@@ -133,7 +133,7 @@ function DepCompareModal(props) {
           pagination={false}
           onExpand={onExpand}
         /> */}
-        {depCompare.length > 0 && (
+        {/* {depCompare.length > 0 && (
           <Table
             title={() => '其他部门在所属项目下产生的工时'}
             columns={columnsDep}
@@ -144,7 +144,7 @@ function DepCompareModal(props) {
             pagination={false}
             onExpand={onExpand}
           />
-        )}
+        )} */}
       </Modal>
 
       {/* <Modal