Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
罗超
SuperMan
Commits
aecfa9d3
Commit
aecfa9d3
authored
Jul 15, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复NaN
parent
2f739f2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
BillModule.vue
...ponents/FinancialModule/FinancialSubmodule/BillModule.vue
+8
-7
No files found.
src/components/FinancialModule/FinancialSubmodule/BillModule.vue
View file @
aecfa9d3
...
@@ -361,13 +361,14 @@ export default {
...
@@ -361,13 +361,14 @@ export default {
// this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) {
// if(res.data.resultCode == 1) {
let
data
=
this
.
GetDetail
;
let
data
=
this
.
GetDetail
;
data
.
DetailList
.
forEach
(
x
=>
{
console
.
log
(
data
.
DetailList
)
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
// this.GetDetail.DetailList.forEach(x=>{
x
.
Money
=
Math
.
round
(
x
.
Money
*
100
)
/
100
// x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
// x.Money = Math.round(x.Money * 100) / 100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
// x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
this
.
benMoney
+=
parseFloat
(
x
.
Money
);
// this.currentMoney += parseFloat(x.OriginalMoney);
})
// this.benMoney += parseFloat(x.Money);
// })
this
.
currentMoney
=
Math
.
round
(
this
.
currentMoney
*
100
)
/
100
;
this
.
currentMoney
=
Math
.
round
(
this
.
currentMoney
*
100
)
/
100
;
this
.
benMoney
=
Math
.
round
(
this
.
benMoney
*
100
)
/
100
;
this
.
benMoney
=
Math
.
round
(
this
.
benMoney
*
100
)
/
100
;
this
.
$emit
(
'headCallBack'
,
this
.
currentMoney
);
this
.
$emit
(
'headCallBack'
,
this
.
currentMoney
);
...
...
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