index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. /** *
  3. * 盘点列表
  4. */
  5. export const getCheckOrderListApi = data => {
  6. return https.get("/check-order/list", data);
  7. };
  8. /** *
  9. * 编辑草稿 ,保存入库
  10. */
  11. export const updateCheckOrderApi = async data => {
  12. return https.post("/check-order/update-order", data);
  13. };
  14. /** *
  15. * 盘点确认,保存入库 2021.05.21 姜枫
  16. */
  17. export const checkOrderApi = async data => {
  18. return https.post("/check-order/create-order", data);
  19. };
  20. /** *
  21. * 编辑草稿 ,继续保存到草稿
  22. */
  23. export const updateCheckOrderToDraftApi = async data => {
  24. return https.post("/check-order/update-draft", data);
  25. };
  26. /** *
  27. * 盘点存草稿
  28. */
  29. export const savaCheckOrderDraftApi = async data => {
  30. return https.post("/check-order/create-draft", data);
  31. };
  32. /** *
  33. * 盘点订单详情
  34. */
  35. export const getCheckOrderDetailApi = async orderSn => {
  36. return https.get("/check-order/detail", { orderSn });
  37. };
  38. /** *
  39. * 盘点确认
  40. */
  41. export const savaCheckOrderApi = async data => {
  42. return https.post("/check-order/create-order", data);
  43. };