edit.js 2.6 KB

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