Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
7086a40e
提交
7086a40e
编写于
9月 18, 2021
作者:
shuang.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
退款说明弹窗改造
上级
1eaaba5c
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
46 行增加
和
16 行删除
+46
-16
order-detail.vue
src/views/goods/order-detail.vue
+46
-16
未找到文件。
src/views/goods/order-detail.vue
浏览文件 @
7086a40e
...
...
@@ -266,6 +266,20 @@
<el-button size="small" type="primary" @click="confirmExpressNo">完成</el-button>
</span>
</el-dialog> -->
<!-- 退款说明 -->
<el-dialog
class=
"refund-explain-dialog"
title=
"退款说明"
:visible
.
sync=
"refundDialog"
width=
"20%"
>
<div
class=
"explain-content"
>
退款方式:{{refundDialogData.refundWay}}
</div>
<div
class=
"explain-content"
>
退款金额:{{refundDialogData.refundAmount | toFixed2}}
</div>
<div
class=
"explain-content"
>
退款对象:{{refundDialogData.refundObject}}
</div>
<div
class=
"explain-content"
>
退款理由:{{refundDialogData.refundReason}}
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"refundDialog = false"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -336,6 +350,13 @@
showStatusStr
:
''
,
// 订单状态文案
packageName
:
'包裹1'
,
// 多包裹name
expressIndex
:
0
,
// 修改物流单号下标
refundDialog
:
false
,
// 退款说明弹窗
refundDialogData
:
{
refundWay
:
''
,
refundAmount
:
''
,
refundObject
:
''
,
refundReason
:
''
}
}
},
created
()
{
...
...
@@ -392,22 +413,19 @@
goodsId
:
goodsId
,
orderId
:
orderId
};
getRefundDesc
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
isShowRefundDetail
=
true
;
let
refundWayStr
=
''
;
let
refundObjectStr
=
''
;
refundWayStr
=
res
.
data
.
refundWay
==
0
?
'仅退款,无需退货'
:
'退款退货'
;
refundObjectStr
=
res
.
data
.
refundObject
==
1
?
'开单医生'
:
'支付用户'
;
this
.
$alert
(
`<p>退款方式:
${
refundWayStr
}
</p>
<p>退款金额:
${
this
.
getPrice
(
res
.
data
.
refundAmount
)}
元</p>
<p>退款对象:
${
refundObjectStr
}
</p>
<p>退款理由:
${
res
.
data
.
refundReason
}
</p>`
,
'退款说明'
,
{
dangerouslyUseHTMLString
:
true
});
}
})
getRefundDesc
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
isShowRefundDetail
=
true
;
let
refundWayStr
=
''
;
let
refundObjectStr
=
''
;
this
.
refundDialog
=
true
;
refundWayStr
=
res
.
data
.
refundWay
==
0
?
'仅退款,无需退货'
:
'退款退货'
;
refundObjectStr
=
res
.
data
.
refundObject
==
1
?
'开单医生'
:
'支付用户'
;
res
.
data
.
refundWay
=
refundWayStr
;
res
.
data
.
refundObject
=
refundObjectStr
;
this
.
refundDialogData
=
res
.
data
;
}
})
},
init
()
{
queryOrderDetail
(
this
.
orderId
).
then
(
res
=>
{
...
...
@@ -581,6 +599,16 @@
<
style
lang=
"scss"
>
.order-detail-wrapper
{
.el-dialog__wrapper
{
.el-dialog
{
.el-dialog__body
{
padding
:
0
20px
;
.explain-content
{
margin-bottom
:
5px
;
}
}
}
}
.el-table__column-filter-trigger
i
{
color
:
#0d9078
;
font-size
:
14px
;
...
...
@@ -776,5 +804,7 @@
border
:
1px
solid
#999999
;
background-color
:
#b8b8b8
;
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录