Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
172f73a4
Commit
172f73a4
authored
Apr 02, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序参数
parent
42674c85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
18 deletions
+38
-18
add.vue
pages/aps/aps/add.vue
+32
-16
api.js
pages/aps/aps/api.js
+6
-2
No files found.
pages/aps/aps/add.vue
View file @
172f73a4
...
...
@@ -117,22 +117,17 @@
v-for=
"(item,index) in list"
:key=
"index"
:value=
"item.value"
:label=
"item.
title
"
:label=
"item.
label
"
style=
"display:none"
></Option>
<Tree
key=
"mytree"
:data=
"data1"
ref=
"mytree"
:render=
"renderContent"
></Tree>
</Select>
</FormItem>
<div
class=
"check-box"
>
<CheckboxGroup
v-model=
"entity.fruit"
>
<Checkbox
label=
"10985553333(数控车床 车工班)"
></Checkbox>
<br
/>
<Checkbox
label=
"10985553333(数控车床 车工班)"
></Checkbox>
<br
/>
<Checkbox
label=
"10985553333(数控车床 车工班)"
></Checkbox>
<br
/>
<Checkbox
label=
"10985553333(数控车床 车工班)"
></Checkbox>
<br
/>
<CheckboxGroup
v-model=
"entity.multipleEquipIds"
>
<div
v-for=
"(item,index) in checkList"
:key=
"index"
class=
"check-item"
>
<Checkbox
:label=
"item.equip_pk"
>
{{
item
.
equip_name
}}
</Checkbox>
</div>
</CheckboxGroup>
</div>
</div>
...
...
@@ -166,12 +161,13 @@ export default {
planMethod
:
"转序规则"
,
// 平行 重叠
shopId
:
null
,
level
:
100
,
value2
:
100
,
fruit
:
[]
multipleEquipIds
:
[],
//设备
value2
:
100
},
list
:
[],
data1
:
[],
checkList
:
[],
listCal
:
[],
visible
:
false
,
rules
:
{
...
...
@@ -184,6 +180,7 @@ export default {
this
.
getCal
();
//获取连班策略
this
.
apsGet
();
//获取参数级别和转序等的关系
this
.
initTree
();
//获取当前登录人所在车间下的所有部门
this
.
multiple
(
0
);
//获取任务工单相关设备
},
methods
:
{
getCal
()
{
...
...
@@ -216,7 +213,6 @@ export default {
var
sumData
=
[];
Api
.
userdepartmentsofworkshop
()
.
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
data1
=
r
.
result
;
}
else
{
...
...
@@ -249,9 +245,25 @@ export default {
};
this
.
list
=
[];
this
.
list
.
push
(
obj
);
alert
(
this
.
list
[
0
].
value
)
this
.
entity
.
shopId
=
this
.
list
[
0
].
value
;
this
.
multiple
(
this
.
entity
.
shopId
);
},
multiple
(
id
)
{
// part_task_pk 任务ID 可以为0
//op_pk 工单ID 可以为0
//shop_id 班组ID 可以为0
Api
.
gettaskequips
({
part_task_pk
:
0
,
op_pk
:
0
,
shop_id
:
id
})
.
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
checkList
=
r
.
result
;
}
})
.
catch
(
err
=>
{});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
...
...
@@ -354,6 +366,10 @@ export default {
padding-left: 0;
margin-left: 25px;
overflow: auto;
.check-item {
height: 30px;
margin-left: 10px;
}
}
}
.right-down {
...
...
pages/aps/aps/api.js
View file @
172f73a4
...
...
@@ -72,8 +72,12 @@ export default {
getequiplist
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/mes_equip_info/getequiplist`
,
params
);
},
//获取当前登录人所在车间下的所有部门
userdepartmentsofworkshop
(
params
)
{
//获取当前登录人所在车间下的所有部门
userdepartmentsofworkshop
(
params
)
{
return
Api
.
get
(
`
${
systemUrl
}
/user/userdepartmentsofworkshop`
,
params
);
},
//获取任务工单相关设备
gettaskequips
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/ser/gettaskequips`
,
params
);
},
}
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