feat(ui): 工作台界面全部替换为element plus

This commit is contained in:
sophie committed 2026-10-29 09:38:38 +08:00
1 parent 26d213c05b
commit d5f988a16c
38 files changed
+4501 -3087

No files matched your search

@@ -1,7 +1,7 @@
/**
* features/workspace/shipping-task-center/TaskTodoPanel.vue
* 用途:渲染统一 Gate 恢复卡片与 STP 履约待办说明(表单/弹窗入口)。
* 依赖:ProcessGateRecoveryCard、shipping.api、shipping-tasks.api、ManualUploadEvidenceDialog。
* 依赖:ProcessGateRecoveryCard、shipping.api、shipping-tasks.api、element-plus、ManualUploadEvidenceDialog。
* 逻辑:gateCanHandle 控制 Gate 卡写按钮;actionsExecutable 控制统一 action.code 写操作;
* hidePrimaryActions=true 时隐藏本卡按钮(订单处理工作台写入口仅 Footer);
* 系统 Worker / technical_auto_only 不计入人工阻断,避免「待处理事项」冒充系统等待。
@@ -9,6 +9,7 @@
<script setup lang="ts">
import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { ElButton } from 'element-plus';
import { useMessage } from '@/shared/composables/useMessage';
import ShippingCustomerConfirmDialog from '@/features/chat/components/ShippingCustomerConfirmDialog.vue';
import type {
@@ -363,31 +364,25 @@ async function runUnifiedAction(action: ShippingUnifiedAction) {
{{ $t('workspace.shippingNotice.todo.adminViewOnly') }}
</div>
<div v-else-if="backendPrimaryAction || backendSecondaryActions.length" class="mt-3 flex flex-wrap gap-2">
<button
<ElButton
v-if="backendPrimaryAction"
:key="backendPrimaryAction.code"
type="button"
class="rounded-xl px-3 py-1.5 text-sm font-medium transition-colors disabled:opacity-50"
:class="backendPrimaryAction.kind === 'terminate'
? 'bg-rose-600 text-white hover:bg-rose-700'
: backendPrimaryAction.kind === 'view'
? 'border border-default bg-surface text-secondary hover:bg-surface-soft'
: 'bg-brand-600 text-white hover:bg-brand-700'"
:disabled="!backendPrimaryAction.enabled || busyId === backendPrimaryAction.code"
:type="backendPrimaryAction.kind === 'terminate' ? 'danger' : backendPrimaryAction.kind === 'view' ? 'default' : 'primary'"
:disabled="!backendPrimaryAction.enabled"
:loading="busyId === backendPrimaryAction.code"
@click="runUnifiedAction(backendPrimaryAction)"
>
{{ backendPrimaryAction.label }}
</button>
<button
</ElButton>
<ElButton
v-for="action in backendSecondaryActions"
:key="action.code"
type="button"
class="rounded-xl border border-default bg-surface px-3 py-1.5 text-sm font-medium text-secondary transition-colors hover:bg-surface-soft disabled:opacity-50"
:disabled="!action.enabled || busyId === action.code"
:disabled="!action.enabled"
:loading="busyId === action.code"
@click="runUnifiedAction(action)"
>
{{ action.label }}
</button>
</ElButton>
</div>
<ManualUploadEvidenceDialog
v-model:open="manualUploadOpen"