feat(web-admin): 三方车辆/人员粘贴识别弹窗与入口

共享识别预览弹窗,支持冲突三选一,并在三方车辆与三方驾押人员工具栏接入。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-07-25 12:54:50 +08:00
1 parent c60ebfc082
commit 6258821273
3 files changed
+460 -2

No files matched your search

+17 -1
View File
@@ -53,6 +53,13 @@
<el-button class="btn-main" type="primary" @click="handleAdd">
<el-icon><Plus /></el-icon>新增人员
</el-button>
<el-button
v-if="isCarrierPersonnel"
class="btn-ghost"
@click="pasteVisible = true"
>
<el-icon><DocumentCopy /></el-icon>粘贴识别
</el-button>
<el-button
class="btn-ghost"
:disabled="selectedRows.length !== 1"
@@ -337,13 +344,21 @@
<PlCertViewList :cert-list="viewDetail?.certList || []" layout="table" />
</template>
</SystemViewDialog>
<PlPasteRecognizeDialog
v-if="isCarrierPersonnel"
v-model:visible="pasteVisible"
mode="personnel-first"
@done="fetchData"
/>
</div>
</template>
<script setup lang="ts">
import { Check, Close, Delete, Edit, Plus, RefreshLeft, Search, User } from '@element-plus/icons-vue'
import { Check, Close, Delete, DocumentCopy, 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'
import PlCertViewList from '@/components/business/pl-cert-view-list/index.vue'
import PlPersonnelCertBadges from '@/components/business/pl-personnel-cert-badges/index.vue'
import SystemViewDialog, {
@@ -407,6 +422,7 @@ const submitLoading = ref(false)
const personnelRows = ref<Personnel[]>([])
const selectedRows = ref<Personnel[]>([])
const dialogVisible = ref(false)
const pasteVisible = ref(false)
const dialogTitle = ref('')
const formRef = ref()
const isEdit = ref(false)
+13 -1
View File
@@ -64,6 +64,9 @@
<el-button class="btn-main" type="primary" @click="handleAdd">
<el-icon><Plus /></el-icon>新增车辆
</el-button>
<el-button class="btn-ghost" @click="pasteVisible = true">
<el-icon><DocumentCopy /></el-icon>粘贴识别
</el-button>
<el-button
class="btn-ghost"
:disabled="selectedRows.length !== 1"
@@ -384,6 +387,13 @@
/>
</template>
</SystemViewDialog>
<PlPasteRecognizeDialog
v-model:visible="pasteVisible"
mode="vehicle-bundle"
:carrier-options="carrierList"
@done="fetchData"
/>
</div>
</template>
@@ -391,7 +401,7 @@
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
import ListQuickSearchInput from '@/components/business/list-quick-search-input/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, DocumentCopy, Edit, Plus, RefreshLeft, Search, Van } from '@element-plus/icons-vue'
import {
vehicleApi,
carrierApi,
@@ -406,6 +416,7 @@ import {
import PlVehicleCertPartTabs from '@/components/business/pl-vehicle-cert-part-tabs/index.vue'
import PlVehicleCertPersonnelTabs from '@/components/business/pl-vehicle-cert-personnel-tabs/index.vue'
import PlVehicleCertBadges from '@/components/business/pl-vehicle-cert-badges/index.vue'
import PlPasteRecognizeDialog from '@/components/business/pl-paste-recognize-dialog/index.vue'
import type { VehiclePersonnelViewRow } from '@/components/business/pl-vehicle-personnel-view-list/index.vue'
import SystemViewDialog, {
type ViewSection
@@ -459,6 +470,7 @@ const {
const personnelOptions = ref<Personnel[]>([])
const selectedRows = ref<Vehicle[]>([])
const dialogVisible = ref(false)
const pasteVisible = ref(false)
const dialogTitle = ref('')
const formRef = ref()
const isEdit = ref(false)