index.js 663 B

123456789101112131415161718192021222324252627282930
  1. import {
  2. get,
  3. put,
  4. putJ,
  5. postJ,
  6. deleteApi
  7. } from "@/utils/request";
  8. import Vue from "vue";
  9. /**
  10. * 获取信息详情
  11. */
  12. export async function getReceiveConfirmDetail(id) {
  13. const res = await get(Vue.prototype.apiUrl + `/eom/purchasereceiveconfirm/getById/${id}`, {});
  14. if (res.code == 0) {
  15. return res.data;
  16. }
  17. return Promise.reject(new Error(res.message));
  18. }
  19. /**
  20. * 获取信息列表
  21. */
  22. export async function getPurchaseOrderList(params) {
  23. const res = await get(Vue.prototype.apiUrl + `/eom/purchaseorder/page`,params);
  24. if (res.code == 0) {
  25. return res.data;
  26. }
  27. return Promise.reject(new Error(res.message));
  28. }