index.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // 物业管理员
  2. import http from "@/apis/axios";
  3. const api = "admin/";
  4. export default {
  5. // 添加
  6. add: (data, params) => http(api + "add", data, "post", params),
  7. // 分页查询
  8. list: (data, params) => http(api + "supplierCgdList", data, "post", params),
  9. // 删除
  10. delete: (data, params) => http(api + "delete", data, "post", params),
  11. // 详情
  12. detail: (data, params) => http(api + "cgdinfo", data, "post", params),
  13. // 更新
  14. update: (data, params) => http(api + "cgdedit", data, "post", params),
  15. // 修改状态
  16. status: (data, params) => http(api + "cgdstatus", data, "post", params),
  17. // 新建入库单
  18. orderinadd: (data, params) => http(api + "orderinadd", data, "post", params),
  19. // 新建入库单详情
  20. orderininfo: (data, params) => http(api + "orderininfo", data, "post", params),
  21. // 异常原因列表
  22. resultlist: (data, params) => http(api + "resultlist", data, "post", params),
  23. // 入库单验货
  24. orderincheck: (data, params) => http(api + "orderincheck", data, "post", params),
  25. // 入库单退货换货
  26. orderinreturn: (data, params) => http(api + "orderinreturn", data, "post", params),
  27. // 发货单状态修改
  28. orderinstatus: (data, params) => http(api + "orderinstatus", data, "post", params),
  29. // 采返商品详情
  30. re_detail: (data, params) => http(api + "goodzxinfo", data, "post", params),
  31. //商品成本详情
  32. cost_detail: (data, params) => http(api + "goodupinfo", data, "post", params),
  33. //采购单修改实时金价
  34. cgdeditgoldprice: (data, params) => http(api + "cgdeditgoldprice", data, "post", params),
  35. // 采返商品详情 订单生成前
  36. cove_detail: (data, params) => http(api + "getgoodzxinfobynotzixun", data, "post", params),
  37. //导出
  38. exportcgdlist: (data, params) => http(api + "exportcgdlist", data, "post", params),
  39. };