chart.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import apis from '@/configs/http';
  2. import { redirectToLogin, redirectTo } from '@/common/NavFuncs';
  3. export default {
  4. namespaced: true,
  5. actions: {
  6. getProvinceAll({ commit },param) {
  7. return apis.sz.post('/TOrder/getProvinceAll',param)
  8. .then(res => {
  9. const { data } = res;
  10. return data;
  11. });
  12. },
  13. getProvince({ commit },param) {
  14. return apis.sz.post('/TOrder/getProvince',param)
  15. .then(res => {
  16. const { data } = res;
  17. return data;
  18. });
  19. },
  20. getEquipmentStatistics({ commit },param) {
  21. return apis.sz.post('/TOrder/getEquipmentStatistics',param)
  22. .then(res => {
  23. const { data } = res;
  24. return data;
  25. });
  26. },
  27. getStatistics({ commit },param) {
  28. return apis.sz.post('/TOrder/getStatistics',param)
  29. .then(res => {
  30. const { data } = res;
  31. return data;
  32. });
  33. },
  34. //得出日,周,月,年的统计数据。
  35. // getMainStatistics({ commit },param) {
  36. // return apis.sz.post('/TOrder/getMainStatistics',param)
  37. // .then(res => {
  38. // const { data } = res;
  39. // return data;
  40. // });
  41. // },
  42. //得出日,周,月,年的统计数据。
  43. getMainStatistics({ commit },param) {
  44. return apis.sz.post('/TCleanHistory/getMainStatistics',param)
  45. .then(res => {
  46. const { data } = res;
  47. return data;
  48. });
  49. },
  50. getEquipmentListByUser({ commit },param) {
  51. return apis.sz.post('/TEquipment/getEquipmentListByUser',param)
  52. .then(res => {
  53. const { data } = res;
  54. return data;
  55. });
  56. },
  57. getEquipmentListByProvince({ commit },param) {
  58. return apis.sz.post('/TEquipment/getEquipmentListByProvince',param)
  59. .then(res => {
  60. const { data } = res;
  61. return data;
  62. });
  63. },
  64. updata({ commit },param) {
  65. return apis.sz.post('/TEquipment/updateName',param)
  66. .then(res => {
  67. const { data } = res;
  68. return res;
  69. });
  70. },
  71. getMachineNum({ commit },param) {
  72. return apis.sz.post('/TEquipment/getMachineNum',param)
  73. .then(res => {
  74. const { data } = res;
  75. return data;
  76. });
  77. },
  78. //修改定时清洗规则
  79. updateRule({ commit },param) {
  80. return apis.sz.post('/TEquipment/updateRule',param)
  81. .then(res => {
  82. const { data } = res;
  83. return data;
  84. });
  85. },
  86. //获取价格
  87. getPrice({ commit },name) {
  88. return apis.sz.post('/TPromoCode/getPrice',name)
  89. .then(res => {
  90. const { data } = res;
  91. return data;
  92. });
  93. },
  94. //支付
  95. pay({ commit },param) {
  96. return apis.sz.post('/TOrder/pay',param)
  97. .then(res => {
  98. const { data } = res;
  99. return data;
  100. });
  101. },
  102. }
  103. }