plan.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import request from '@/utils/request'
  2. // 查询【请填写功能名称】列表
  3. export function list(query) {
  4. return request({
  5. url: '/core/checkplan/list',
  6. method: 'post',
  7. data: query
  8. })
  9. }
  10. // 查询【请填写功能名称】详细
  11. export function cheHui(id) {
  12. return request({
  13. url: '/core/checkplan/cheHui/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 查询【请填写功能名称】详细
  18. export function distributeHS(id) {
  19. return request({
  20. url: '/core/checkplan/distributehs/' + id,
  21. method: 'get'
  22. })
  23. }
  24. // 查询【请填写功能名称】详细
  25. export function itemfind(id) {
  26. return request({
  27. url: '/core/api/plan/item/find' + id,
  28. method: 'get'
  29. })
  30. }
  31. // 查询【请填写功能名称】详细
  32. export function distribute(query) {
  33. return request({
  34. url: '/core/checkplan/distribute' ,
  35. method: 'post',
  36. data: query
  37. })
  38. }
  39. export function getPointIds(id) {
  40. return request({
  41. url: '/core/checkplan/getPointIds/' + id,
  42. method: 'get'
  43. })
  44. }
  45. // 查询【请填写功能名称】详细
  46. export function get(id) {
  47. return request({
  48. url: '/core/checkplan/' + id,
  49. method: 'get'
  50. })
  51. }
  52. // 修改【请填写功能名称】
  53. export function update(data) {
  54. return request({
  55. url: '/core/checkplan',
  56. method: 'put',
  57. data: data
  58. })
  59. }
  60. // 新增【请填写功能名称】
  61. export function add(data) {
  62. return request({
  63. url: '/core/checkplan',
  64. method: 'post',
  65. data: data
  66. })
  67. }
  68. // 删除【请填写功能名称】
  69. export function delelte(id) {
  70. return request({
  71. url: '/core/checkplan/' + id,
  72. method: 'delete'
  73. })
  74. }
  75. export function getDesignateHangshe(planId){
  76. return request({
  77. url: '/core/SafecheckPlanToExecOrg/designatehangshe/' + planId,
  78. method: 'get',
  79. showLoading:true
  80. })
  81. }