|
@@ -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>
|
|
|
)
|
|
|
})
|
|
|
}
|