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
410f8862
Commit
410f8862
authored
Nov 09, 2022
by
季圣华
Browse files
解决零售出库和零售退货多选商品的时候不改变单据金额的bug
parent
0c1e2edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
410f8862
...
@@ -370,8 +370,10 @@ export const BillModalMixin = {
...
@@ -370,8 +370,10 @@ export const BillModalMixin = {
mObj
.
stock
=
mInfo
.
stock
mObj
.
stock
=
mInfo
.
stock
mArr
.
push
(
mObj
)
mArr
.
push
(
mObj
)
}
}
let
allPriceTotal
=
0
let
taxLastMoneyTotal
=
0
let
taxLastMoneyTotal
=
0
for
(
let
j
=
0
;
j
<
mArr
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
mArr
.
length
;
j
++
)
{
allPriceTotal
+=
mArr
[
j
].
allPrice
-
0
taxLastMoneyTotal
+=
mArr
[
j
].
taxLastMoney
-
0
taxLastMoneyTotal
+=
mArr
[
j
].
taxLastMoney
-
0
//组合和拆分单据给商品类型进行重新赋值
//组合和拆分单据给商品类型进行重新赋值
if
(
j
===
0
)
{
if
(
j
===
0
)
{
...
@@ -381,7 +383,11 @@ export const BillModalMixin = {
...
@@ -381,7 +383,11 @@ export const BillModalMixin = {
}
}
}
}
this
.
materialTable
.
dataSource
=
mArr
this
.
materialTable
.
dataSource
=
mArr
target
.
statisticsColumns
.
taxLastMoney
=
taxLastMoneyTotal
if
(
this
.
prefixNo
===
'
LSCK
'
||
this
.
prefixNo
===
'
LSTH
'
)
{
target
.
statisticsColumns
.
allPrice
=
allPriceTotal
}
else
{
target
.
statisticsColumns
.
taxLastMoney
=
taxLastMoneyTotal
}
that
.
autoChangePrice
(
target
)
that
.
autoChangePrice
(
target
)
})
})
}
else
{
}
else
{
...
...
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