Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
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
ximai
mes-pda-scan
Commits
5bfce159
Commit
5bfce159
authored
Jul 24, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
e704ecea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
62 deletions
+72
-62
FactorySelect.vue
components/FactorySelect/FactorySelect.vue
+72
-62
No files found.
components/FactorySelect/FactorySelect.vue
View file @
5bfce159
<
template
>
<
template
>
<view
class=
"factoryBox"
>
<view
class=
"factoryBox"
>
<zxz-uni-data-select
filterable
v-model=
"warehouseCode"
dataKey=
"label"
placeholder=
"请选择仓库别"
dataValue=
"value"
<zxz-uni-data-select
:localdata=
"warehouseData"
@
change=
'onWarehouseChange'
/>
filterable
v-model=
"warehouseCode"
dataKey=
"label"
placeholder=
"请选择仓库别"
dataValue=
"value"
:localdata=
"warehouseData"
@
change=
"onWarehouseChange"
/>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
model
:
{
model
:
{
prop
:
'value'
,
prop
:
"value"
,
event
:
'update'
event
:
"update"
,
},
},
props
:
{
props
:
{
value
:
{
value
:
{
type
:
String
,
type
:
String
,
defualt
:
''
defualt
:
""
,
}
},
},
},
data
()
{
data
()
{
return
{
return
{
warehouseData
:
[]
warehouseData
:
[],
}
};
},
},
computed
:
{
computed
:
{
warehouseCode
:
{
warehouseCode
:
{
get
()
{
get
()
{
return
this
.
value
return
this
.
value
;
},
},
set
(
v
)
{
set
(
v
)
{
this
.
$emit
(
'update'
,
v
)
this
.
$emit
(
"update"
,
v
);
}
},
}
},
},
},
created
()
{
created
()
{
this
.
getDepotLists
()
this
.
getDepotLists
();
},
},
methods
:
{
methods
:
{
onWarehouseChange
(
e
)
{
onWarehouseChange
(
e
)
{
this
.
$emit
(
'change'
,
e
);
this
.
$emit
(
"change"
,
e
);
},
},
getDepotLists
()
{
getDepotLists
()
{
this
.
$u
.
api
.
sapApi
this
.
$u
.
api
.
sapApi
.
sapDict
({
.
sapDict
({
FIELDNAME
:
'T001L'
FIELDNAME
:
"T001L"
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
res
.
forEach
((
ele
)
=>
{
// 过滤当前工厂下的库存地点
ele
.
label
=
ele
.
LGORT
+
"-"
+
ele
.
LGOBE
;
this
.
warehouseData
=
res
ele
.
value
=
ele
.
LGORT
.
filter
((
ele
)
=>
ele
.
WERKS
==
this
.
vuex_user_factory
)
.
map
((
item
)
=>
{
item
.
label
=
item
.
LGORT
+
"-"
+
item
.
LGOBE
;
item
.
value
=
item
.
LGORT
;
return
item
;
});
});
this
.
warehouseData
=
res
;
}
else
{
}
else
{
this
.
warehouseData
=
[];
this
.
warehouseData
=
[];
}
}
});
});
},
},
}
},
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.factoryBox
{
.factoryBox
{
padding
:
10rpx
20rpx
0
;
padding
:
10rpx
20rpx
0
;
.item-select
{
.item-select
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
}
}
}
}
</
style
>
</
style
>
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