123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- // 质量月报
- import request from '@/utils/request'
- import { projectManagementUrl, ldapServer } from '@/apiConfig/api'
- // 获取月报
- export function getMonthlyReport(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/get',
- // url: 'http://localhost:9528/data.json',
- method: 'get',
- timeout: '100000',
- params: {
- reportId
- }
- })
- }
- // 删除月报
- export function delMonthlyReport(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/delete',
- method: 'get',
- timeout: '100000',
- params: {
- reportId
- }
- })
- }
- // 更新整个月报
- export function updateMonthlyReport(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/update',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 仅更新子月报
- export function updateSubReport(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/subReport/update',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 获取完整报告
- /**
- *
- * @param data[reportId] 月报ID(93|94)
- * @param data[catalogTitle] (上月问题跟进|本月重点问题|服务端详情|客户端详情|硬件详情|本月优秀&持续改进)
- * @returns {*}
- */
- export function getAllSubReportCatalog(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getAllSubReportCatalog',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 更新反馈信息
- export function updateAnalyticFeedback(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/updateAnalyticFeedback',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 获取部门数据
- export function getReportDependence(params) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getReportDependence',
- method: 'get',
- timeout: '100000',
- params
- })
- }
- // 获取部门数据 v2
- // /api/department/getDeptArch
- export function getDeptArch() {
- return request({
- url: ldapServer + '/api/department/getDeptArch?deptId=100001',
- method: 'get',
- timeout: '100000'
- })
- }
- // 月报发送确认
- export function sendConfirm(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/sendConfirm',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 子月报发送确认
- export function sendSubConfirm(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/confirm',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 月报回退 /monthlyReport/returnReport subReportIds
- export function returnReport(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/returnReport',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 获取子月报
- export function getSubReport(params) {
- return request({
- url: projectManagementUrl + '/monthlyReport/subReport/get',
- method: 'get',
- timeout: '100000',
- params
- })
- }
- // 月报发布
- export function publishReport(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/publish',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 获取子月报列表
- export function getSubReportInfo(id) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getSubReportInfo?id=' + id + '&needContent=true',
- timeout: '100000',
- method: 'get'
- })
- }
- // 重新拉取数据 /monthlyReport/pullDataAgain
- export function pullDataAgain(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/pullDataAgain',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 获取整体概览数据
- export function getOverallOverview(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getOverallOverview?reportId=' + reportId,
- timeout: '100000',
- method: 'get'
- })
- }
- // 获取线上问题饼图数据
- export function getOnlineProblemPieChart(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getOnlineProblemPieChart?reportId=' + reportId,
- timeout: '100000',
- method: 'get'
- })
- }
- // 获取线上问题饼图数据
- export function getQualityProcessAndRdEfficiencyPieData(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getQualityProcessAndRdEfficiencyPieData?reportId=' + reportId,
- timeout: '100000',
- method: 'get'
- })
- }
- // 月报阅览
- export function getMonthlyReportPreView(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getMonthlyReportPreView?id=' + reportId,
- timeout: '100000',
- method: 'get'
- })
- }
- // 月报PDF阅览
- export function getMonthlyReportPrePdfView(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getMonthlReportPdfPreview?id=' + reportId,
- timeout: '100000',
- method: 'get'
- })
- }
- // 获取月报负责人
- // /monthlyReport/getDeptCharge
- export function getDeptCharge(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getDeptCharge',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 月报PDF下载 /monthlyReport/downloadMonthlyReport
- export function downloadMonthlyReport(reportId) {
- return request({
- url: projectManagementUrl + '/monthlyReport/downloadMonthlyReport?id=' + reportId,
- timeout: '100000',
- method: 'get'
- })
- }
- // 拉取subtitle /monthlyReport/pullSubTitle
- export function pullSubTitle(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/pullSubTitle',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 月报历史记录列表
- export function getHistory(params) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getHistory',
- // url: 'http://127.0.0.1:4523/mock/368525/monthlyReport/getHistory',
- method: 'get',
- timeout: '100000',
- params
- })
- }
- // 月报历史记录详情
- export function getHistoryDetail(params) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getHistoryDetail',
- // url: 'http://127.0.0.1:4523/mock/368525/monthlyReport/getHistoryDetail',
- method: 'get',
- timeout: '100000',
- params
- })
- }
- // 月报历史记录详情
- export function getAnalyticFeedback(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/getAnalyticFeedback',
- // url: 'http://127.0.0.1:4523/mock/368525/monthlyReport/getHistoryDetail',
- method: 'post',
- timeout: '100000',
- data
- })
- }
- // 月报回滚
- export function rollback(data) {
- return request({
- url: projectManagementUrl + '/monthlyReport/rollback',
- // url: 'http://127.0.0.1:4523/mock/368525/monthlyReport/getHistoryDetail',
- method: 'post',
- timeout: '100000',
- data
- })
- }
|