Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
member
member
Commits
0e5ada53
Commit
0e5ada53
authored
Jun 21, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 会员订单列表
parent
2f084fb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
order-table.vue
src/components/allCustomers/order-list/order-table.vue
+19
-10
No files found.
src/components/allCustomers/order-list/order-table.vue
View file @
0e5ada53
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment