|
|
|
@ -27,12 +27,14 @@ export default function () {
|
|
|
|
|
}
|
|
|
|
|
return cellValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const gdhFormat=function ({cellValue}){
|
|
|
|
|
if (cellValue){
|
|
|
|
|
return 'PW'+cellValue
|
|
|
|
|
}
|
|
|
|
|
return ''
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const dwFormat=function ({cellValue}){
|
|
|
|
|
for (const item of options.ycldw) {
|
|
|
|
|
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 = [
|
|
|
|
|
{ type: 'checkbox', width: 40 },
|
|
|
|
|
{ type: 'seq',title:'序号', width: 50 },
|
|
|
|
@ -58,6 +77,10 @@ export default function () {
|
|
|
|
|
{field: 'wpgg', title: '材质', width: 80},
|
|
|
|
|
{field: 'wpxh', title: '规格', width: 70},
|
|
|
|
|
{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: 'hxry', title: '接收人', width: 80,formatter: nameFormat},
|
|
|
|
|
{field: 'hxfkry', title: '报工人', width: 80,formatter:nameFormat},
|
|
|
|
|