Commit 946f4fc3 authored by pengyunqian's avatar pengyunqian

update:订单列表

parent e7a9b771
...@@ -140,7 +140,7 @@ exports.orderRefundReject = async ctx => { ...@@ -140,7 +140,7 @@ exports.orderRefundReject = async ctx => {
// 获取订单管理列表 // 获取订单管理列表
exports.newGetOrderList = async ctx => { exports.newGetOrderList = async ctx => {
const url = `${GROUPMEAL_URI}/order/background/order_list`; const url = `${GROUPMEAL_URI}/order/oldbackground/op_order_list`;
const opts = { const opts = {
url, url,
method: "GET" method: "GET"
......
...@@ -102,7 +102,7 @@ router.get(`${API_VERSION}/order/oldbackground/order_refund_reject`, groupmeal.o ...@@ -102,7 +102,7 @@ router.get(`${API_VERSION}/order/oldbackground/order_refund_reject`, groupmeal.o
router.post(`${API_VERSION}/order/oldbackground/order_refund`, groupmeal.orderRefund); router.post(`${API_VERSION}/order/oldbackground/order_refund`, groupmeal.orderRefund);
// 新订单管理 // 新订单管理
router.get(`${API_VERSION}/order/background/order_list`, groupmeal.newGetOrderList); router.get(`${API_VERSION}/order/oldbackground/op_order_list`, groupmeal.newGetOrderList);
router.get(`${API_VERSION}/order/background/marketing_list`, groupmeal.newGetMarketingList); router.get(`${API_VERSION}/order/background/marketing_list`, groupmeal.newGetMarketingList);
router.get(`${API_VERSION}/order/background/goods_list`, groupmeal.newGetGoodsList); router.get(`${API_VERSION}/order/background/goods_list`, groupmeal.newGetGoodsList);
router.get(`${API_VERSION}/order/background/sub_shop_list`, groupmeal.newGetSubShopList); router.get(`${API_VERSION}/order/background/sub_shop_list`, groupmeal.newGetSubShopList);
......
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
<script> <script>
import Layout from "../layout/index.vue"; import Layout from "../layout/index.vue";
import { import {
getOrderList, newGetOrderList,
getMarketingList, getMarketingList,
getGoodsList, getGoodsList,
getSubShopList, getSubShopList,
...@@ -634,7 +634,7 @@ export default { ...@@ -634,7 +634,7 @@ export default {
this.orderQueryObj.marketing_id = this.$route.query.marketing_id; this.orderQueryObj.marketing_id = this.$route.query.marketing_id;
} }
try { try {
const res = await getOrderList(this.orderQueryObj); const res = await newGetOrderList(this.orderQueryObj);
this.goodsNum = res.goods_num; // 商品共计 this.goodsNum = res.goods_num; // 商品共计
this.totalNum = res.count; // 商品总数 this.totalNum = res.count; // 商品总数
this.orderTableData = res.result; this.orderTableData = res.result;
......
...@@ -119,7 +119,7 @@ export function getOrderExportURL(eventId, type) { ...@@ -119,7 +119,7 @@ export function getOrderExportURL(eventId, type) {
// 获取订单列表 // 获取订单列表
export async function newGetOrderList(params) { export async function newGetOrderList(params) {
const res = await axios.get("/api/v1/order/background/order_list", { const res = await axios.get("/api/v1/order/oldbackground/op_order_list", {
params params
}); });
return res; return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment