Explorar o código

敏捷任务 1931 财务报表项目维度 表头注释

XuZinan %!s(int64=2) %!d(string=hai) anos
pai
achega
441f5a7b96

+ 32 - 3
src/pages/PurchaseAdmin/PurchaseList/Report/Finance/Project.js

@@ -1,6 +1,7 @@
 import React, { useEffect, useState, useRef } from 'react';
 import { connect } from 'dva';
-import { Form, Table, DatePicker, Input, Button, Select, Modal } from 'antd';
+import { Form, Table, DatePicker, Input, Button, Select, Modal, Popover } from 'antd';
+import { ProfileOutlined } from '@ant-design/icons';
 import styles from '../report.less';
 import moment from 'moment';
 import { downloadFile, getToken } from '@/utils/utils.js';
@@ -47,8 +48,36 @@ function FinanceProject(props) {
       render: (name, item) => <a onClick={() => handleClick(item)}>{name}</a>,
     },
     { title: '项目编号', dataIndex: 'code' },
-    { title: '本月人日数', dataIndex: 'month_workload' },
-    { title: '截止到目前为止的总人日数', dataIndex: 'total_workload' },
+    {
+      title: (
+        <div>
+          本月人日数
+          <Popover
+            content={
+              <div>
+                本月人日数为上一个工时周期(前月26日至当月25日)内的工时数,
+                <br />
+                与选取时间无关
+              </div>
+            }
+          >
+            <ProfileOutlined style={{ color: 'rgba(0,0,0,0.4)' }} />
+          </Popover>
+        </div>
+      ),
+      dataIndex: 'month_workload',
+    },
+    {
+      title: (
+        <div>
+          总人日数
+          <Popover content={<div>选取时间内的总工时数</div>}>
+            <ProfileOutlined style={{ color: 'rgba(0,0,0,0.4)' }} />
+          </Popover>
+        </div>
+      ),
+      dataIndex: 'total_workload',
+    },
     { title: '项目预算人日 ', dataIndex: 'budget' },
   ];