123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- import request from "@/utils/request.js";
- /**
- * 统计数据
- */
- export function getStatisticsInfo() {
- return request.get("admin/order/statistics", {}, {
- login: true
- });
- }
- /**
- * 订单月统计
- */
- export function getStatisticsMonth(where) {
- return request.get("admin/order/data", where, {
- login: true
- });
- }
- /**
- * 订单月统计
- */
- export function getAdminOrderList(where) {
- return request.get("admin/order/list", where, {
- login: true
- });
- }
- /**
- * 订单改价
- */
- export function setAdminOrderPrice(data) {
- return request.post("admin/order/price", data, {
- login: true
- });
- }
- /**
- * 订单备注
- */
- export function setAdminOrderRemark(data) {
- return request.post("admin/order/remark", data, {
- login: true
- });
- }
- /**
- * 订单备注(退款)
- */
- export function setAdminRefundRemark(data) {
- return request.post("admin/refund_order/remark", data, {
- login: true
- });
- }
- /**
- * 订单详情
- */
- export function getAdminOrderDetail(orderId) {
- return request.get("admin/order/detail/" + orderId, {}, {
- login: true
- });
- }
- /**
- * 订单详情(退款)
- */
- export function getAdminRefundDetail(orderId) {
- return request.get("admin/refund_order/detail/" + orderId, {}, {
- login: true
- });
- }
- /**
- * 订单发货保存
- */
- export function setAdminOrderDelivery(id, data) {
- return request.post("admin/order/delivery/keep/" + id, data, {
- login: true
- });
- }
- /**
- * 订单统计图
- */
- export function getStatisticsTime(data) {
- return request.get("admin/order/time", data, {
- login: true
- });
- }
- /**
- * 线下付款订单确认付款
- */
- export function setOfflinePay(data) {
- return request.post("admin/order/offline", data, {
- login: true
- });
- }
- /**
- * 订单确认退款
- */
- export function setOrderRefund(data) {
- return request.post("admin/order/refund", data, {
- login: true
- });
- }
- /**
- * 获取快递公司
- * @returns {*}
- */
- export function getLogistics(data) {
- return request.get("logistics", data, {
- login: false
- });
- }
- /**
- * 订单核销
- * @returns {*}
- */
- export function orderVerific(verify_code, is_confirm) {
- return request.post("order/order_verific", {
- verify_code,
- is_confirm
- });
- }
- /**
- * 获取物流公司模板
- * @returns {*}
- */
- export function orderExportTemp(data) {
- return request.get("admin/order/export_temp", data);
- }
- /**
- * 获取订单打印默认配置
- * @returns {*}
- */
- export function orderDeliveryInfo(id) {
- return request.get("admin/order/delivery_info/"+id);
- }
- /**
- * 配送员列表
- * @returns {*}
- */
- export function orderOrderDelivery() {
- return request.get("admin/order/delivery");
- }
- // 门店
- /**
- * 用户信息
- */
- export function userInfo() {
- return request.get("store/staff/info");
- }
- /**
- * 门店中心-订单统计
- */
- export function orderInfo(data) {
- return request.get("store/order/statistics",data);
- }
- /**
- * 门店中心-统计菜单
- */
- export function statisticsMenuApi(data) {
- return request.get("store/staff/statistics",data);
- }
- /**
- * 门店中心-详细数据列表
- */
- export function getListApi(data) {
- return request.get("store/order/data",data);
- }
- /**
- * 门店中心-数据详情-列表
- */
- export function getStatisticsListApi(type,data) {
- return request.get("store/staff/data/"+type,data);
- }
- /**
- * 门店中心-订单管理列表
- */
- export function getOrderlistApi(data) {
- return request.get("store/order/list",data);
- }
- /**
- * 门店中心-订单管理列表(退款)
- */
- export function getRefundlistApi(data) {
- return request.get("store/refund/list",data);
- }
- /**
- * 门店中心-订单管理备注
- */
- export function getOrderreMarkApi(data) {
- return request.post("store/order/remark",data);
- }
- /**
- * 门店中心-订单管理备注(退款)
- */
- export function getRefundMarkApi(data) {
- return request.post("store/refund/remark",data);
- }
- /**
- * 门店中心-订单管理改价
- */
- export function getOrderPriceApi(data) {
- return request.post("store/order/price",data);
- }
- /**
- * 门店中心-订单管理确定付款
- */
- export function getOrderOfflineApi(data) {
- return request.post("store/order/offline",data);
- }
- /**
- * 门店中心-去发货-用户
- */
- export function getOrderDeliveryinfoApi(id) {
- return request.get("store/order/delivery_info/"+id);
- }
- /**
- * 门店中心-去发货-获取快递公司
- */
- export function getOrderExportApi(data) {
- return request.get("store/order/export_all", data, {
- login: false
- });
- }
- /**
- * 门店中心-去发货-获取物流公司模板
- * @returns {*}
- */
- export function getOrderExportTemp(data) {
- return request.get("store/order/export_temp", data);
- }
- /**
- * 门店中心-去发货-订单发货保存
- */
- export function setOrderDelivery(id, data) {
- return request.post("store/order/delivery/" + id, data, {
- login: true
- });
- }
- /**
- * 门店中心-去发货-获取配送员列表
- * @returns {*}
- */
- export function getOrderDelivery() {
- return request.get("store/delivery/list");
- }
- /**
- * 门店中心-订单确认退款
- */
- export function OrderRefund(data) {
- return request.post("store/order/refund", data, {
- login: true
- });
- }
- /**
- * 门店中心-订单详情
- */
- export function OrderDetail(id) {
- return request.get("store/order/detail/"+id);
- }
- /**
- * 门店中心-订单详情(退款)
- */
- export function refundDetail(id) {
- return request.get("store/refund/detail/"+id);
- }
- /**
- * 配送员-获取用户信息
- */
- export function deliveryInfo(id) {
- return request.get("store/delivery/info");
- }
- /**
- * 配送员-获取配送统计数据
- */
- export function deliveryStatistics(data) {
- return request.get("store/delivery/statistics",data);
- }
- /**
- * 配送员-获取配送统计数据列表
- */
- export function deliveryList(data) {
- return request.get("store/delivery/data",data);
- }
- /**
- * 配送员-获取订单列表数据列表
- */
- export function deliveryOrderList(data) {
- return request.get("store/delivery/order",data);
- }
- /**
- * 门店中心-订单取消、删除
- */
- export function OrderDel(id) {
- return request.delete("store/order/del/"+id);
- }
- /**
- * 门店中心-订单取消、取消
- */
- export function OrderCancel(id) {
- return request.post("store/order/cancel/"+id);
- }
- /**
- * 配送员-扫码核销获取订单信息
- */
- export function orderWriteoffInfo(type,data) {
- return request.get("store/order/writeoff_info/"+type,data);
- }
- /**
- * 配送员-核销订单获取商品信息
- */
- export function orderCartInfo(type,data) {
- return request.get("store/order/cart_info/"+type,data);
- }
- /**
- * 配送员-订单核销
- */
- export function orderWriteoff(type,data) {
- return request.post("store/order/writeoff/"+type,data);
- }
- /**
- * 统计管理-获取订单可拆分商品列表
- */
- export function orderSplitInfo(id) {
- return request.get("admin/order/split_cart_info/"+id);
- }
- /**
- * 统计管理-提交
- */
- export function orderSplitDelivery(id,data) {
- return request.put("admin/order/split_delivery/"+id,data);
- }
- /**
- * 统计管理-退货退款
- */
- export function orderRefundAgree(id) {
- return request.post("admin/order/refund_agree/"+id);
- }
- /**
- * 门店中心-获取订单可拆分商品列表
- */
- export function storeSplitInfo(id) {
- return request.get("store/order/split_cart_info/"+id);
- }
- /**
- * 门店中心-提交
- */
- export function storeSplitDelivery(id,data) {
- return request.put("store/order/split_delivery/"+id,data);
- }
- /**
- * 门店中心-退货退款
- */
- export function storeRefundAgree(id) {
- return request.post("store/order/refund_agree/"+id);
- }
- /**
- * 平台-退款列表
- */
- export function adminRefundList(data) {
- return request.get("admin/refund_order/list",data);
- }
|