Browse Source

(*)储备项目报备表导出

master
ww664853070 2 years ago
parent
commit
5e71f0aa50
  1. 11
      web/client/src/sections/business/actions/reserve-item.js
  2. 27
      web/client/src/sections/business/containers/reserveItemsReporting.jsx
  3. 5
      web/client/src/utils/webapi.js

11
web/client/src/sections/business/actions/reserve-item.js

@ -10,4 +10,15 @@ export function getReserveItemReport(type) {
msg: { error: '获取储备项目统计信息失败' }, msg: { error: '获取储备项目统计信息失败' },
reducer: { name: 'reserveItemReport' } reducer: { name: 'reserveItemReport' }
}); });
}
export function getFilingReport(type) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_FILING_REPORT',
url: `${ApiTable.getFilingReport}`,
msg: { error: '获取储备项目报备表失败' },
reducer: { name: 'filingReport' }
});
} }

27
web/client/src/sections/business/containers/reserveItemsReporting.jsx

@ -14,51 +14,51 @@ const ReserveItemsReporting = (props) => {
}, },
{ {
title: '部门', title: '部门',
dataIndex: 'updateTime', dataIndex: 'department',
}, },
{ {
title: '销售经理', title: '销售经理',
dataIndex: 'name', dataIndex: 'salesManager',
}, },
{ {
title: '项目名称', title: '项目名称',
dataIndex: 'updateTime', dataIndex: 'projectName',
}, },
{ {
title: '客户名称', title: '客户名称',
dataIndex: 'name', dataIndex: 'customerName',
}, },
{ {
title: '项目类型', title: '项目类型',
dataIndex: 'updateTime', dataIndex: 'projectType',
}, },
{ {
title: '项目状态', title: '项目状态',
dataIndex: 'name', dataIndex: 'projectState',
}, },
{ {
title: '项目描述', title: '项目描述',
dataIndex: 'updateTime', dataIndex: 'projectDescribe',
}, },
{ {
title: '初次提交时间', title: '初次提交时间',
dataIndex: 'name', dataIndex: 'creationTime',
}, },
{ {
title: '储备项目周期', title: '储备项目周期',
dataIndex: 'updateTime', dataIndex: 'reserveProjectCycle',
}, },
{ {
title: '最新更新时间', title: '最新更新时间',
dataIndex: 'name', dataIndex: 'lastUpdateTime',
}, },
{ {
title: '最近拜访时间', title: '最近拜访时间',
dataIndex: 'updateTime', dataIndex: 'lastVisitTime',
}, },
{ {
title: '拜访间隔周期(天)', title: '拜访间隔周期(天)',
dataIndex: 'name', dataIndex: 'intervalPeriodTime',
}, },
{ {
title: '操作', title: '操作',
@ -69,7 +69,8 @@ const ReserveItemsReporting = (props) => {
const data = []; const data = [];
const exportAll = () => { const exportAll = () => {
alert(123) const { dispatch, actions } = props;
dispatch(actions.businessManagement.getFilingReport());
} }
return ( return (
<> <>

5
web/client/src/utils/webapi.js

@ -17,7 +17,8 @@ export const ApiTable = {
logout: "logout", logout: "logout",
//项目报表 //项目报表
getReserveItemReport: "reserveItem/report/{type}" getReserveItemReport: "reserveItem/report/{type}",
getFilingReport:'/week_report/reserve',
}; };
export const RouteTable = { export const RouteTable = {
@ -25,5 +26,5 @@ export const RouteTable = {
fileUpload: "/_upload/new", fileUpload: "/_upload/new",
cleanUpUploadTrash: "/_upload/cleanup", cleanUpUploadTrash: "/_upload/cleanup",
getWeeklyService: '/_service/weekly', getWeeklyService: '/_service/weekly',
qnDownload:'/file/qiniu/download' qnDownload:'/file/qiniu/download',
}; };

Loading…
Cancel
Save