Commit ebc022b0 authored by 仇晓婷's avatar 仇晓婷

paichanjieguo

parent feba0a8c
......@@ -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`);
},
}
......@@ -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: 220,
width: 200,
align: "center"
},
{
title: "计划结束时间",
key: "plan_start",
width: 220,
width: 200,
align: "center"
},
{
title: "投料时间",
key: "demand_start",
width: 220,
width: 200,
align: "center"
},
{
title: "节点时间",
key: "demand_finish",
width: 220,
width: 200,
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"
});
}
}
});
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment