提交
This commit is contained in:
1 parent
2df2ef0808
commit
683f14828f
388 files changed
+2738488
-81306
No files matched your search
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">{{ title }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
|
||||
@@ -2,13 +2,9 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">承运商列表</h2>
|
||||
</div>
|
||||
|
||||
<!-- 筛选区 -->
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 80px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="承运商名称">
|
||||
<el-input
|
||||
|
||||
@@ -2,13 +2,9 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">司机列表</h2>
|
||||
</div>
|
||||
|
||||
<!-- 筛选区 -->
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 110px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="司机姓名/手机">
|
||||
<el-input
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运费结算审批</h2>
|
||||
</div>
|
||||
|
||||
<el-tabs
|
||||
v-model="activeTab"
|
||||
class="panel-tabs"
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运费财务发放</h2>
|
||||
</div>
|
||||
|
||||
<el-tabs
|
||||
v-model="activeTab"
|
||||
class="panel-tabs"
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运费结算</h2>
|
||||
</div>
|
||||
|
||||
<el-tabs
|
||||
v-model="activeTab"
|
||||
class="panel-tabs"
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">证件到期提醒</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">库存台账</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
|
||||
@@ -2,13 +2,9 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">{{ isCarrierPersonnel ? '三方驾押人员' : '山峡驾押人员' }}</h2>
|
||||
</div>
|
||||
|
||||
<!-- 筛选区 -->
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 80px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="姓名/手机">
|
||||
<el-input
|
||||
@@ -113,14 +109,24 @@
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<img
|
||||
v-if="firstPhotoUrl(row.photoUrls)"
|
||||
class="pl-photo-thumb"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="人员照片"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<div v-if="firstPhotoUrl(row.photoUrls)" class="pl-photo-thumb-wrap">
|
||||
<img
|
||||
class="pl-photo-thumb"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="人员照片"
|
||||
title="点击在新标签页查看"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
@click.stop="handlePhotoPreview(row.photoUrls)"
|
||||
/>
|
||||
<el-icon
|
||||
class="pl-photo-download"
|
||||
title="下载"
|
||||
@click.stop="handlePhotoDownload(row.photoUrls)"
|
||||
>
|
||||
<Download />
|
||||
</el-icon>
|
||||
</div>
|
||||
<span v-else class="pl-photo-thumb pl-photo-thumb--empty">未上传</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -404,7 +410,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Check, Close, Delete, DocumentCopy, Edit, Plus, RefreshLeft, Search, User } from '@element-plus/icons-vue'
|
||||
import { Check, Close, Delete, DocumentCopy, Download, Edit, Plus, RefreshLeft, Search, User } from '@element-plus/icons-vue'
|
||||
import { personnelApi, type Personnel, type PersonnelDetail, type CertRow } from '@/api/pl'
|
||||
import PlCertFormList from '@/components/business/pl-cert-form-list/index.vue'
|
||||
import PlPasteRecognizeDialog from '@/components/business/pl-paste-recognize-dialog/index.vue'
|
||||
@@ -423,7 +429,15 @@ import { useListMediaActive } from '@/composables/useListMediaActive'
|
||||
import { pickBxPageResult } from '@/utils/http/bx'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { formatDateTime } from '@/utils/format'
|
||||
import { firstPhotoUrl, resolvePhotoDisplayUrl } from '@/utils/pl-photo'
|
||||
import {
|
||||
downloadListPhoto,
|
||||
firstPhotoUrl,
|
||||
previewListPhoto,
|
||||
resolvePhotoDisplayUrl
|
||||
} from '@/utils/pl-photo'
|
||||
|
||||
const handlePhotoPreview = (raw?: string | null) => previewListPhoto(raw)
|
||||
const handlePhotoDownload = (raw?: string | null) => downloadListPhoto(raw)
|
||||
import { canDeleteByCreator, filterDeletableByCreator, allRowsDeletableByCreator, CREATOR_DELETE_TIP } from '@/utils/creator-delete'
|
||||
import {
|
||||
collectRequiredCertSlotErrors,
|
||||
@@ -936,6 +950,14 @@ onMounted(() => {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.pl-photo-thumb-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.pl-photo-thumb {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
@@ -945,6 +967,27 @@ onMounted(() => {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
background: #f8fafc;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pl-photo-download {
|
||||
position: absolute;
|
||||
right: -4px;
|
||||
bottom: -4px;
|
||||
z-index: 2;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
color: #1e293b;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #1ca851;
|
||||
border-color: #1ca851;
|
||||
background: #e6f8ed;
|
||||
}
|
||||
}
|
||||
|
||||
.pl-photo-thumb--empty {
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运输计划归档</h2>
|
||||
</div>
|
||||
|
||||
<PlPlanTypeTabs v-model="activePlanTypeTab" @change="handlePlanTypeTabChange" />
|
||||
|
||||
<div class="filter-block">
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">危化品证上传</h2>
|
||||
</div>
|
||||
|
||||
<PlPlanTypeTabs
|
||||
v-model="activePlanTypeTab"
|
||||
:tabs="PL_PLAN_CERT_TABS"
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运输计划详情</h2>
|
||||
</div>
|
||||
|
||||
<!-- 基本信息 -->
|
||||
<div class="detail-section">
|
||||
<h3 class="section-title">基本信息</h3>
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">{{ isEdit ? '编辑运输计划' : '新增运输计划' }}</h2>
|
||||
</div>
|
||||
|
||||
<!-- 基本信息 -->
|
||||
<div class="form-section">
|
||||
<h3 class="section-title">基本信息</h3>
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运输计划列表</h2>
|
||||
</div>
|
||||
|
||||
<PlPlanTypeTabs v-model="activePlanTypeTab" @change="handlePlanTypeTabChange" />
|
||||
|
||||
<!-- 筛选区 -->
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">山峡自有车辆</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
@@ -124,14 +120,24 @@
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<img
|
||||
v-if="firstPhotoUrl(row.photoUrls)"
|
||||
class="pl-photo-thumb"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="车辆照片"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<div v-if="firstPhotoUrl(row.photoUrls)" class="pl-photo-thumb-wrap">
|
||||
<img
|
||||
class="pl-photo-thumb"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="车辆照片"
|
||||
title="点击在新标签页查看"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
@click.stop="handlePhotoPreview(row.photoUrls)"
|
||||
/>
|
||||
<el-icon
|
||||
class="pl-photo-download"
|
||||
title="下载"
|
||||
@click.stop="handlePhotoDownload(row.photoUrls)"
|
||||
>
|
||||
<Download />
|
||||
</el-icon>
|
||||
</div>
|
||||
<span v-else class="pl-photo-thumb pl-photo-thumb--empty">未上传</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -459,7 +465,7 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { Check, Close, Delete, Edit, Plus, RefreshLeft, Search, Van } from '@element-plus/icons-vue'
|
||||
import { Check, Close, Delete, Download, Edit, Plus, RefreshLeft, Search, Van } from '@element-plus/icons-vue'
|
||||
import {
|
||||
vehicleApi,
|
||||
type Vehicle,
|
||||
@@ -494,7 +500,15 @@ import {
|
||||
getPlVehicleStatusTagType,
|
||||
normalizePlPersonnelSummaryDisplay
|
||||
} from '@/utils/pl-display'
|
||||
import { firstPhotoUrl, resolvePhotoDisplayUrl } from '@/utils/pl-photo'
|
||||
import {
|
||||
downloadListPhoto,
|
||||
firstPhotoUrl,
|
||||
previewListPhoto,
|
||||
resolvePhotoDisplayUrl
|
||||
} from '@/utils/pl-photo'
|
||||
|
||||
const handlePhotoPreview = (raw?: string | null) => previewListPhoto(raw)
|
||||
const handlePhotoDownload = (raw?: string | null) => downloadListPhoto(raw)
|
||||
import {
|
||||
collectSelfVehicleRequiredCertErrors,
|
||||
ensureSelfVehicleCertSlots,
|
||||
@@ -1169,6 +1183,14 @@ onMounted(() => {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.pl-photo-thumb-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.pl-photo-thumb {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
@@ -1178,6 +1200,27 @@ onMounted(() => {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
background: #f8fafc;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pl-photo-download {
|
||||
position: absolute;
|
||||
right: -4px;
|
||||
bottom: -4px;
|
||||
z-index: 2;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
color: #1e293b;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #1ca851;
|
||||
border-color: #1ca851;
|
||||
background: #e6f8ed;
|
||||
}
|
||||
}
|
||||
|
||||
.pl-photo-thumb--empty {
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">地址库</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 80px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="名称/地址">
|
||||
<el-input
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">运输列表</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">车辆维保申请</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 110px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="申请单号/车牌">
|
||||
<el-input v-model="searchForm.q" placeholder="搜索申请单号或车牌" clearable @keyup.enter="handleSearch" />
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">车辆维保处理登记</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 170px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="申请单号/车牌/处理单号">
|
||||
<el-input v-model="searchForm.q" placeholder="搜索关键词" clearable @keyup.enter="handleSearch" />
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">ETC加油申请</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 110px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="申请单号/车牌">
|
||||
<el-input v-model="searchForm.q" placeholder="搜索申请单号或车牌" clearable @keyup.enter="handleSearch" />
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">ETC加油发放登记</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 160px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="申请单号/车牌/订单号">
|
||||
<el-input v-model="searchForm.q" placeholder="搜索关键词" clearable @keyup.enter="handleSearch" />
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">车辆尿素申请</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 110px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="申请单号/车牌">
|
||||
<el-input v-model="searchForm.q" placeholder="搜索申请单号或车牌" clearable @keyup.enter="handleSearch" />
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">车辆尿素发放登记</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent style="--filter-label-width: 170px">
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="申请单号/车牌/发放单号">
|
||||
<el-input v-model="searchForm.q" placeholder="搜索关键词" clearable @keyup.enter="handleSearch" />
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">三方车辆</h2>
|
||||
</div>
|
||||
|
||||
<!-- 筛选区 -->
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
@@ -129,14 +125,24 @@
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<img
|
||||
v-if="firstPhotoUrl(row.photoUrls)"
|
||||
class="pl-photo-thumb"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="车辆照片"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<div v-if="firstPhotoUrl(row.photoUrls)" class="pl-photo-thumb-wrap">
|
||||
<img
|
||||
class="pl-photo-thumb"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="车辆照片"
|
||||
title="点击在新标签页查看"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
@click.stop="handlePhotoPreview(row.photoUrls)"
|
||||
/>
|
||||
<el-icon
|
||||
class="pl-photo-download"
|
||||
title="下载"
|
||||
@click.stop="handlePhotoDownload(row.photoUrls)"
|
||||
>
|
||||
<Download />
|
||||
</el-icon>
|
||||
</div>
|
||||
<span v-else class="pl-photo-thumb pl-photo-thumb--empty">未上传</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -477,7 +483,7 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { Check, Close, Delete, DocumentCopy, Edit, Plus, RefreshLeft, Search, Van } from '@element-plus/icons-vue'
|
||||
import { Check, Close, Delete, DocumentCopy, Download, Edit, Plus, RefreshLeft, Search, Van } from '@element-plus/icons-vue'
|
||||
import {
|
||||
vehicleApi,
|
||||
personnelApi,
|
||||
@@ -508,7 +514,15 @@ import { pickBxData, pickBxPageResult } from '@/utils/http/bx'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { formatDateTime } from '@/utils/format'
|
||||
import { formatPlVehiclePlateDisplay, normalizePlPersonnelSummaryDisplay } from '@/utils/pl-display'
|
||||
import { firstPhotoUrl, resolvePhotoDisplayUrl } from '@/utils/pl-photo'
|
||||
import {
|
||||
downloadListPhoto,
|
||||
firstPhotoUrl,
|
||||
previewListPhoto,
|
||||
resolvePhotoDisplayUrl
|
||||
} from '@/utils/pl-photo'
|
||||
|
||||
const handlePhotoPreview = (raw?: string | null) => previewListPhoto(raw)
|
||||
const handlePhotoDownload = (raw?: string | null) => downloadListPhoto(raw)
|
||||
import { ensureVehicleCertSlots } from '@/utils/pl-cert-slots'
|
||||
import {
|
||||
PL_VEHICLE_CERT_NAME_OPTIONS,
|
||||
@@ -1234,6 +1248,14 @@ onMounted(() => {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.pl-photo-thumb-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.pl-photo-thumb {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
@@ -1243,6 +1265,27 @@ onMounted(() => {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
background: #f8fafc;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pl-photo-download {
|
||||
position: absolute;
|
||||
right: -4px;
|
||||
bottom: -4px;
|
||||
z-index: 2;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
color: #1e293b;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #1ca851;
|
||||
border-color: #1ca851;
|
||||
background: #e6f8ed;
|
||||
}
|
||||
}
|
||||
|
||||
.pl-photo-thumb--empty {
|
||||
|
||||
Reference in new issue
Block a user