Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
740de45a
authored
Dec 06, 2024
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【缺陷修复】分销: 推广订单列表用户类型检索
parent
7917bca9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
34 deletions
+43
-34
src/views/mall/trade/brokerage/user/BrokerageOrderListDialog.vue
+43
-34
No files found.
src/views/mall/trade/brokerage/user/BrokerageOrderListDialog.vue
View file @
740de45a
<
template
>
<Dialog
v-model=
"dialogVisible"
title=
"推广
人
列表"
width=
"75%"
>
<Dialog
v-model=
"dialogVisible"
title=
"推广
订单
列表"
width=
"75%"
>
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
class=
"-mb-15px"
:model=
"queryParams"
ref=
"queryFormRef"
:inline=
"true"
:model=
"queryParams"
class=
"-mb-15px"
label-width=
"85px"
>
<el-form-item
label=
"用户类型"
prop=
"
l
evel"
>
<el-radio-group
v-model=
"queryParams.
l
evel"
@
change=
"handleQuery"
>
<el-radio-button
checked
>
全部
</el-radio-button>
<el-radio-button
value=
"1"
>
一级推广人
</el-radio-button>
<el-radio-button
value=
"2"
>
二级推广人
</el-radio-button>
<el-form-item
label=
"用户类型"
prop=
"
sourceUserL
evel"
>
<el-radio-group
v-model=
"queryParams.
sourceUserL
evel"
@
change=
"handleQuery"
>
<el-radio-button
:value=
"0"
>
全部
</el-radio-button>
<el-radio-button
:
value=
"1"
>
一级推广人
</el-radio-button>
<el-radio-button
:
value=
"2"
>
二级推广人
</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择状态"
clearable
class=
"!w-240px"
clearable
placeholder=
"请选择状态"
>
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.BROKERAGE_RECORD_STATUS)"
...
...
@@ -34,64 +34,70 @@
<el-form-item
label=
"绑定时间"
prop=
"createTime"
>
<el-date-picker
v-model=
"queryParams.createTime"
value-format=
"YYYY-MM-DD HH:mm:ss"
type=
"daterange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:default-time=
"[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class=
"!w-240px"
end-placeholder=
"结束日期"
start-placeholder=
"开始日期"
type=
"daterange"
value-format=
"YYYY-MM-DD HH:mm:ss"
/>
</el-form-item>
<el-form-item>
<el-button
@
click=
"handleQuery"
><Icon
icon=
"ep:search"
class=
"mr-5px"
/>
搜索
</el-button>
<el-button
@
click=
"resetQuery"
><Icon
icon=
"ep:refresh"
class=
"mr-5px"
/>
重置
</el-button>
<el-button
@
click=
"handleQuery"
>
<Icon
class=
"mr-5px"
icon=
"ep:search"
/>
搜索
</el-button>
<el-button
@
click=
"resetQuery"
>
<Icon
class=
"mr-5px"
icon=
"ep:refresh"
/>
重置
</el-button>
</el-form-item>
</el-form>
</ContentWrap>
<!-- 列表 -->
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
:s
tripe=
"true"
:show-overflow-tooltip
=
"true"
>
<el-table-column
label=
"订单编号"
align=
"center"
prop=
"bizId"
min-width=
"80px
"
/>
<el-table-column
label=
"用户编号"
align=
"center"
prop=
"sourceUserId"
min-width=
"80px
"
/>
<el-table-column
label=
"头像"
align=
"center
"
prop=
"sourceUserAvatar"
width=
"70px"
>
<el-table
v-loading=
"loading"
:data=
"list"
:s
how-overflow-tooltip=
"true"
:stripe
=
"true"
>
<el-table-column
align=
"center"
label=
"订单编号"
min-width=
"80px"
prop=
"bizId
"
/>
<el-table-column
align=
"center"
label=
"用户编号"
min-width=
"80px"
prop=
"sourceUserId
"
/>
<el-table-column
align=
"center"
label=
"头像
"
prop=
"sourceUserAvatar"
width=
"70px"
>
<template
#
default=
"scope"
>
<el-avatar
:src=
"scope.row.sourceUserAvatar"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"昵称"
align=
"center"
prop=
"sourceUserNickname"
min-width=
"80px
"
/>
<el-table-column
align=
"center"
label=
"昵称"
min-width=
"80px"
prop=
"sourceUserNickname
"
/>
<el-table-column
label=
"佣金
"
:formatter=
"fenToYuanFormat
"
align=
"center"
prop=
"price
"
label=
"佣金
"
min-width=
"100px"
:formatter=
"fenToYuanFormat
"
prop=
"price
"
/>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
min-width=
"85
"
>
<el-table-column
align=
"center"
label=
"状态"
min-width=
"85"
prop=
"status
"
>
<
template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BROKERAGE_RECORD_STATUS"
:value=
"scope.row.status"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间
"
:formatter=
"dateFormatter
"
align=
"center"
label=
"创建时间"
prop=
"createTime"
:formatter=
"dateFormatter"
width=
"180px"
/>
</el-table>
<!-- 分页 -->
<Pagination
:total=
"total"
v-model:page=
"queryParams.pageNo"
v-model:limit=
"queryParams.pageSize"
v-model:page=
"queryParams.pageNo"
:total=
"total"
@
pagination=
"getList"
/>
</ContentWrap>
</Dialog>
</template>
<
script
setup
lang=
"ts"
>
<
script
lang=
"ts"
setup
>
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
*
as
BrokerageRecordApi
from
'@/api/mall/trade/brokerage/record'
import
{
BrokerageRecordBizTypeEnum
}
from
'@/utils/constants'
...
...
@@ -101,8 +107,6 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
/** 推广订单列表 */
defineOptions
({
name
:
'BrokerageOrderListDialog'
})
const
message
=
useMessage
()
// 消息弹窗
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
list
=
ref
([])
// 列表的数据
...
...
@@ -111,7 +115,7 @@ const queryParams = reactive({
pageSize
:
10
,
userId
:
null
,
bizType
:
BrokerageRecordBizTypeEnum
.
ORDER
.
type
,
level
:
''
,
sourceUserLevel
:
0
,
createTime
:
[],
status
:
null
})
...
...
@@ -130,7 +134,12 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
const
getList
=
async
()
=>
{
loading
.
value
=
true
try
{
const
data
=
await
BrokerageRecordApi
.
getBrokerageRecordPage
(
queryParams
)
// 处理全部的情况
const
userLevel
=
queryParams
.
sourceUserLevel
===
0
?
undefined
:
queryParams
.
sourceUserLevel
const
data
=
await
BrokerageRecordApi
.
getBrokerageRecordPage
({
...
queryParams
,
sourceUserLevel
:
userLevel
})
list
.
value
=
data
.
list
total
.
value
=
data
.
total
}
finally
{
...
...
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