Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sph
上药订单生命周期升级
Commits
874f144f
Commit
874f144f
authored
Mar 24, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品清单页面金额合计
parent
caa0dde8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
src/views/myOrder/detail/goodsInfo.vue
src/views/myOrder/detail/goodsInfo.vue
+12
-7
No files found.
src/views/myOrder/detail/goodsInfo.vue
View file @
874f144f
...
@@ -62,14 +62,15 @@ export default {
...
@@ -62,14 +62,15 @@ export default {
goodsName
:
''
,
// 商品名称
goodsName
:
''
,
// 商品名称
goodsSpec
:
''
,
// 商品规格
goodsSpec
:
''
,
// 商品规格
manufacturer
:
''
,
// 生产企业
manufacturer
:
''
,
// 生产企业
}
},
totalAmount
:
0
};
};
},
},
props
:
{
props
:
{
totalAmount
:
{
//
totalAmount: {
type
:
String
,
//
type: String,
default
:
'
0.00
'
//
default: '0.00'
}
//
}
},
},
computed
:
{
computed
:
{
// 总价格
// 总价格
...
@@ -77,7 +78,8 @@ export default {
...
@@ -77,7 +78,8 @@ export default {
// if (this.detailData.orderTotalAmount) {
// if (this.detailData.orderTotalAmount) {
// return AmountNumFormat(this.detailData.orderTotalAmount)
// return AmountNumFormat(this.detailData.orderTotalAmount)
// } else {
// } else {
return
this
.
orderItem
.
orderTotalAmount
// return this.orderItem.orderTotalAmount
return
AmountNumFormat
(
this
.
totalAmount
)
// }
// }
}
}
},
},
...
@@ -178,6 +180,7 @@ export default {
...
@@ -178,6 +180,7 @@ export default {
}
}
getMyOrderDetail
(
params
).
then
(
res
=>
{
getMyOrderDetail
(
params
).
then
(
res
=>
{
this
.
detailData
=
[]
this
.
detailData
=
[]
this
.
totalAmount
=
0
if
(
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
code
===
'
00000
'
&&
if
(
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
code
===
'
00000
'
&&
res
.
data
.
entity
&&
res
.
data
.
entity
.
detailList
&&
res
.
data
.
entity
.
detailList
.
length
>
0
)
{
res
.
data
.
entity
&&
res
.
data
.
entity
.
detailList
&&
res
.
data
.
entity
.
detailList
.
length
>
0
)
{
this
.
detailData
=
res
.
data
.
entity
.
detailList
this
.
detailData
=
res
.
data
.
entity
.
detailList
...
@@ -186,7 +189,9 @@ export default {
...
@@ -186,7 +189,9 @@ export default {
// array.push(this.detailData.goodsInfos[0])
// array.push(this.detailData.goodsInfos[0])
// array.push(this.detailData.goodsInfos[1])
// array.push(this.detailData.goodsInfos[1])
// }
// }
// this.detailData.goodsInfos = array
this
.
detailData
.
forEach
(
item
=>
{
this
.
totalAmount
=
this
.
totalAmount
+
parseFloat
(
item
.
taxAmount
)
})
}
else
{
}
else
{
console
.
log
(
'
订单详情
'
,
'
请求失败
'
)
console
.
log
(
'
订单详情
'
,
'
请求失败
'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment