|
@@ -1,52 +1,52 @@
|
|
|
-import https from '@/plugins/luch-request_0.0.7/request'
|
|
|
|
|
|
|
+import https from "@/plugins/luch-request_0.0.7/request";
|
|
|
/** *
|
|
/** *
|
|
|
* 商城下单-生成订单 m
|
|
* 商城下单-生成订单 m
|
|
|
*/
|
|
*/
|
|
|
export const getList = data => {
|
|
export const getList = data => {
|
|
|
- return https.get('/order/list', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/list", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 订单详情 m
|
|
* 订单详情 m
|
|
|
*/
|
|
*/
|
|
|
export const getDetail = data => {
|
|
export const getDetail = data => {
|
|
|
- return https.get('/order/detail', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/detail", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 订单评价 m
|
|
* 订单评价 m
|
|
|
*/
|
|
*/
|
|
|
export const comment = data => {
|
|
export const comment = data => {
|
|
|
- return https.post('/order/comment', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order/comment", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 商城下单-生成订单 m
|
|
* 商城下单-生成订单 m
|
|
|
*/
|
|
*/
|
|
|
export const createOrder = data => {
|
|
export const createOrder = data => {
|
|
|
- return https.post('/order/create-order', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order/create-order", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 商城下单-相关信息 m
|
|
* 商城下单-相关信息 m
|
|
|
*/
|
|
*/
|
|
|
export const orderRelate = data => {
|
|
export const orderRelate = data => {
|
|
|
- return https.get('/order/order-relate', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/order-relate", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 商城下单-余额付款 m
|
|
* 商城下单-余额付款 m
|
|
|
*/
|
|
*/
|
|
|
export const balancePay = data => {
|
|
export const balancePay = data => {
|
|
|
- return https.post('/order/balance-pay', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order/balance-pay", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 商城下单-微信支付 m
|
|
* 商城下单-微信支付 m
|
|
|
*/
|
|
*/
|
|
|
export const wxPay = data => {
|
|
export const wxPay = data => {
|
|
|
- return https.post('/order/wx-pay', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order/wx-pay", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// ===================== B 端 ========================
|
|
// ===================== B 端 ========================
|
|
|
|
|
|
|
@@ -54,77 +54,84 @@ export const wxPay = data => {
|
|
|
* 订单列表 b
|
|
* 订单列表 b
|
|
|
*/
|
|
*/
|
|
|
export const getListB = data => {
|
|
export const getListB = data => {
|
|
|
- return https.get('/order/list', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/list", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 订单详情 b
|
|
* 订单详情 b
|
|
|
*/
|
|
*/
|
|
|
export const getDetB = data => {
|
|
export const getDetB = data => {
|
|
|
- return https.get('/order/detail', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/detail", data);
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+/** *
|
|
|
|
|
+ * 未支付订单重选花材
|
|
|
|
|
+ */
|
|
|
|
|
+export const chooseOrderProductApi = async data => {
|
|
|
|
|
+ return https.post("/order/choose-product", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 免发货 b
|
|
* 免发货 b
|
|
|
*/
|
|
*/
|
|
|
export const freeShipping = data => {
|
|
export const freeShipping = data => {
|
|
|
- return https.get('/order/without-send', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/without-send", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 发货详情(发货、继续、查看配送) b
|
|
* 发货详情(发货、继续、查看配送) b
|
|
|
*/
|
|
*/
|
|
|
export const orderSendDet = data => {
|
|
export const orderSendDet = data => {
|
|
|
- return https.get('/order-send/detail', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order-send/detail", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 发货操作-制单 b
|
|
* 发货操作-制单 b
|
|
|
*/
|
|
*/
|
|
|
export const printOrder = data => {
|
|
export const printOrder = data => {
|
|
|
- return https.post('/order-send/print-order', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order-send/print-order", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 发货操作-发货 b
|
|
* 发货操作-发货 b
|
|
|
*/
|
|
*/
|
|
|
export const orderSend = data => {
|
|
export const orderSend = data => {
|
|
|
- return https.post('/order-send/deliver', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order-send/deliver", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 发货操作-送达 b
|
|
* 发货操作-送达 b
|
|
|
*/
|
|
*/
|
|
|
export const orderReach = data => {
|
|
export const orderReach = data => {
|
|
|
- return https.post('/order-send/reach', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order-send/reach", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 发货-填写收花人 b
|
|
* 发货-填写收花人 b
|
|
|
*/
|
|
*/
|
|
|
export const updateSheet = data => {
|
|
export const updateSheet = data => {
|
|
|
- return https.post('/order/update-sheet', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order/update-sheet", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 发货-归类 b
|
|
* 发货-归类 b
|
|
|
*/
|
|
*/
|
|
|
export const orderClass = data => {
|
|
export const orderClass = data => {
|
|
|
- return https.post('/order/classify', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.post("/order/classify", data);
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
/** *
|
|
/** *
|
|
|
* 修改价格 b
|
|
* 修改价格 b
|
|
|
*/
|
|
*/
|
|
|
export const orderUpdatePrice = data => {
|
|
export const orderUpdatePrice = data => {
|
|
|
- return https.get('/order/update-price', data)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return https.get("/order/update-price", data);
|
|
|
|
|
+};
|
|
|
// ===================== new ========================
|
|
// ===================== new ========================
|
|
|
// 计算运费
|
|
// 计算运费
|
|
|
-export const freight = data => https.get('/order/freight', data)
|
|
|
|
|
|
|
+export const freight = data => https.get("/order/freight", data);
|
|
|
// 发快递
|
|
// 发快递
|
|
|
-export const thirdSend = data => https.get('/order/third-send', data)
|
|
|
|
|
|
|
+export const thirdSend = data => https.get("/order/third-send", data);
|
|
|
// 本店送
|
|
// 本店送
|
|
|
-export const selfSend = data => https.get('/order/self-send', data)
|
|
|
|
|
|
|
+export const selfSend = data => https.get("/order/self-send", data);
|
|
|
|
|
|
|
|
-export const reachOrder = data => https.get('/order/reach', data)
|
|
|
|
|
|
|
+export const reachOrder = data => https.get("/order/reach", data);
|