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
d537d259
Commit
d537d259
authored
Dec 24, 2021
by
季圣华
Browse files
优化商品选择的仓库传值逻辑
parent
56d8218a
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue
View file @
d537d259
...
...
@@ -30,7 +30,7 @@
</a-col>
<a-col
:md=
"6"
:sm=
"8"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"仓库"
>
<a-select
placeholder=
"选择仓库"
v-model=
"queryParam.depotId"
<a-select
placeholder=
"选择仓库"
v-model=
"queryParam.depotId"
@
change=
"onDepotChange"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
allow-clear
>
<a-select-option
v-for=
"(item,index) in depotList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
depotName
}}
...
...
@@ -166,7 +166,6 @@
this
.
resetScreenSize
()
this
.
loadTreeData
()
this
.
getDepotList
()
this
.
loadData
()
},
methods
:
{
initBarCode
()
{
...
...
@@ -226,6 +225,7 @@
this
.
title
=
'
选择商品
'
this
.
queryParam
.
q
=
barCode
this
.
$nextTick
(()
=>
this
.
$refs
.
material
.
focus
());
this
.
initDepotSelect
()
this
.
loadData
();
this
.
form
.
resetFields
();
},
...
...
@@ -289,7 +289,6 @@
getAction
(
'
/depot/findDepotByCurrentUser
'
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
that
.
depotList
=
res
.
data
this
.
initDepotSelect
()
}
})
},
...
...
@@ -300,6 +299,9 @@
}
}
},
onDepotChange
(
value
)
{
this
.
queryParam
.
depotId
=
value
},
onSelectChange
(
selectedRowKeys
,
selectionRows
)
{
this
.
selectedRowKeys
=
selectedRowKeys
;
this
.
selectionRows
=
selectionRows
;
...
...
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