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
8a050639
Commit
8a050639
authored
May 14, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gantt
parent
ce6aa9aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
gantt.vue
pages/aps/results/gantt.vue
+28
-10
No files found.
pages/aps/results/gantt.vue
View file @
8a050639
...
...
@@ -270,7 +270,7 @@ let options = {
{
id
:
2
,
label
:
"任务"
,
value
:
"
label
"
,
value
:
"
name
"
,
width
:
200
,
expander
:
true
,
html
:
true
...
...
@@ -283,8 +283,7 @@ let options = {
{
id
:
3
,
label
:
"设备编号"
,
value
:
"user"
,
value
:
"EquipmentNo"
,
width
:
130
,
html
:
true
},
...
...
@@ -303,18 +302,24 @@ let options = {
{
id
:
6
,
label
:
"计划数量"
,
value
:
"plan_qty"
,
width
:
68
},
{
id
:
7
,
label
:
"投入数量"
,
value
:
"put_into_qty"
,
width
:
68
},
{
id
:
7
,
id
:
8
,
label
:
"派工数量"
,
value
:
"dispatch_qty"
,
width
:
68
},
{
id
:
8
,
id
:
9
,
label
:
"%"
,
value
:
"progress"
,
width
:
35
,
...
...
@@ -385,20 +390,33 @@ export default {
Api
.
paged
({
scheduleId
:
this
.
id
})
.
then
(
r
=>
{
if
(
r
.
result
)
{
var
parentId
=
r
.
result
.
id
;
//父级id
var
parentId
=
r
.
result
[
0
].
id
;
//父级id
var
list
=
[];
var
obj
=
{
id
:
r
.
result
[
0
].
id
,
name
:
r
.
result
[
0
].
part_name
,
start
:
r
.
result
[
0
].
plan_start
,
endTime
:
r
.
result
[
0
].
plan_finish
,
EquipmentNo
:
""
,
duration
:
15
*
24
*
60
*
60
*
1000
,
percent
:
85
,
plan_qty
:
r
.
result
[
0
].
plan_qty
,
put_into_qty
:
""
,
dispatch_qty
:
""
};
list
.
push
(
obj
);
Api
.
getdetail
({
part_task_pk
:
r
.
result
[
0
].
id
,
scheduleId
:
this
.
id
}).
then
(
r
=>
{
if
(
r
.
result
)
{
var
list
=
[];
for
(
var
i
=
0
;
i
<
r
.
result
.
length
;
i
++
)
{
let
temp
=
{
id
:
r
.
result
[
i
].
op_task_pk
,
label
:
r
.
result
[
i
].
task_name
,
user
:
r
.
result
[
i
].
equip_id
,
name
:
r
.
result
[
i
].
task_name
,
EquipmentNo
:
r
.
result
[
i
].
equip_id
,
parentId
:
parentId
,
// start: r.result[i].plan_start,
// endTime: r.result[i].plan_finish,
endTime
:
"2020-7-30"
,
...
...
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