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
ebc022b0
Commit
ebc022b0
authored
Apr 03, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paichanjieguo
parent
feba0a8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
7 deletions
+36
-7
api.js
pages/aps/results/api.js
+6
-0
index.vue
pages/aps/results/index.vue
+30
-7
No files found.
pages/aps/results/api.js
View file @
ebc022b0
...
...
@@ -14,4 +14,10 @@ export default {
getdetail
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/scheduletotal/getdetail`
,
params
);
},
processschemedispatch
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/apspoolappservices/processschemedispatch`
,
params
);
},
moveintoaps
()
{
//跳转进入排产池前判断
return
Api
.
post
(
`
${
PlanUrl
}
/messchedule/moveintoaps`
);
},
}
pages/aps/results/index.vue
View file @
ebc022b0
...
...
@@ -51,6 +51,7 @@ export default {
isactive
:
0
,
data
:
[],
list
:
[],
id
:
""
,
columns
:
[
{
type
:
"expand"
,
...
...
@@ -99,25 +100,25 @@ export default {
{
title
:
"计划开始时间"
,
key
:
"plan_start"
,
width
:
2
2
0
,
width
:
2
0
0
,
align
:
"center"
},
{
title
:
"计划结束时间"
,
key
:
"plan_start"
,
width
:
2
2
0
,
width
:
2
0
0
,
align
:
"center"
},
{
title
:
"投料时间"
,
key
:
"demand_start"
,
width
:
2
2
0
,
width
:
2
0
0
,
align
:
"center"
},
{
title
:
"节点时间"
,
key
:
"demand_finish"
,
width
:
2
2
0
,
width
:
2
0
0
,
align
:
"center"
},
{
...
...
@@ -153,6 +154,7 @@ export default {
},
listData
(
id
,
index
)
{
this
.
isactive
=
index
;
this
.
id
=
id
;
Api
.
paged
({
scheduleId
:
id
})
.
then
(
r
=>
{
if
(
r
.
success
)
{
...
...
@@ -183,11 +185,32 @@ export default {
}
},
parameter
()
{},
addOk
()
{},
cancel
()
{},
parameter
()
{
Api
.
processschemedispatch
({
id
:
this
.
id
}).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
}
else
{
this
.
$Message
.
success
(
"下发失败"
);
}
});
},
comeBlck
()
{
this
.
$router
.
push
({
path
:
"/aps/aps"
});
Api
.
moveintoaps
().
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
result
.
res
)
{
this
.
$router
.
push
({
name
:
"aps-aps"
});
}
else
{
this
.
$router
.
push
({
name
:
"aps-plan"
});
}
}
});
}
}
};
...
...
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