index.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. export const showTotalBalance = data => {
  3. return https.get('/custom/show-total-balance', data)
  4. }
  5. export const setChange = data => {
  6. return https.post('/custom/set-change', data)
  7. }
  8. export const getGatheringCode = data => {
  9. return https.get('/custom/get-gathering-code', data)
  10. }
  11. /** 隔天售后返余额海报用小程序码(含 balance) */
  12. export const getGatheringMiniCode = data => {
  13. return https.get('/custom/get-gathering-mini-code', data)
  14. }
  15. export const getCustomBalanceChange = data => {
  16. return https.get('/custom-balance-change/list', data)
  17. }
  18. export const getCustomRechargeChange = data => {
  19. return https.get('/custom-recharge/list', data)
  20. }
  21. // 充值记录退款(财务权限,线上原路退)
  22. export const refundCustomRecharge = data => {
  23. return https.post('/custom-recharge/refund', data)
  24. }
  25. export const getCustomRechargeList = data => {
  26. return https.get('/custom-recharge/list', data)
  27. }
  28. export const rechargeFn = data => {
  29. return https.get('/custom/recharge', data)
  30. }
  31. export const modifySeatSnFn = data => {
  32. return https.get('/custom/modify-seat-sn', data)
  33. }
  34. export const createSeatSnFn = data => {
  35. return https.get('/custom/create-seat-sn', data)
  36. }
  37. export const modifyAddress = data => {
  38. return https.post('/custom/modify-address', data)
  39. }
  40. export const changeIsHd = data => {
  41. return https.get('/custom/change-is-hd', data)
  42. }
  43. export const modifyShortName = data => {
  44. return https.get('/custom/modify-short-name', data)
  45. }
  46. export const changeRiseRule = data => {
  47. return https.get('/custom/change-rise-rule', data)
  48. }
  49. export const modifyHomeParams = data => {
  50. return https.get('/custom/modify-home-amount', data)
  51. }
  52. export const modifyAllHomeParams = data => {
  53. return https.get('/custom/modify-all-home-amount', data)
  54. }
  55. export const changeWlName = data => {
  56. return https.get('/custom/change-wl-name', data)
  57. }
  58. export const changeWl = data => {
  59. return https.get('/custom/change-wl', data)
  60. }
  61. export const changeShowStock = data => {
  62. return https.get('/custom/change-show-stock', data)
  63. }
  64. export const toChangeHome = data => {
  65. return https.get('/custom/change-home', data)
  66. }
  67. export const changePassStatus = data => {
  68. return https.get('/custom/change-pass-status', data)
  69. }
  70. export const changeName = data => {
  71. return https.get('/custom/change-name', data)
  72. }
  73. export const addStaff = data => {
  74. return https.post('/custom/add-staff', data)
  75. }
  76. export const updateDebtLimit = data => {
  77. return https.get('/custom/update-debt-limit', data)
  78. }
  79. export const updateCustomBlack = data => {
  80. return https.get('/custom/set-black', data)
  81. }
  82. export const changeDiscount = data => {
  83. return https.get('/custom/change-discount', data)
  84. }
  85. export const changeLevel = data => {
  86. return https.get('/custom/change-level', data)
  87. }
  88. export const debtChangeList = data => {
  89. return https.get('/custom-debt-change/list', data)
  90. }
  91. export const createCumtomer = data => {
  92. return https.post('/custom/create-customers', data)
  93. }
  94. export const copyCumtomer = data => {
  95. return https.get('/custom/copy-customers', data)
  96. }
  97. export const changeDelStatus = data => {
  98. return https.get('/custom/change-del-status', data)
  99. }
  100. export const allCredit = data => {
  101. return https.get('/custom/all-credit', data)
  102. }
  103. export const allSetLookStock = data => {
  104. return https.get('/custom/all-set-look-stock', data)
  105. }
  106. export const allSetLookSale = data => {
  107. return https.get('/custom/all-set-look-sale', data)
  108. }
  109. export const changeDebtLimitPay = data => {
  110. return https.get('/custom/change-debt-limit-pay', data)
  111. }
  112. //拉取(刷新)客户累计消费
  113. export const refreshCustomBuyAmount = data => {
  114. return https.get('/custom/refresh-buyamount', data)
  115. }
  116. // 手动减少客户净余额(财务操作)
  117. export const deductBalance = data => {
  118. return https.post('/custom/deduct-amount', data)
  119. }