Commit 0e5ada53 by caoyanzhi

update: 会员订单列表

parent 2f084fb1
......@@ -170,6 +170,7 @@
</template>
<script>
import { doFetchGet } from '../../../components/axios/api';
export default {
name: 'OrderTable',
props: {
......@@ -182,7 +183,7 @@ export default {
pageSize: 20,
currentPage: 1,
orderType: '', // 订单类型 1 销售,2.退货,4.退换货
// channelType: '', // 渠道类型 1:达摩微商城, 3:门店(线下)订单,8:天猫,9:微盟,10:其他,11:抖音
channelType: '', // 渠道类型 1:达摩微商城, 3:门店(线下)订单,8:天猫,9:微盟,10:其他,11:抖音
// startTime: '', // 2021-01-01 开始时间
// endTime: '', // 2022-01-01 结束时间
orderNumber: '', // 单号
......@@ -231,6 +232,15 @@ export default {
created() {
this.params.memberId = this.$route.query.memberId;
this.getTableData();
// channelType: '', // 渠道类型 1:达摩微商城, 3:门店(线下)订单,8:天猫,9:微盟,10:其他,11:抖音
// <el-tab-pane :label="`门店订单(${orderCount.numOfSale || 0})`" name="store">
// <el-tab-pane :label="`达摩微商城{${orderCount.wechatMallNum || 0}}`" name="demo">
// <el-tab-pane :label="`微盟订单(${orderCount.weimobMallNum || 0})`" name="weimob">
// <el-tab-pane :label="`天猫订单(${orderCount.numOfTmall || 0})`" name="tmall">
// <el-tab-pane :label="`抖音订单(${orderCount.numOfDouYin || 0})`" name="douyin">
// <el-tab-pane :label="`其他订单(${orderCount.otherMallNum || 0})`" name="other">
const channel = { store: 3, demo: 1, weimob: 9, tmall: 8, douyin: 11, other: 10 };
this.params.channelType = channel[this.tab];
},
methods: {
spanMethod({ rowIndex, columnIndex }) {
......@@ -247,22 +257,21 @@ export default {
formatChannelType(type) {
// 渠道类型:1:达摩微商城, 3:门店(线下)订单,8:天猫,9:微盟,10:其他,11:抖音
// <!-- 天猫、微盟、抖音、门店 -->
const typeList = {
3: '门店',
8: '天猫',
9: '微盟',
11: '抖音'
}
const typeList = { 3: '门店', 8: '天猫', 9: '微盟', 11: '抖音' };
return typeList[type];
},
getTableData() {
const { memberId, pageSize, currentPage, orderType, dateRange, orderNumber } = this.params;
const params = { memberId, pageSize, currentPage, orderType, orderNumber };
const { memberId, pageSize, currentPage, orderType, channelType, dateRange, orderNumber } = this.params;
const params = { memberId, pageSize, currentPage, orderType, channelType, orderNumber };
if (Array.isArray(dateRange) && dateRange.length > 0) {
params.startTime = dateRange[0];
params.endTime = dateRange[1];
}
console.log(params);
doFetchGet('/api-member/member-all-order-page', params).then(res => {
const { result } = res.data;
this.tableData = result.result;
this.params.total = result.total;
});
},
onSearch() {
this.onCurrentChange(1);
......
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