wzhbgnew.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from "@/utils/request";
  2. // 查询无纸化办公(申请)列表
  3. export const listApply = async (query: any) => {
  4. return await request({
  5. url: "/demo/apply/list",
  6. method: "get",
  7. params: query,
  8. });
  9. };
  10. // 查询无纸化办公(申请)详细
  11. export const getApply = async (query: any) => {
  12. return await request({
  13. url: "/demo/apply/getinfo",
  14. method: "get",
  15. params: query,
  16. });
  17. };
  18. // 新增无纸化办公(申请)
  19. export const addApply = async (data: any) => {
  20. return await request({
  21. url: "/demo/apply/add",
  22. method: "post",
  23. data: data,
  24. });
  25. };
  26. // 修改无纸化办公(申请)
  27. export const updateApply = async (data: any) => {
  28. return await request({
  29. url: "/demo/apply/edit",
  30. method: "put",
  31. data: data,
  32. });
  33. };
  34. // 删除无纸化办公(申请)
  35. export const delApply = async (id: string) => {
  36. return await request({
  37. url: "/demo/apply/" + id,
  38. method: "delete",
  39. });
  40. };
  41. // 查询无纸化办公(申请)详细
  42. export const getApplyByTask = async (query: any) => {
  43. return await request({
  44. url: "/demo/apply/getInfoByTask",
  45. method: "get",
  46. params: query,
  47. });
  48. };