index.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. export const cancelOrder = data => {
  3. return https.get("/purchase/cancel", data);
  4. };
  5. export const getAliPayCode = data => {
  6. return https.get("/purchase/get-ali-pay-code", data);
  7. };
  8. export const saveCgPrice = data => {
  9. return https.post("/cg-item/save-cg-price", data);
  10. };
  11. export const confirmTake = data => {
  12. return https.get("/purchase/confirm-take", data);
  13. };
  14. export const getFullInfo = data => {
  15. return https.get("/purchase/get-full-info", data);
  16. };
  17. export const getCgItemInfo = data => {
  18. return https.get("/cg-item/get-cg-item-info", data);
  19. };
  20. export const getDetail = data => {
  21. return https.get("/purchase/detail", data);
  22. };
  23. /** *
  24. * 采购订单详情
  25. */
  26. export const getPurchaseDetailApi = async orderSn => {
  27. return https.get("/purchase-order/detail", { orderSn });
  28. };
  29. /** *
  30. * 采购列表
  31. */
  32. export const getPurchaseListApi = async data => {
  33. return https.get("/purchase-order/list", data);
  34. };
  35. /** *
  36. * 采购确认
  37. */
  38. export const createPurchaseOrderApi = async data => {
  39. return https.post("/purchase-order/create-order", data);
  40. };
  41. /** *
  42. * 供货商列表
  43. */
  44. export const ghsList = async data => {
  45. return https.get("/ghs/list", data);
  46. };
  47. /** *
  48. * 采购记录
  49. */
  50. export const purchaseList = async data => {
  51. return https.get("/purchase/list", data);
  52. };
  53. /** *
  54. * 待结款明细
  55. */
  56. export const purchaseDebtList = async data => {
  57. return https.get("/purchase/debt-list", data);
  58. };
  59. /** *
  60. * 供货商详情
  61. */
  62. export const ghsDetail = async data => {
  63. return https.get("/ghs/detail", data);
  64. };
  65. /** *
  66. * 待结款 - 结款
  67. */
  68. export const purchaseClearCreateOrder = async data => {
  69. return https.post("/purchase-clear/create-order", data);
  70. };
  71. export const purchaseClearWxPay = async data => {
  72. return https.post("/purchase-clear/wx-pay", data);
  73. };
  74. export const purchaseClearAliPay = async data => {
  75. return https.post("/purchase-clear/ali-pay", data);
  76. };
  77. /** *
  78. * 余额支付
  79. */
  80. export const purchaseBalancePay = async data => {
  81. return https.get("/purchase/balance-pay", data);
  82. };
  83. /** *
  84. * 延期支付
  85. */
  86. export const purchaseDebtPay = async data => {
  87. return https.get("/purchase/debt-pay", data);
  88. };
  89. /** *
  90. * 采购详情 /purchase/wx-pay
  91. */
  92. export const purchaseDetail = data => {
  93. return https.get("/purchase/detail", data);
  94. };
  95. export const purchaseAliPay = async data => {
  96. return https.post("/purchase/ali-pay", data);
  97. };
  98. export const purchaseWxPay = async data => {
  99. return https.post("/purchase/wx-pay", data);
  100. };
  101. /** *
  102. * 发快递配送费计算 姜枫 2021.04.12
  103. */
  104. export const freight = async data => {
  105. return https.get("/purchase/freight", data);
  106. };
  107. /** *
  108. * 采购-下单 姜枫 2021.04.12
  109. */
  110. export const createOrder = data => {
  111. return https.post("/purchase/create-order", data);
  112. };
  113. //向虚拟供货商采购
  114. export const addVirtualCg = data => {
  115. return https.post("/purchase/add-virtual-cg", data);
  116. };