Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 c6025938
authored
Dec 04, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单详情-售后
1 parent
0a9955c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
8 deletions
src/views/orderManage/orderDetail.vue
src/views/orderManage/orderDetail.vue
View file @
c602593
...
...
@@ -11,7 +11,7 @@
</el-row>
</el-form>
</div>
<div
class=
"container m-b-20
"
>
<div
:class=
"['container', orderRefund ? 'm-b-20' : 'edit-container']
"
>
<p
class=
"edit-title"
>
发货信息
</p>
<el-form
label-width=
"100px"
:inline=
"true"
>
<el-form-item
label=
"物流信息"
>
...
...
@@ -22,7 +22,7 @@
<table
class=
"show-table"
>
<tbody>
<tr
v-for=
"(item, index) in orderGoods"
:key=
"index"
>
<td><img
:src=
"item.goodsImage"
class=
"img-60"
@
click=
"showMedia(item.goodsImage)"
/></td>
<td><img
:src=
"item.goodsImage"
class=
"img-60"
/></td>
<td>
{{
item
.
goodsName
}}
</td>
<td>
{{
item
.
specificationData
}}
</td>
<td>
{{
item
.
activityPrice
?
item
.
activityPrice
:
item
.
retailPrice
}}
元 *
{{
item
.
goodsNumber
}}
</td>
...
...
@@ -31,8 +31,18 @@
</table>
</div>
</div>
<div
class=
"container edit-container"
v-if=
"orderRefund
.length
"
>
<div
class=
"container edit-container"
v-if=
"orderRefund"
>
<p
class=
"edit-title"
>
售后信息
</p>
<el-form
label-width=
"100px"
:inline=
"true"
>
<el-row
v-for=
"(item, index) in afterInfoDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"orderRefund[subItem.name]"
>
{{
orderRefund
[
subItem
.
name
]
}}
</span>
</el-form-item>
</el-row>
</el-form>
<div
class=
"flex"
>
<img
v-for=
"(item, index) in orderRefund.imgUrls"
:key=
"index"
class=
"img-60"
:src=
"item"
/>
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
type=
"default"
@
click=
"handleCancel"
>
返回
</el-button>
...
...
@@ -41,6 +51,7 @@
</
template
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
{
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
}
from
'@/common/constant'
export
default
{
name
:
'orderDetail'
,
...
...
@@ -55,8 +66,9 @@ export default {
orderCode
:
''
},
detailForm
:
{},
orderRefund
:
[]
,
orderRefund
:
null
,
orderGoods
:
[],
// 订单信息
detailFormDataRow
:
[],
detailFormData
:
[
{
...
...
@@ -92,17 +104,50 @@ export default {
name
:
'shipAddress'
}
],
// 售后信息
afterInfoDataRow
:
[],
afterInfoData
:
[
{
label
:
'售后类型'
,
name
:
'refundTypeName'
},
{
label
:
'申请金额'
,
name
:
'refundPrice'
},
{
label
:
'申请时间'
,
name
:
'createdDateStr'
},
{
label
:
'快递公司'
,
name
:
'deliveryCompany'
},
{
label
:
'快递单号'
,
name
:
'deliveryNumber'
},
{
label
:
'申请描述'
,
name
:
'remark'
}
],
// 基本数据
baseData
:
{
orderStatusList
:
orderManageStatusList
,
orderSourceList
:
orderSourceList
,
deliveryTypeList
:
deliveryTypeList
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
{
confId
:
'1'
,
confName
:
'退款退货'
},
{
confId
:
'2'
,
confName
:
'退款不退货'
}
]
}
}
},
created
()
{
this
.
formToRow
(
'detailFormData'
,
3
)
this
.
formToRow
(
'detailFormData'
)
this
.
formToRow
(
'afterInfoData'
)
},
mounted
()
{
...
...
@@ -113,7 +158,7 @@ export default {
},
methods
:
{
formToRow
(
formName
,
numOfRow
)
{
formToRow
(
formName
,
numOfRow
=
3
)
{
var
rowNum
=
Math
.
ceil
(
this
[
formName
].
length
/
numOfRow
)
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
for
(
var
j
=
0
;
j
<
numOfRow
;
j
++
)
{
...
...
@@ -131,7 +176,11 @@ export default {
getInfo
()
{
this
.
$apis
.
orderManage
.
getOrderDetailApi
({
orderCode
:
this
.
routeInfo
.
orderCode
}).
then
(
res
=>
{
this
.
detailForm
=
res
this
.
orderRefund
=
res
.
orderRefund
||
[]
this
.
orderRefund
=
res
.
orderRefund
||
null
if
(
this
.
orderRefund
)
{
this
.
orderRefund
.
refundTypeName
=
this
.
baseData
.
refundTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
refundType
+
''
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
res
.
refundType
).
confName
:
'-'
this
.
orderRefund
.
createdDateStr
=
dayjs
(
this
.
orderRefund
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
this
.
orderGoods
=
res
.
orderGoods
||
[]
this
.
detailForm
.
payPrice
=
res
.
payPrice
?
(
res
.
payPrice
+
'元'
)
:
'-'
this
.
detailForm
.
orderSourceName
=
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
res
.
orderSource
).
confName
:
'-'
...
...
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