TableColumnsHelper.ts 3.63 KB
export const vehicleBaseInfoColumns = {
    title: '车辆基本信息', children: [
        {title: '车源号', dataIndex: ['baseInfo', "sourceNo"], key: 'sourceNo', width: 150, resizable: true, ellipsis: true, sorter: true},
        // {title: '封面', dataIndex: 'cover', key: 'cover', width: 110, resizable: true, ellipsis: true, sorter: true},
        {
            title: '车型名称', dataIndex: ['baseInfo', "carTypeName"], key: 'carTypeName', width: 240, resizable: true, ellipsis: true, sorter: true,
            customRender: ({text, record, index, column}) => {
                return (record.baseInfo?.carSeriesName ?? "") + " " + record.baseInfo.carTypeName;
            }
        },
        {title: '车辆VIN码', dataIndex: ['baseInfo', "vin"], key: 'vin', width: 170, resizable: true, ellipsis: true, sorter: true},
        {title: '车牌号', dataIndex: ['baseInfo', "licensePlate"], key: 'licensePlate', width: 110, resizable: true, ellipsis: true, sorter: true},
        {title: '所属门店', dataIndex: ['venue', 'venueName'], key: 'venueName', width: 130, resizable: true, ellipsis: true, sorter: true},
    ]
};


export const vehicleRefCommonColumns = {
    title: '车辆信息', children: [
        {title: '车源号', dataIndex: ['vehicle', 'baseInfo', "sourceNo"], key: 'sourceNo', width: 150, resizable: true, ellipsis: true, sorter: true},
        {title: '封面', dataIndex: ['vehicle', 'cover'], key: 'cover', width: 80, resizable: true, ellipsis: true, sorter: false},
        {
            title: '车型名称', dataIndex: ['vehicle', 'baseInfo', "carTypeName"], key: 'carTypeName', width: 240, resizable: true, ellipsis: true, sorter: true,
            customRender: ({text, record, index, column}) => {
                return (record.vehicle?.baseInfo?.carSeriesName ?? "") + " " + record.vehicle?.baseInfo.carTypeName;
            }
        },
        {title: '车辆VIN码', dataIndex: ['vehicle', 'baseInfo', "vin"], key: 'vin', width: 170, resizable: true, ellipsis: true, sorter: true},
        {title: '车牌号', dataIndex: ['vehicle', 'baseInfo', "licensePlate"], key: 'licensePlate', width: 130, resizable: true, ellipsis: true, sorter: true},
        {title: '所属门店', dataIndex: ['vehicle', 'venue', 'venueName'], key: 'venueName', width: 130, resizable: true, ellipsis: true, sorter: true},
    ]
};

export const vehicleOrderCommonColumns = {
    title: '车辆信息', children: [
        {title: '车源号', dataIndex: ['auctionOrder', 'vehicle', 'baseInfo', "sourceNo"], key: 'sourceNo', width: 150, resizable: true, ellipsis: true, sorter: true},
        // {title: '封面', dataIndex: ['auctionOrder', 'vehicle', 'cover'], key: 'cover', width: 110, resizable: true, ellipsis: true, sorter: true},
        {
            title: '车型名称', dataIndex: ['auctionOrder', 'vehicle', 'baseInfo', "carTypeName"], key: 'carTypeName', width: 240, resizable: true, ellipsis: true, sorter: true,
            customRender: ({text, record, index, column}) => {
                return (record.auctionOrder.vehicle?.baseInfo?.carSeriesName ?? "") + " " + record.auctionOrder.vehicle?.baseInfo.carTypeName;
            }
        },
        {title: '车辆VIN码', dataIndex: ['auctionOrder', 'vehicle', 'baseInfo', "vin"], key: 'vin', width: 170, resizable: true, ellipsis: true, sorter: true},
        {title: '车牌号', dataIndex: ['auctionOrder', 'vehicle', 'baseInfo', "licensePlate"], key: 'licensePlate', width: 130, resizable: true, ellipsis: true, sorter: true},
        {title: '所属门店', dataIndex: ['auctionOrder', 'vehicle', 'venue', 'venueName'], key: 'venueName', width: 130, resizable: true, ellipsis: true, sorter: true},
    ]
};