Commit b2b3a142 authored by 康振飞's avatar 康振飞

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents 9976c761 8a2c52cd
......@@ -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
......@@ -618,16 +618,16 @@ export default {
//移入排产成功后给标题增加数量
changeCountOut(type, count) {
switch (type) {
case "2":
case "2"://智能排产池排产订单数量
this.$store.commit("setCountAi", this.$store.state.countAi + count);
break;
case "3":
case "3"://整机排产池排产订单数量
this.$store.commit("setCountAll", this.$store.state.countAll + count);
break;
case "4":
case "4"://流水排产池排产订单数量
this.$store.commit("setCountRun", this.$store.state.countRun + count);
break;
default:
default://APS排产池排产订单数量
this.$store.commit("setCountAps", this.$store.state.countAps + count);
}
},
......@@ -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