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
1c1229df
Commit
1c1229df
authored
Nov 26, 2021
by
季圣华
Browse files
解决单据录入中批量换仓库的bug
parent
f89d8f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
1c1229df
...
...
@@ -275,17 +275,23 @@ export const BillModalMixin = {
getMaterialByBarCode
(
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
mList
=
res
.
data
//构造新的列表数组,用于存放单据明细信息
let
newDetailArr
=
[]
if
(
mList
&&
mList
.
length
)
{
//构造新的列表数组,用于存放单据明细信息
let
newDetailArr
=
[]
for
(
let
i
=
0
;
i
<
detailArr
.
length
;
i
++
)
{
let
item
=
detailArr
[
i
]
item
.
depotId
=
depotId
item
.
stock
=
mList
[
i
].
stock
newDetailArr
.
push
(
item
)
}
this
.
materialTable
.
dataSource
=
newDetailArr
}
else
{
for
(
let
i
=
0
;
i
<
detailArr
.
length
;
i
++
)
{
let
item
=
detailArr
[
i
]
item
.
depotId
=
depotId
newDetailArr
.
push
(
item
)
}
}
this
.
materialTable
.
dataSource
=
newDetailArr
}
})
})
...
...
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