Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
fac73fc1
提交
fac73fc1
authored
9月 17, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
售后bug处理
上级
be648869
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
27 行增加
和
16 行删除
+27
-16
edit.vue
src/views/system/retreat/edit.vue
+27
-16
没有找到文件。
src/views/system/retreat/edit.vue
浏览文件 @
fac73fc1
...
...
@@ -52,7 +52,7 @@
<!--
{{
asOrderDetail
.
images
}}
-->
<div
v-if=
"asSrcList.length > 0"
>
<el-image
style=
"width: 70px; height: 70px;border:1px solid #eee;"
style=
"width: 70px; height: 70px;border:1px solid #eee;
margin-right:10px;
"
v-for=
"(itemSrc,index) in asSrcList"
:src=
"itemSrc"
:preview-src-list=
"asSrcList"
>
...
...
@@ -81,7 +81,7 @@
</el-row>
<el-row
class=
"row-title"
>
<el-col
:span=
"3"
class=
"text-r"
>
商品金额
</el-col>
<el-col
:span=
"6"
class=
"text-l"
>
{{
goodsOrderDetail
.
refund_money
}}
</el-col>
<el-col
:span=
"6"
class=
"text-l"
>
{{
goodsOrderDetail
.
goods_price
}}
</el-col>
<el-col
:span=
"3"
class=
"text-r"
>
商品数量
</el-col>
<el-col
:span=
"6"
class=
"text-l"
>
{{
goodsOrderDetail
.
total
}}
</el-col>
</el-row>
...
...
@@ -130,7 +130,7 @@
<!-- 售后 操作按钮 -->
<div
class=
"as-handle-btn"
v-if=
"onlyOrRefundBtnType == 1"
>
<el-button
class=
"as-btn"
type=
"primary"
@
click=
"agreeHandle(1)"
>
同意退款
</el-button>
<el-button
class=
"as-btn"
type=
"primary"
@
click=
"agreeHandle(1)"
:disabled=
"onlyButtonDisabled"
>
同意退款
</el-button>
<el-button
class=
"as-btn"
type=
"primary"
@
click=
"refuseHandle(2)"
>
拒绝退款
</el-button>
</div>
<div
class=
"as-handle-btn"
v-if=
"onlyOrRefundBtnType == 2"
>
...
...
@@ -234,7 +234,7 @@
goodsOrderDetail
:
{
goods_status
:
0
,
// 订单状态
goods_order_sn
:
''
,
// 订单编号
refund_money
:
''
,
// 商品金额/售后金额
goods_price
:
''
,
// 商品金额/售后金额
title
:
''
,
// 商品名称
goods_option_title
:
''
,
// 商品规格
total
:
''
,
// 商品数量
...
...
@@ -252,20 +252,32 @@
refuseReason
:
''
,
sellerId
:
0
,
asAddressOptions
:
[],
order_refund_address
:
''
order_refund_address
:
''
,
onlyButtonDisabled
:
false
}
// return end
},
watch
:
{},
watch
:
{
$route
(
to
,
from
)
{
if
(
this
.
$route
.
query
.
refund_sn
)
{
this
.
asGoodId
=
this
.
$route
.
query
.
refund_sn
;
this
.
getDetail
();
}
}
},
created
()
{
this
.
sellerId
=
this
.
$store
.
state
.
user
.
sellerid
;
/** 获取 当前售后 订单的id */
this
.
asGoodId
=
this
.
$route
.
query
.
refund_sn
;
//console.log("售后订单号:",this.asGoodId);
/** 查询 售后订单详情 */
this
.
getDetail
();
/** 获取 退货退款的发送 地址 */
this
.
getASAdress
();
},
mounted
()
{},
mounted
()
{
},
methods
:
{
/** Only 代表 仅退款
* 售后步骤和对应文案提示,
...
...
@@ -376,15 +388,10 @@
// 售后订单详情
if
(
res
.
data
.
order_refund
)
{
this
.
asOrderDetail
=
res
.
data
.
order_refund
;
//------------ 测试数据
// this.asOrderDetail.refund_type = 2;
// this.asOrderDetail.status = 2;
// this.asOrderDetail.close_reason = 2;
//--------------
// 先确定 售后类型
this
.
asOrderType
=
this
.
asOrderDetail
.
refund_type
this
.
cdHour
=
this
.
asOrder
Type
.
dead_line_hour
this
.
cdMinute
=
this
.
asOrder
Type
.
dead_line_minute
this
.
cdHour
=
this
.
asOrder
Detail
.
dead_line_hour
this
.
cdMinute
=
this
.
asOrder
Detail
.
dead_line_minute
// 根据售后订单信息,判断 订单状态,显示对应按钮操作
this
.
asHandleBtnType
(
this
.
asOrderDetail
)
// 金额处理
...
...
@@ -392,23 +399,27 @@
this
.
asOrderDetail
.
price
=
this
.
asOrderDetail
.
price
/
100
// 售后图片 处理
this
.
asSrcList
=
[]
if
(
this
.
asOrderDetail
.
im
ages
)
{
this
.
asSrcList
=
this
.
asOrderDetail
.
im
ages
.
split
(
','
)
if
(
this
.
asOrderDetail
.
im
gs_arr
&&
this
.
asOrderDetail
.
imgs_arr
.
length
>
0
)
{
this
.
asSrcList
=
this
.
asOrderDetail
.
im
gs_arr
}
// 更新 售后订单 流程和状态
// 仅退款
if
(
this
.
asOrderDetail
.
refund_type
==
1
)
{
this
.
returnOnlyStatus
(
this
.
asOrderDetail
.
status
,
this
.
asOrderDetail
.
close_reason
);
this
.
$forceUpdate
()
}
// 退货退款
if
(
this
.
asOrderDetail
.
refund_type
==
2
)
{
this
.
returnRefundStatus
(
this
.
asOrderDetail
.
status
,
this
.
asOrderDetail
.
close_reason
);
this
.
$forceUpdate
()
}
}
// 订单 详情
if
(
res
.
data
.
order_goods
)
{
this
.
goodsOrderDetail
=
res
.
data
.
order_goods
;
// 商品金额 单位
this
.
goodsOrderDetail
.
goods_price
=
res
.
data
.
order_goods
.
goods_price
/
100
}
// 售后历史
if
(
res
.
data
.
order_refund_history
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论