index.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. /** *
  3. * 分类及花材数据(库存预警、库存管理共用这个接口)
  4. * @parmas py 花材拼音
  5. * @parmas type 库存预警时,固定为waring,其他情况不传或者传空
  6. */
  7. export const getProductDataApi = data => {
  8. return https.get("/product/index", data);
  9. };
  10. /** *
  11. * 获取所有分类(包括常用、全部)(暂不用)
  12. * @parmas py 花材拼音
  13. * @parmas type 库存预警时,固定为waring,其他情况不传或者传空
  14. */
  15. export const getAllProductDataApi = data => {
  16. return https.get("/product/list", data);
  17. };
  18. export const productList = data => {
  19. return https.get("/product/list", data);
  20. };
  21. /**
  22. * 自动调价
  23. * productId
  24. */
  25. export const autoPriceByIdApi = data => {
  26. return https.post("/product/auto-price", data);
  27. };
  28. //改价
  29. export const changePriceByIdApi = data => {
  30. return https.post("/product/change-price", data);
  31. };
  32. //批量改价
  33. export const batchChangePrice = data => {
  34. return https.post("/product/batch-change-price", data);
  35. };
  36. //批量改价
  37. export const batchUpdatePrice = data => {
  38. return https.post("/product/batch-update", data);
  39. };
  40. //添加花材
  41. export const addProduct = data => {
  42. return https.post("/product/add", data);
  43. };
  44. //修改花材
  45. export const updateProduct = data => {
  46. return https.post("/product/update", data);
  47. };
  48. export const getProductDetail = data => {
  49. return https.get("/product/detail", data);
  50. };
  51. export const batchChangeAddPrice = data => {
  52. return https.post("/product/batch-change-add-price", data);
  53. };
  54. export const batchChangeMore = data => {
  55. return https.post("/product/batch-change-more", data);
  56. };
  57. //获取拼音首字母缩写 shish 20210707
  58. export const py = data => {
  59. return https.get("/product/py", data);
  60. };
  61. //生成价格表 shish 20210922
  62. export const generatePriceTable = data => {
  63. return https.get("/product/generate-price-table", data);
  64. };
  65. //所有花材
  66. export const allProduct = data => {
  67. return https.get("/product/all", data);
  68. };
  69. //下载条形码
  70. export const generateBarcodeTable = data => {
  71. return https.get("/product/generate-barcode-table", data);
  72. };