董国庆
2026-03-13 c2141bfbeb4f21e9bfd3d8b66a066a3ea7ce92e6
修改飞书
1个文件已修改
13 ■■■■■ 已修改文件
src/views/assetManagement/fleetManagement/detail.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/assetManagement/fleetManagement/detail.vue
@@ -131,13 +131,20 @@
    width: 100,
    resizable: true,
    render: (row) => {
      if (String(row.status) === '2') {
      if (String(row.vehicleType) === '1') {
        const inventoryStatusMap: Record<string, { type: 'default' | 'success' | 'info' | 'warning' | 'error', text: string }> = {
          1: { type: 'warning', text: '待完善信息' },
          2: { type: 'info', text: '待运营' },
          3: { type: 'error', text: '保险/年检过期' },
        }
        const status = inventoryStatusMap[String(row.status)] || { type: 'default', text: row.statusDesc || '-' }
        return (
          <NTag type="info" bordered={false} size="small">
            待运营
          <NTag type={status.type} bordered={false} size="small">
            {status.text}
          </NTag>
        )
      }
      const statusMap: Record<number, { type: 'default' | 'success' | 'info' | 'warning' | 'error', text: string }> = {
        1: { type: 'info', text: '运营中' },
        2: { type: 'error', text: '维修中' },