|
|
@ -44,10 +44,17 @@
|
|
|
|
:data="list9"
|
|
|
|
:data="list9"
|
|
|
|
:custom-config="{ storage: true }"
|
|
|
|
:custom-config="{ storage: true }"
|
|
|
|
:scroll-y="{enabled: true}"
|
|
|
|
:scroll-y="{enabled: true}"
|
|
|
|
|
|
|
|
:row-style="rowStyle1"
|
|
|
|
|
|
|
|
:tooltip-config="{showAll:true, enterable: true,contentMethod:showErr}"
|
|
|
|
highlight-hover-row
|
|
|
|
highlight-hover-row
|
|
|
|
show-overflow
|
|
|
|
show-overflow
|
|
|
|
show-header-overflow
|
|
|
|
show-header-overflow
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<template #tzbh_err="{ row }">
|
|
|
|
|
|
|
|
<i class="el-icon-warning" v-show="row.errors.length>0" ></i>
|
|
|
|
|
|
|
|
<span > {{ row.tzbh }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
</vxe-grid>
|
|
|
|
</vxe-grid>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
@ -292,27 +299,39 @@
|
|
|
|
<vxe-modal v-model="dialogVisible2" width="80%" :title="title2">
|
|
|
|
<vxe-modal v-model="dialogVisible2" width="80%" :title="title2">
|
|
|
|
<template #default>
|
|
|
|
<template #default>
|
|
|
|
<el-row class="query_wrapper">
|
|
|
|
<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-steps>
|
|
|
|
<el-row style="float: right;margin-right: 5px;">
|
|
|
|
<el-row style="float: right;margin-right: 5px;">
|
|
|
|
<el-button size="small" type="success" v-show="modalShow>1" @click="preModal" plain>上一步</el-button>
|
|
|
|
<!-- <el-button style="margin-top: 12px;" @click="next">下一步</el-button>-->
|
|
|
|
<el-button size="small" type="success" v-show="modalShow<5" @click="nextModal" plain>下一步</el-button>
|
|
|
|
<el-button size="small" type="success" v-show="active>0" @click="preModal" plain>上一步</el-button>
|
|
|
|
<el-button size="small" type="success" v-show="modalShow==5"@click="paichan" plain>排产</el-button>
|
|
|
|
<el-button size="small" type="success" v-show="active<5" @click="nextModal" plain>下一步</el-button>
|
|
|
|
|
|
|
|
<el-button size="small" type="success" v-show="active==5"@click="paichan" plain>排产</el-button>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<hr/>
|
|
|
|
<hr/>
|
|
|
|
<div v-show="modalShow==1">
|
|
|
|
<div v-show="active==0">
|
|
|
|
<Gcrl/>
|
|
|
|
<Gcrl/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-show="modalShow==2">
|
|
|
|
<div v-show="active==1">
|
|
|
|
|
|
|
|
<Dhjh/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-show="active==2">
|
|
|
|
<GxCD/>
|
|
|
|
<GxCD/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-show="modalShow==3">
|
|
|
|
<div v-show="active==3">
|
|
|
|
<Sbcnwh/>
|
|
|
|
<Sbcnwh/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-show="modalShow==4">
|
|
|
|
<div v-show="active==4">
|
|
|
|
<Sbwxjh/>
|
|
|
|
<Sbwxjh/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-show="modalShow==5">
|
|
|
|
<div v-show="active==5">
|
|
|
|
<Sbjgry/>
|
|
|
|
<Sbjgry/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -336,15 +355,17 @@ import {getToken} from '@/utils/auth'
|
|
|
|
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
|
|
|
|
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
|
|
|
|
import {排产, 生成三月滚动, 获取排产结果,} from "@/api/jhzx/pc";
|
|
|
|
import {排产, 生成三月滚动, 获取排产结果,} from "@/api/jhzx/pc";
|
|
|
|
import Gcrl from '@/components/Gcrl';
|
|
|
|
import Gcrl from '@/components/Gcrl';
|
|
|
|
import Sbcnwh from '@/views/jhzx/components/sygdpc/Sbcn.vue';
|
|
|
|
|
|
|
|
import Sbwxjh from '@/views/sjzx/sbwxjhWH.vue';
|
|
|
|
import Sbwxjh from '@/views/sjzx/sbwxjhWH.vue';
|
|
|
|
import Sbjgry from '@/views/sjzx/sbjgryWH.vue';
|
|
|
|
import Sbjgry from '@/views/sjzx/sbjgryWH.vue';
|
|
|
|
|
|
|
|
import Sbcnwh from '@/views/jhzx/components/sygdpc/Sbcn.vue';
|
|
|
|
import GxCD from '@/views/jhzx/components/sygdpc/GxCD.vue';
|
|
|
|
import GxCD from '@/views/jhzx/components/sygdpc/GxCD.vue';
|
|
|
|
|
|
|
|
import Dhjh from '@/views/jhzx/components/sygdpc/Dhjh.vue';
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'SymxCX',
|
|
|
|
name: 'SymxCX',
|
|
|
|
components: {ScrollPane,Gcrl,Sbcnwh,Sbwxjh,Sbjgry,GxCD},
|
|
|
|
components: {ScrollPane,Gcrl,Sbcnwh,Sbwxjh,Sbjgry,GxCD,Dhjh},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
active: 0,
|
|
|
|
isUser:false,
|
|
|
|
isUser:false,
|
|
|
|
gcrl:[],
|
|
|
|
gcrl:[],
|
|
|
|
dialogVisible: false,
|
|
|
|
dialogVisible: false,
|
|
|
@ -352,8 +373,7 @@ export default {
|
|
|
|
dialogVisible2: false,
|
|
|
|
dialogVisible2: false,
|
|
|
|
title: '选择目标船只',
|
|
|
|
title: '选择目标船只',
|
|
|
|
title1: '修改明细信息',
|
|
|
|
title1: '修改明细信息',
|
|
|
|
title2: '修改工厂日历(1/5)',
|
|
|
|
title2: '请确认或修改排产依据',
|
|
|
|
modalShow:1,
|
|
|
|
|
|
|
|
selectMbch: [],
|
|
|
|
selectMbch: [],
|
|
|
|
mxList: [],
|
|
|
|
mxList: [],
|
|
|
|
haveTltBoms: [],
|
|
|
|
haveTltBoms: [],
|
|
|
@ -2711,6 +2731,7 @@ export default {
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ field: 'tzbh', title: '套料图号', width: 120,
|
|
|
|
{ field: 'tzbh', title: '套料图号', width: 120,
|
|
|
|
|
|
|
|
slots: { default: "tzbh_err" },
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -2763,6 +2784,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
next() {
|
|
|
|
|
|
|
|
if (this.active++ > 2) this.active = 0;
|
|
|
|
|
|
|
|
},
|
|
|
|
rowClassName({row, rowIndex}) {
|
|
|
|
rowClassName({row, rowIndex}) {
|
|
|
|
if (row.dcCh === '合计') {
|
|
|
|
if (row.dcCh === '合计') {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -2772,6 +2796,52 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null
|
|
|
|
return null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//异常数据颜色
|
|
|
|
|
|
|
|
rowStyle1({row, rowIndex}){
|
|
|
|
|
|
|
|
if (row.errors.length > 0) {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
backgroundColor: '#FF0000FF',
|
|
|
|
|
|
|
|
color: '#fff',
|
|
|
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
showErr({ type, column, row, items, _columnIndex }){
|
|
|
|
|
|
|
|
const { field } = column
|
|
|
|
|
|
|
|
// 重写默认的提示内容
|
|
|
|
|
|
|
|
if (type === 'body'){
|
|
|
|
|
|
|
|
if (row.errors.length > 0) { var err='';
|
|
|
|
|
|
|
|
for (const e of row.errors) {
|
|
|
|
|
|
|
|
err=err+e+'\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return err;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else {return ''}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (field === 'dlzh' || field === 'employeeNumber') {
|
|
|
|
|
|
|
|
// if (type === 'body') {
|
|
|
|
|
|
|
|
// console.log('type',type)
|
|
|
|
|
|
|
|
// console.log('column',column)
|
|
|
|
|
|
|
|
// console.log('row',row.zt)
|
|
|
|
|
|
|
|
// console.log('items',items)
|
|
|
|
|
|
|
|
// console.log('_columnIndex',_columnIndex)
|
|
|
|
|
|
|
|
// return column.title ? '自定义标题提示内容:' + column.title : ''
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// else if (type === 'footer') {
|
|
|
|
|
|
|
|
// return items[_columnIndex] ? '自定义表尾提示内容,\n并且自定义换行:\n' + items[_columnIndex] : ''
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return row[field] ? '自定义提示内容:' + row[field] : ''
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
return ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// else if (field === 'rate') {
|
|
|
|
|
|
|
|
// // 返回空字符串,控制单元格不显示提示内容
|
|
|
|
|
|
|
|
// return ''
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// 其余的单元格使用默认行为
|
|
|
|
|
|
|
|
return null
|
|
|
|
|
|
|
|
},
|
|
|
|
//汇总
|
|
|
|
//汇总
|
|
|
|
symxhz() {
|
|
|
|
symxhz() {
|
|
|
|
|
|
|
|
|
|
|
@ -2964,8 +3034,9 @@ export default {
|
|
|
|
getList(this.queryParam).then((res) => {
|
|
|
|
getList(this.queryParam).then((res) => {
|
|
|
|
this.list = res.data.list
|
|
|
|
this.list = res.data.list
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.activeName = 'first'
|
|
|
|
// this.activeName = 'first'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
formatDate({cellValue}) {
|
|
|
|
formatDate({cellValue}) {
|
|
|
|
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
|
|
|
|
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -2991,32 +3062,12 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
confirmModal(){
|
|
|
|
confirmModal(){
|
|
|
|
this.dialogVisible2 = true
|
|
|
|
this.dialogVisible2 = true
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
nextModal(){
|
|
|
|
nextModal(){
|
|
|
|
this.modalShow=this.modalShow+1
|
|
|
|
if (this.active++ > 5) this.active = 0;
|
|
|
|
this.changeTitle2()
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
preModal(){
|
|
|
|
preModal(){
|
|
|
|
this.modalShow=this.modalShow-1
|
|
|
|
if (this.active-- < 1) this.active = 0;
|
|
|
|
this.changeTitle2()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
changeTitle2(){
|
|
|
|
|
|
|
|
if (this.modalShow==1){
|
|
|
|
|
|
|
|
this.title2='修改工厂日历(1/5)'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.modalShow==2){
|
|
|
|
|
|
|
|
this.title2='工序间隔周期(2/5)'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.modalShow==3){
|
|
|
|
|
|
|
|
this.title2='修改设备产能(3/5)'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.modalShow==4){
|
|
|
|
|
|
|
|
this.title2='设备维护/维修(4/5)'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.modalShow==5){
|
|
|
|
|
|
|
|
this.title2='人员出勤情况(5/5)'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
jgcx(flag=true){
|
|
|
|
jgcx(flag=true){
|
|
|
|
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
|
|
|
|
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
|
|
|
@ -3064,6 +3115,7 @@ export default {
|
|
|
|
data.wpcz=bom.wpcz
|
|
|
|
data.wpcz=bom.wpcz
|
|
|
|
data.ljsl=bom.ljsl
|
|
|
|
data.ljsl=bom.ljsl
|
|
|
|
data._degs=bom.degs
|
|
|
|
data._degs=bom.degs
|
|
|
|
|
|
|
|
data.errors=bom.errors
|
|
|
|
list.push(data)
|
|
|
|
list.push(data)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|