UNPKG

ttk-app-core

Version:
75 lines (74 loc) 2.34 kB
import React from 'react' /** * * @param {number} type 展示类型 */ export default function renderColumns() { const columns = [{ title: '行号', name: 'rowsNo', dataIndex: 'rowsNo', key: 'rowsNo', render: (text, record, index) => { return <span > { index + 1 } < /span> } }, { title: '资产类别', name: 'assetClassName', dataIndex: 'assetClassName', key: 'assetClassName' }, { title: '资产编码', name: 'assetCode', dataIndex: 'assetCode', key: 'assetCode' }, { title: '规格型号', name: 'specification', dataIndex: 'specification', key: 'specification' }, { title: '资产原值', name: 'origValueStr', dataIndex: 'origValueStr', key: 'origValueStr' }, { title: '购置日期', name: 'buyDate', dataIndex: 'buyDate', key: 'buyDate' }, { title: '折旧年限', name: 'depreciationYearMonth', dataIndex: 'depreciationYearMonth', key: 'depreciationYearMonth' }, { title: '残值率(%)', name: 'salvageRateStr', dataIndex: 'salvageRateStr', key: 'salvageRateStr' }, { title: '本期折旧', name: 'accuDepreciationStr', dataIndex: 'accuDepreciationStr', key: 'accuDepreciationStr' }, { title: '年初至本期折旧', name: 'YearBeginingToThePeriodDepreciationStr', dataIndex: 'YearBeginingToThePeriodDepreciationStr', key: 'YearBeginingToThePeriodDepreciationStr' }, { title: '累计折旧', name: 'queryPeriodDepreciationStr', dataIndex: 'queryPeriodDepreciationStr', key: 'queryPeriodDepreciationStr' }, { title: '资产净值', name: 'netWorthStr', dataIndex: 'netWorthStr', key: 'netWorthStr' } ] return columns }