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
faf57101
Commit
faf57101
authored
Jun 02, 2021
by
季圣华
Browse files
优化财务单据的数值计算
parent
c25b6dd4
Changes
5
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
faf57101
...
...
@@ -166,7 +166,6 @@ export const BillModalMixin = {
//单元值改变一个字符就触发一次
onValueChange
(
event
)
{
let
that
=
this
debugger
const
{
type
,
row
,
column
,
value
,
target
}
=
event
let
param
,
operNumber
,
unitPrice
,
taxUnitPrice
,
allPrice
,
taxRate
,
taxMoney
,
taxLastMoney
switch
(
column
.
key
)
{
...
...
jshERP-web/src/views/financial/modules/GiroModal.vue
View file @
faf57101
...
...
@@ -165,7 +165,8 @@
for
(
let
item
of
detailArr
){
totalPrice
+=
item
.
eachAmount
-
0
}
billMain
.
totalPrice
=
totalPrice
billMain
.
totalPrice
=
0
-
totalPrice
billMain
.
changeAmount
=
0
-
billMain
.
changeAmount
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
}
...
...
jshERP-web/src/views/financial/modules/ItemOutModal.vue
View file @
faf57101
...
...
@@ -177,7 +177,8 @@
for
(
let
item
of
detailArr
){
totalPrice
+=
item
.
eachAmount
-
0
}
billMain
.
totalPrice
=
totalPrice
billMain
.
totalPrice
=
0
-
totalPrice
billMain
.
changeAmount
=
0
-
billMain
.
changeAmount
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
}
...
...
jshERP-web/src/views/financial/modules/MoneyOutModal.vue
View file @
faf57101
...
...
@@ -168,7 +168,7 @@
for
(
let
item
of
detailArr
){
totalPrice
+=
item
.
eachAmount
-
0
}
billMain
.
totalPrice
=
totalPrice
billMain
.
totalPrice
=
0
-
totalPrice
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
}
...
...
jshERP-web/src/views/report/VendorAccount.vue
View file @
faf57101
...
...
@@ -165,6 +165,7 @@
let
moneyBeginNeedGet
=
beginNeedGet
-
0
;
//期初应收
let
moneyBeginNeedPay
=
beginNeedPay
-
0
;
//期初应付
money
=
(
money
+
moneyBeginNeedGet
-
moneyBeginNeedPay
).
toFixed
(
2
);
money
=
0
-
money
;
if
(
type
===
'
first
'
)
{
this
.
firstTotal
=
prefix
+
money
+
"
,
"
}
else
if
(
type
===
'
last
'
)
{
...
...
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