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 { ...@@ -28,4 +28,7 @@ export default {
moveintoaps() {//跳转进入排产池前判断 moveintoaps() {//跳转进入排产池前判断
return Api.post(`${PlanUrl}/messchedule/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 { ...@@ -618,16 +618,16 @@ export default {
//移入排产成功后给标题增加数量 //移入排产成功后给标题增加数量
changeCountOut(type, count) { changeCountOut(type, count) {
switch (type) { switch (type) {
case "2": case "2"://智能排产池排产订单数量
this.$store.commit("setCountAi", this.$store.state.countAi + count); this.$store.commit("setCountAi", this.$store.state.countAi + count);
break; break;
case "3": case "3"://整机排产池排产订单数量
this.$store.commit("setCountAll", this.$store.state.countAll + count); this.$store.commit("setCountAll", this.$store.state.countAll + count);
break; break;
case "4": case "4"://流水排产池排产订单数量
this.$store.commit("setCountRun", this.$store.state.countRun + count); this.$store.commit("setCountRun", this.$store.state.countRun + count);
break; break;
default: default://APS排产池排产订单数量
this.$store.commit("setCountAps", this.$store.state.countAps + count); this.$store.commit("setCountAps", this.$store.state.countAps + count);
} }
}, },
...@@ -637,18 +637,18 @@ export default { ...@@ -637,18 +637,18 @@ export default {
this.$store.commit("setCountAi", 0); this.$store.commit("setCountAi", 0);
this.$store.commit("setCountAll", 0); this.$store.commit("setCountAll", 0);
this.$store.commit("setCountRun", 0); this.$store.commit("setCountRun", 0);
// Api.getCount() Api.getpoolordercount()
// .then(res => { .then(res => {
// if (res.success && res.result == true) { if (res.success && res.result.length>1) {
// this.$store.commit("setCountAps", 3); res.result.forEach(data=>
// this.$store.commit("setCountAi", 1); {
// this.$store.commit("setCountAll", 1); this.changeCountOut(data.poolType+'',data.count)
// this.$store.commit("setCountRun", 0); })
// } }
// }) })
// .catch(err => { .catch(err => {
// this.$Message.error("获取排产模型数量失败"); 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