| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- import https from "@/plugins/luch-request_0.0.7/request";
- //复制新建花材
- export const cloneProduct = data => {
- return https.post("/product/clone", data);
- };
- export const delStatusUpdate = data => {
- return https.post("/product/del-status-update", data);
- };
- export const print = data => {
- return https.get("/product/print", data);
- };
- export const batchChangeAddPrice = data => {
- return https.post("/product/batch-change-add-price", data);
- };
- export const productList = data => {
- return https.get("/product/list", data);
- };
- //获取拼音首字母缩写 shish 20210707
- export const py = data => {
- return https.get("/product/py", data);
- };
- export const getGhsProductDetail = data => {
- return https.get('/product/ghs-product-detail', data)
- }
- /** *
- * 分类及花材数据(库存预警、库存管理共用这个接口)
- * @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);
- };
- //添加花材
- export const addProduct = data => {
- return https.post("/product/add", data);
- };
- //修改花材
- export const updateProduct = data => {
- return https.post("/product/update", data);
- };
- export const changePriceByIdApi = data => {
- return https.post("/product/change-price", data);
- };
- /** *
- * 培训班开单列表(课程开单)
- */
- export const getPxClassDataApi = data => {
- return https.get("/px-class/list", data);
- };
- /** *
- * 商品开单列表
- */
- export const getGoodsDataApi = data => {
- return https.get("/goods/index", data);
- };
- /** *
- * 培训班详情
- */
- export const pxClassDetail = data => {
- return https.get("/px-class/detail", data);
- };
-
- /** *
- * 修改培训班
- */
- export const pxClassUpdate = data => {
- return https.get("/px-class/update", data);
- };
- /** *
- * 新增培训班
- */
- export const pxClassAdd = data => {
- return https.get("/px-class/add", data);
- };
- /** *
- * 删除培训班
- */
- export const pxClassDel = data => {
- return https.get("/px-class/del", data);
- };
- /** *
- * 供货商花材列表(进店开单) 【采购开单】
- */
- export const getGhsProductList = data => {
- return https.get('/product/ghs-item', data)
- }
- export const getGhsProductListV2 = data => {
- return https.get('/product/ghs-item-v2', data)
- }
- export const getProductDetail = data => {
- return https.get("/product/detail", data);
- };
- //批量改价
- export const batchChangePrice = data => {
- return https.post("/product/batch-change-price", data);
- };
- //生成价格表 shish 20210922
- export const generatePriceTable = data => {
- return https.get("/product/generate-price-table", data);
- };
|