| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import https from "@/plugins/luch-request_0.0.7/request";
- /** *
- * 分类及花材数据(库存预警、库存管理共用这个接口)
- * @parmas py 花材拼音
- * @parmas type 库存预警时,固定为waring,其他情况不传或者传空
- */
- export const getProductDataApi = data => {
- return https.get("/product/index", data);
- };
- /** *
- * 获取所有分类(包括常用、全部)(暂不用)
- * @parmas py 花材拼音
- * @parmas type 库存预警时,固定为waring,其他情况不传或者传空
- */
- export const getAllProductDataApi = data => {
- return https.get("/product/list", data);
- };
- /**
- * 自动调价
- * productId
- */
- export const autoPriceByIdApi = data => {
- return https.post("/product/auto-price", data);
- };
- /**
- * 改价
- * productId
- * price
- */
- export const changePriceByIdApi = data => {
- return https.post("/product/change-price", data);
- };
- //添加花材
- export const addProduct = data => {
- return https.post("/product/add", data);
- };
- //修改花材
- export const updateProduct = data => {
- return https.post("/product/update", data);
- };
- export const getProductDetail = data => {
- return https.get("/product/detail", data);
- };
- //获取拼音首字母缩写 shish 20210707
- export const py = data => {
- return https.get("/product/py", data);
- };
|