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
b09e83b3
Commit
b09e83b3
authored
May 18, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product
parents
177b8077
3f9ec4fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
18 deletions
+31
-18
index.vue
pages/aps/results/index.vue
+27
-15
result.vue
pages/aps/results/result.vue
+4
-3
No files found.
pages/aps/results/index.vue
View file @
b09e83b3
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</Col>
</Col>
</Row>
</Row>
<component
:is=
"detail"
:eid=
"id"
:schemas=
"schemas"
/>
<component
:is=
"detail"
:eid=
"id"
:schemas=
"schemas"
@
ok-claer=
"clearS"
/>
</Content>
</Content>
</Layout>
</Layout>
<div
class=
"footer"
v-if=
"showFooter"
>
<div
class=
"footer"
v-if=
"showFooter"
>
...
@@ -77,8 +77,8 @@ export default {
...
@@ -77,8 +77,8 @@ export default {
total
:
0
,
total
:
0
,
blacks
:
false
,
blacks
:
false
,
gant
:
false
,
gant
:
false
,
gantt
:
null
,
gantt
:
null
,
curPage
:
null
curPage
:
null
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -121,6 +121,8 @@ export default {
...
@@ -121,6 +121,8 @@ export default {
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"清空列表成功"
);
this
.
$Message
.
success
(
"清空列表成功"
);
this
.
orderlist
();
this
.
orderlist
();
this
.
id
=
0
;
this
.
listData
();
}
}
});
});
},
},
...
@@ -130,6 +132,16 @@ export default {
...
@@ -130,6 +132,16 @@ export default {
});
});
}
}
},
},
clearS
()
{
this
.
id
=
0
;
Api
.
clearall
().
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
orderlist
();
this
.
id
=
0
;
this
.
listData
();
}
});
},
// 返回
// 返回
comeBlck
()
{
comeBlck
()
{
this
.
$router
.
push
({
path
:
"/aps/aps"
});
this
.
$router
.
push
({
path
:
"/aps/aps"
});
...
@@ -151,26 +163,26 @@ export default {
...
@@ -151,26 +163,26 @@ export default {
this
.
modal1Gant
=
true
;
this
.
modal1Gant
=
true
;
this
.
gantt
=
()
=>
import
(
"./gantt"
);
this
.
gantt
=
()
=>
import
(
"./gantt"
);
},
},
changeCheck
(
item
,
i
)
{
changeCheck
(
item
,
i
)
{
this
.
$set
(
this
.
list
,
i
,
item
);
this
.
$set
(
this
.
list
,
i
,
item
);
if
(
this
.
title
!=
'排产方案对比'
)
{
if
(
this
.
title
!=
"排产方案对比"
)
{
this
.
showFooter
=
true
;
this
.
showFooter
=
true
;
}
}
},
},
submit
()
{
submit
()
{
this
.
detail
=
()
=>
import
(
"./compare"
);
this
.
detail
=
()
=>
import
(
"./compare"
);
this
.
title
=
"排产方案对比"
;
this
.
title
=
"排产方案对比"
;
this
.
showFooter
=
false
;
this
.
showFooter
=
false
;
},
},
cancel
()
{
cancel
()
{
this
.
showFooter
=
false
;
this
.
showFooter
=
false
;
}
}
},
},
computed
:{
computed
:
{
schemas
(){
schemas
()
{
return
this
.
list
.
filter
(
u
=>
{
return
this
.
list
.
filter
(
u
=>
{
return
u
.
checked
==
true
;
return
u
.
checked
==
true
;
})
})
;
}
}
}
}
};
};
...
...
pages/aps/results/result.vue
View file @
b09e83b3
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
},
},
{
{
title
:
"计划结束时间"
,
title
:
"计划结束时间"
,
key
:
"plan_
start
"
,
key
:
"plan_
finish
"
,
width
:
200
,
width
:
200
,
align
:
"center"
align
:
"center"
},
},
...
@@ -138,7 +138,8 @@ export default {
...
@@ -138,7 +138,8 @@ export default {
}).
then
(
r
=>
{
}).
then
(
r
=>
{
if
(
r
.
result
)
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
orderlist
();
this
.
$emit
(
'ok-claer'
)
}
else
{
}
else
{
this
.
$Message
.
error
(
"下发失败"
);
this
.
$Message
.
error
(
"下发失败"
);
}
}
...
@@ -150,7 +151,7 @@ export default {
...
@@ -150,7 +151,7 @@ export default {
}).
then
(
r
=>
{
}).
then
(
r
=>
{
if
(
r
.
result
)
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
orderlist
();
this
.
$emit
(
'ok-claer'
)
}
else
{
}
else
{
this
.
$Message
.
error
(
"下发失败"
);
this
.
$Message
.
error
(
"下发失败"
);
}
}
...
...
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