| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- import https from "@/plugins/luch-request_0.0.7/request";
- export const cancelOrder = data => {
- return https.get("/purchase/cancel", data);
- };
- export const getAliPayCode = data => {
- return https.get("/purchase/get-ali-pay-code", data);
- };
- export const saveCgPrice = data => {
- return https.post("/cg-item/save-cg-price", data);
- };
- export const confirmTake = data => {
- return https.get("/purchase/confirm-take", data);
- };
- export const getFullInfo = data => {
- return https.get("/purchase/get-full-info", data);
- };
- export const getCgItemInfo = data => {
- return https.get("/cg-item/get-cg-item-info", data);
- };
- export const getDetail = data => {
- return https.get("/purchase/detail", data);
- };
- /** *
- * 采购订单详情
- */
- export const getPurchaseDetailApi = async orderSn => {
- return https.get("/purchase-order/detail", { orderSn });
- };
- /** *
- * 采购列表
- */
- export const getPurchaseListApi = async data => {
- return https.get("/purchase-order/list", data);
- };
- /** *
- * 采购确认
- */
- export const createPurchaseOrderApi = async data => {
- return https.post("/purchase-order/create-order", data);
- };
- /** *
- * 供货商列表
- */
- export const ghsList = async data => {
- return https.get("/ghs/list", data);
- };
- /** *
- * 采购记录
- */
- export const purchaseList = async data => {
- return https.get("/purchase/list", data);
- };
- /** *
- * 待结款明细
- */
- export const purchaseDebtList = async data => {
- return https.get("/purchase/debt-list", data);
- };
- /** *
- * 供货商详情
- */
- export const ghsDetail = async data => {
- return https.get("/ghs/detail", data);
- };
- /** *
- * 待结款 - 结款
- */
- export const purchaseClearCreateOrder = async data => {
- return https.post("/purchase-clear/create-order", data);
- };
- export const purchaseClearWxPay = async data => {
- return https.post("/purchase-clear/wx-pay", data);
- };
- export const purchaseClearAliPay = async data => {
- return https.post("/purchase-clear/ali-pay", data);
- };
- /** *
- * 余额支付
- */
- export const purchaseBalancePay = async data => {
- return https.get("/purchase/balance-pay", data);
- };
- /** *
- * 延期支付
- */
- export const purchaseDebtPay = async data => {
- return https.get("/purchase/debt-pay", data);
- };
- /** *
- * 采购详情 /purchase/wx-pay
- */
- export const purchaseDetail = data => {
- return https.get("/purchase/detail", data);
- };
- export const purchaseAliPay = async data => {
- return https.post("/purchase/ali-pay", data);
- };
- export const purchaseWxPay = async data => {
- return https.post("/purchase/wx-pay", data);
- };
- /** *
- * 发快递配送费计算 姜枫 2021.04.12
- */
- export const freight = async data => {
- return https.get("/purchase/freight", data);
- };
- /** *
- * 采购-下单 姜枫 2021.04.12
- */
- export const createOrder = data => {
- return https.post("/purchase/create-order", data);
- };
- //向虚拟供货商采购
- export const addVirtualCg = data => {
- return https.post("/purchase/add-virtual-cg", data);
- };
|