Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
cf55cba2
Commit
cf55cba2
authored
May 07, 2022
by
神话
Browse files
解决订单转出入库单遇到的小数点问题
parent
efe6d4fa
Changes
2
Show whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
cf55cba2
...
@@ -412,14 +412,14 @@
...
@@ -412,14 +412,14 @@
let
listEx
=
[]
let
listEx
=
[]
let
allTaxLastMoney
=
0
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
let
info
=
list
[
j
]
;
let
info
=
list
[
j
]
if
(
info
.
pre
Number
)
{
if
(
info
.
finish
Number
>
0
)
{
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
}
let
taxRate
=
info
.
taxRate
-
0
let
taxRate
=
info
.
taxRate
-
0
info
.
taxMoney
=
(
info
.
allPrice
*
taxRate
/
100
).
toFixed
(
2
)
-
0
info
.
taxMoney
=
(
info
.
allPrice
*
taxRate
/
100
).
toFixed
(
2
)
-
0
info
.
taxLastMoney
=
info
.
allPrice
+
info
.
taxMoney
info
.
taxLastMoney
=
info
.
allPrice
+
info
.
taxMoney
}
allTaxLastMoney
+=
info
.
taxLastMoney
allTaxLastMoney
+=
info
.
taxLastMoney
listEx
.
push
(
info
)
listEx
.
push
(
info
)
this
.
changeColumnShow
(
info
)
this
.
changeColumnShow
(
info
)
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
cf55cba2
...
@@ -418,14 +418,14 @@
...
@@ -418,14 +418,14 @@
let
listEx
=
[]
let
listEx
=
[]
let
allTaxLastMoney
=
0
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
let
info
=
list
[
j
]
;
let
info
=
list
[
j
]
if
(
info
.
pre
Number
)
{
if
(
info
.
finish
Number
>
0
)
{
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
}
let
taxRate
=
info
.
taxRate
-
0
let
taxRate
=
info
.
taxRate
-
0
info
.
taxMoney
=
(
info
.
allPrice
*
taxRate
/
100
).
toFixed
(
2
)
-
0
info
.
taxMoney
=
(
info
.
allPrice
*
taxRate
/
100
).
toFixed
(
2
)
-
0
info
.
taxLastMoney
=
info
.
allPrice
+
info
.
taxMoney
info
.
taxLastMoney
=
info
.
allPrice
+
info
.
taxMoney
}
allTaxLastMoney
+=
info
.
taxLastMoney
allTaxLastMoney
+=
info
.
taxLastMoney
listEx
.
push
(
info
)
listEx
.
push
(
info
)
this
.
changeColumnShow
(
info
)
this
.
changeColumnShow
(
info
)
...
...
Write
Preview
Supports
Markdown
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