urgent.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import { axios } from '@/utils/request'
  2. // 急件 列表 有分页
  3. export const urgentList = (params) => {
  4. const url = `/urgent/queryPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post',
  11. headers:{
  12. 'module': encodeURIComponent('列表查询')
  13. }
  14. })
  15. }
  16. // 急件 打印
  17. export const urgentPrint = (params) => {
  18. return axios({
  19. url: '/urgent/print',
  20. data: params,
  21. method: 'post',
  22. headers:{
  23. 'module': encodeURIComponent('打印')
  24. }
  25. })
  26. }
  27. // 急件 打印预览
  28. export const urgentPrintPreview = (params) => {
  29. return axios({
  30. url: '/urgent/printPreview',
  31. data: params,
  32. method: 'post',
  33. headers:{
  34. 'module': encodeURIComponent('打印预览')
  35. }
  36. })
  37. }
  38. // 急件 冲减
  39. export const urgentWriteDown = (params) => {
  40. return axios({
  41. url: `/urgent/writeDownBySn/${params.urgentBillSn}`,
  42. data: {},
  43. method: 'get',
  44. headers:{
  45. 'module': encodeURIComponent('冲减')
  46. }
  47. })
  48. }
  49. // 急件 详情
  50. export const urgentDetail = (params) => {
  51. return axios({
  52. url: `/urgent/findById/${params.id}`,
  53. data: {},
  54. method: 'get',
  55. headers:{
  56. 'module': encodeURIComponent('急件单详情')
  57. }
  58. })
  59. }
  60. // 急件 详情 根据sn查
  61. export const urgentDetailSn = (params) => {
  62. return axios({
  63. url: `/urgent/findBySn/${params.sn}`,
  64. method: 'get',
  65. headers:{
  66. 'module': encodeURIComponent('急件单详情')
  67. }
  68. })
  69. }
  70. // 急件详情列表 有分页
  71. export const urgentDetailList = (params) => {
  72. const url = `/urgentDetail/queryPage/${params.pageNo}/${params.pageSize}`
  73. delete params.pageNo
  74. delete params.pageSize
  75. return axios({
  76. url: url,
  77. data: params,
  78. method: 'post',
  79. headers:{
  80. 'module': encodeURIComponent('明细列表查询')
  81. }
  82. })
  83. }