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
07d127f8
Commit
07d127f8
authored
1 year ago
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
51dfe480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
BillModule.vue
src/components/FinancialModule/components/BillModule.vue
+12
-3
ReceivablesModule.vue
...mponents/FinancialModule/components/ReceivablesModule.vue
+12
-2
No files found.
src/components/FinancialModule/components/BillModule.vue
View file @
07d127f8
...
@@ -180,8 +180,12 @@ export default {
...
@@ -180,8 +180,12 @@ export default {
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
// x.Money = x.Money.toFixed(2)
// x.Money = x.Money.toFixed(2)
// x.Money = Math.round(x.Money * 100) / 100
// x.Money = Math.round(x.Money * 100) / 100
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
let
FractionalPart
=
String
(
x
.
Money
).
split
(
'.'
)
if
(
FractionalPart
.
length
>
1
&&
FractionalPart
[
1
].
length
>
3
&&
FractionalPart
[
1
].
slice
(
3
,
4
)
>
5
){
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
}
else
{
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
3
))
}
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
Money
=
parseFloat
(
x
.
Money
)
*
100
Money
=
parseFloat
(
x
.
Money
)
*
100
...
@@ -196,7 +200,12 @@ export default {
...
@@ -196,7 +200,12 @@ export default {
this
.
GetDetail
.
CashierDetail
.
forEach
(
x
=>
{
this
.
GetDetail
.
CashierDetail
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
let
FractionalPart
=
String
(
x
.
Money
).
split
(
'.'
)
if
(
FractionalPart
.
length
>
1
&&
FractionalPart
[
1
].
length
>
3
&&
FractionalPart
[
1
].
slice
(
3
,
4
)
>
5
){
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
}
else
{
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
3
))
}
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
Money1
=
parseFloat
(
x
.
Money
)
*
100
Money1
=
parseFloat
(
x
.
Money
)
*
100
...
...
This diff is collapsed.
Click to expand it.
src/components/FinancialModule/components/ReceivablesModule.vue
View file @
07d127f8
...
@@ -146,7 +146,12 @@ export default {
...
@@ -146,7 +146,12 @@ export default {
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
let
FractionalPart
=
String
(
x
.
Money
).
split
(
'.'
)
if
(
FractionalPart
.
length
>
1
&&
FractionalPart
[
1
].
length
>
3
&&
FractionalPart
[
1
].
slice
(
3
,
4
)
>
5
){
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
}
else
{
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
3
))
}
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
...
@@ -163,7 +168,12 @@ export default {
...
@@ -163,7 +168,12 @@ export default {
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
let
FractionalPart
=
String
(
x
.
Money
).
split
(
'.'
)
if
(
FractionalPart
.
length
>
1
&&
FractionalPart
[
1
].
length
>
3
&&
FractionalPart
[
1
].
slice
(
3
,
4
)
>
5
){
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
4
))
}
else
{
x
.
Money
=
this
.
RoundItUp
(
parseFloat
(
x
.
Money
).
toFixed
(
3
))
}
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
Money1
=
parseFloat
(
x
.
Money
)
*
100
Money1
=
parseFloat
(
x
.
Money
)
*
100
...
...
This diff is collapsed.
Click to expand it.
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