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

paichanjieguo

parent feba0a8c
...@@ -14,4 +14,10 @@ export default { ...@@ -14,4 +14,10 @@ export default {
getdetail(params) { getdetail(params) {
return Api.get(`${apsUrl}/scheduletotal/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 { ...@@ -51,6 +51,7 @@ export default {
isactive: 0, isactive: 0,
data: [], data: [],
list: [], list: [],
id: "",
columns: [ columns: [
{ {
type: "expand", type: "expand",
...@@ -99,25 +100,25 @@ export default { ...@@ -99,25 +100,25 @@ export default {
{ {
title: "计划开始时间", title: "计划开始时间",
key: "plan_start", key: "plan_start",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
title: "计划结束时间", title: "计划结束时间",
key: "plan_start", key: "plan_start",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
title: "投料时间", title: "投料时间",
key: "demand_start", key: "demand_start",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
title: "节点时间", title: "节点时间",
key: "demand_finish", key: "demand_finish",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
...@@ -153,6 +154,7 @@ export default { ...@@ -153,6 +154,7 @@ export default {
}, },
listData(id, index) { listData(id, index) {
this.isactive = index; this.isactive = index;
this.id = id;
Api.paged({ scheduleId: id }) Api.paged({ scheduleId: id })
.then(r => { .then(r => {
if (r.success) { if (r.success) {
...@@ -183,11 +185,32 @@ export default { ...@@ -183,11 +185,32 @@ export default {
} }
}, },
parameter() {}, parameter() {
addOk() {}, Api.processschemedispatch({
cancel() {}, id: this.id
}).then(r => {
if (r.success) {
this.$Message.success("下发成功");
} else {
this.$Message.success("下发失败");
}
});
},
comeBlck() { comeBlck() {
this.$router.push({ path: "/aps/aps" }); 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