Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 683c9147
authored
Aug 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改订单状态取值
1 parent
eceafeba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
28 deletions
src/views/saleOrder/detail.vue
src/views/saleOrder/detail.vue
View file @
683c914
...
@@ -3,15 +3,19 @@
...
@@ -3,15 +3,19 @@
<div
class=
"ctnr"
>
<div
class=
"ctnr"
>
<div
class=
"stutas-wrap"
>
<div
class=
"stutas-wrap"
>
<span>
售后状态:
</span>
<span>
售后状态:
</span>
<span
v-if=
"!isLoading"
class=
"stutas-circle"
:style=
"
{backgroundColor: (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '#2CCA74': '#5850FF'}">
</span>
<span
v-if=
"!isLoading"
class=
"stutas-circle"
<span
v-if=
"!isLoading"
>
{{
(
orderInfo
.
returnOrderStatus
==
1003
||
orderInfo
.
returnOrderStatus
==
1006
)
?
'售后完成'
:
'售后中'
}}
</span>
:style=
"
{backgroundColor: (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '#2CCA74': '#5850FF'}">
</span>
<span
v-if=
"!isLoading"
>
{{
(
orderInfo
.
returnOrderStatus
==
1003
||
orderInfo
.
returnOrderStatus
==
1006
)
?
'售后完成'
:
'售后中'
}}
</span>
</div>
</div>
<div
class=
"info-wrap order-info"
>
<div
class=
"info-wrap order-info"
>
<div
class=
"title"
>
售后信息
</div>
<div
class=
"title"
>
售后信息
</div>
<div
class=
"detail"
>
<div
class=
"detail"
>
<glsxCombiForm
ref=
"editFormRef"
labelWidth=
"154px"
defaultWidth=
"214px"
:formObj=
"orderInfo"
:formData=
"editFormData"
>
<glsxCombiForm
ref=
"editFormRef"
labelWidth=
"154px"
defaultWidth=
"214px"
:formObj=
"orderInfo"
:formData=
"editFormData"
>
<div
slot=
"addDescImgSlot"
class=
"addDescImgSlot"
>
<div
slot=
"addDescImgSlot"
class=
"addDescImgSlot"
>
<el-image
class=
"img"
v-for=
"(item,index) in orderInfo.imgUrlList"
:preview-src-list=
"orderInfo.imgUrlList"
:key=
"index"
:src=
"item"
></el-image>
<el-image
class=
"img"
v-for=
"(item,index) in orderInfo.imgUrlList"
:preview-src-list=
"orderInfo.imgUrlList"
:key=
"index"
:src=
"item"
></el-image>
<span
v-if=
"!orderInfo.imgUrlList || orderInfo.imgUrlList.length==0"
>
--
</span>
<span
v-if=
"!orderInfo.imgUrlList || orderInfo.imgUrlList.length==0"
>
--
</span>
</div>
</div>
</glsxCombiForm>
</glsxCombiForm>
...
@@ -20,10 +24,12 @@
...
@@ -20,10 +24,12 @@
<div
class=
"info-wrap"
>
<div
class=
"info-wrap"
>
<div
class=
"title"
>
商品信息
</div>
<div
class=
"title"
>
商品信息
</div>
<div
class=
"detail"
>
<div
class=
"detail"
>
<GLTable
:hasPage=
"false"
ref=
"goodsTableRef"
:tableParams=
"tableParams"
:tableData=
"orderInfo.goodsInfoTableDate"
>
<GLTable
:hasPage=
"false"
ref=
"goodsTableRef"
:tableParams=
"tableParams"
:tableData=
"orderInfo.goodsInfoTableDate"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
<img
:src=
"scope.scope.goodsImageUrl"
alt=
""
>
<img
:src=
"scope.scope.goodsImageUrl"
alt=
""
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')"
placement=
"top"
>
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
...
@@ -47,9 +53,34 @@
...
@@ -47,9 +53,34 @@
<
script
>
<
script
>
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
util
from
'@/util/util'
import
util
from
'@/util/util'
const
reasonObj
=
{
1001
:
'商品无货'
,
1002
:
'发货时间问题'
,
1003
:
'不想要了/不喜欢'
,
1004
:
'商品信息填写错误'
,
1005
:
'地址信息填写错误'
,
1006
:
'商品降价'
,
1007
:
'其他'
,
1008
:
'尺码不合适'
,
1009
:
'无理由退货'
,
1010
:
'发票问题'
,
1011
:
'商品与页面描述不符'
,
1012
:
'发错货'
,
1013
:
'质量问题'
,
1014
:
'买错尺码/颜色/型号'
,
1015
:
'商品缺少或破损'
,
1016
:
'买错了'
}
const
refundStatusObj
=
{
1000
:
'待审核'
,
1001
:
'审核通过'
,
1002
:
'已收货'
,
1003
:
'已退款'
,
1004
:
'已生成新订单'
,
1005
:
'审核不通过'
}
const
reasonObj
=
{
const
outRefundTypeObj
=
{
0
:
'退款成功'
,
1
:
'退款关闭'
,
2
:
'退款处理中'
,
3
:
'退款异常'
}
1001
:
'商品无货'
,
1002
:
'发货时间问题'
,
1003
:
'不想要了/不喜欢'
,
1004
:
'商品信息填写错误'
,
1005
:
'地址信息填写错误'
,
1006
:
'商品降价'
,
1007
:
'其他'
,
1008
:
'尺码不合适'
,
1009
:
'无理由退货'
,
1010
:
'发票问题'
,
1011
:
'商品与页面描述不符'
,
1012
:
'发错货'
,
1013
:
'质量问题'
,
1014
:
'买错尺码/颜色/型号'
,
1015
:
'商品缺少或破损'
,
1016
:
'买错了'
}
const
refundStatusObj
=
{
1000
:
'待审核'
,
1001
:
'审核通过'
,
1002
:
'已收货'
,
1003
:
'已退款'
,
1004
:
'已生成新订单'
,
1005
:
'审核不通过'
}
const
outRefundTypeObj
=
{
0
:
'退款成功'
,
1
:
'退款关闭'
,
2
:
'退款处理中'
,
3
:
'退款异常'
}
export
default
{
export
default
{
name
:
'goodsOrderDetail'
,
name
:
'goodsOrderDetail'
,
data
()
{
data
()
{
...
@@ -168,8 +199,8 @@ export default {
...
@@ -168,8 +199,8 @@ export default {
},
},
methods
:
{
methods
:
{
getDetailById
()
{
getDetailById
()
{
const
{
id
}
=
this
.
$route
.
params
const
{
id
}
=
this
.
$route
.
params
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'Loading'
,
text
:
'Loading'
,
...
@@ -177,35 +208,53 @@ export default {
...
@@ -177,35 +208,53 @@ export default {
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
this
.
isLoading
=
true
this
.
isLoading
=
true
this
.
$apis
.
platformGoods
.
getSaleOrderDetail
({
afterSalesOrderCode
:
id
}).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
getSaleOrderDetail
({
afterSalesOrderCode
:
id
}).
then
(
res
=>
{
loading
.
close
()
loading
.
close
()
this
.
isLoading
=
false
this
.
isLoading
=
false
if
(
res
?.
id
){
if
(
res
?.
id
)
{
let
{
applyQty
,
refundPrice
,
outRefundType
,
refundStatus
,
tparReturnOrderCode
,
returnType
,
returnReasonType
,
returnTime
}
=
res
||
{}
let
{
applyQty
,
refundPrice
,
outRefundType
,
refundStatus
,
returnOrderStatus
,
tparReturnOrderCode
,
returnType
,
returnReasonType
,
returnTime
}
=
res
||
{}
const
{
brandName
,
goodsSkuName
,
goodsImageUrl
}
=
res
.
orderGoods
||
{}
const
{
brandName
,
goodsSkuName
,
goodsImageUrl
}
=
res
.
orderGoods
||
{}
this
.
showEmailInfo
=
returnType
==
1001
this
.
showEmailInfo
=
returnType
==
1001
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
res
.
returnReasonType
=
reasonObj
[
returnReasonType
]
res
.
returnReasonType
=
reasonObj
[
returnReasonType
]
refundStatus
=
refundStatus
!=
1003
?
refundStatusObj
[
refundStatus
]
:
outRefundTypeObj
[
outRefundType
]
refundStatus
=
returnOrderStatus
!=
1003
?
refundStatusObj
[
returnOrderStatus
]
:
outRefundTypeObj
[
outRefundType
]
res
.
goodsInfoTableDate
=
[{
brandName
,
goodsSkuName
,
goodsImageUrl
,
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
}]
res
.
goodsInfoTableDate
=
[{
brandName
,
goodsSkuName
,
goodsImageUrl
,
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
}]
res
.
createdDate
=
res
.
createdDate
?
util
.
dateFormat
(
res
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
createdDate
=
res
.
createdDate
?
util
.
dateFormat
(
res
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
returnTime
=
returnTime
?
util
.
dateFormat
(
returnTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
returnTime
=
returnTime
?
util
.
dateFormat
(
returnTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
returnTime
:
res
.
returnTime
}]
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
returnTime
:
res
.
returnTime
}]
this
.
orderInfo
=
res
this
.
orderInfo
=
res
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
isLoading
=
false
this
.
isLoading
=
false
loading
.
close
()
loading
.
close
()
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.ctnr
{
.ctnr
{
.stutas-wrap
{
.stutas-wrap
{
background-color
:
#fff
;
background-color
:
#fff
;
height
:
72px
;
height
:
72px
;
line-height
:
72px
;
line-height
:
72px
;
...
@@ -213,7 +262,8 @@ export default {
...
@@ -213,7 +262,8 @@ export default {
font-size
:
20px
;
font-size
:
20px
;
color
:
#333333
;
color
:
#333333
;
padding
:
0
20px
;
padding
:
0
20px
;
.stutas-circle{
.stutas-circle
{
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
width
:
10px
;
width
:
10px
;
...
@@ -223,10 +273,12 @@ export default {
...
@@ -223,10 +273,12 @@ export default {
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
}
}
.info-wrap
{
.info-wrap
{
background-color
:
#fff
;
background-color
:
#fff
;
margin-top
:
16px
;
margin-top
:
16px
;
.title{
.title
{
height
:
60px
;
height
:
60px
;
line-height
:
60px
;
line-height
:
60px
;
border-bottom
:
1px
solid
#E5E5E5
;
border-bottom
:
1px
solid
#E5E5E5
;
...
@@ -235,10 +287,12 @@ export default {
...
@@ -235,10 +287,12 @@ export default {
font-size
:
20px
;
font-size
:
20px
;
color
:
#333333
;
color
:
#333333
;
}
}
.detail
{
.detail
{
padding
:
20px
;
padding
:
20px
;
.addDescImgSlot{
.img{
.addDescImgSlot
{
.img
{
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
margin-right
:
8px
;
margin-right
:
8px
;
...
@@ -246,7 +300,8 @@ export default {
...
@@ -246,7 +300,8 @@ export default {
}
}
}
}
}
}
.order-info
{
.order-info
{
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment