Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
cc8bc5f0
Commit
cc8bc5f0
authored
Jul 14, 2023
by
wangdanlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三期出库仓库自定义组件
parent
355b5860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
index.vue
...-mes/src/privateComponents/components/Warehouse/index.vue
+17
-6
No files found.
applications/dee-mes/src/privateComponents/components/Warehouse/index.vue
View file @
cc8bc5f0
<
template
>
<div>
<el-select
v-model=
"form.
warehouse
"
>
<el-select
v-model=
"form.
extWorkCenterId
"
>
<el-option
v-for=
"(item,i) in warehouseOptions"
:key=
"i"
:label=
"item.
typeN
ame"
:label=
"item.
extn
ame"
:value=
"item.id"
/>
</el-select>
...
...
@@ -23,14 +23,19 @@ export default {
data
()
{
return
{
warehouseOptions
:
[],
areaList
:
[]
areaList
:
[],
isFirst
:
true
}
},
computed
:
{},
watch
:
{
async
'form.warehouse'
()
{
async
'form.extProductArea.id'
()
{
this
.
$set
(
this
.
form
,
'extWorkCenterId'
,
this
.
form
.
extWorkCenterId
||
''
)
if
(
!
this
.
isFirst
)
{
this
.
$set
(
this
.
form
,
'extWorkCenterId'
,
''
)
}
if
(
this
.
areaList
.
length
)
{
//
this
.
findWarehouse
()
}
else
{
await
this
.
searchApi
()
}
...
...
@@ -47,10 +52,16 @@ export default {
},
methods
:
{
async
searchApi
()
{
this
.
isFirst
=
false
const
params
=
{
'openProps'
:
[{
'name'
:
'extDxProductWorkCenters'
}]
}
await
this
.
$
utils
.
searchApi
(
'ExtDxProductArea'
,
params
).
then
(
res
=>
{
await
this
.
$
api
.
searchApi
(
'ExtDxProductArea'
,
params
).
then
(
res
=>
{
this
.
areaList
=
res
.
items
.
content
this
.
findWarehouse
()
})
},
findWarehouse
()
{
const
warehouse
=
this
.
areaList
.
find
(
item
=>
item
.
id
===
this
.
form
.
extProductArea
.
id
)
this
.
warehouseOptions
=
warehouse
.
extDxProductWorkCenters
}
}
}
...
...
Write
Preview
Markdown
is supported
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