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
6bcc25e1
Commit
6bcc25e1
authored
Aug 07, 2021
by
季圣华
Browse files
优化单据多选商品的功能
parent
d75b5048
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
6bcc25e1
...
...
@@ -190,21 +190,24 @@ export const BillModalMixin = {
let
mList
=
res
.
data
if
(
value
.
indexOf
(
'
,
'
)
>
-
1
)
{
//多个条码
let
mArr
=
this
.
materialTable
.
dataSource
for
(
let
i
=
0
;
i
<
mList
.
length
;
i
++
)
{
let
mInfo
=
mList
[
i
]
let
mObj
=
this
.
parseInfoToObj
(
mInfo
)
mObj
.
depotId
=
mInfo
.
depotId
mObj
.
stock
=
mInfo
.
stock
mArr
.
push
(
mObj
)
}
let
taxLastMoneyTotal
=
0
for
(
let
j
=
0
;
j
<
mArr
.
length
;
j
++
)
{
taxLastMoneyTotal
+=
mArr
[
j
].
taxLastMoney
}
this
.
materialTable
.
dataSource
=
mArr
target
.
statisticsColumns
.
taxLastMoney
=
taxLastMoneyTotal
that
.
autoChangePrice
(
target
)
this
.
$refs
.
materialDataTable
.
getValues
((
error
,
values
)
=>
{
values
.
pop
()
//移除最后一行数据
let
mArr
=
values
for
(
let
i
=
0
;
i
<
mList
.
length
;
i
++
)
{
let
mInfo
=
mList
[
i
]
let
mObj
=
this
.
parseInfoToObj
(
mInfo
)
mObj
.
depotId
=
mInfo
.
depotId
mObj
.
stock
=
mInfo
.
stock
mArr
.
push
(
mObj
)
}
let
taxLastMoneyTotal
=
0
for
(
let
j
=
0
;
j
<
mArr
.
length
;
j
++
)
{
taxLastMoneyTotal
+=
mArr
[
j
].
taxLastMoney
-
0
}
this
.
materialTable
.
dataSource
=
mArr
target
.
statisticsColumns
.
taxLastMoney
=
taxLastMoneyTotal
that
.
autoChangePrice
(
target
)
})
}
else
{
//单个条码
let
mArr
=
[]
...
...
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