index.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. /** *
  3. * 采购订单详情
  4. */
  5. export const getPurchaseDetailApi = async orderSn => {
  6. return https.get("/purchase-order/detail", { orderSn });
  7. };
  8. /** *
  9. * 采购列表
  10. */
  11. export const getPurchaseListApi = async data => {
  12. return https.get("/purchase-order/list", data);
  13. };
  14. /** *
  15. * 采购确认
  16. */
  17. export const createPurchaseOrderApi = async data => {
  18. return https.post("/purchase-order/create-order", data);
  19. };
  20. /** *
  21. * 供应商列表
  22. */
  23. export const ghsList = async data => {
  24. return https.get("/ghs/list", data);
  25. };
  26. /** *
  27. * 采购记录
  28. */
  29. export const purchaseList = async data => {
  30. return https.get("/purchase/list", data);
  31. };
  32. /** *
  33. * 待结款明细
  34. */
  35. export const purchaseDebtList = async data => {
  36. return https.get("/purchase/debt-list", data);
  37. };
  38. /** *
  39. * 供应商详情
  40. */
  41. export const ghsDetail = async data => {
  42. return https.get("/ghs/detail", data);
  43. };
  44. /** *
  45. * 待结款 - 结款
  46. */
  47. export const purchaseClearCreateOrder = async data => {
  48. return https.post("/purchase-clear/create-order", data);
  49. };
  50. /** *
  51. * 待结款 - 微信支付
  52. */
  53. export const purchaseClearWxPay = async data => {
  54. return https.post("/purchase-clear/wx-pay", data);
  55. };
  56. /** *
  57. * 余额支付
  58. */
  59. export const purchaseBalancePay = async data => {
  60. return https.get("/purchase/balance-pay", data);
  61. };
  62. /** *
  63. * 延期支付
  64. */
  65. export const purchaseDebtPay = async data => {
  66. return https.get("/purchase/debt-pay", data);
  67. };
  68. /** *
  69. * 采购详情 /purchase/wx-pay
  70. */
  71. export const purchaseDetail = data => {
  72. return https.get("/purchase/detail", data);
  73. };
  74. /** *
  75. * 采购详情
  76. */
  77. export const purchaseWxPay = async data => {
  78. return https.post("/purchase/wx-pay", data);
  79. };
  80. /** *
  81. * 发快递配送费计算 姜枫 2021.04.12
  82. */
  83. export const freight = async data => {
  84. return https.post("/purchase/freight", data);
  85. };
  86. /** *
  87. * 采购-下单 姜枫 2021.04.12
  88. */
  89. export const createOrder = async data => {
  90. return https.post("/purchase/create-order", data);
  91. };