Commit f6067124 authored by renjintao's avatar renjintao

排产显示

parent edd92a99
...@@ -31,4 +31,7 @@ export default { ...@@ -31,4 +31,7 @@ export default {
getpoolordercount(){//各排产池订单数量 getpoolordercount(){//各排产池订单数量
return Api.get(`${PlanUrl}/messchedule/getpoolordercount`); return Api.get(`${PlanUrl}/messchedule/getpoolordercount`);
}, },
listbyuser(params) {//获取当前登录用户可操作的排产
return Api.post(`${authUrl}/api/services/app/setschedulecompany/listbyuser`, params);
},
} }
\ No newline at end of file
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
overflow-count="99" overflow-count="99"
style="margin-right:15px;" style="margin-right:15px;"
type="info" type="info"
v-if="showAps"
> >
<a href="javascript:;" @click="goAps">APS排产&nbsp;&nbsp;&nbsp;</a> <a href="javascript:;" @click="goAps">APS排产&nbsp;&nbsp;&nbsp;</a>
</Badge> </Badge>
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
overflow-count="99" overflow-count="99"
style="margin-right:15px;" style="margin-right:15px;"
type="info" type="info"
v-if="showAi"
> >
<a href="javascript:;">智能排产&nbsp;&nbsp;&nbsp;</a> <a href="javascript:;">智能排产&nbsp;&nbsp;&nbsp;</a>
</Badge> </Badge>
...@@ -42,10 +44,11 @@ ...@@ -42,10 +44,11 @@
overflow-count="99" overflow-count="99"
style="margin-right:15px;" style="margin-right:15px;"
type="info" type="info"
v-if="showAll"
> >
<a href="javascript:;" @click="goCemplate">整机排产&nbsp;&nbsp;&nbsp;</a> <a href="javascript:;" @click="goCemplate">整机排产&nbsp;&nbsp;&nbsp;</a>
</Badge> </Badge>
<Badge :count="this.$store.state.countRun" overflow-count="99" type="info"> <Badge :count="this.$store.state.countRun" overflow-count="99" type="info" v-if="showRun">
<a href="javascript:;" @click="goStream">流水排产&nbsp;&nbsp;&nbsp;</a> <a href="javascript:;" @click="goStream">流水排产&nbsp;&nbsp;&nbsp;</a>
</Badge> </Badge>
</template> </template>
...@@ -82,7 +85,14 @@ ...@@ -82,7 +85,14 @@
<Modal v-model="scheduleModal" title="移入排产" width="800"> <Modal v-model="scheduleModal" title="移入排产" width="800">
<p>&nbsp;</p> <p>&nbsp;</p>
<h4>请选择排产模型:</h4> <h4>请选择排产模型:</h4>
<Dictionary code="aps.plan.scheduleType" v-model="scheduleType" class="radioList" :border="true" type="radio" @on-change="onchangeScheduleType"></Dictionary> <Dictionary
code="aps.plan.scheduleType"
v-model="scheduleType"
class="radioList"
:border="true"
type="radio"
@on-change="onchangeScheduleType"
></Dictionary>
<p class="pl30 pt10" v-show="scheduleType!=null"> <p class="pl30 pt10" v-show="scheduleType!=null">
确定将订单 确定将订单
<span class="fwBold">{{resultsOrderList}}</span> 移入 <span class="fwBold">{{resultsOrderList}}</span> 移入
...@@ -310,7 +320,13 @@ export default { ...@@ -310,7 +320,13 @@ export default {
h( h(
"op", "op",
{ {
attrs: { oprate: "detail",title: params.row.mainRoutingSetStatus == 0? "工艺派发": "移入排产"}, attrs: {
oprate: "detail",
title:
params.row.mainRoutingSetStatus == 0
? "工艺派发"
: "移入排产"
},
style: { style: {
color: params.row.mainRoutingSetStatus == 0 ? "red" : "" color: params.row.mainRoutingSetStatus == 0 ? "red" : ""
}, },
...@@ -331,7 +347,14 @@ export default { ...@@ -331,7 +347,14 @@ export default {
h( h(
"op", "op",
{ {
attrs: { oprate: "detail",title: params.row.isSupportingFinish == 2|| params.row.isSupportingFinish == 3? "配套派发": "" }, attrs: {
oprate: "detail",
title:
params.row.isSupportingFinish == 2 ||
params.row.isSupportingFinish == 3
? "配套派发"
: ""
},
style: { style: {
color: params.row.mainRoutingSetStatus == 0 ? "red" : "" color: params.row.mainRoutingSetStatus == 0 ? "red" : ""
}, },
...@@ -365,7 +388,11 @@ export default { ...@@ -365,7 +388,11 @@ export default {
scheduleStatus: 0, //排产标识 scheduleStatus: 0, //排产标识
resultsOrderList: "", resultsOrderList: "",
scheduleType: null, scheduleType: null,
scheduleTypeName: "" scheduleTypeName: "",
showAps: false,
showAi: false,
showAll: false,
showRun: false
}; };
}, },
mounted() { mounted() {
...@@ -640,6 +667,29 @@ export default { ...@@ -640,6 +667,29 @@ export default {
}, },
//进入页面加载排产count----- //进入页面加载排产count-----
loadInitCount() { loadInitCount() {
let currentUserId = this.$store.state.userInfo.userId;
let para = { id: currentUserId };
Api.listbyuser(para).then(datas => {
if (datas.success && datas.result && datas.result.length > 0) {
datas.result.forEach(dateScheduleId => {
switch (dateScheduleId.apsScheduleId) {
case 1:
this.showAps = true;
break;
case 2:
this.showAll = true;
break;
case 3:
this.showRun = true;
break;
default:
this.showAi = true;
}
});
}
});
this.$store.commit("setCountAps", 0); this.$store.commit("setCountAps", 0);
this.$store.commit("setCountAi", 0); this.$store.commit("setCountAi", 0);
this.$store.commit("setCountAll", 0); this.$store.commit("setCountAll", 0);
......
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