'use strict'; const report = require('../../controllers/report'); const Department = require('../../controllers/organization/depUsers') module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/report/list'] = { content: '获取上报列表', visible: false }; router.get('/report/list', report.reportList); app.fs.api.logAttr['GET/report/position'] = { content: '获取最新上报位置', visible: false }; router.get('/report/position', report.reportPosition); app.fs.api.logAttr['GET/report/:reportId/detail'] = { content: '获取上报详情', visible: false }; router.get('/report/:reportId/detail', report.reportDetail); app.fs.api.logAttr['POST/report/:reportId/handle'] = { content: '处理上报详情', visible: false }; router.post('/report/:reportId/handle', report.reportHandle); app.fs.api.logAttr['POST/report'] = { content: '创建上报', visible: false }; router.post('/report', report.createReport); app.fs.api.logAttr['DEL/report/:reportId'] = { content: '删除上报', visible: false }; router.del('/report/:reportId', report.deleteReport); app.fs.api.logAttr['get/allDepUsers'] = { content: '查询所有部门的员工', visible: false }; router.get('/allDepUsers', Department.getDepUsers); app.fs.api.logAttr['POST/report/spot/prepare'] = { content: '抽查预览', visible: false }; router.post('/report/spot/prepare', report.spotPrepare); app.fs.api.logAttr['GET/report/spot/check'] = { content: '抽查', visible: false }; router.get('/report/spot/check', report.spotCheck) app.fs.api.logAttr['GET/report/spot/check/detail'] = { content: '抽查明细', visible: false }; router.get('/report/spot/check/detail', report.spotCheckDetail) //v2 app.fs.api.logAttr['POST/road/spot/prepare'] = { content: '抽查预览V2', visible: false }; router.post('/road/spot/prepare', report.roadSpotPrepare); app.fs.api.logAttr['POST/road/spot/confirm'] = { content: '确认抽查', visible: false }; router.post('/road/spot/confirm', report.confirmRoadSpot) app.fs.api.logAttr['GET/road/spot/list'] = { content: '抽查列表', visible: false }; router.get('/road/spot/list', report.roadSpotList) app.fs.api.logAttr['GET/road/spot/detail'] = { content: '抽查详情', visible: false }; router.get('/road/spot/detail', report.roadSpotDetail) app.fs.api.logAttr['POST/road/spot/change'] = { content: '更改抽查路线', visible: false }; router.post('/road/spot/change', report.roadSpotChange) app.fs.api.logAttr['GET/road/spot/change'] = { content: '抽查路线更改列表', visible: false }; router.get('/road/spot/change', report.roadSpotChangList) app.fs.api.logAttr['GET/road/spot/export'] = { content: '导出路线抽查', visible: false }; router.get('/road/spot/export', report.exportSpotRode) }