| | |
| | | columns:[ |
| | | {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, |
| | | // { type: 'seq',fixed:"left", title: '自序', width: 50 }, |
| | | {field: 'order_number',fixed:"left", width: 120, title: '序号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, }, |
| | | {field: 'glass_child',fixed:"left",width: 120, title: '单片名称', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'technology_number', width: 130,title: '小片顺序', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'glass_address',width: 120, title: '片标记',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'child_width', width: 100,title: '宽', sortable: true}, |
| | | {field: 'child_height',width: 100, title: '高', sortable: true}, |
| | | {field: 'shape',width: 120, title: '形状', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'completed_quantity',width: 120, title: '完工数量', sortable: true}, |
| | | {field: 'breakage_quantity',width: 120, title: '次破数量', sortable: true}, |
| | | {field: 'available',width: 120, title: '可利用', sortable: true}, |
| | | {field: 'return_process',width: 120, title: '退回工序', sortable: true}, |
| | | {field: 'breakage_type',width: 120, title: '次破类型', sortable: true}, |
| | | {field: 'breakage_reason',width: 120, title: '次破原因', sortable: true}, |
| | | {field: 'responsible_equipment',width: 120, title: '责任设备', sortable: true}, |
| | | {field: 'responsible_process',width: 120, title: '责任工序', sortable: true}, |
| | | {field: 'responsible_team',width: 120, title: '责任班组', sortable: true}, |
| | | {field: 'responsible_personnel',width: 120, title: '责任人员', sortable: true}, |
| | | {field: 'order_number',fixed:"left", width: 120, title: t('order.OrderNum'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, }, |
| | | {field: 'glass_child',fixed:"left",width: 120, title: t('reportingWorks.glassChild'), sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'technology_number', width: 130,title: t('processCard.technologyNumber'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'glass_address',width: 120, title: t('reportingWorks.glassAddress'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'child_width', width: 100,title: t('order.width'), sortable: true}, |
| | | {field: 'child_height',width: 100, title: t('order.height'), sortable: true}, |
| | | {field: 'shape',width: 120, title: t('order.shape'), sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'completed_quantity',width: 120, title: t('reportingWorks.thisCompletedQuantity'), sortable: true}, |
| | | {field: 'breakage_quantity',width: 120, title: t('reportingWorks.thisWornQuantity'), sortable: true}, |
| | | {field: 'available',width: 120, title: t('reportingWorks.available'), sortable: true}, |
| | | {field: 'return_process',width: 120, title: t('reportingWorks.returnProcess'), sortable: true}, |
| | | {field: 'breakage_type',width: 120, title: t('reportingWorks.breakageType'), sortable: true}, |
| | | {field: 'breakage_reason',width: 120, title: t('reportingWorks.breakageReason'), sortable: true}, |
| | | {field: 'responsible_equipment',width: 120, title: t('reportingWorks.responsibleEquipment'), sortable: true}, |
| | | {field: 'responsible_process',width: 120, title: t('reportingWorks.responsibleProcess'), sortable: true}, |
| | | {field: 'responsible_team',width: 120, title: t('reportingWorks.responsibleTeam'), sortable: true}, |
| | | {field: 'responsible_personnel',width: 120, title: t('reportingWorks.responsiblePersonnel'), sortable: true}, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {code: 'print_lck', name: '审核通过',status:'primary' }, |
| | | {code: 'print_lck', name: t('reportingWorks.passAudit'),status:'primary' }, |
| | | ], |
| | | // import: false, |
| | | // export: true, |
| | |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return '合计:' |
| | | return t('basicData.total') |
| | | } |
| | | if (footList.includes(column.field)) { |
| | | return sumNum(data, column.field) |