|
@@ -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 15:47:16
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /TracerMethodology_PC/src/pages/UserMana/index.js
|
|
@@ -36,9 +36,9 @@ const AfterCollectionSearch = () => {
|
|
|
const columns = [
|
|
|
{
|
|
|
title: '选择时间',
|
|
|
- key: 'date',
|
|
|
+ key: 'dateTime',
|
|
|
hideInTable: true,
|
|
|
- dataIndex: 'date',
|
|
|
+ dataIndex: 'dateTime',
|
|
|
renderFormItem: (item, { type, defaultRender, formItemProps, fieldProps, ...rest }, form) => {
|
|
|
|
|
|
if (type === 'form') {
|
|
@@ -46,7 +46,7 @@ const AfterCollectionSearch = () => {
|
|
|
}
|
|
|
return (
|
|
|
<Form.Item >
|
|
|
- <ProFormDatePicker initialValue={currentTime} fieldProps={{ picker: 'month', format: (value) => { return value.format('YYYY-MM') }, locale: locale,onChange:(moment)=>{setCurrentTime(moment.format('YYYYMM'))} }} name="date" />
|
|
|
+ <ProFormDatePicker initialValue={currentTime} fieldProps={{ picker: 'month', format: (value) => { return value.format('YYYY-MM') }, locale: locale,onChange:(moment)=>{setCurrentTime(moment.format('YYYYMM'))} }} name="dateTime" />
|
|
|
</Form.Item>
|
|
|
)
|
|
|
},
|
|
@@ -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,
|
|
|
},
|
|
|
{
|
|
@@ -197,8 +197,8 @@ const AfterCollectionSearch = () => {
|
|
|
//获取列表
|
|
|
const getList = async (params = {}, sort, filter) => {
|
|
|
const { dateTime } = params;
|
|
|
- // console.log(moment(dateTime).format('YYYY-MM'));
|
|
|
- const res = await getAfterIncomeCollectionList({ ...params, date: moment(date).format('YYYYMM') });
|
|
|
+ console.log(moment(dateTime).format('yyyyMM'));
|
|
|
+ const res = await getAfterIncomeCollectionList({ ...params, date: moment(dateTime).format('yyyyMM') });
|
|
|
if (res && res.status) {
|
|
|
const { data: { totalAmount } } = res;
|
|
|
setTotalCount(totalAmount);
|