weeklyAndMonthly.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import request from '@/utils/request'
  2. // 周报列表--获取条件
  3. export function getWeeklyCondition(data) {
  4. return request({
  5. url: '/weekReport/index',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 周报列表--获取列表
  11. export function getWeeklyList(data) {
  12. return request({
  13. url: '/weekReport/getList',
  14. method: 'post',
  15. data
  16. })
  17. }
  18. // 周报录入--获取数据
  19. export function getWeeklyById(data) {
  20. return request({
  21. url: '/weekReport/getBySubId',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 周报录入--保存数据
  27. export function saveWeekly(data) {
  28. return request({
  29. url: '/weekReport/save',
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 周报录入--删除数据
  35. export function delWeelkyItem(data) {
  36. return request({
  37. url: "/weekReport/del",
  38. method: 'post',
  39. data
  40. })
  41. }
  42. // 月报列表--获取列表
  43. export function getMonthlyList(data) {
  44. return request({
  45. url: '/monthReport/getList',
  46. method: 'post',
  47. data
  48. })
  49. }
  50. // 月报录入--获取数据
  51. export function getMonthlyById(data) {
  52. return request({
  53. url: '/monthReport/getById',
  54. method: 'post',
  55. data
  56. })
  57. }
  58. // 月报录入--保存数据
  59. export function saveMonthly(data) {
  60. return request({
  61. url: '/monthReport/save',
  62. method: 'post',
  63. data
  64. })
  65. }
  66. // 月报录入--删除数据
  67. export function delMonthlyItem(data) {
  68. return request({
  69. url: "/monthReport/del",
  70. method: 'post',
  71. data
  72. })
  73. }
  74. // 年度计划--获取条件
  75. export function getYearlyCondition(data) {
  76. return request({
  77. url: '/annualPlan/index',
  78. method: 'post',
  79. data
  80. })
  81. }
  82. // 年度计划--列表
  83. export function getYearlyList(data) {
  84. return request({
  85. url: '/annualPlan/getList',
  86. method: 'post',
  87. data
  88. })
  89. }
  90. //年度计划--获取详情
  91. export function getYearlyById(data) {
  92. return request({
  93. url: '/annualPlan/getById',
  94. method: 'post',
  95. data
  96. })
  97. }
  98. // 年度计划--保存数据
  99. export function saveYearly(data) {
  100. return request({
  101. url: '/annualPlan/save',
  102. method: 'post',
  103. data
  104. })
  105. }
  106. // 周报录入--项目查询
  107. export function getWeeklyByProject(data) {
  108. return request({
  109. url: '/weekReport/queryReportWeek',
  110. method: 'post',
  111. data
  112. })
  113. }
  114. // 月报录入--项目查询
  115. export function getMonthlyByProject(data) {
  116. return request({
  117. url: '/monthReport/queryReportMonth',
  118. method: 'post',
  119. data
  120. })
  121. }
  122. // 年度计划--项目查询
  123. export function getYearlyByProject(data) {
  124. return request({
  125. url: '/annualPlan/queryBySudId',
  126. method: 'post',
  127. data
  128. })
  129. }