Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
dfee5f27
提交
dfee5f27
authored
9月 18, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
售后优化,打包测试
上级
8c03ebaa
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
19 行删除
+39
-19
edit.vue
src/views/system/retreat/edit.vue
+29
-10
index.vue
src/views/system/retreat/retreat/index.vue
+10
-9
没有找到文件。
src/views/system/retreat/edit.vue
浏览文件 @
dfee5f27
<
template
>
<div
class=
"app-container after-sale-detail"
>
<el-card>
<!--
<p
class=
"as-detail-title"
>
售后详情
</p>
-->
<!-- 仅退款 -->
<div
v-if=
"asOrderType == 1"
class=
"as-step-info"
>
<el-steps
:active=
"step"
align-center
>
...
...
@@ -58,7 +57,7 @@
:preview-src-list=
"asSrcList"
>
</el-image>
</div>
<p
v-else
style=
"color:#
666
"
>
暂无图片
</p>
<p
v-else
style=
"color:#
999
"
>
暂无图片
</p>
</el-col>
</el-row>
</div>
...
...
@@ -219,6 +218,7 @@
return
{
// Refund only 仅退款
// Return refund 退货退款
timer
:
null
,
asGoodId
:
0
,
// 当前 售后订单的 id
asOrderType
:
1
,
// 售后类型 1-仅退款; 2-退货退款
// 仅退款 流程,每个步骤文字提示
...
...
@@ -400,6 +400,25 @@
this
.
asOrderType
=
this
.
asOrderDetail
.
refund_type
this
.
cdHour
=
this
.
asOrderDetail
.
dead_line_hour
this
.
cdMinute
=
this
.
asOrderDetail
.
dead_line_minute
// this.timer = setInterval(() => {
// if (this.cdHour
<=
0
)
{
// this.cdHour = 0
// }
//
// if (this.cdMinute
<=
0
)
{
// this.cdMinute = 0
// }
//
// if (this.cdMinute && this.cdHour) {
// this.cdMinute--
// if (this.cdMinute
<=
0
)
{
// this.cdMinute = 59
// this.cdHour--
// }
// }
// }, 60000)
// 根据售后订单信息,判断 订单状态,显示对应按钮操作
this
.
asHandleBtnType
(
this
.
asOrderDetail
)
// 金额处理
...
...
@@ -489,8 +508,6 @@
*
* */
submitAfterSale
(
type
)
{
console
.
log
(
"确定的类型"
,
type
);
let
params
=
{
order_refund_sn
:
this
.
asGoodId
};
...
...
@@ -537,7 +554,6 @@
// type 为3,则为,退货退款的 同意退货退款,发送地址
if
(
this
.
onlyIsAgree
==
3
)
{
debugger
if
(
this
.
order_refund_address
==
''
)
{
this
.
$message
({
type
:
'warning'
,
message
:
'请选择地址信息'
});
return
...
...
@@ -627,15 +643,15 @@
ASResult
(
row
)
{
let
result
=
''
if
(
row
.
status
==
5
)
{
if
(
row
.
status
==
5
)
{
result
=
'退款完成,售后完成'
}
else
if
(
row
.
status
==
-
1
)
{
if
(
row
.
close_reason
==
1
||
row
.
close_reason
==
2
)
{
}
else
if
(
row
.
status
==
-
1
)
{
if
(
row
.
close_reason
==
1
||
row
.
close_reason
==
2
)
{
result
=
'卖家拒绝,售后关闭'
}
else
if
(
row
.
close_reason
==
3
)
{
result
=
'买家未退货,售后关闭'
}
else
if
(
row
.
close_reason
==
4
)
{
}
else
if
(
row
.
close_reason
==
6
)
{
result
=
'买家取消,售后关闭'
}
}
...
...
@@ -669,6 +685,9 @@
formatter
(
time
)
{
return
dateFormat
(
time
*
1000
,
'Y-m-d H:i:s'
)
},
},
destroyed
()
{
// clearInterval(this.timer)
}
}
</
script
>
...
...
src/views/system/retreat/retreat/index.vue
浏览文件 @
dfee5f27
...
...
@@ -45,9 +45,10 @@
</el-select>
</el-form-item>
<el-form-item
label=
"
售后订单号"
prop=
"refund_sn"
width=
"220px
"
>
<el-form-item
label=
"
订单号"
prop=
"goods_order_sn
"
>
<el-input
v-model=
"queryParams.refund_sn"
style=
"width:250px;"
v-model=
"queryParams.goods_order_sn"
placeholder=
"请输入订单号"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
...
...
@@ -68,8 +69,8 @@
<!-- 列表 -->
<el-table
class=
"after-sale-table"
:data=
"afterSaleList"
:height=
"afterSaleHeight"
>
<!--
<el-table-column
label=
"商品ID"
align=
"center"
width=
"150"
prop=
"goodsId"
></el-table-column>
-->
<el-table-column
label=
"商品名称"
align=
"center"
width=
"
1
80"
prop=
"title"
></el-table-column>
<el-table-column
label=
"
售后订单号"
align=
"center"
width=
"240"
prop=
"refund
_sn"
></el-table-column>
<el-table-column
label=
"商品名称"
align=
"center"
width=
"
2
80"
prop=
"title"
></el-table-column>
<el-table-column
label=
"
订单号"
align=
"center"
width=
"240"
prop=
"goods_order
_sn"
></el-table-column>
<el-table-column
label=
"退换货类型"
align=
"center"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.refund_type == 1"
>
仅退款
</span>
...
...
@@ -131,7 +132,7 @@
// goods_id: '',
goods_title
:
''
,
refund_type
:
''
,
refund
_sn
:
''
,
goods_order
_sn
:
''
,
reason
:
''
,
},
pickerOptions
:
{
...
...
@@ -238,7 +239,7 @@
//goods_id: this.queryParams.goods_id,
// goods_title: this.queryParams.goods_title,
// refund_type: '',
//
refund
_sn: '',
//
goods_order
_sn: '',
// reason: ''
}
...
...
@@ -255,8 +256,8 @@
params
[
'refund_type'
]
=
this
.
queryParams
.
refund_type
;
}
if
(
this
.
queryParams
.
refund
_sn
!=
''
)
{
params
[
'
refund_sn'
]
=
this
.
queryParams
.
refund
_sn
;
if
(
this
.
queryParams
.
goods_order
_sn
!=
''
)
{
params
[
'
goods_order_sn'
]
=
this
.
queryParams
.
goods_order
_sn
;
}
if
(
this
.
queryParams
.
reason
!=
-
1
&&
this
.
queryParams
.
reason
!=
''
)
{
...
...
@@ -304,7 +305,7 @@
//goods_id: '',
goods_title
:
''
,
refund_type
:
''
,
refund
_sn
:
''
,
goods_order
_sn
:
''
,
reason
:
''
,
}
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论