1.增加切割报工生成质量数据兼容老erp的功能

2.增加作业计划执行划线和切割报工筛选垮位的功能
master
董哲奇 4 months ago
parent 41adb0e489
commit 08a59477c7

@ -164,6 +164,9 @@ export default {
this.gridOptions.ycldw=res.data this.gridOptions.ycldw=res.data
getForemanByWorker({worker:worker}).then(res=>{ getForemanByWorker({worker:worker}).then(res=>{
getYdjhByZtOrForeman({foreman:res.data.userCode,zt:zt,field:'hxpgry',zyq:this.zyq}).then(res=>{ getYdjhByZtOrForeman({foreman:res.data.userCode,zt:zt,field:'hxpgry',zyq:this.zyq}).then(res=>{
res.data.forEach(item=>{
item._lx=item.tzbh.substring(5,6)
})
this.list=res.data this.list=res.data
this.gridOptions.data=res.data this.gridOptions.data=res.data
this.setExt('workers',this.$props.workers) this.setExt('workers',this.$props.workers)

@ -27,12 +27,14 @@ export default function () {
} }
return cellValue return cellValue
} }
const gdhFormat=function ({cellValue}){ const gdhFormat=function ({cellValue}){
if (cellValue){ if (cellValue){
return 'PW'+cellValue return 'PW'+cellValue
} }
return '' return ''
} }
const dwFormat=function ({cellValue}){ const dwFormat=function ({cellValue}){
for (const item of options.ycldw) { for (const item of options.ycldw) {
if (cellValue===item.id+''){ if (cellValue===item.id+''){
@ -40,6 +42,23 @@ export default function () {
} }
} }
} }
const formatLx=function ({cellValue}){
if (cellValue==='1'){
return '一垮'
}
if (cellValue==='2'){
return '二垮'
}
if (cellValue==='3'){
return '三垮'
}
if (cellValue==='4'){
return '四五六垮'
}
return ''
}
const columns = [ const columns = [
{ type: 'checkbox', width: 40 }, { type: 'checkbox', width: 40 },
{ type: 'seq',title:'序号', width: 50 }, { type: 'seq',title:'序号', width: 50 },
@ -58,6 +77,10 @@ export default function () {
{field: 'wpgg', title: '材质', width: 80}, {field: 'wpgg', title: '材质', width: 80},
{field: 'wpxh', title: '规格', width: 70}, {field: 'wpxh', title: '规格', width: 70},
{field: 'sllph', title: '炉批号', width: 100}, {field: 'sllph', title: '炉批号', width: 100},
{field: '_lx', title: '流向', width: 80,formatter:formatLx,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{field: 'tzbh', title: '套料图号', width: 100}, {field: 'tzbh', title: '套料图号', width: 100},
{field: 'hxry', title: '接收人', width: 80,formatter: nameFormat}, {field: 'hxry', title: '接收人', width: 80,formatter: nameFormat},
{field: 'hxfkry', title: '报工人', width: 80,formatter:nameFormat}, {field: 'hxfkry', title: '报工人', width: 80,formatter:nameFormat},

@ -114,6 +114,9 @@ export default {
getDw({type:'llj'}).then(res=>{ getDw({type:'llj'}).then(res=>{
this.gridOptions.ycldw=res.data this.gridOptions.ycldw=res.data
getYdjhByZtOrForeman({foreman:result.data.userCode,zt:zt,field:'qgpgry',zyq:this.zyq}).then(res => { getYdjhByZtOrForeman({foreman:result.data.userCode,zt:zt,field:'qgpgry',zyq:this.zyq}).then(res => {
res.data.forEach(item=>{
item._lx=item.tzbh.substring(5,6)
})
this.list=res.data this.list=res.data
this.gridOptions.data = res.data this.gridOptions.data = res.data
this.setExt('workers',this.$props.workers) this.setExt('workers',this.$props.workers)

@ -42,6 +42,23 @@ export default function () {
} }
} }
} }
const formatLx=function ({cellValue}){
if (cellValue==='1'){
return '一垮'
}
if (cellValue==='2'){
return '二垮'
}
if (cellValue==='3'){
return '三垮'
}
if (cellValue==='4'){
return '四五六垮'
}
return ''
}
const columns = [ const columns = [
{ type: 'checkbox', width: 40 }, { type: 'checkbox', width: 40 },
{ type: 'seq',title:'序号', width: 50 }, { type: 'seq',title:'序号', width: 50 },
@ -60,6 +77,10 @@ export default function () {
{field: 'wpgg', title: '材质', width: 80}, {field: 'wpgg', title: '材质', width: 80},
{field: 'wpxh', title: '规格', width: 70}, {field: 'wpxh', title: '规格', width: 70},
{field: 'sllph', title: '炉批号', width: 100}, {field: 'sllph', title: '炉批号', width: 100},
{field: '_lx', title: '流向', width: 80,formatter:formatLx,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{field: 'tzbh', title: '套料图号', width: 100}, {field: 'tzbh', title: '套料图号', width: 100},
{field: 'qgry', title: '接收人', width: 80,formatter: nameFormat}, {field: 'qgry', title: '接收人', width: 80,formatter: nameFormat},
{field: 'qgfkry', title: '报工人', width: 80,formatter:nameFormat}, {field: 'qgfkry', title: '报工人', width: 80,formatter:nameFormat},

Loading…
Cancel
Save