stock.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. /** *
  3. * 库存明细
  4. */
  5. export const getStockDetailApi = async data => {
  6. return https.get("/stock/detail", data);
  7. };
  8. /** *
  9. * 确认入库
  10. */
  11. export const confirmOrderApi = async orderSn => {
  12. return https.get("/stock-in/confirm-order", { orderSn });
  13. };
  14. /** *
  15. * 入库详情
  16. */
  17. export const getStockInDetailApi = async orderSn => {
  18. return https.get("/stock-in/detail", { orderSn });
  19. };
  20. /** *
  21. * 入库列表
  22. */
  23. export const getStockInListApi = async status => {
  24. return https.get("/stock-in/list", { status });
  25. };
  26. /** *
  27. * 出库详情
  28. */
  29. export const getStockOutDetailApi = async orderSn => {
  30. return https.get("/stock-out/detail", { orderSn });
  31. };
  32. /** *
  33. * 出库订单生成 (待出库/直接出库)
  34. */
  35. export const createStockOutOrderApi = async data => {
  36. return https.post("/stock-out/create-order", data);
  37. };
  38. /** *
  39. * 出库列表
  40. */
  41. export const getStockOutListApi = async status => {
  42. return https.get("/stock-out/list", { status });
  43. };
  44. /** *
  45. * 取消出库
  46. */
  47. export const cancelStockOutOrderApi = async orderSn => {
  48. return https.get("/stock-out/cancel-order", { orderSn });
  49. };
  50. /** *
  51. * 确认出库
  52. */
  53. export const confirmStockOutOrderApi = async orderSn => {
  54. return https.get("/stock-out/confirm-order", { orderSn });
  55. };