Commit b3c589b0 authored by renjintao's avatar renjintao

getpoolordercount

parent f6138121
......@@ -28,4 +28,7 @@ export default {
moveintoaps() {//跳转进入排产池前判断
return Api.post(`${PlanUrl}/messchedule/moveintoaps`);
},
getpoolordercount(){//各排产池订单数量
return Api.get(`${PlanUrl}/messchedule/getpoolordercount`);
},
}
\ No newline at end of file
......@@ -637,18 +637,18 @@ export default {
this.$store.commit("setCountAi", 0);
this.$store.commit("setCountAll", 0);
this.$store.commit("setCountRun", 0);
// Api.getCount()
// .then(res => {
// if (res.success && res.result == true) {
// this.$store.commit("setCountAps", 3);
// this.$store.commit("setCountAi", 1);
// this.$store.commit("setCountAll", 1);
// this.$store.commit("setCountRun", 0);
// }
// })
// .catch(err => {
// this.$Message.error("获取排产模型数量失败");
// });
Api.getpoolordercount()
.then(res => {
if (res.success && res.result.length>1) {
res.result.forEach(data=>
{
this.changeCountOut(data.poolType+'',data.count)
})
}
})
.catch(err => {
this.$Message.error("获取排产模型数量失败");
});
}
}
};
......
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