|
@@ -90,7 +90,7 @@ export default {
|
|
|
{ title: '供应商名称', dataIndex: 'supplierName', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'product.name', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '成本价', dataIndex: 'costText', width: '15%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '成本价', dataIndex: 'costText', width: '15%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
],
|
|
|
nowUnColumns: [ // 不可导入
|
|
|
{ title: '序号', dataIndex: 'no', width: '10%', align: 'center' },
|
|
@@ -115,11 +115,13 @@ export default {
|
|
|
if (res.data.okList && res.data.okList.length > 0) {
|
|
|
res.data.okList.map((item, index) => {
|
|
|
item.no = index + 1
|
|
|
+ item.costText = Number(item.costText).toFixed(2)
|
|
|
})
|
|
|
}
|
|
|
if (res.data.failList && res.data.failList.length > 0) {
|
|
|
res.data.failList.map((item, index) => {
|
|
|
item.no = index + 1
|
|
|
+ item.costText = Number(item.costText).toFixed(2)
|
|
|
})
|
|
|
}
|
|
|
_this.loadData = res.data.okList || []
|