Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 3be355de
authored
Jan 28, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单列表-未升级
1 parent
418d2fde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
28 deletions
src/views/orderManage/orderDetail.vue
src/views/orderManage/orderList.vue
src/views/orderManage/orderDetail.vue
View file @
3be355d
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
align=
"center"
align=
"center"
label=
"支付金额"
>
label=
"支付金额"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
¥
{{
scope
.
row
.
actualMoney
}}
</span>
<span>
¥
{{
scope
.
row
.
actualMoney
||
0
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
3
:
'待支付'
,
3
:
'待支付'
,
4
:
'已支付'
,
4
:
'已支付'
,
5
:
'已退款'
,
5
:
'已退款'
,
6
:
'已完成'
,
6
:
'已完成'
},
},
payStatusOpts
:
{
payStatusOpts
:
{
1
:
'未支付'
,
1
:
'未支付'
,
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
},
},
productList
:
[{
productList
:
[{
name
:
'xx'
name
:
'xx'
},{
},
{
}],
}],
progressList
:
[]
progressList
:
[]
...
@@ -170,57 +170,56 @@ export default {
...
@@ -170,57 +170,56 @@ export default {
methods
:
{
methods
:
{
...
mapActions
({
close
:
'd2admin/page/close'
}),
...
mapActions
({
close
:
'd2admin/page/close'
}),
arraySpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
arraySpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
rowIndex
===
1
)
{
if
(
rowIndex
===
1
)
{
if
(
columnIndex
===
0
)
{
if
(
columnIndex
===
0
)
{
return
[
1
,
6
]
return
[
1
,
6
]
}
else
{
}
else
{
return
[
1
,
1
]
return
[
1
,
1
]
}
}
}
}
},
},
getTotalNums
()
{
getTotalNums
()
{
return
this
.
detail
.
goods
.
reduce
((
prev
,
item
)
=>
prev
+
item
.
nums
,
0
)
return
this
.
detail
.
goods
.
reduce
((
prev
,
item
)
=>
prev
+
item
.
nums
,
0
)
},
},
getSummaries
(
param
)
{
getSummaries
(
param
)
{
const
{
columns
,
data
}
=
param
;
const
{
columns
,
data
}
=
param
const
sums
=
[]
;
const
sums
=
[]
columns
.
forEach
((
column
,
index
)
=>
{
columns
.
forEach
((
column
,
index
)
=>
{
if
(
index
===
0
)
{
if
(
index
===
0
)
{
sums
[
index
]
=
'总价'
;
sums
[
index
]
=
'总价'
column
.
align
=
'is-left'
column
.
align
=
'is-left'
column
.
colSpan
=
6
column
.
colSpan
=
6
return
;
return
}
}
if
(
index
===
1
)
{
if
(
index
===
1
)
{
sums
[
index
]
=
this
.
getTotalNums
()
sums
[
index
]
=
this
.
getTotalNums
()
return
;
return
}
}
if
(
index
===
2
)
{
if
(
index
===
2
)
{
sums
[
index
]
=
`¥
${
this
.
detail
.
totalPrice
}
`
;
sums
[
index
]
=
`¥
${
this
.
detail
.
totalPrice
}
`
return
;
return
}
}
return
return
const
values
=
data
.
map
(
item
=>
Number
(
item
[
column
.
property
]))
;
const
values
=
data
.
map
(
item
=>
Number
(
item
[
column
.
property
]))
if
(
!
values
.
every
(
value
=>
isNaN
(
value
)))
{
if
(
!
values
.
every
(
value
=>
isNaN
(
value
)))
{
sums
[
index
]
=
values
.
reduce
((
prev
,
curr
)
=>
{
sums
[
index
]
=
values
.
reduce
((
prev
,
curr
)
=>
{
const
value
=
Number
(
curr
)
;
const
value
=
Number
(
curr
)
if
(
!
isNaN
(
value
))
{
if
(
!
isNaN
(
value
))
{
return
prev
+
curr
;
return
prev
+
curr
}
else
{
}
else
{
return
prev
;
return
prev
}
}
},
0
)
;
},
0
)
sums
[
index
]
+=
' 元'
;
sums
[
index
]
+=
' 元'
}
else
{
}
else
{
sums
[
index
]
=
'N/A'
;
sums
[
index
]
=
'N/A'
}
}
})
;
})
return
sums
;
return
sums
}
}
}
}
}
}
...
...
src/views/orderManage/orderList.vue
View file @
3be355d
...
@@ -31,11 +31,10 @@
...
@@ -31,11 +31,10 @@
<el-table
<el-table
:data=
"tableData"
:data=
"tableData"
border
border
:highlight-current-row=
"true"
:highlight-current-row=
"true"
>
default-expand-all
>
<el-table-column
type=
"expand"
>
<el-table-column
type=
"expand"
>
<template
slot-scope=
"props"
>
<template
slot-scope=
"props"
>
<div
class=
"product_list"
>
<div
v-if=
"props.row.goods"
class=
"product_list"
>
<div
class=
"product_item"
v-for=
"(item, index) in props.row.goods"
:key=
"index"
>
<div
class=
"product_item"
v-for=
"(item, index) in props.row.goods"
:key=
"index"
>
<img
:src=
"item.goodsInfo.thumbUrl"
alt=
""
class=
"product_img"
>
<img
:src=
"item.goodsInfo.thumbUrl"
alt=
""
class=
"product_img"
>
<div
class=
"product_info"
>
<div
class=
"product_info"
>
...
@@ -211,7 +210,6 @@ export default {
...
@@ -211,7 +210,6 @@ export default {
}
}
// console.log(params)
// console.log(params)
getList
(
params
).
then
(
res
=>
{
getList
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
tableData
=
res
.
list
this
.
tableData
=
res
.
list
this
.
page
.
pageNum
=
res
.
pageNum
this
.
page
.
pageNum
=
res
.
pageNum
this
.
page
.
pageSize
=
res
.
pageSize
this
.
page
.
pageSize
=
res
.
pageSize
...
...
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