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
ef2d70b2
Commit
ef2d70b2
authored
Apr 29, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产方案对比
parent
13456309
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
397 additions
and
140 deletions
+397
-140
compare.vue
pages/aps/results/compare.vue
+67
-0
index.vue
pages/aps/results/index.vue
+97
-139
result.vue
pages/aps/results/result.vue
+171
-0
results.less
pages/aps/results/results.less
+61
-0
table-expand.vue
pages/aps/results/table-expand.vue
+1
-1
No files found.
pages/aps/results/compare.vue
0 → 100644
View file @
ef2d70b2
<
template
>
<div
class=
"compare"
>
<div
class=
"btn"
>
<Button
type=
"primary"
@
click=
"parameter"
>
下发
</Button>
<!--
<Button
type=
"primary"
>
导出
</Button>
000 -->
<Button
type=
"primary"
icon=
"ios-redo"
@
click=
"comeBlck"
>
返回
</Button>
</div>
<div
class=
"compare_box"
>
<div
class=
"left_list"
>
</div>
<div
class=
"right_add"
></div>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
data
()
{
return
{
code
:
'2'
,
name
:
'添加'
,
tree
:
[]
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
components
:
{},
created
()
{},
mounted
()
{},
methods
:
{
// 下发
parameter
()
{
Api
.
processschemedispatch
({
id
:
this
.
id
}).
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
orderlist
();
}
else
{
this
.
$Message
.
success
(
"下发失败"
);
}
});
},
// 返回
comeBlck
()
{
this
.
$router
.
push
({
path
:
"/aps/aps"
});
},
tabChange
(
name
)
{
if
(
name
==
'technicalcoordination'
)
{
this
.
$refs
.
technicalcoordination
.
loadchangelist
();
}
if
(
name
==
'unqualifiedorder'
)
{
this
.
$refs
.
unqualifiedorder
.
loadchangelist
();
}
},
}
}
</
script
>
<
style
lang=
"less"
>
</
style
>
pages/aps/results/index.vue
View file @
ef2d70b2
<
style
lang=
"less"
>
@import './results.less';
</
style
>
<
template
>
<div
class=
"results"
>
<Layout>
...
...
@@ -26,25 +29,36 @@
</div>
</Sider>
<Content>
<h4>
排产结果
</h4>
<Tabs
value=
"name1"
:animated=
"false"
>
<TabPane
label=
"结果列表"
name=
"name1"
>
<resultsList
ref=
"resultsList"
/>
</TabPane>
<!--
<TabPane
label=
"结果甘特图"
name=
"name2"
>
结果甘特图
</TabPane>
-->
<TabPane
label=
"方案对比"
name=
"name3"
>
<compareList
ref=
"compareList"
/>
</TabPane>
</Tabs>
<!--
<h4>
排产结果
</h4>
<div
class=
"btn"
>
<Button
type=
"primary"
@
click=
"parameter"
>
下发
</Button>
<!--
<Button
type=
"primary"
>
导出
</Button>
-->
<Button
type=
"primary"
icon=
"ios-redo"
@
click=
"comeBlck"
>
返回
</Button>
<Button
type=
"primary"
@
click=
"parameter"
>
下发
</Button>
-->
<!--
<Button
type=
"primary"
>
导出
</Button>
000
-->
<
!--
<
Button
type=
"primary"
icon=
"ios-redo"
@
click=
"comeBlck"
>
返回
</Button>
</div>
<div>
<Table
:columns=
"columns"
:data=
"data"
></Table>
</div>
</div>
-->
</Content>
</Layout>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
import
expandRow
from
"./table-expand.vue"
;
// import expandRow from "./table-expand.vue";expandRow,
import
resultsList
from
"./result.vue"
;
import
compareList
from
"./compare.vue"
;
export
default
{
components
:
{
expandRow
},
components
:
{
resultsList
,
compareList
},
data
()
{
return
{
...
...
@@ -52,81 +66,81 @@ export default {
data
:
[],
list
:
[],
id
:
""
,
columns
:
[
{
type
:
"expand"
,
width
:
50
,
render
:
(
h
,
params
)
=>
{
return
h
(
expandRow
,
{
props
:
{
row
:
params
.
row
}
});
}
},
{
title
:
"超期预警"
,
key
:
"alert"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"Icon"
,
{
props
:
{
type
:
params
.
row
.
alert
==
true
?
"ios-information-circle-outline"
:
"ios-remove-circle-outline"
},
style
:
{
marginRight
:
"5px"
,
fontSize
:
"18px"
,
fontWeight
:
"bold"
,
color
:
params
.
row
.
alert
==
true
?
"#FE7777"
:
"#0DD78D"
}
})
]);
}
},
{
title
:
"零件图号"
,
key
:
"part_id"
,
align
:
"center"
},
{
title
:
"零件名称"
,
key
:
"part_name"
,
align
:
"center"
},
{
title
:
"计划开始时间"
,
key
:
"plan_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"计划结束时间"
,
key
:
"plan_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"投料时间"
,
key
:
"demand_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"节点时间"
,
key
:
"demand_finish"
,
width
:
200
,
align
:
"center"
},
{
title
:
"计划数量"
,
key
:
"plan_qty"
,
align
:
"center"
}
]
//
columns: [
//
{
//
type: "expand",
//
width: 50,
//
render: (h, params) => {
//
return h(expandRow, {
//
props: {
//
row: params.row
//
}
//
});
//
}
//
},
//
{
//
title: "超期预警",
//
key: "alert",
//
align: "center",
//
render: (h, params) => {
//
return h("div", [
//
h("Icon", {
//
props: {
//
type:
//
params.row.alert == true
//
? "ios-information-circle-outline"
//
: "ios-remove-circle-outline"
//
},
//
style: {
//
marginRight: "5px",
//
fontSize: "18px",
//
fontWeight: "bold",
//
color: params.row.alert == true ? "#FE7777" : "#0DD78D"
//
}
//
})
//
]);
//
}
//
},
//
{
//
title: "零件图号",
//
key: "part_id",
//
align: "center"
//
},
//
{
//
title: "零件名称",
//
key: "part_name",
//
align: "center"
//
},
//
{
//
title: "计划开始时间",
//
key: "plan_start",
//
width: 200,
//
align: "center"
//
},
//
{
//
title: "计划结束时间",
//
key: "plan_start",
//
width: 200,
//
align: "center"
//
},
//
{
//
title: "投料时间",
//
key: "demand_start",
//
width: 200,
//
align: "center"
//
},
//
{
//
title: "节点时间",
//
key: "demand_finish",
//
width: 200,
//
align: "center"
//
},
//
{
//
title: "计划数量",
//
key: "plan_qty",
//
align: "center"
//
}
//
]
};
},
async
fetch
({
store
,
params
})
{
...
...
@@ -202,60 +216,4 @@ export default {
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.results {
font-family: Microsoft YaHei;
.ivu-layout-sider {
background: none;
height: 90vh;
border-right: 1px solid #e4e6ed;
.btn {
float: right;
margin-top: -44px;
margin-right: 15px;
}
}
.addclass {
border-color: #2680eb !important;
}
h4 {
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e4e6ed;
margin-bottom: 15px;
margin-right: 15px;
}
.left-body:hover {
cursor: pointer;
border-color: #2680eb;
}
.left-body {
margin: 10px 15px 0 0;
border: 1px solid rgba(228, 230, 237, 1);
border-radius: 4px;
padding: 5px 8px;
.title-t {
height: 30px;
line-height: 30px;
color: #2680eb;
font-size: 15px;
font-weight: bold;
}
.fa {
height: 30px;
line-height: 30px;
}
}
.ivu-layout-content {
margin-left: 15px;
.btn {
float: right;
margin-top: -52px;
margin-right: 15px;
}
}
}
</
style
>
\ No newline at end of file
</
script
>
\ No newline at end of file
pages/aps/results/result.vue
0 → 100644
View file @
ef2d70b2
<
style
lang=
"less"
>
@import './results.less';
</
style
>
<
template
>
<div>
<div
class=
"btn"
>
<Button
type=
"primary"
@
click=
"parameter"
>
下发
</Button>
<!--
<Button
type=
"primary"
>
导出
</Button>
000 -->
<Button
type=
"primary"
icon=
"ios-redo"
@
click=
"comeBlck"
>
返回
</Button>
</div>
<div>
<Table
:columns=
"columns"
:data=
"data"
></Table>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
import
expandRow
from
"./table-expand.vue"
;
export
default
{
components
:
{
expandRow
},
data
()
{
return
{
isactive
:
0
,
data
:
[],
list
:
[],
columns
:
[
{
type
:
"expand"
,
width
:
50
,
render
:
(
h
,
params
)
=>
{
return
h
(
expandRow
,
{
props
:
{
row
:
params
.
row
}
});
}
},
{
title
:
"超期预警"
,
key
:
"alert"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"Icon"
,
{
props
:
{
type
:
params
.
row
.
alert
==
true
?
"ios-information-circle-outline"
:
"ios-remove-circle-outline"
},
style
:
{
marginRight
:
"5px"
,
fontSize
:
"18px"
,
fontWeight
:
"bold"
,
color
:
params
.
row
.
alert
==
true
?
"#FE7777"
:
"#0DD78D"
}
})
]);
}
},
{
title
:
"零件图号"
,
key
:
"part_id"
,
align
:
"center"
},
{
title
:
"零件名称"
,
key
:
"part_name"
,
align
:
"center"
},
{
title
:
"计划开始时间"
,
key
:
"plan_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"计划结束时间"
,
key
:
"plan_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"投料时间"
,
key
:
"demand_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"节点时间"
,
key
:
"demand_finish"
,
width
:
200
,
align
:
"center"
},
{
title
:
"计划数量"
,
key
:
"plan_qty"
,
align
:
"center"
}
],
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
components
:
{},
created
()
{
this
.
orderlist
();
},
mounted
()
{},
methods
:
{
orderlist
()
{
Api
.
getall
()
.
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
list
=
r
.
result
;
if
(
r
.
result
)
{
this
.
listData
(
r
.
result
[
0
].
schedule_Id
,
0
);
}
else
{
this
.
listData
(
0
,
null
);
}
}
})
.
catch
(
error
=>
{
this
.
$$Message
.
error
(
"请求失败"
);
});
},
listData
(
id
,
index
)
{
this
.
$emit
.
isactive
=
index
;
this
.
id
=
id
;
Api
.
paged
({
scheduleId
:
id
})
.
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
data
=
r
.
result
;
}
})
.
catch
(
error
=>
{
this
.
$$Message
.
error
(
"请求失败"
);
});
},
// 下发
parameter
()
{
Api
.
processschemedispatch
({
id
:
this
.
id
}).
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
orderlist
();
}
else
{
this
.
$Message
.
success
(
"下发失败"
);
}
});
},
// 返回
comeBlck
()
{
this
.
$router
.
push
({
path
:
"/aps/aps"
});
},
tabChange
(
name
)
{
if
(
name
==
'technicalcoordination'
)
{
this
.
$refs
.
technicalcoordination
.
loadchangelist
();
}
if
(
name
==
'unqualifiedorder'
){
this
.
$refs
.
unqualifiedorder
.
loadchangelist
();
}
},
}
}
</
script
>
<
style
lang=
"less"
>
</
style
>
pages/aps/results/results.less
0 → 100644
View file @
ef2d70b2
.results {
font-family: Microsoft YaHei;
.ivu-layout-sider {
background: none;
height: 90vh;
border-right: 1px solid #e4e6ed;
.btn {
float: right;
margin-top: -44px;
margin-right: 15px;
}
}
.addclass {
border-color: #2680eb !important;
}
h4 {
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e4e6ed;
margin-bottom: 15px;
margin-right: 15px;
}
.left-body:hover {
cursor: pointer;
border-color: #2680eb;
}
.left-body {
margin: 10px 15px 0 0;
border: 1px solid rgba(228, 230, 237, 1);
border-radius: 4px;
padding: 5px 8px;
.title-t {
height: 30px;
line-height: 30px;
color: #2680eb;
font-size: 15px;
font-weight: bold;
}
.fa {
height: 30px;
line-height: 30px;
}
}
.ivu-layout-content {
margin-left: 15px;
.btn {
float: right;
margin-top: -52px;
margin-right: 15px;
}
}
}
.compare{
.compare_box{
border: 1px solid #ccc;
height: 200px;
}
}
\ No newline at end of file
pages/aps/results/table-expand.vue
View file @
ef2d70b2
...
...
@@ -23,7 +23,7 @@
<span
class=
"expand-key"
>
设备编号
</span>
</Col>
</Row>
<Row
v-for=
"(item,index) in dataList"
:key=
"item.i
d
"
>
<Row
v-for=
"(item,index) in dataList"
:key=
"item.i
ndex
"
>
<Col
span=
"4"
class=
"expand-value"
>
<span>
{{
item
.
task_seq
}}
</span>
</Col>
...
...
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