Ver Fonte

财务报表去掉序号

XuZinan há 2 anos atrás
pai
commit
e1f0b9c7f8

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

@@ -15,13 +15,13 @@ function FinanceProject(props) {
   const [current, setCurrent] = useState(null);
 
   const columns = [
-    {
-      title: '序号',
-      render: (_, __, index) => {
-        const { current, pageSize } = project.pagination;
-        return (current - 1) * pageSize + index + 1;
-      },
-    },
+    // {
+    //   title: '序号',
+    //   render: (_, __, index) => {
+    //     const { current, pageSize } = project.pagination;
+    //     return (current - 1) * pageSize + index + 1;
+    //   },
+    // },
     {
       title: '项目名称',
       dataIndex: 'name',
@@ -144,7 +144,7 @@ function FinanceProjectModal(props) {
     <Modal
       title={data ? `${data.project_name}【${data.project_code}】` : '详情'}
       width="80%"
-      open={visible}
+      visible={visible}
       onCancel={onCancel}
       footer={false}
       destroyOnClose

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

@@ -11,10 +11,10 @@ function FinanceResource(props) {
   const { dispatch, loading, resource } = props;
   const [form] = Form.useForm();
   const columns = [
-    {
-      title: '序号',
-      render: (_, __, index) => index + 1,
-    },
+    // {
+    //   title: '序号',
+    //   render: (_, __, index) => index + 1,
+    // },
     { title: '事业部名称 ', dataIndex: 'dep_name' },
     { title: '资源中心人日使用量', dataIndex: 'workload' },
     { title: '技术中心人日数', dataIndex: 'tech_workload' },