index.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 门店列表
  4. */
  5. export const getList = data => {
  6. return https.get('/shop/list', data)
  7. }
  8. /** *
  9. * 修改门店
  10. */
  11. export const updateShop = data => {
  12. return https.post('/shop/update', data)
  13. }
  14. /** *
  15. * 添加门店
  16. */
  17. export const addShop = data => {
  18. return https.post('/shop/add', data)
  19. }
  20. /** *
  21. * 删除门店
  22. */
  23. export const delShop = data => {
  24. return https.get('/shop/delete', data)
  25. }
  26. /** *
  27. * 下载收款码
  28. */
  29. export const downQrCode = data => {
  30. return https.get('/shop/download-gathering-code', data, {}, { hideError: true })
  31. }
  32. /** *
  33. * 下载注册会员码
  34. */
  35. export const downMemberCode = data => {
  36. return https.get('/shop/download-apply-member-code', data, {}, { hideError: true })
  37. }
  38. //当前登陆的门店信息 shish 2021.3,27
  39. export const currentShop = data => {
  40. return https.get('/shop/current-shop', data)
  41. }
  42. //添加云打印机
  43. export const addCloudPrint = data => {
  44. return https.get('/shop-ext/add-print', data)
  45. }
  46. //获取云打印机信息
  47. export const getPrint = data => {
  48. return https.get('/shop-ext/get-print', data)
  49. }
  50. //添加云喇叭
  51. export const addCloudLb = data => {
  52. return https.get('/shop-ext/add-lb', data)
  53. }
  54. //获取云喇叭信息
  55. export const getLb = data => {
  56. return https.get('/shop-ext/get-lb', data)
  57. }
  58. export const getPtGhsShop = data => {
  59. return https.get('/shop/get-pt-ghs-shop', data)
  60. }
  61. export const switchGhsShop = data => {
  62. return https.get('/shop/switch-ghs-shop', data)
  63. }
  64. export const skCustom = data => {
  65. return https.get('/shop/sk-custom', data)
  66. }
  67. export const skCustomSet = data => {
  68. return https.get('/shop/sk-custom-set', data)
  69. }
  70. export const updateCgModel = data => {
  71. return https.get('/shop/update-cg-model', data)
  72. }