'use strict'; const report = require('../../controllers/report'); const achieve = require('../../controllers/report/achievement'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/reserveItem/report/:type'] = { content: '查询储备项目统计表', visible: false }; router.get('/reserveItem/report/:type', report.getReserveItemReport); app.fs.api.logAttr['GET/sales/member/list'] = { content: '查询销售人员分布明细表', visible: false }; router.get('/sales/member/list', report.getSalersReport); app.fs.api.logAttr['GET/detail/received/back'] = { content: '查询回款明细表', visible: false }; router.get('/detail/received/back', achieve.getReceivedDetail); app.fs.api.logAttr['GET/detail/achievement'] = { content: '查询业绩明细表', visible: false }; router.get('/detail/achievement', achieve.getAchievementDetail); app.fs.api.logAttr['GET/detail/received/numbers'] = { content: '查询业绩明细已有的编号集合', visible: false }; router.get('/detail/received/numbers', achieve.getReceivedNumbers); app.fs.api.logAttr['POST/add/received/back/bulk'] = { content: '导入回款明细', visible: true }; router.post('/add/received/back/bulk', achieve.importBackDetails); app.fs.api.logAttr['POST/add/achievement/bulk'] = { content: '导入业绩明细', visible: true }; router.post('/add/achievement/bulk', achieve.importAchieveDetails); app.fs.api.logAttr['GET/contract/detail'] = { content: '查询合同明细表', visible: false }; router.get('/contract/detail', achieve.getContractDetail); app.fs.api.logAttr['GET/invoicing/detail'] = { content: '查询开票明细表', visible: false }; router.get('/invoicing/detail', achieve.getInvoicingDetail); app.fs.api.logAttr['GET/export/contract/detail'] = { content: '导出合同明细表', visible: false }; router.get('/export/contract/detail', achieve.exportContractDetail); app.fs.api.logAttr['GET/export/invoicing/detail'] = { content: '导出开票明细表', visible: false }; router.get('/export/invoicing/detail', achieve.exportInvoicingDetail); };