index.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import request from "@/api";
  2. // 获取表头数据
  3. export function getDroughtResistantHeader(data: any) {
  4. return request({
  5. url: "/admin/sys/dmmatype/getAllList",
  6. method: "post",
  7. data
  8. });
  9. }
  10. // 获取列表数据
  11. export function getDroughtResistantList(data: any) {
  12. return request({
  13. url: "/admin/sys/dmmatype/selectIrkzqXxb",
  14. method: "post",
  15. data
  16. });
  17. }
  18. // 物资分类接口
  19. export function getSuppliesType(data: any) {
  20. return request({
  21. url: "/admin/sys/dmmatype/list",
  22. method: "post",
  23. params: {
  24. current: data.current,
  25. size: data.size
  26. },
  27. data
  28. });
  29. }
  30. // 数据统计 应急物资分类列表 —— 物资大类
  31. export function getSysTreeDict(data: any) {
  32. return request({
  33. url: "/admin/sys/dict/selectSysTreeDict",
  34. method: "post",
  35. data
  36. });
  37. }
  38. // 数据统计 —— 获取省份数据
  39. export function getCityList(data: any) {
  40. return request({
  41. url: "/admin/dept/getDeptParentIdList",
  42. method: "post",
  43. data
  44. });
  45. }
  46. // 数据统计 —— 获取详情列表数据
  47. export function getDetailList(data: any) {
  48. return request({
  49. url: "/admin/in/selectListByDept",
  50. method: "post",
  51. data
  52. });
  53. }
  54. //导出---救灾物资数量价值表
  55. export function exportJzwzsljzb(data: object) {
  56. return request({
  57. url: `/admin/sys/dmmatype/exportJzwzsljzb`,
  58. method: "post",
  59. data,
  60. responseType: "blob"
  61. });
  62. }
  63. //导出---防汛抗旱物资数量价值表
  64. export function exportFxkhwzsljzb(data: object) {
  65. return request({
  66. url: `/admin/sys/dmmatype/exportFxkhwzsljzb`,
  67. method: "post",
  68. data,
  69. responseType: "blob"
  70. });
  71. }
  72. //导出---救灾物资明细统计表 & 防汛抗旱明细统计表
  73. export function exportjzwzmxtjb(data: object) {
  74. return request({
  75. url: `/admin/in/exportjzwzmxtjb`,
  76. method: "post",
  77. data,
  78. responseType: "blob"
  79. });
  80. }
  81. //导出---应急物资分类
  82. export function exportyjwzflb(data: any) {
  83. return request({
  84. url: `/admin/sys/dmmatype/exportyjwzflb`,
  85. method: "post",
  86. params: {
  87. current: data.current,
  88. size: data.size
  89. },
  90. data,
  91. responseType: "blob"
  92. });
  93. }
  94. //预警列表
  95. export function getDetaWarninglList(data: any) {
  96. return request({
  97. url: "/admin/in/selectListByStorageMaterials",
  98. method: "post",
  99. data
  100. });
  101. }