From fbd61debf50195b44fdbd6d55c79ecf91e21ce26 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Tue, 15 Sep 2026 19:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E8=A1=8C=E6=93=8D=E4=BD=9C=E6=94=B9=E4=B8=BA=E7=BA=AF=E6=96=87?= =?UTF-8?q?=E5=AD=97=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/DataTable.vue | 2 +- src/components/common/tableActions.ts | 3 --- src/modules/first-leg/views/FirstLegOrdersView.vue | 14 +++++++------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/common/DataTable.vue b/src/components/common/DataTable.vue index c0182a6..438411b 100644 --- a/src/components/common/DataTable.vue +++ b/src/components/common/DataTable.vue @@ -165,7 +165,7 @@ function setPage(value: number) {
- {{ action.label }} + {{ action.label }} … diff --git a/src/components/common/tableActions.ts b/src/components/common/tableActions.ts index a62dee6..68facc8 100644 --- a/src/components/common/tableActions.ts +++ b/src/components/common/tableActions.ts @@ -1,9 +1,6 @@ -import type { Component } from 'vue' - export interface TableAction { key: string label: string - icon?: Component disabled?: boolean loading?: boolean run: () => unknown diff --git a/src/modules/first-leg/views/FirstLegOrdersView.vue b/src/modules/first-leg/views/FirstLegOrdersView.vue index 1a6fea7..08f031a 100644 --- a/src/modules/first-leg/views/FirstLegOrdersView.vue +++ b/src/modules/first-leg/views/FirstLegOrdersView.vue @@ -2,7 +2,7 @@ import { computed, nextTick, onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue' import { useRoute, useRouter } from 'vue-router' import { ElMessage, ElMessageBox, type FormInstance, type FormItemRule, type FormRules, type UploadRequestOptions } from 'element-plus' -import { AlertTriangle, Box, ChevronDown, ChevronUp, Download, Eye, FilePlus2, FileText, GripVertical, ImagePlus, MapPin, PackageCheck, Pencil, Plus, RotateCcw, Send, SlidersHorizontal, Trash2, Upload } from '@lucide/vue' +import { AlertTriangle, Box, ChevronDown, ChevronUp, Download, FilePlus2, FileText, GripVertical, ImagePlus, MapPin, PackageCheck, Pencil, Plus, RotateCcw, Send, SlidersHorizontal, Trash2, Upload } from '@lucide/vue' import { FIRST_LEG_ORDER_STATUSES, type FirstLegOrderStatus } from '@chongchong/shared' import QueryToolbar, { type QueryField, type QueryModel } from '@/components/common/QueryToolbar.vue' import DataTable, { type DataTableColumn } from '@/components/common/DataTable.vue' @@ -1159,16 +1159,16 @@ async function autofillWarehouseSelections() { function getOrderRowActions(row: object): TableAction[] { const order = row as FirstLegOrder const actions: TableAction[] = [ - { key: 'detail', label: '详情', icon: Eye, run: () => openDetail(order) }, + { key: 'detail', label: '详情', run: () => openDetail(order) }, ] if (canConfirmInboundFee.value && order.businessSummary.customerFeeConfirmationRequired) { actions.push({ key: 'fee', label: '确认计费重', run: () => openFeeConfirmation(order) }) } if (canEditOrder.value && canClientEditFirstLegOrder(order.status)) { - actions.push({ key: 'edit', label: '编辑', icon: Pencil, loading: openingEditor.value, run: () => openEdit(order) }) + actions.push({ key: 'edit', label: '编辑', loading: openingEditor.value, run: () => openEdit(order) }) } if (eligibleCustomsDetail(order)) { - actions.push({ key: 'customs', label: '报关资料', icon: FileText, run: () => openCustomsDocuments(order) }) + actions.push({ key: 'customs', label: '报关资料', run: () => openCustomsDocuments(order) }) } return actions } @@ -1997,10 +1997,10 @@ async function searchOrders(model: QueryModel) {