index.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. //复制新建花材
  3. export const cloneProduct = data => {
  4. return https.post("/product/clone", data);
  5. };
  6. export const delStatusUpdate = data => {
  7. return https.post("/product/del-status-update", data);
  8. };
  9. export const print = data => {
  10. return https.get("/product/print", data);
  11. };
  12. export const batchChangeAddPrice = data => {
  13. return https.post("/product/batch-change-add-price", data);
  14. };
  15. export const productList = data => {
  16. return https.get("/product/list", data);
  17. };
  18. //获取拼音首字母缩写 shish 20210707
  19. export const py = data => {
  20. return https.get("/product/py", data);
  21. };
  22. export const getGhsProductDetail = data => {
  23. return https.get('/product/ghs-product-detail', data)
  24. }
  25. /** *
  26. * 分类及花材数据(库存预警、库存管理共用这个接口)
  27. * @parmas py 花材拼音
  28. * @parmas type 库存预警时,固定为waring,其他情况不传或者传空
  29. */
  30. export const getProductDataApi = data => {
  31. return https.get("/product/index", data);
  32. };
  33. /** *
  34. * 获取所有分类(包括常用、全部)(暂不用)
  35. * @parmas py 花材拼音
  36. * @parmas type 库存预警时,固定为waring,其他情况不传或者传空
  37. */
  38. export const getAllProductDataApi = data => {
  39. return https.get("/product/list", data);
  40. };
  41. /**
  42. * 自动调价
  43. * productId
  44. */
  45. export const autoPriceByIdApi = data => {
  46. return https.post("/product/auto-price", data);
  47. };
  48. //添加花材
  49. export const addProduct = data => {
  50. return https.post("/product/add", data);
  51. };
  52. //修改花材
  53. export const updateProduct = data => {
  54. return https.post("/product/update", data);
  55. };
  56. export const changePriceByIdApi = data => {
  57. return https.post("/product/change-price", data);
  58. };
  59. /** *
  60. * 培训班开单列表(课程开单)
  61. */
  62. export const getPxClassDataApi = data => {
  63. return https.get("/px-class/list", data);
  64. };
  65. /** *
  66. * 商品开单列表
  67. */
  68. export const getGoodsDataApi = data => {
  69. return https.get("/goods/index", data);
  70. };
  71. /** *
  72. * 培训班详情
  73. */
  74. export const pxClassDetail = data => {
  75. return https.get("/px-class/detail", data);
  76. };
  77. /** *
  78. * 修改培训班
  79. */
  80. export const pxClassUpdate = data => {
  81. return https.get("/px-class/update", data);
  82. };
  83. /** *
  84. * 新增培训班
  85. */
  86. export const pxClassAdd = data => {
  87. return https.get("/px-class/add", data);
  88. };
  89. /** *
  90. * 删除培训班
  91. */
  92. export const pxClassDel = data => {
  93. return https.get("/px-class/del", data);
  94. };
  95. /** *
  96. * 供货商花材列表(进店开单) 【采购开单】
  97. */
  98. export const getGhsProductList = data => {
  99. return https.get('/product/ghs-item', data)
  100. }
  101. export const getGhsProductListV2 = data => {
  102. return https.get('/product/ghs-item-v2', data)
  103. }
  104. export const getProductDetail = data => {
  105. return https.get("/product/detail", data);
  106. };
  107. //批量改价
  108. export const batchChangePrice = data => {
  109. return https.post("/product/batch-change-price", data);
  110. };
  111. //生成价格表 shish 20210922
  112. export const generatePriceTable = data => {
  113. return https.get("/product/generate-price-table", data);
  114. };