| | |
| | | align: 'center',//文字居中 |
| | | stripe: true,//斑马纹 |
| | | rowConfig: {isCurrent: true, isHover: true, height: 30, useKey: false},//鼠标移动或选择高亮 |
| | | id: 'CustomerList', |
| | | id: 'CustomerListRight', |
| | | showFooter: true,//显示脚 |
| | | printConfig: {}, |
| | | importConfig: {}, |
| | |
| | | }, |
| | | data: [],//table body实际数据 |
| | | //脚部求和 |
| | | |
| | | weighAllAmount(data) { |
| | | let count = 0 |
| | | data.forEach(row => { |
| | | count += row.weight |
| | | }) |
| | | return count |
| | | }, |
| | | footerMethod ({ columns, data }) {//页脚函数 |
| | | let count = 0 |
| | | |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return t('basicData.total') |
| | | } |
| | | const List = ["baiscQuantity",'computeGrossArea','weight','perimeter'] |
| | | |
| | | const List = ["baiscQuantity",'computeGrossArea'] |
| | | if (List.includes(column.field)) { |
| | | return footSum(data, column.field) |
| | | } |
| | | if (column.field === 'weight'){ |
| | | data.forEach(row => { |
| | | count += weightSum(row) |
| | | }) |
| | | return parseFloat(count.toFixed(2)) |
| | | } |
| | | |
| | | return '' |
| | | }) |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | }) |
| | | |
| | |
| | | }, |
| | | { |
| | | field: 'landingSequence', |
| | | title: '落架顺序', |
| | | title: t('processCard.landingSequence'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | |
| | | if (columnIndex === 0) { |
| | | return t('basicData.total') |
| | | } |
| | | const List = ["quantity",'goodsQuantity','area','perimeter'] |
| | | const List = ["quantity",'goodsQuantity','area'] |
| | | if (List.includes(column.field)) { |
| | | return footSum(data, column.field) |
| | | } |