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
07a0530f
authored
Sep 01, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
售后退款:完善售后管理(列表、详情)
parent
3e7945e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
4 deletions
+41
-4
src/views/mall/trade/afterSale/detail/index.vue
+41
-4
No files found.
src/views/mall/trade/afterSale/detail/index.vue
View file @
07a0530f
...
...
@@ -122,8 +122,36 @@
</el-row>
</el-descriptions-item>
</el-descriptions>
<!-- 售后信息 TODO @puhui999:需要接入 -->
<el-descriptions
title=
"售后日志"
/>
<el-descriptions
title=
"售后日志"
>
<el-descriptions-item
labelClassName=
"no-colon"
>
<el-timeline>
<el-timeline-item
v-for=
"saleLog in formData.afterSaleLog"
:key=
"saleLog.id"
:timestamp=
"formatDate(saleLog.createTime)"
placement=
"top"
>
<el-card>
<span>
用户类型:
</span>
<dict-tag
:type=
"DICT_TYPE.USER_TYPE"
:value=
"saleLog.userType"
class=
"mr-10px"
/>
<span>
售后状态(之前):
</span>
<dict-tag
:type=
"DICT_TYPE.TRADE_AFTER_SALE_STATUS"
:value=
"saleLog.beforeStatus"
class=
"mr-10px"
/>
<span>
售后状态(之后):
</span>
<dict-tag
:type=
"DICT_TYPE.TRADE_AFTER_SALE_STATUS"
:value=
"saleLog.afterStatus"
class=
"mr-10px"
/>
<span>
操作明细:{{ saleLog.content }}
</span>
</el-card>
</el-timeline-item>
</el-timeline>
</el-descriptions-item>
</el-descriptions>
</ContentWrap>
<!-- 各种操作的弹窗 -->
...
...
@@ -140,10 +168,12 @@ import { isArray } from '@/utils/is'
defineOptions
({
name
:
'TradeOrderDetailForm'
})
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息弹窗
const
{
params
}
=
useRoute
()
// 查询参数
const
formData
=
ref
({
order
:
{}
order
:
{},
afterSaleLog
:
[]
})
const
updateAuditReasonFormRef
=
ref
()
// 拒绝售后表单 Ref
...
...
@@ -155,11 +185,12 @@ const getDetail = async () => {
}
}
// TODO @puhui999:操作后,需要提示和刷新哈。
/** 同意售后 */
const
agree
=
()
=>
{
message
.
confirm
(
'是否同意售后?'
).
then
(()
=>
{
AfterSaleApi
.
agree
(
formData
.
value
.
id
)
message
.
success
(
t
(
'common.success'
))
getDetail
()
})
}
...
...
@@ -172,6 +203,8 @@ const disagree = () => {
const
receive
=
()
=>
{
message
.
confirm
(
'是否确认收货?'
).
then
(()
=>
{
AfterSaleApi
.
receive
(
formData
.
value
.
id
)
message
.
success
(
t
(
'common.success'
))
getDetail
()
})
}
...
...
@@ -179,6 +212,8 @@ const receive = () => {
const
refuse
=
()
=>
{
message
.
confirm
(
'是否拒绝收货?'
).
then
(()
=>
{
AfterSaleApi
.
refuse
(
formData
.
value
.
id
)
message
.
success
(
t
(
'common.success'
))
getDetail
()
})
}
...
...
@@ -186,6 +221,8 @@ const refuse = () => {
const
refund
=
()
=>
{
message
.
confirm
(
'是否确认退款?'
).
then
(()
=>
{
AfterSaleApi
.
refund
(
formData
.
value
.
id
)
message
.
success
(
t
(
'common.success'
))
getDetail
()
})
}
...
...
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