index.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. export const getCgItemList = data => {
  3. return https.get("/purchase-order-item/get-item-list", data);
  4. };
  5. export const cancelPutIn = data => {
  6. return https.get("/purchase-order/cancel", data);
  7. };
  8. export const confirmPutIn = data => {
  9. return https.get("/purchase-order/confirm-put-in", data);
  10. };
  11. export const printAll = data => {
  12. return https.get("/purchase-order/print-all", data);
  13. };
  14. export const printItem = data => {
  15. return https.get("/purchase-order/print-item", data);
  16. };
  17. /** *
  18. * 采购订单详情
  19. */
  20. export const getPurchaseDetailApi = orderSn => {
  21. return https.get("/purchase-order/detail", { orderSn });
  22. };
  23. /** *
  24. * 采购列表
  25. */
  26. export const getPurchaseListApi = async data => {
  27. return https.get("/purchase-order/list", data);
  28. };
  29. /** *
  30. * 采购确认
  31. */
  32. export const createPurchaseOrderApi = data => {
  33. return https.post("/purchase-order/create-order", data);
  34. };
  35. export const updateRemark = async data => {
  36. return https.post("/purchase-order/update-remark", data);
  37. };