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
254d1e03
authored
Aug 18, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能新增】商城:售后分页查询,支持 userId 过滤
parent
3d569312
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
src/views/mall/trade/afterSale/index.vue
+7
-3
src/views/member/user/detail/UserAftersaleList.vue
+7
-4
No files found.
src/views/mall/trade/afterSale/index.vue
View file @
254d1e03
...
...
@@ -135,7 +135,7 @@
</div>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"订单金额"
prop=
"refundPrice"
>
<el-table-column
align=
"center"
label=
"订单金额"
prop=
"refundPrice"
min-width=
"120"
>
<
template
#
default=
"scope"
>
<span>
{{
fenToYuan
(
scope
.
row
.
refundPrice
)
}}
元
</span>
</
template
>
...
...
@@ -206,6 +206,7 @@ const queryParams = reactive({
way
:
null
,
type
:
null
})
/** 查询列表 */
const
getList
=
async
()
=>
{
loading
.
value
=
true
...
...
@@ -216,23 +217,26 @@ const getList = async () => {
delete
data
.
status
}
// 执行查询
const
res
=
(
await
AfterSaleApi
.
getAfterSalePage
(
data
))
as
AfterSaleApi
.
TradeAfterSaleVO
[]
list
.
value
=
res
.
list
const
res
=
await
AfterSaleApi
.
getAfterSalePage
(
data
)
list
.
value
=
res
.
list
as
AfterSaleApi
.
TradeAfterSaleVO
[]
total
.
value
=
res
.
total
}
finally
{
loading
.
value
=
false
}
}
/** 搜索按钮操作 */
const
handleQuery
=
async
()
=>
{
queryParams
.
pageNo
=
1
await
getList
()
}
/** 重置按钮操作 */
const
resetQuery
=
()
=>
{
queryFormRef
.
value
?.
resetFields
()
handleQuery
()
}
/** tab 切换 */
const
tabClick
=
async
(
tab
:
TabsPaneContext
)
=>
{
queryParams
.
status
=
tab
.
paneName
...
...
src/views/member/user/detail/UserAftersaleList.vue
View file @
254d1e03
...
...
@@ -133,12 +133,11 @@
</div>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"订单金额"
prop=
"refundPrice"
>
<el-table-column
align=
"center"
label=
"订单金额"
prop=
"refundPrice"
min-width=
"120"
>
<
template
#
default=
"scope"
>
<span>
{{
fenToYuan
(
scope
.
row
.
refundPrice
)
}}
元
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"买家"
prop=
"user.nickname"
/>
<el-table-column
align=
"center"
label=
"申请时间"
prop=
"createTime"
width=
"180"
>
<
template
#
default=
"scope"
>
<span>
{{
formatDate
(
scope
.
row
.
createTime
)
}}
</span>
...
...
@@ -207,6 +206,7 @@ const queryParams = ref({
way
:
null
,
type
:
null
})
/** 查询列表 */
const
getList
=
async
()
=>
{
loading
.
value
=
true
...
...
@@ -218,24 +218,27 @@ const getList = async () => {
}
// 执行查询
// TODO @芋艿:接口需要通过userId进行筛选返回值
const
res
=
(
await
AfterSaleApi
.
getAfterSalePage
(
data
))
as
AfterSaleApi
.
TradeAfterSaleVO
[]
list
.
value
=
res
.
list
const
res
=
await
AfterSaleApi
.
getAfterSalePage
(
data
)
list
.
value
=
res
.
list
as
AfterSaleApi
.
TradeAfterSaleVO
[]
total
.
value
=
res
.
total
}
finally
{
loading
.
value
=
false
}
}
/** 搜索按钮操作 */
const
handleQuery
=
async
()
=>
{
queryParams
.
value
.
pageNo
=
1
await
getList
()
}
/** 重置按钮操作 */
const
resetQuery
=
()
=>
{
queryFormRef
.
value
?.
resetFields
()
queryParams
.
value
.
userId
=
userId
handleQuery
()
}
/** tab 切换 */
const
tabClick
=
async
(
tab
:
TabsPaneContext
)
=>
{
queryParams
.
value
.
status
=
tab
.
paneName
...
...
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