import https from "@/plugins/luch-request_0.0.7/request"; export const cancelOrder = data => { return https.get("/order/cancel", data); }; //微信和支付宝付款码支付 export const codePay = data => https.get("/order/code-pay", data); //微信和支付宝付款码支付复查 export const codePayCheck = data => https.get("/order/code-pay-check", data); export const updateOrder = data => { return https.post("/order/update", data); }; //获取欠款单列表 ssh 20220116 export const getDebtOrderList = data => { return https.get("/order/debt-list", data); }; export const sendOrder = data => { return https.get("/order/send", data); }; export const fetchOrder = data => { return https.get("/order/fetch", data); }; export const onlinePrintOrder = data => { return https.get("/order/print-order", data); }; //退款 export const refund = data => {return https.post("/refund/create-order", data);}; //损耗生成订单 export const wastage = data => { return https.post("/wastage/create-order", data); }; /** * * 商城下单-生成订单 m */ export const getList = data => { return https.get("/order/list", data); }; /** * * 订单详情 m */ export const getDetail = data => { return https.get("/order/detail", data); }; /** * * 订单评价 m */ export const comment = data => { return https.post("/order/comment", data); }; /** * * 商城下单-生成订单 m */ export const createOrder = data => { return https.post("/order/create-order", data); }; /** * * 培训班开单(课程确定开单) */ export const createPxClassOrder = data => { return https.get("/px-apply/add", data); }; /** * * 商城下单-相关信息 m */ export const orderRelate = data => { return https.get("/order/order-relate", data); }; /** * * 商城下单-余额付款 m */ export const balancePay = data => { return https.post("/order/balance-pay", data); }; /** * * 商城下单-微信支付 m */ export const wxPay = data => { return https.post("/order/wx-pay", data); }; // ===================== B 端 ======================== /** * * 订单列表 b */ export const getListB = data => { return https.get("/order/list", data); }; /** * * 订单详情 b */ export const getDetB = data => { return https.get("/order/detail", data); }; export const getOrderInfo = data => { return https.get("/order/info", data); }; /** * * 延期收款 --姜枫 2021.03.20 */ export const debtPay = data => { return https.get("/order/debt", data); }; /** * * 已收款 --姜枫 2021.03.20 */ export const hasPay = data => { return https.get("/order/has-pay", data); }; /** * * 发快递 --姜枫 2021.03.20 */ export const sendExpressage = data => { return https.get("/order/third-send", data); }; /** * * 确认送达 --姜枫 2021.03.21 */ export const sendReach = data => { return https.get("/order/reach", data); }; /** * * 未支付订单重选花材 姜枫 2021.03.21 原请求地址:order/choose-product */ export const chooseOrderProductApi = async data => { return https.post("/order-item/reset", data); }; /** * * 免发货 b */ export const freeShipping = data => { return https.get("/order/without-send", data); }; /** * * 发货详情(发货、继续、查看配送) b */ export const orderSendDet = data => { return https.get("/order-send/detail", data); }; /** * * 发货操作-制单 b */ export const printOrder = data => { return https.post("/order-send/print-order", data); }; /** * * 发货操作-发货 b */ export const orderSend = data => { return https.post("/order-send/deliver", data); }; /** * * 发货操作-送达 b */ export const orderReach = data => { return https.post("/order-send/reach", data); }; /** * * 发货-填写收花人 b */ export const updateSheet = data => { return https.post("/order/update-sheet", data); }; /** * * 发货-归类 b */ export const orderClass = data => { return https.post("/order/classify", data); }; /** * * 修改价格 b */ export const orderUpdatePrice = data => { return https.get("/order/update-price", data); }; // ===================== new ======================== // 计算运费 export const freight = data => https.get("/order/freight", data); // 发快递 export const thirdSend = data => https.get("/order/third-send", data); // 本店送 export const selfSend = data => https.get("/order/self-send", data); export const reachOrder = data => https.get("/order/reach", data); export const getScanPayList = data => https.get("/scan-pay/list", data); export const getScanPayDetail = data => https.get("/scan-pay/detail", data); export const scanPayRefund = data => https.post("/scan-pay/refund", data);