edit.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // 质量月报
  2. import request from '@/utils/request'
  3. import { projectManagementUrl } from '@/apiConfig/api'
  4. // 获取月报
  5. export function getMonthlyReport(reportId) {
  6. return request({
  7. url: projectManagementUrl + '/monthlyReport/get',
  8. method: 'get',
  9. timeout: '10000',
  10. params: {
  11. reportId
  12. }
  13. })
  14. }
  15. // 删除月报
  16. export function delMonthlyReport(reportId) {
  17. return request({
  18. url: projectManagementUrl + '/monthlyReport/delete',
  19. method: 'get',
  20. params: {
  21. reportId
  22. }
  23. })
  24. }
  25. // 更新整个月报
  26. export function updateMonthlyReport(data) {
  27. return request({
  28. url: projectManagementUrl + '/monthlyReport/update',
  29. method: 'post',
  30. timeout: '10000',
  31. data
  32. })
  33. }
  34. // 仅更新子月报
  35. export function updateSubReport(data) {
  36. return request({
  37. url: projectManagementUrl + '/monthlyReport/subReport/update',
  38. method: 'post',
  39. timeout: '10000',
  40. data
  41. })
  42. }
  43. // 获取完整报告
  44. /**
  45. *
  46. * @param data[reportId] 月报ID(93|94)
  47. * @param data[catalogTitle] (上月问题跟进|本月重点问题|服务端详情|客户端详情|硬件详情|本月优秀&持续改进)
  48. * @returns {*}
  49. */
  50. export function getAllSubReportCatalog(data) {
  51. return request({
  52. url: projectManagementUrl + '/monthlyReport/getAllSubReportCatalog',
  53. method: 'post',
  54. data
  55. })
  56. }
  57. // 更新反馈信息
  58. export function updateAnalyticFeedback(data) {
  59. return request({
  60. url: projectManagementUrl + '/monthlyReport/updateAnalyticFeedback',
  61. method: 'post',
  62. data
  63. })
  64. }
  65. // 获取部门数据
  66. export function getReportDependence(params) {
  67. return request({
  68. url: projectManagementUrl + '/monthlyReport/getReportDependence',
  69. method: 'get',
  70. params
  71. })
  72. }
  73. // 月报发送确认
  74. export function sendConfirm(data) {
  75. return request({
  76. url: projectManagementUrl + '/monthlyReport/sendConfirm',
  77. method: 'post',
  78. timeout: '10000',
  79. data
  80. })
  81. }
  82. // 子月报发送确认
  83. export function sendSubConfirm(data) {
  84. return request({
  85. url: projectManagementUrl + '/monthlyReport/confirm',
  86. method: 'post',
  87. data
  88. })
  89. }
  90. // 月报回退 /monthlyReport/returnReport subReportIds
  91. export function returnReport(data) {
  92. return request({
  93. url: projectManagementUrl + '/monthlyReport/returnReport',
  94. method: 'post',
  95. data
  96. })
  97. }
  98. // 获取子月报
  99. export function getSubReport(params) {
  100. return request({
  101. url: projectManagementUrl + '/monthlyReport/subReport/get',
  102. method: 'get',
  103. timeout: '10000',
  104. params
  105. })
  106. }
  107. // 月报发布
  108. export function publishReport(data) {
  109. return request({
  110. url: projectManagementUrl + '/monthlyReport/publish',
  111. method: 'post',
  112. data
  113. })
  114. }
  115. // 获取子月报列表
  116. export function getSubReportInfo(id) {
  117. return request({
  118. url: projectManagementUrl + '/monthlyReport/getSubReportInfo?id=' + id,
  119. method: 'get'
  120. })
  121. }