weekly.ts 985 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { handle } from '../index'
  2. const suffix = 'api'
  3. // 周报管理 > 列表
  4. export const getWeekReportList = (params: any) => handle({
  5. url: `/${suffix}/week/report/list`,
  6. method: 'post',
  7. params
  8. })
  9. // 周报管理 > 新增
  10. export const addWeekReportSave = (params: any) => handle({
  11. url: `/${suffix}/week/report/save`,
  12. method: 'post',
  13. params
  14. })
  15. // 周报管理 > 编辑
  16. export const editWeekReportEdit = (params: any) => handle({
  17. url: `/${suffix}/week/report/edit`,
  18. method: 'put',
  19. params
  20. })
  21. // 周报管理 > 详情
  22. export const getWeekReport = (id: any) => handle({
  23. url: `/${suffix}/week/report/${id}`,
  24. method: 'get',
  25. })
  26. // 周报管理 > 查询周报提交情况
  27. export const getWeekReportSearch = (params: any) => handle({
  28. url: `/${suffix}/week/report/search`,
  29. method: 'get',
  30. params
  31. })
  32. // 周报管理 > 删除
  33. export const delWeekReportDelete = (params: any) => handle({
  34. url: `/${suffix}/week/report/delete`,
  35. method: 'delete',
  36. params
  37. })