code4eat 4 years ago
parent
commit
374142147c

+ 2 - 2
src/components/CAUpload/index.jsx

@@ -6,8 +6,8 @@ import React, { Component } from 'react';
 import PropTypes from 'prop-types';
 import { Button, Upload, message, Modal, Divider, Menu, Dropdown } from 'antd';
 // import Cookies from 'js-cookie';
-// 服务器地址,此处为了做演示,没有全局引入,直接写了
-const Host = 'http://112.124.59.133:8082';
+// 服务器地址
+const Host = 'http://localhost:8082';
 
 
 

+ 1 - 0
src/pages/baseSetting/reportProjectSetting/component/drawer.jsx

@@ -87,6 +87,7 @@ export default function DrawerContent(props) {
                         // 注释该行则默认不显示下拉选项
                         selections: [Table.SELECTION_ALL, Table.SELECTION_INVERT],
                         selectedRowKeys: selectedKeys,
+                        checkStrictly:false,
                         onChange: (selectedRowKeys, selectedRows) => {
                             setSelectedKeys(selectedRowKeys);
                         }

+ 3 - 3
src/pages/baseSetting/visitsAndBedDayCostSetting/index.jsx

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-07-26 10:13:13
- * @LastEditTime: 2021-08-13 10:32:11
+ * @LastEditTime: 2021-08-13 10:40:26
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @FilePath: /TracerMethodology_PC/src/pages/UserMana/index.js
@@ -292,8 +292,8 @@ const DistrictMana = () => {
             const { num: costCorresponding, reportName: costCorrespondingName,reportType:costFileType } = selectedCost;
             const data = { 
                allocation, incomeType, shareParamCode, shareParamName, incomeFieldNum,
-               incomeFileName:`[${reportTableTypes[incomeFileType]}]${incomeFileName}`,
-               costCorresponding, costCorrespondingName:`[${reportTableTypes[costFileType]}]${costCorrespondingName}`,
+               incomeFileName:`[${reportTableTypes[incomeFileType]}] ${incomeFileName}`,
+               costCorresponding, costCorrespondingName:`[${reportTableTypes[costFileType]}] ${costCorrespondingName}`,
                incomeFileType,costFileType}
             // console.log({data});
             const success = await addVisitsAndBedDayCostSettingList(data);

+ 10 - 10
src/pages/costAccounting/afterCollectionSearch/index.jsx

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-07-26 10:13:13
- * @LastEditTime: 2021-08-12 21:09:11
+ * @LastEditTime: 2021-08-13 11:38:52
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @FilePath: /TracerMethodology_PC/src/pages/UserMana/index.js
@@ -98,7 +98,7 @@ const AfterCollectionSearch = () => {
                 const resp = await getCostProjecttList({ pageSize: 100 });
                 const { status, data: { list } } = resp;
                 if (status == 200) {
-                  console.log({ resp, list });
+                
                   const arr = list.map(item => ({
                     'label': item.productName,
                     'value': item.productCode
@@ -167,14 +167,14 @@ const AfterCollectionSearch = () => {
     },
     {
       title: '成本项目编码',
-      dataIndex: 'projectCode',
-      key: 'projectCode',
+      dataIndex: 'productCode',
+      key: 'productCode',
       hideInSearch: true,
     },
     {
       title: '成本项目名',
-      dataIndex: 'projectName',
-      key: 'projectName',
+      dataIndex: 'productName',
+      key: 'productName',
       hideInSearch: true,
     },
     {
@@ -196,8 +196,8 @@ const AfterCollectionSearch = () => {
 
   //获取列表
   const getList = async (params = {}, sort, filter) => {
-    const { dateTime } = params;
-    // console.log(moment(dateTime).format('YYYY-MM'));
+    const { date } = params;
+    console.log(moment(date).format('YYYY-MM'));
     const res = await getAfterIncomeCollectionList({ ...params, date: moment(date).format('YYYYMM') });
     if (res && res.status) {
       const { data: { totalAmount } } = res;
@@ -273,7 +273,7 @@ const AfterCollectionSearch = () => {
         actionRef={actionRef}
         rowKey="id"
         toolBarRender={() => [
-          <Button type='primary' onClick={() => renderDrawerHandle()}>报表数据</Button>
+          <Button key='reportBtn' type='primary' onClick={() => renderDrawerHandle()}>报表数据</Button>
         ]}
         pagination={{
           pageSize: 10,
@@ -311,7 +311,7 @@ const AfterCollectionSearch = () => {
                 {
                   totalData.map((item, index) => {
                     return (
-                      <Table.Summary.Cell key={index}  className={index == 9 ? 'ant-table-cell ant-table-cell-fix-right ant-table-cell-fix-right-last' : 'cell'} index={index+1}>{item[1]}</Table.Summary.Cell>
+                      <Table.Summary.Cell key={index}  className={index == totalData.length-1 ? 'ant-table-cell ant-table-cell-fix-right ant-table-cell-fix-right-last' : 'cell'} index={index+1}>{item[1]}</Table.Summary.Cell>
                     )
                   })
                 }