1.修复排产日期顺序错误问题

2.优化月度计划排产页面步骤条无法通过点击激活各步骤的问题,调整设备产能排序按照垮位显示
master
董哲奇 8 months ago
parent c1f31c93c3
commit 6d2ba4743d

@ -43,17 +43,14 @@ export default {
},
mounted(){
this.handler()
console.log(this.workType)
},
methods:{
handler(){
const data=this.dateFormat(this.$props.data)
console.log(data)
if (this.$props.eb.includes(data)){
this.workType='1'
return
}
console.log(this.$props.yb);
if (this.$props.yb.includes(data)){
this.workType='2'
return

@ -135,14 +135,23 @@ export default {
methods:{
getList(){
getSbcnAll().then((res) => {
this.sbcnList=[]
const sbcnList=[]
this.gxList.forEach(gx=>{
res.data.forEach(item=>{
if (gx.value===item._工序){
this.sbcnList.push(item)
sbcnList.push(item)
}
})
})
this.sbcnList=sbcnList.sort((a,b)=>{
if (a.跨位 < b.跨位) {
return -1;
}
if (a.跨位 > b.跨位) {
return 1;
}
return 0;
})
})
},
add(){

@ -313,12 +313,12 @@
<template #default>
<el-row class="query_wrapper">
<el-steps :active="active" finish-status="success" align-center>
<el-step title="修改工厂日历" ></el-step>
<el-step title="订货计划"></el-step>
<el-step title="工序间隔周期"></el-step>
<el-step title="设备产能"></el-step>
<el-step title="设备维护/维修情况"></el-step>
<el-step title="人员出勤情况"></el-step>
<el-step title="修改工厂日历" @click.native="active=0"></el-step>
<el-step title="订货计划" @click.native="active=1"></el-step>
<el-step title="工序间隔周期" @click.native="active=2"></el-step>
<el-step title="设备产能" @click.native="active=3"></el-step>
<el-step title="设备维护/维修情况" @click.native="active=4"></el-step>
<el-step title="人员出勤情况" @click.native="active=5"></el-step>
</el-steps>
<el-row style="float: right;margin-right: 5px;">
<!-- <el-button style="margin-top: 12px;" @click="next"></el-button>-->

Loading…
Cancel
Save