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
2c9c78de
Commit
2c9c78de
authored
Apr 26, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整机排产
parent
ff6e3b4b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
264 additions
and
191 deletions
+264
-191
api.js
pages/aps/complete/api.js
+1
-0
index.vue
pages/aps/complete/index.vue
+182
-128
index.vue
pages/aps/stream/index.vue
+81
-63
No files found.
pages/aps/complete/api.js
View file @
2c9c78de
...
@@ -9,6 +9,7 @@ export default {
...
@@ -9,6 +9,7 @@ export default {
cmtwostepschedule
(
params
)
{
cmtwostepschedule
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/messchedule/cmtwostepschedule`
,
params
);
//整机排产--二级排产
return
Api
.
post
(
`
${
PlanUrl
}
/messchedule/cmtwostepschedule`
,
params
);
//整机排产--二级排产
},
},
// getlist(params) {
// getlist(params) {
// return Api.get(`${PlanUrl}/mes_sys_shop_info/getlist`, params); //手工排产:查询所在车间下的所有班组信息
// return Api.get(`${PlanUrl}/mes_sys_shop_info/getlist`, params); //手工排产:查询所在车间下的所有班组信息
// },
// },
...
...
pages/aps/complete/index.vue
View file @
2c9c78de
This diff is collapsed.
Click to expand it.
pages/aps/stream/index.vue
View file @
2c9c78de
...
@@ -11,38 +11,40 @@
...
@@ -11,38 +11,40 @@
</RadioGroup>
</RadioGroup>
</Col>
</Col>
</Row>
</Row>
<div
<div
class=
"left-down"
>
class=
"left-body"
<div
v-for=
"(li,index) in list"
class=
"left-body"
:key=
"index"
v-for=
"(li,index) in list"
@
click=
"listData(li)"
:key=
"index"
:class=
"isactive == index ? 'addclass' : '' "
@
click=
"listData(li,index)"
>
:class=
"isactive == index ? 'addclass' : '' "
<Row
class=
"title-i"
>
>
<Col
:span=
"20"
class=
"order-code"
>
订单号:
{{
li
.
order_id
}}
</Col>
<Row
class=
"title-i"
>
<Col
:span=
"4"
class=
"order-ringht"
>
<Col
:span=
"20"
class=
"order-code"
>
订单号:
{{
li
.
mesCode
}}
</Col>
<Icon
type=
"md-close"
@
click=
"close"
/>
<Col
:span=
"4"
class=
"order-ringht"
>
</Col>
<Icon
type=
"md-close"
@
click=
"close"
/>
</Row>
</Col>
<div
class=
"fa"
>
{{
li
.
routing_version
}}
</div>
</Row>
<div
class=
"time-s"
>
<div
class=
"fa"
>
产品名称:
{{
li
.
productName
}}
</div>
<!--
<Icon
type=
"ios-copy"
/>
-->
<div
class=
"time-s"
>
<span>
工序:
{{
li
.
routing_schema
}}
</span>
<!--
<Icon
type=
"ios-copy"
/>
-->
<span>
工序:
{{
li
.
drawnNumber
}}
</span>
</div>
<div
class=
"time-s"
>
{{
li
.
demandFinishDate
}}
—
{{
li
.
demandStartDate
}}
</div>
</div>
</div>
<div
class=
"time-s"
>
{{
li
.
demand_start
}}
—
{{
li
.
demand_finish
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"aps-r"
>
<div
class=
"aps-r"
>
<!--
<div
class=
"g-list"
>
工序列表
</div>
-->
<!--
<div
class=
"g-list"
>
工序列表
</div>
-->
<Row
class=
"g-list"
>
<Row
class=
"g-list"
>
<Col
:span=
"2"
class=
"chan-chi"
>
工序列表
</Col>
<Col
:span=
"2"
class=
"chan-chi"
>
工序列表
</Col>
<Col
:span=
"22"
class=
"l-ringht"
>
<
!--
<
Col
:span=
"22"
class=
"l-ringht"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeRodio"
size=
"small"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeRodio"
size=
"small"
>
<Radio
label=
"0"
>
全部
</Radio>
<Radio
label=
"0"
>
全部
</Radio>
<Radio
label=
"1"
>
未排产
</Radio>
<Radio
label=
"1"
>
未排产
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
</RadioGroup>
</RadioGroup>
</Col>
</Col>
-->
</Row>
</Row>
<div
class=
"right-body"
>
<div
class=
"right-body"
>
<div
class=
"list"
>
<div
class=
"list"
>
...
@@ -50,14 +52,14 @@
...
@@ -50,14 +52,14 @@
<TimelineItem
v-for=
"(item, index) in result"
:key=
"index"
>
<TimelineItem
v-for=
"(item, index) in result"
:key=
"index"
>
<Badge
:count=
"index+ 1"
slot=
"dot"
:type=
"type(index)"
></Badge>
<Badge
:count=
"index+ 1"
slot=
"dot"
:type=
"type(index)"
></Badge>
<div
class=
"set-name"
>
<div
class=
"set-name"
>
<span
@
click=
"sets(item.routingHeaderId)"
>
{{
item
.
task
name
}}
</span>
&
nbsp
<span
@
click=
"sets(item.routingHeaderId)"
>
工序名称:
{{
item
.
name
}}
</span>
&
nbsp
<Tooltip
content=
"拆分工序"
placement=
"top"
>
<Tooltip
content=
"拆分工序"
placement=
"top"
>
<Icon
type=
"md-bluetooth"
@
click=
"split"
/>
<Icon
type=
"md-bluetooth"
@
click=
"split"
/>
</Tooltip>
</Tooltip>
<Icon
type=
"ios-trash"
@
click=
"remove"
/>
<Icon
type=
"ios-trash"
@
click=
"remove"
/>
</div>
</div>
<div>
{{
item
.
equip_id
}}
</div>
<div>
任务顺序:
{{
item
.
task_seq
}}
</div>
<div>
{{
item
.
equip_type
}}
</div>
<div>
数量:
{{
item
.
quantity
}}
</div>
<div>
{{
item
.
resources_Type_Name
}}
</div>
<div>
{{
item
.
resources_Type_Name
}}
</div>
</TimelineItem>
</TimelineItem>
</Timeline>
</Timeline>
...
@@ -144,18 +146,27 @@ export default {
...
@@ -144,18 +146,27 @@ export default {
},
},
//排产池列表
//排产池列表
orderlist
()
{
orderlist
()
{
Api
.
getpooltypeorderlist
({
PoolType
:
3
,
status
:
this
.
status
}).
then
(
r
=>
{
Api
.
getpooltypeorderlist
({
PoolType
:
3
,
status
:
this
.
status
}).
then
(
r
=>
{
// console.log(r)
// console.log(r)
if
(
r
.
success
)
{
if
(
r
.
result
)
{
r
.
result
.
forEach
(
e
=>
{
r
.
result
.
forEach
(
e
=>
{
return
(
e
.
checked
=
false
);
return
(
e
.
checked
=
false
);
});
});
this
.
list
=
r
.
result
;
this
.
list
=
r
.
result
;
if
(
r
.
result
[
0
])
{
this
.
tagTata
(
r
.
result
[
0
].
id
);
}
else
{
this
.
result
=
[];
}
}
else
{
this
.
$Message
.
info
(
"排产池数据请求失败"
);
}
}
});
});
},
},
//点击选中排产订单
//点击选中排产订单
listData
(
li
)
{
listData
(
li
,
index
)
{
console
.
log
(
li
);
this
.
isactive
=
index
;
this
.
isactive
=
index
;
this
.
group
.
orderId
=
li
.
id
;
this
.
group
.
orderId
=
li
.
id
;
this
.
tagTata
(
li
.
id
);
this
.
tagTata
(
li
.
id
);
...
@@ -169,9 +180,9 @@ export default {
...
@@ -169,9 +180,9 @@ export default {
});
});
},
},
//工序排产过滤
//工序排产过滤
changeRodio
(
a
)
{
//
changeRodio(a) {
console
.
log
(
a
);
//
console.log(a);
},
//
},
//删除排产订单
//删除排产订单
close
()
{
close
()
{
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
...
@@ -250,9 +261,9 @@ export default {
...
@@ -250,9 +261,9 @@ export default {
.aps-l {
.aps-l {
width: 20%;
width: 20%;
border-right: 1px solid #e4e6ed;
border-right: 1px solid #e4e6ed;
height: 86vh;
padding: 0 15px 10px 10px;
padding: 0 15px 10px 10px;
overflow: auto;
.row-p {
.row-p {
border-bottom: 1px solid #e4e6ed;
border-bottom: 1px solid #e4e6ed;
padding: 5px;
padding: 5px;
...
@@ -265,48 +276,53 @@ export default {
...
@@ -265,48 +276,53 @@ export default {
text-align: right;
text-align: right;
}
}
}
}
.left-body:hover {
.left-down {
cursor: pointer;
height: 82vh;
border-color: rgba(38, 128, 235, 0.5);
overflow: auto;
.title-i {
.left-body:hover {
background: rgba(38, 128, 235, 0.5) !important;
cursor: pointer;
border-color: rgba(38, 128, 235, 0.5);
.title-i {
background: rgba(38, 128, 235, 0.5) !important;
}
}
}
}
.left-body {
.left-body {
margin-top: 15px;
margin-top: 15px
;
border: 1px solid rgba(228, 230, 237, 1)
;
border: 1px solid rgba(228, 230, 237, 1)
;
border-radius: 4px
;
border-radius: 4px;
.title-i {
.title-i {
padding: 0 8px;
padding: 0 8
px;
height: 34
px;
height: 34px;
line-
height: 34px;
line-height: 34px
;
color: #515a6e
;
color: #515a6e
;
background: #e4e6ed
;
background: #e4e6ed;
.order-ringht {
.order-ringht {
text-align: right;
text-align: right;
.ivu-icon {
.ivu-icon {
cursor: pointer;
cursor: pointer;
}
}
}
}
}
}
.fa {
.fa {
height: 32px;
height: 32px;
line-height: 32px;
line-height: 32px;
color: rgba(38, 128, 235, 1);
color: rgba(38, 128, 235, 1);
padding: 5px 8px 0 8px;
padding: 5px 8px 0 8px;
}
}
.time-s {
.time-s {
padding: 0 8px;
padding: 0 8px;
height: 32px;
height: 32px;
line-height: 32px;
line-height: 32px;
color: #515a6e;
color: #515a6e;
}
}
}
}
}
}
}
.aps-r {
.aps-r {
width: 80%;
width: 80%;
padding: 0 15px;
padding: 0 15px;
.g-list {
.g-list {
font-size: 14px;
font-size: 14px;
width: 100%;
width: 100%;
...
@@ -323,6 +339,8 @@ export default {
...
@@ -323,6 +339,8 @@ export default {
}
}
.right-body {
.right-body {
margin-top: 15px;
margin-top: 15px;
height: 82vh;
overflow: auto;
.list {
.list {
padding-left: 10px;
padding-left: 10px;
.set-name {
.set-name {
...
...
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