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
7e5aa41a
Commit
7e5aa41a
authored
Mar 31, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aps结果页面优化
parent
3b0b1612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
70 deletions
+72
-70
index.vue
pages/aps/results/index.vue
+72
-70
No files found.
pages/aps/results/index.vue
View file @
7e5aa41a
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
import
expandRow
from
'./table-expand.vue'
import
expandRow
from
"./table-expand.vue"
;
export
default
{
export
default
{
components
:
{
expandRow
},
components
:
{
expandRow
},
...
@@ -53,142 +53,144 @@ export default {
...
@@ -53,142 +53,144 @@ export default {
list
:
[],
list
:
[],
columns
:
[
columns
:
[
{
{
type
:
'expand'
,
type
:
"expand"
,
width
:
50
,
width
:
50
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
expandRow
,
{
return
h
(
expandRow
,
{
props
:
{
props
:
{
row
:
params
.
row
row
:
params
.
row
}
}
})
})
;
}
}
},
},
{
{
title
:
'超期预警'
,
title
:
"超期预警"
,
key
:
'id'
,
key
:
"id"
,
align
:
'center'
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'Icon'
,
{
h
(
"Icon"
,
{
props
:
{
props
:
{
type
:
type
:
params
.
row
.
id
==
1
params
.
row
.
id
==
1
?
'ios-information-circle-outline'
?
"ios-information-circle-outline"
:
'ios-remove-circle-outline'
:
"ios-remove-circle-outline"
},
},
style
:
{
style
:
{
marginRight
:
'5px'
,
marginRight
:
"5px"
,
fontSize
:
'18px'
,
fontSize
:
"18px"
,
fontWeight
:
'bold'
,
fontWeight
:
"bold"
,
color
:
params
.
row
.
id
==
1
?
'#FE7777'
:
'#0DD78D'
color
:
params
.
row
.
id
==
1
?
"#FE7777"
:
"#0DD78D"
}
}
})
})
])
])
;
}
}
},
},
{
{
title
:
'零件图号'
,
title
:
"零件图号"
,
key
:
'part_id'
,
key
:
"part_id"
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'零件名称'
,
title
:
"零件名称"
,
key
:
'part_name'
,
key
:
"part_name"
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'计划开始时间'
,
title
:
"计划开始时间"
,
key
:
'plan_start'
,
key
:
"plan_start"
,
width
:
220
,
width
:
220
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'计划结束时间'
,
title
:
"计划结束时间"
,
key
:
'plan_start'
,
key
:
"plan_start"
,
width
:
220
,
width
:
220
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'投料时间'
,
title
:
"投料时间"
,
key
:
'demand_start'
,
key
:
"demand_start"
,
width
:
220
,
width
:
220
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'节点时间'
,
title
:
"节点时间"
,
key
:
'demand_finish'
,
key
:
"demand_finish"
,
width
:
220
,
width
:
220
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'计划数量'
,
title
:
"计划数量"
,
key
:
'plan_qty'
,
key
:
"plan_qty"
,
align
:
'center'
align
:
"center"
}
}
]
]
}
}
;
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
orderlist
()
this
.
orderlist
()
;
},
},
methods
:
{
methods
:
{
orderlist
()
{
orderlist
()
{
Api
.
getall
()
Api
.
getall
()
.
then
(
(
r
)
=>
{
.
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
list
=
r
.
result
this
.
list
=
r
.
result
;
if
(
r
.
result
)
{
if
(
r
.
result
)
{
this
.
listData
(
r
.
result
[
0
].
schedule_Id
,
0
)
this
.
listData
(
r
.
result
[
0
].
schedule_Id
,
0
)
;
}
else
{
}
else
{
this
.
listData
(
0
,
null
)
this
.
listData
(
0
,
null
)
;
}
}
}
}
})
})
.
catch
(
(
error
)
=>
{
.
catch
(
error
=>
{
this
.
$$Message
.
error
(
'请求失败'
)
this
.
$$Message
.
error
(
"请求失败"
);
})
})
;
},
},
listData
(
id
,
index
)
{
listData
(
id
,
index
)
{
this
.
isactive
=
index
this
.
isactive
=
index
;
Api
.
paged
({
scheduleId
:
id
})
Api
.
paged
({
scheduleId
:
id
})
.
then
(
(
r
)
=>
{
.
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
data
=
r
.
result
this
.
data
=
r
.
result
;
}
}
})
})
.
catch
(
(
error
)
=>
{
.
catch
(
error
=>
{
this
.
$$Message
.
error
(
'请求失败'
)
this
.
$$Message
.
error
(
"请求失败"
);
})
})
;
},
},
clear
()
{
clear
()
{
this
.
$Modal
.
confirm
({
if
(
this
.
list
.
lenght
>
0
)
{
title
:
'清空列表'
,
this
.
$Modal
.
confirm
({
content
:
'您确定要清空列表吗'
,
title
:
"清空列表"
,
onOk
:
()
=>
{
content
:
"您确定要清空列表吗"
,
Api
.
clearall
().
then
((
r
)
=>
{
onOk
:
()
=>
{
if
(
r
.
success
)
{
Api
.
clearall
().
then
(
r
=>
{
this
.
$Message
.
success
(
'清空列表成功'
)
if
(
r
.
success
)
{
this
.
orderlist
()
this
.
$Message
.
success
(
"清空列表成功"
);
}
this
.
orderlist
();
})
}
},
});
onCancel
:
()
=>
{
},
this
.
$Message
.
info
(
'已取消'
)
onCancel
:
()
=>
{
}
this
.
$Message
.
info
(
"已取消"
);
})
}
});
}
},
},
parameter
()
{},
parameter
()
{},
addOk
()
{},
addOk
()
{},
cancel
()
{},
cancel
()
{},
comeBlck
()
{
comeBlck
()
{
this
.
$router
.
push
({
path
:
'/aps/aps'
})
this
.
$router
.
push
({
path
:
"/aps/aps"
});
}
}
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.results {
.results {
...
...
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