Commit 70d96369 authored by jingnan's avatar jingnan 👀

入库界面列表数据为空的时候展示为“/"

parent 64714680
...@@ -403,25 +403,25 @@ export default { ...@@ -403,25 +403,25 @@ export default {
}, },
{ {
title: '编码', key: 'typeCode', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '编码', key: 'typeCode', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '' const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '/'
return value return value
} }
}, },
{ {
title: '名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '' const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '/'
return value return value
} }
}, },
{ {
title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.modelNo : '' const value = row.extMaterial ? row.extMaterial.modelNo : '/'
return value return value
} }
}, },
{ {
title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.techSpec : '' const value = row.extMaterial ? row.extMaterial.techSpec : '/'
return value return value
} }
}, },
...@@ -432,7 +432,7 @@ export default { ...@@ -432,7 +432,7 @@ export default {
{ title: '架次', key: 'sorties', headerAlign: 'center' }, { title: '架次', key: 'sorties', headerAlign: 'center' },
{ {
title: '计量单位', key: 'unitName', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '计量单位', key: 'unitName', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '' const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '/'
return value return value
} }
}, },
......
...@@ -403,37 +403,37 @@ export default { ...@@ -403,37 +403,37 @@ export default {
} }
}, },
{ title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => { { title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => {
const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '' const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '/'
return value return value
} }
}, },
{ {
title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '' const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '/'
return value return value
} }
}, },
{ {
title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.modelNo : '' const value = row.extMaterial ? row.extMaterial.modelNo : '/'
return value return value
} }
}, },
{ {
title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.techSpec : '' const value = row.extMaterial ? row.extMaterial.techSpec : '/'
return value return value
} }
}, },
{ {
title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.spec : '' const value = row.extMaterial ? row.extMaterial.spec : '/'
return value return value
} }
}, },
{ {
title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.supplyStatus : '' const value = row.extMaterial ? row.extMaterial.supplyStatus : '/'
return value return value
} }
}, },
...@@ -443,7 +443,7 @@ export default { ...@@ -443,7 +443,7 @@ export default {
{ title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' }, { title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' },
{ {
title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '' const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '/'
return value return value
} }
}, },
......
...@@ -57,37 +57,37 @@ export default { ...@@ -57,37 +57,37 @@ export default {
} }
}, },
{ title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => { { title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => {
const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '' const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '/'
return value return value
} }
}, },
{ {
title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '' const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '/'
return value return value
} }
}, },
{ {
title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.modelNo : '' const value = row.extMaterial ? row.extMaterial.modelNo : '/'
return value return value
} }
}, },
{ {
title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.techSpec : '' const value = row.extMaterial ? row.extMaterial.techSpec : '/'
return value return value
} }
}, },
{ {
title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.spec : '' const value = row.extMaterial ? row.extMaterial.spec : '/'
return value return value
} }
}, },
{ {
title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.supplyStatus : '' const value = row.extMaterial ? row.extMaterial.supplyStatus : '/'
return value return value
} }
}, },
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
{ title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' }, { title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' },
{ {
title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '' const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '/'
return value return value
} }
}, },
......
...@@ -170,37 +170,37 @@ export default { ...@@ -170,37 +170,37 @@ export default {
}, },
{ {
title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => { title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => {
const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '' const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '/'
return value return value
} }
}, },
{ {
title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '' const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '/'
return value return value
} }
}, },
{ {
title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.modelNo : '' const value = row.extMaterial ? row.extMaterial.modelNo : '/'
return value return value
} }
}, },
{ {
title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.techSpec : '' const value = row.extMaterial ? row.extMaterial.techSpec : '/'
return value return value
} }
}, },
{ {
title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.spec : '' const value = row.extMaterial ? row.extMaterial.spec : '/'
return value return value
} }
}, },
{ {
title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.supplyStatus : '' const value = row.extMaterial ? row.extMaterial.supplyStatus : '/'
return value return value
} }
}, },
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
{ title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' }, { title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' },
{ {
title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '' const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '/'
return value return value
} }
}, },
......
...@@ -38,37 +38,37 @@ export default { ...@@ -38,37 +38,37 @@ export default {
}, },
{ {
title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => { title: '物料编码', key: 'typeCode', align: 'center', headerAlign: 'center', width: '100', formatter: (row, column, cellValue, index) => {
const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '' const value = row.resCode ? row.resCode : row.extMaterial ? row.extMaterial.resCode : '/'
return value return value
} }
}, },
{ {
title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '物料名称', key: 'resName', width: '120', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '' const value = row.resName ? row.resName : row.extMaterial ? row.extMaterial.resName : '/'
return value return value
} }
}, },
{ {
title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '牌号/型号/件号', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.modelNo : '' const value = row.extMaterial ? row.extMaterial.modelNo : '/'
return value return value
} }
}, },
{ {
title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '技术条件', width: '150', key: 'modelNo', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.techSpec : '' const value = row.extMaterial ? row.extMaterial.techSpec : '/'
return value return value
} }
}, },
{ {
title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '规格', width: '150', key: 'spec', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.spec : '' const value = row.extMaterial ? row.extMaterial.spec : '/'
return value return value
} }
}, },
{ {
title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '供应状态', width: '150', key: 'supplyStatus', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.extMaterial ? row.extMaterial.supplyStatus : '' const value = row.extMaterial ? row.extMaterial.supplyStatus : '/'
return value return value
} }
}, },
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
{ title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' }, { title: '炉/批号', key: 'lotNo', width: '150', headerAlign: 'center' },
{ {
title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '计量单位', key: 'unitName', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '' const value = row.reqUnit ? row.reqUnit : row.extMaterial ? row.extMaterial.extUnit.unitName : '/'
return value return value
} }
}, },
......
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