Commit e1230bc7 authored by lihui's avatar lihui

Merge branch 'feature/activity' of...

Merge branch 'feature/activity' of https://git.yidian-inc.com:8021/bp/op-web-service into feature/activity
parents df1c450c 749a0bd1
...@@ -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);
......
...@@ -181,7 +181,6 @@ ...@@ -181,7 +181,6 @@
/> />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="售后" name="afterSale"> <el-tab-pane label="售后" name="afterSale">
<!-- start -->
<el-table :data="orderTableData" border stripe style="width: 100%"> <el-table :data="orderTableData" border stripe style="width: 100%">
<el-table-column prop="marketing_name" label="活动名称"> <el-table-column prop="marketing_name" label="活动名称">
<template #default="scope"> <template #default="scope">
...@@ -267,7 +266,6 @@ ...@@ -267,7 +266,6 @@
:page-size="orderQueryObj.page_size" :page-size="orderQueryObj.page_size"
:total="totalNum" :total="totalNum"
/> />
<!-- end -->
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- 导出弹窗 --> <!-- 导出弹窗 -->
...@@ -291,19 +289,7 @@ ...@@ -291,19 +289,7 @@
>配送表</el-button >配送表</el-button
></a ></a
> >
<!-- <el-checkbox-group v-model="exportSel">
<el-checkbox
v-for="i in exportSelOpt"
:label="i.type"
:key="i.type"
>{{ i.name }}</el-checkbox
>
</el-checkbox-group> -->
</el-form-item> </el-form-item>
<!-- <el-form-item class="exportBtn">
<el-button @click="exportShow = false">取消</el-button>
<a :href="exportURL" style="margin-left: 20px"><el-button type="primary" @click="exportShow = false">确定导出</el-button></a>
</el-form-item> -->
</el-dialog> </el-dialog>
<!-- 退款弹窗 --> <!-- 退款弹窗 -->
<el-dialog title="退款" width="30%" top="10%" v-model="refundShow"> <el-dialog title="退款" width="30%" top="10%" v-model="refundShow">
...@@ -366,17 +352,16 @@ ...@@ -366,17 +352,16 @@
<script> <script>
import Layout from "../layout/index.vue"; import Layout from "../layout/index.vue";
import { import {
getOrderList, newGetOrderList,
getMarketingList, newGetMarketingList,
getGoodsList, newGetGoodsList,
getSubShopList, newGetSubShopList,
orderPrint, newOrderPrint,
orderItemList, newOrderItemList,
orderRefundReject, newOrderRefundReject,
refundOrder, newRefundOrder,
getOrderExportURL, newGetOrderExportURL,
} from "@/service/Groupmeal/groupmeal"; } from "@/service/Groupmeal/groupmeal";
// import page from "../../components/Pagination.vue";
import page from "../components/Pagination/index.vue"; import page from "../components/Pagination/index.vue";
export default { export default {
...@@ -448,13 +433,6 @@ export default { ...@@ -448,13 +433,6 @@ export default {
exportShow: false, exportShow: false,
exportType: "", exportType: "",
// exportSel: [],
// exportSelOpt: [
// { type: "1", name: "总表" },
// { type: "2", name: "商品表" },
// { type: "3", name: "配送表" },
// ],
// 表格数据 // 表格数据
orderTableData: [], orderTableData: [],
totalNum: null, //总条数 totalNum: null, //总条数
...@@ -480,13 +458,13 @@ export default { ...@@ -480,13 +458,13 @@ export default {
computed: { computed: {
exportURL1() { exportURL1() {
return getOrderExportURL(this.orderQueryObj.marketing_id, "1"); return newGetOrderExportURL(this.orderQueryObj.marketing_id, "1");
}, },
exportURL2() { exportURL2() {
return getOrderExportURL(this.orderQueryObj.marketing_id, "2"); return newGetOrderExportURL(this.orderQueryObj.marketing_id, "2");
}, },
exportURL3() { exportURL3() {
return getOrderExportURL(this.orderQueryObj.marketing_id, "3"); return newGetOrderExportURL(this.orderQueryObj.marketing_id, "3");
}, },
}, },
...@@ -498,7 +476,7 @@ export default { ...@@ -498,7 +476,7 @@ export default {
// 获取活动名称 // 获取活动名称
async getMarketingListMet() { async getMarketingListMet() {
try { try {
const res = await getMarketingList(); const res = await newGetMarketingList();
this.activityNameArr = res.result; this.activityNameArr = res.result;
} catch (error) { } catch (error) {
this.$message.error("发生未知错误,请稍后再试一下吧~~~"); this.$message.error("发生未知错误,请稍后再试一下吧~~~");
...@@ -512,7 +490,7 @@ export default { ...@@ -512,7 +490,7 @@ export default {
const params = { const params = {
marketing_id: val, marketing_id: val,
}; };
const res = await getGoodsList(params); // 商品名称 const res = await newGetGoodsList(params); // 商品名称
this.getSubShopListMet(val) //自提点 this.getSubShopListMet(val) //自提点
// const res = await getSubShopList(params); // const res = await getSubShopList(params);
this.tradeNameArr = res.result; this.tradeNameArr = res.result;
...@@ -526,7 +504,7 @@ export default { ...@@ -526,7 +504,7 @@ export default {
if(params){ if(params){
marketing_id = params marketing_id = params
} }
const res = await getSubShopList({'marketing_id':marketing_id}); const res = await newGetSubShopList({'marketing_id':marketing_id});
this.selLiftPoinArr = res.result; this.selLiftPoinArr = res.result;
} catch (error) { } catch (error) {
this.$message.error("发生未知错误,请稍后再试一下吧~~~"); this.$message.error("发生未知错误,请稍后再试一下吧~~~");
...@@ -578,7 +556,7 @@ export default { ...@@ -578,7 +556,7 @@ export default {
// marketing_id: "1NJETU", // marketing_id: "1NJETU",
force_print: forcePrint ? "1" : "", force_print: forcePrint ? "1" : "",
}; };
const res = await orderPrint(params); const res = await newOrderPrint(params);
return res; return res;
}, },
...@@ -634,7 +612,7 @@ export default { ...@@ -634,7 +612,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;
...@@ -664,7 +642,7 @@ export default { ...@@ -664,7 +642,7 @@ export default {
const params = { const params = {
order_id: val.order_id, order_id: val.order_id,
}; };
const res = await orderRefundReject(params); const res = await newOrderRefundReject(params);
if (res.code === 0) { if (res.code === 0) {
this.$message({ this.$message({
...@@ -698,7 +676,7 @@ export default { ...@@ -698,7 +676,7 @@ export default {
const params = { const params = {
order_id: val.order_id, order_id: val.order_id,
}; };
const res = await orderItemList(params); const res = await newOrderItemList(params);
this.refundGoods = res.result; this.refundGoods = res.result;
for (var i in res.result) { for (var i in res.result) {
this.refundGoods[i].refundableQuantity = Number( this.refundGoods[i].refundableQuantity = Number(
...@@ -749,7 +727,7 @@ export default { ...@@ -749,7 +727,7 @@ export default {
// this.$message.error("请选择退款商品"); // this.$message.error("请选择退款商品");
// return; // return;
// } // }
const res = await refundOrder(orderId, itemsToRefund); const res = await newRefundOrder(orderId, itemsToRefund);
if (res.code === 0) { if (res.code === 0) {
this.$message.success("退款成功"); this.$message.success("退款成功");
this.refundShow = false; this.refundShow = false;
......
...@@ -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;
...@@ -147,14 +147,6 @@ export async function newGetSubShopList(params) { ...@@ -147,14 +147,6 @@ export async function newGetSubShopList(params) {
return res; return res;
} }
// 导出订单
export async function newOrderExport(params) {
const res = await axios.get("/api/v1/order/background/order_export", {
params
});
return res;
}
// 打印订单 // 打印订单
export async function newOrderPrint(params) { export async function newOrderPrint(params) {
const res = await axios.get("/api/v1/order/background/order_print", { const res = await axios.get("/api/v1/order/background/order_print", {
...@@ -173,10 +165,6 @@ export async function newOrderItemList(params) { ...@@ -173,10 +165,6 @@ export async function newOrderItemList(params) {
// 订单退款 // 订单退款
export async function newRefundOrder(orderId, itemsToRefund) { export async function newRefundOrder(orderId, itemsToRefund) {
// const params = {
// order_id: orderId,
// refund_list: itemsToRefund
// };
const res = await axios.post("/api/v1/order/background/order_refund", { const res = await axios.post("/api/v1/order/background/order_refund", {
order_id: orderId, order_id: orderId,
refund_list: itemsToRefund refund_list: itemsToRefund
......
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