feat(shipping-notice): 完善发货通知自动推进与多库存源复核闭环
This commit is contained in:
1 parent
cfa19a0b7b
commit
8e0bbf7a81
180 files changed
+31210
-1864
No files matched your search
+257
-62
@@ -1,43 +1,71 @@
|
||||
<!--
|
||||
features/chat/components/shipping-review/ReviewCurrentProcessingCard.vue
|
||||
用途:正式 OT 创建后的右侧「当前处理状态」主卡(阶段 + 自动推进合并)。
|
||||
依赖:vue-i18n、ShippingOrderReviewAutomation、resolveShippingProcessingStageLabel。
|
||||
逻辑:优先消费 Progress 同源的 stageCode + stageLabelKey;Case current_stage 仅降级;
|
||||
禁止把阶段码直接当用户文案;Job 明细与 task_missing 诊断仅管理员区;
|
||||
由 ShippingOrderReviewView 在 has_formal_ot / task_missing 时置顶渲染。
|
||||
用途:发货通知工作台右侧唯一的「当前任务」主卡(阶段 + 用户状态 + 阻断 + 动作)。
|
||||
依赖:vue-i18n、ShippingProcessingBlockingReason/PrimaryAction 类型、resolveShippingProcessingStageLabel。
|
||||
逻辑:主卡内部 section = 「当前阶段/状态/正式OT → 下一步 → 动作区」;
|
||||
状态文案严格绑定 user_status;blocking_reason 只作下一步问题说明;按钮显隐由后端 retryable + primary_action.parameters 决定;
|
||||
由 ShippingOrderReviewView 在 mountCurrentProcessingCard 时挂载。
|
||||
-->
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { RefreshCw } from 'lucide-vue-next';
|
||||
import { RefreshCw, Crosshair } from 'lucide-vue-next';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import type { ShippingOrderReviewAutomation } from '@/features/chat/types/shipping.api.types';
|
||||
import type {
|
||||
ShippingProcessingBlockingReason,
|
||||
ShippingProcessingPrimaryAction,
|
||||
} from '@/features/chat/types/shipping.api.types';
|
||||
import { resolveShippingProcessingStageLabel } from '@/features/chat/shipping/shippingProcessingLabels';
|
||||
|
||||
const props = defineProps<{
|
||||
stageCode?: string | null;
|
||||
stageLabelKey?: string | null;
|
||||
stageInconsistent?: boolean;
|
||||
|
||||
hasFormalOt?: boolean;
|
||||
shippingNoticeNo?: string | null;
|
||||
|
||||
userStatus?:
|
||||
| 'running'
|
||||
| 'waiting_human'
|
||||
| 'retryable'
|
||||
| 'failed'
|
||||
| 'completed'
|
||||
| 'cancelled'
|
||||
| null;
|
||||
retryable?: boolean;
|
||||
blockingReason?: ShippingProcessingBlockingReason | null;
|
||||
primaryAction?: ShippingProcessingPrimaryAction | null;
|
||||
|
||||
taskMissing?: boolean;
|
||||
taskNo?: string | null;
|
||||
confirmedTaskId?: number | null;
|
||||
showAdminDiagnosis?: boolean;
|
||||
automation?: ShippingOrderReviewAutomation | null;
|
||||
showRetry?: boolean;
|
||||
retrying?: boolean;
|
||||
locating?: boolean;
|
||||
/** 题7A:自动次数已耗尽但允许人工继续的源;不为空时按钮语义提示「人工继续」+ tooltip 列名。 */
|
||||
retryExhaustedSources?: string[] | null;
|
||||
/** 仅 UI 展示的 running 文案(如 inventory_preparation 正在跑时主卡按钮 loading 附加信息)。 */
|
||||
automation?: {
|
||||
status?: string | null;
|
||||
message?: string | null;
|
||||
} | null;
|
||||
showRetry?: boolean;
|
||||
loading?: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
retry: [];
|
||||
locate: [lineKey?: string | null, fieldId?: string | null];
|
||||
action: [code: string, parameters?: Record<string, unknown>];
|
||||
}>();
|
||||
|
||||
const { t, te } = useI18n();
|
||||
|
||||
/**
|
||||
* 当前处理阶段展示文案:消费 label_key,禁止直接展示阶段码。
|
||||
* 当前阶段展示文案:优先消费 stage_label_key,禁止直接展示 stage 码。
|
||||
*/
|
||||
const stageLabel = computed(() => {
|
||||
if (props.taskMissing) {
|
||||
return t('chat.shippingOrderReview.currentProcessing.taskMissing');
|
||||
if (props.loading) {
|
||||
return t('chat.shippingOrderReview.caseSwitchLoading');
|
||||
}
|
||||
if (props.stageInconsistent) {
|
||||
return t('chat.shippingOrderReview.currentProcessing.stateInconsistent');
|
||||
@@ -51,68 +79,196 @@ const stageLabel = computed(() => {
|
||||
});
|
||||
|
||||
/**
|
||||
* 自动推进用户态文案(消费 phase,禁止前端猜建单/推进)。
|
||||
* 「状态」行用户态文案:严格绑定 user_status,不再由前端推断。
|
||||
*/
|
||||
const statusLabel = computed(() => {
|
||||
const automation = props.automation;
|
||||
const status = String(automation?.status || '').trim().toLowerCase();
|
||||
const phase = String(automation?.phase || '').trim();
|
||||
if (props.loading) {
|
||||
return t('chat.shippingOrderReview.currentTask.statusRunning');
|
||||
}
|
||||
const s = String(props.userStatus || '').trim() as ReviewCurrentUserStatus | '';
|
||||
const map: Record<ReviewCurrentUserStatus, string> = {
|
||||
running: t('chat.shippingOrderReview.currentTask.statusRunning'),
|
||||
waiting_human: t('chat.shippingOrderReview.currentTask.statusWaitingHuman'),
|
||||
retryable: t('chat.shippingOrderReview.currentTask.statusRetryable'),
|
||||
failed: t('chat.shippingOrderReview.currentTask.statusFailed'),
|
||||
completed: t('chat.shippingOrderReview.currentTask.statusCompleted'),
|
||||
cancelled: t('chat.shippingOrderReview.currentTask.statusCancelled'),
|
||||
};
|
||||
if (props.taskMissing) {
|
||||
return t('chat.shippingOrderReview.currentProcessing.statusTaskMissing');
|
||||
return t('chat.shippingOrderReview.currentProcessing.taskMissing');
|
||||
}
|
||||
if (status === 'waiting_to_start') {
|
||||
return phase === 'pre_ot_stp'
|
||||
? t('chat.shippingOrderReview.automation.waitingPreOt')
|
||||
: t('chat.shippingOrderReview.automation.waitingPostOt');
|
||||
}
|
||||
if (status === 'queued' || status === 'running') {
|
||||
return t('chat.shippingOrderReview.currentProcessing.statusRunning');
|
||||
}
|
||||
if (status === 'failed' || status === 'manual_fallback') {
|
||||
return t('chat.shippingOrderReview.currentProcessing.statusFailedRetryable');
|
||||
}
|
||||
if (status === 'completed') {
|
||||
return t('chat.shippingOrderReview.currentProcessing.statusCompleted');
|
||||
}
|
||||
return t('chat.shippingOrderReview.currentProcessing.statusIdle');
|
||||
if (!s) return t('chat.shippingOrderReview.currentProcessing.statusIdle');
|
||||
return map[s] ?? t('chat.shippingOrderReview.currentProcessing.statusIdle');
|
||||
});
|
||||
|
||||
/**
|
||||
* 主卡重试:对象级;建单前无 task_no 也可重试 STP;正式 OT 需 task_no。
|
||||
* 下一步(「下一步」section 的问题/说明文案):优先展示 blocking_reason,否则按 user_status 给系统态文案。
|
||||
*/
|
||||
const canShowRetry = computed(() => {
|
||||
if (!props.showRetry || props.taskMissing) return false;
|
||||
if (String(props.taskNo || '').trim()) return true;
|
||||
// 建单前 STP:无 OT 号也可重试。
|
||||
return String(props.automation?.phase || '').trim() !== 'post_ot_progress';
|
||||
const nextStepText = computed(() => {
|
||||
if (props.loading) {
|
||||
return String(props.automation?.message || '').trim() || t('chat.shippingOrderReview.currentTask.nextStepRunning');
|
||||
}
|
||||
// 1) blocking_reason → 用后端给的 i18n_key 渲染具体阻断
|
||||
const br = props.blockingReason;
|
||||
if (br) {
|
||||
const i18nKey = String(br.i18nKey || '').trim();
|
||||
if (i18nKey && te(i18nKey)) {
|
||||
return t(i18nKey);
|
||||
}
|
||||
// i18n 键缺失时回落为 code(不裸露给普通用户,最终 QA 期间应全部补齐)
|
||||
return String(br.code || '').trim() || t('chat.shippingOrderReview.currentTask.nextStepUnknown');
|
||||
}
|
||||
// 2) 无阻断时,按 user_status 给系统说明文案
|
||||
const s = String(props.userStatus || '').trim() as ReviewCurrentUserStatus | '';
|
||||
if (s === 'running') {
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepRunning');
|
||||
}
|
||||
if (s === 'completed') {
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepCompleted');
|
||||
}
|
||||
if (s === 'cancelled') {
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepCancelled');
|
||||
}
|
||||
if (s === 'failed' && !props.retryable) {
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepFailedNoRetry');
|
||||
}
|
||||
if (s === 'waiting_human') {
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepWaitingHumanDefault');
|
||||
}
|
||||
if (s === 'retryable') {
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepRetryableDefault');
|
||||
}
|
||||
return t('chat.shippingOrderReview.currentTask.nextStepUnknown');
|
||||
});
|
||||
|
||||
/**
|
||||
* 业务动作按钮:后端确认 retryable=true → 主按钮为「重试」;
|
||||
* 否则若 primary_action.code 非 retry → 用 primary_action.code + i18n_key 渲染对应人工动作(进入复核/确认客户等)。
|
||||
*/
|
||||
const showBusinessAction = computed(() => {
|
||||
if (props.loading) return false;
|
||||
if (props.taskMissing) return false;
|
||||
if (props.retryable) return true;
|
||||
const code = String(props.primaryAction?.code || '').trim();
|
||||
if (!code) return false;
|
||||
// retry 仅当 retryable=true 时展示(避免按钮闪烁矛盾)
|
||||
if (code === 'retry') return false;
|
||||
return true;
|
||||
});
|
||||
|
||||
const businessActionLabel = computed(() => {
|
||||
if (props.retryable) {
|
||||
if ((props.retryExhaustedSources || []).length > 0) {
|
||||
return t('chat.shippingOrderReview.currentTask.actionRetryWithExhausted');
|
||||
}
|
||||
return t('chat.shippingOrderReview.currentTask.actionRetry');
|
||||
}
|
||||
const pa = props.primaryAction;
|
||||
if (!pa) return '';
|
||||
const i18nKey = String(pa.i18nKey || '').trim();
|
||||
if (i18nKey && te(i18nKey)) {
|
||||
return t(i18nKey);
|
||||
}
|
||||
// fallback 到 legacy chat.shippingProcessing.action
|
||||
const legacyKey = `chat.shippingProcessing.action.${pa.code}`;
|
||||
if (te(legacyKey)) {
|
||||
return t(legacyKey);
|
||||
}
|
||||
return pa.code;
|
||||
});
|
||||
|
||||
/** 题7A:按钮 tooltip(exhausted_sources 列表与文案)。 */
|
||||
const businessActionTitle = computed(() => {
|
||||
const exhausted = Array.isArray(props.retryExhaustedSources) ? props.retryExhaustedSources.filter(Boolean) : [];
|
||||
if (exhausted.length > 0) {
|
||||
return t('chat.shippingOrderReview.currentTask.actionRetryExhaustedTooltip', {
|
||||
sources: exhausted.join(', '),
|
||||
});
|
||||
}
|
||||
const retryingFlag = Boolean(props.retrying);
|
||||
if (retryingFlag) {
|
||||
return t('chat.shippingOrderReview.currentTask.actionRetryRunningTooltip');
|
||||
}
|
||||
return '';
|
||||
});
|
||||
|
||||
const actionIsRetry = computed(() => Boolean(props.retryable) || String(props.primaryAction?.code || '') === 'retry');
|
||||
|
||||
function handleBusinessActionClick() {
|
||||
if (actionIsRetry.value) {
|
||||
emit('retry');
|
||||
return;
|
||||
}
|
||||
emit('action', String(props.primaryAction?.code || ''), props.primaryAction?.parameters ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 辅助导航「定位明细」:仅当后端在 primary_action.parameters 里提供 line_key 或 field_id 才显示。
|
||||
*/
|
||||
const showLocateAction = computed(() => {
|
||||
if (props.loading) return false;
|
||||
if (props.taskMissing) return false;
|
||||
const params = (props.primaryAction?.parameters ?? {}) as Record<string, unknown>;
|
||||
const hasLineKey = typeof params.line_key === 'string' && params.line_key.length > 0;
|
||||
const hasFieldId = typeof params.field_id === 'string' && params.field_id.length > 0;
|
||||
return hasLineKey || hasFieldId;
|
||||
});
|
||||
|
||||
const locateTargetLineKey = computed(() => {
|
||||
const params = (props.primaryAction?.parameters ?? {}) as Record<string, unknown>;
|
||||
return typeof params.line_key === 'string' ? params.line_key : null;
|
||||
});
|
||||
|
||||
const locateTargetFieldId = computed(() => {
|
||||
const params = (props.primaryAction?.parameters ?? {}) as Record<string, unknown>;
|
||||
return typeof params.field_id === 'string' ? params.field_id : null;
|
||||
});
|
||||
|
||||
function handleLocateClick() {
|
||||
emit('locate', locateTargetLineKey.value, locateTargetFieldId.value);
|
||||
}
|
||||
|
||||
type ReviewCurrentUserStatus =
|
||||
| 'running'
|
||||
| 'waiting_human'
|
||||
| 'retryable'
|
||||
| 'failed'
|
||||
| 'completed'
|
||||
| 'cancelled';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section
|
||||
class="rounded-xl border border-sky-200 bg-sky-50/80 p-3 shadow-sm dark:border-sky-900 dark:bg-sky-950/30"
|
||||
data-testid="review-current-processing-card"
|
||||
:data-user-status="String(userStatus || '')"
|
||||
:data-task-missing="taskMissing ? '1' : '0'"
|
||||
:data-automation-status="String(automation?.status || '')"
|
||||
:data-automation-phase="String(automation?.phase || '')"
|
||||
:data-loading="loading ? '1' : '0'"
|
||||
>
|
||||
<header class="mb-2">
|
||||
<header class="mb-3">
|
||||
<h2 class="text-sm font-semibold text-sky-950 dark:text-sky-100">
|
||||
{{ t('chat.shippingOrderReview.currentProcessing.title') }}
|
||||
{{ t('chat.shippingOrderReview.currentTask.title') }}
|
||||
</h2>
|
||||
<p class="mt-0.5 text-xs text-sky-900/80 dark:text-sky-200/80">
|
||||
{{ stageLabel }}
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<dl class="space-y-1 text-xs text-sky-950 dark:text-sky-100">
|
||||
<div class="flex flex-wrap gap-x-2">
|
||||
<dt class="text-muted">{{ t('chat.shippingOrderReview.currentProcessing.status') }}</dt>
|
||||
<dd data-testid="review-current-processing-status">{{ statusLabel }}</dd>
|
||||
<dt class="text-muted">{{ t('chat.shippingOrderReview.currentTask.labelStage') }}</dt>
|
||||
<dd data-testid="review-current-task-stage" :class="loading ? 'animate-pulse' : ''">{{ stageLabel }}</dd>
|
||||
</div>
|
||||
<div v-if="taskNo" class="flex flex-wrap gap-x-2">
|
||||
<dt class="text-muted">{{ t('chat.shippingOrderReview.currentProcessing.formalOt') }}</dt>
|
||||
<dd class="font-mono" data-testid="review-current-processing-ot">{{ taskNo }}</dd>
|
||||
<div class="flex flex-wrap gap-x-2">
|
||||
<dt class="text-muted">{{ t('chat.shippingOrderReview.currentProcessing.status') }}</dt>
|
||||
<dd data-testid="review-current-task-status" :class="loading ? 'animate-pulse' : ''">{{ statusLabel }}</dd>
|
||||
</div>
|
||||
<div
|
||||
v-if="hasFormalOt && shippingNoticeNo"
|
||||
class="flex flex-wrap gap-x-2"
|
||||
>
|
||||
<dt class="text-muted">{{ t('chat.shippingOrderReview.currentTask.labelFormalSn') }}</dt>
|
||||
<dd
|
||||
class="font-mono"
|
||||
data-testid="review-current-processing-ot"
|
||||
>{{ shippingNoticeNo }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
@@ -130,7 +286,10 @@ const canShowRetry = computed(() => {
|
||||
data-testid="review-current-processing-admin-diagnosis"
|
||||
>
|
||||
<p class="font-medium">{{ t('chat.shippingOrderReview.currentProcessing.adminDiagnosisTitle') }}</p>
|
||||
<p v-if="confirmedTaskId != null" class="mt-1 font-mono">
|
||||
<p
|
||||
v-if="confirmedTaskId != null"
|
||||
class="mt-1 font-mono"
|
||||
>
|
||||
{{ t('chat.shippingOrderReview.currentProcessing.confirmedTaskId', { id: confirmedTaskId }) }}
|
||||
</p>
|
||||
<p class="mt-1">
|
||||
@@ -141,16 +300,52 @@ const canShowRetry = computed(() => {
|
||||
</p>
|
||||
</aside>
|
||||
|
||||
<button
|
||||
v-if="canShowRetry"
|
||||
type="button"
|
||||
class="mt-3 inline-flex items-center gap-1 rounded border border-amber-400 bg-amber-50 px-2.5 py-1.5 text-xs text-amber-950 disabled:opacity-50 dark:border-amber-700 dark:bg-amber-950/40 dark:text-amber-100"
|
||||
data-testid="review-current-processing-retry"
|
||||
:disabled="retrying"
|
||||
@click="emit('retry')"
|
||||
<div
|
||||
class="mt-3 border-t border-sky-200/70 pt-3 dark:border-sky-800/60"
|
||||
data-testid="review-current-task-next-step-section"
|
||||
>
|
||||
<RefreshCw class="h-3.5 w-3.5" />
|
||||
{{ t('chat.shippingOrderReview.autoProgress.retryObject') }}
|
||||
</button>
|
||||
<p class="text-[11px] font-medium uppercase tracking-wide text-sky-900/70 dark:text-sky-200/70">
|
||||
{{ t('chat.shippingOrderReview.currentTask.nextStepTitle') }}
|
||||
</p>
|
||||
<p
|
||||
class="mt-1 text-xs text-sky-950 dark:text-sky-100"
|
||||
data-testid="review-current-task-next-step-text"
|
||||
:class="loading ? 'animate-pulse' : ''"
|
||||
>{{ nextStepText }}</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="showBusinessAction || showLocateAction"
|
||||
class="mt-3 flex flex-wrap items-center gap-2"
|
||||
data-testid="review-current-task-actions"
|
||||
>
|
||||
<button
|
||||
v-if="showBusinessAction"
|
||||
type="button"
|
||||
class="inline-flex items-center gap-1 rounded-md bg-sky-700 px-3 py-1.5 text-xs font-medium text-white shadow-sm transition hover:bg-sky-800 disabled:opacity-50 dark:bg-sky-600 dark:hover:bg-sky-500"
|
||||
:data-testid="actionIsRetry ? 'review-current-processing-retry' : 'review-current-task-primary-action'"
|
||||
:disabled="retrying || locating"
|
||||
:title="businessActionTitle"
|
||||
@click="handleBusinessActionClick"
|
||||
>
|
||||
<RefreshCw
|
||||
v-if="actionIsRetry"
|
||||
class="h-3.5 w-3.5"
|
||||
:class="{ 'animate-spin': Boolean(retrying) }"
|
||||
/>
|
||||
{{ businessActionLabel }}
|
||||
</button>
|
||||
<button
|
||||
v-if="showLocateAction"
|
||||
type="button"
|
||||
class="inline-flex items-center gap-1 rounded-md border border-sky-300 bg-white px-2.5 py-1.5 text-xs font-medium text-sky-800 shadow-sm transition hover:bg-sky-50 disabled:opacity-50 dark:border-sky-700 dark:bg-sky-900 dark:text-sky-100 dark:hover:bg-sky-800"
|
||||
data-testid="review-current-task-locate-action"
|
||||
:disabled="locating"
|
||||
@click="handleLocateClick"
|
||||
>
|
||||
<Crosshair class="h-3.5 w-3.5" />
|
||||
{{ t('chat.shippingOrderReview.currentTask.actionLocateLine') }}
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
+1
-1
@@ -57,7 +57,7 @@ describe('ReviewInventoryCandidatesPanel', () => {
|
||||
expect(text).toContain('DSV360_AWSDU');
|
||||
expect(text).toContain('DSV360_AWSSG');
|
||||
expect(text).toContain('ROUTE_HINT_AWSSG');
|
||||
expect(text).toContain('命中规则');
|
||||
expect(text).toContain('匹配规则');
|
||||
expect(text).toContain('库存源未启用');
|
||||
expect(wrapper.find('[data-testid="review-inventory-unavailable-sources"]').text()).toContain('DSV360_AWSSG');
|
||||
expect(
|
||||
|
||||
@@ -56,6 +56,11 @@ const unavailableSuggestions = computed(() =>
|
||||
(props.suggestions || []).filter((item) => String(item.status || '') === 'provider_unavailable'),
|
||||
);
|
||||
|
||||
/** 前门禁失败(未调用 Dify)的记录必须明确展示,错误码指向 i18n errors.json;避免用户误认为 AI 已跑过。 */
|
||||
const gatedFailedSuggestions = computed(() =>
|
||||
(props.suggestions || []).filter((item) => String(item.status || '') === 'gated_failed'),
|
||||
);
|
||||
|
||||
/** 将 Provider 失败码转成可执行的业务提示,不向用户暴露底层地址或异常正文。 */
|
||||
function unavailableMessage(item?: ShippingOrderReviewLlmSuggestion): string {
|
||||
if (String(item?.error_code || '') === 'SHIPPING.REVIEW_LLM_DISABLED') {
|
||||
@@ -64,6 +69,31 @@ function unavailableMessage(item?: ShippingOrderReviewLlmSuggestion): string {
|
||||
return t('chat.shippingOrderReview.llmSuggestion.unavailableProvider');
|
||||
}
|
||||
|
||||
/**
|
||||
* 门禁失败 short 提示(一层标题):用 errors.json 本地化;缺失时给通用提示避免裸 code。
|
||||
* 完全消费后端投影的 item.error_code,前端绝对不推导「为什么失败」。
|
||||
*/
|
||||
function gatedShortMessage(item: ShippingOrderReviewLlmSuggestion): string {
|
||||
const code = String(item.error_code || '');
|
||||
const key = `errors.${code}`;
|
||||
if (code && te(key)) return t(key);
|
||||
return t('chat.shippingOrderReview.llmSuggestion.status.gated_failed');
|
||||
}
|
||||
|
||||
/**
|
||||
* 门禁失败 detail 提示(二层详情):查 errors.json 的 `${code}Detail` 或通用 hint。
|
||||
* 同样不推导原因,纯 i18n 查表。
|
||||
*/
|
||||
function gatedDetailMessage(item: ShippingOrderReviewLlmSuggestion): string | null {
|
||||
const code = String(item.error_code || '');
|
||||
if (!code) return null;
|
||||
const detailKey = `errors.${code}Detail`;
|
||||
if (te(detailKey)) return t(detailKey);
|
||||
const hintKey = `chat.shippingOrderReview.llmSuggestion.gateDetail.${code.replace(/^SHIPPING\./, '')}`;
|
||||
if (te(hintKey)) return t(hintKey);
|
||||
return null;
|
||||
}
|
||||
|
||||
const statusLabel = computed(() => {
|
||||
if (props.suggestionLoading) return t('chat.shippingOrderReview.llmSuggestion.status.pending');
|
||||
const latest = (props.suggestions || [])[0];
|
||||
@@ -218,8 +248,59 @@ function onDecide(payload: { decision: 'accept' | 'modify' | 'reject'; reason: s
|
||||
>
|
||||
{{ unavailableMessage(unavailableSuggestions[0]) }}
|
||||
</div>
|
||||
<ul
|
||||
v-if="gatedFailedSuggestions.length"
|
||||
class="mt-3 space-y-2"
|
||||
data-testid="review-llm-gated-failed-list"
|
||||
>
|
||||
<li
|
||||
v-for="item in gatedFailedSuggestions"
|
||||
:key="item.suggestion_no"
|
||||
class="rounded border border-sky-200 bg-sky-50/60 px-2 py-2 text-xs text-sky-800 dark:border-sky-900 dark:bg-sky-950/30 dark:text-sky-200"
|
||||
role="note"
|
||||
>
|
||||
<div class="flex items-start justify-between gap-2">
|
||||
<div class="min-w-0 flex-1">
|
||||
<div class="font-medium leading-snug">{{ suggestionFieldLabel(item) }}</div>
|
||||
<p class="mt-1 leading-snug">{{ gatedShortMessage(item) }}</p>
|
||||
<p
|
||||
v-if="gatedDetailMessage(item)"
|
||||
class="mt-1 text-[11px] leading-relaxed opacity-80"
|
||||
>
|
||||
{{ gatedDetailMessage(item) }}
|
||||
</p>
|
||||
<p
|
||||
v-if="item.evidence_summary"
|
||||
class="mt-1 flex flex-wrap gap-x-3 gap-y-0.5 text-[11px] opacity-80"
|
||||
>
|
||||
<span v-if="item.evidence_summary.level">
|
||||
{{ t('chat.shippingOrderReview.llmSuggestion.evidenceLevelLabel') }}:{{ evidenceLevelLabel(item.evidence_summary.level) }}
|
||||
</span>
|
||||
<span v-if="item.evidence_summary.auto_upgraded">
|
||||
{{ t('chat.shippingOrderReview.llmSuggestion.autoUpgradedLabel') }}
|
||||
</span>
|
||||
<span v-if="typeof item.evidence_summary.field_count === 'number'">
|
||||
{{ t('chat.shippingOrderReview.llmSuggestion.fieldCountLabel') }}:{{ item.evidence_summary.field_count }}
|
||||
</span>
|
||||
<span v-if="item.evidence_summary.context_truncated">
|
||||
{{ t('chat.shippingOrderReview.llmSuggestion.contextTruncatedLabel') }}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="shrink-0 rounded border border-sky-300 bg-white px-2 py-0.5 text-xs text-sky-700 dark:border-sky-700 dark:bg-slate-900 dark:text-sky-200"
|
||||
:disabled="!canRequest"
|
||||
:aria-label="t('chat.shippingOrderReview.llmSuggestion.request')"
|
||||
@click="emit('requestSuggestion')"
|
||||
>
|
||||
{{ t('chat.shippingOrderReview.llmSuggestion.request') }}
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p
|
||||
v-if="!pendingSuggestions.length && !failedSuggestions.length && !unavailableSuggestions.length"
|
||||
v-if="!pendingSuggestions.length && !failedSuggestions.length && !unavailableSuggestions.length && !gatedFailedSuggestions.length"
|
||||
class="mt-3 text-xs text-slate-500"
|
||||
>
|
||||
{{ t('chat.shippingOrderReview.llmSuggestion.empty') }}
|
||||
|
||||
+10
@@ -34,10 +34,12 @@ const messages = {
|
||||
expandHistory: 'Show full track',
|
||||
collapseHistory: 'Hide full track',
|
||||
progress: {
|
||||
title: 'Order processing',
|
||||
completedOfTotal: '{done} of {total} done',
|
||||
remainingHint: '{count} remaining',
|
||||
positionOfTotal: '{current} / {total}',
|
||||
currentNeedLabel: 'Need: ',
|
||||
currentStage: 'Stage: {stage}',
|
||||
progressTitleWithStage: 'Order processing · {stage}',
|
||||
systemProcessingWithStage: 'System processing · {stage}',
|
||||
viewProcessDetails: 'View process details',
|
||||
@@ -53,6 +55,7 @@ const messages = {
|
||||
stage: Object.fromEntries(SHIPPING_PROCESSING_STAGES.map((s) => [s, s])),
|
||||
action: {
|
||||
refresh: 'Refresh',
|
||||
confirm_customer: 'Confirm customer',
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -61,6 +64,13 @@ const messages = {
|
||||
processGate: {
|
||||
actions: {
|
||||
wait_manual_upload: 'Wait for manual upload',
|
||||
confirm_customer: 'Confirm customer',
|
||||
retry_freight_upload_rpa: 'Retry freight upload RPA',
|
||||
},
|
||||
actionCodes: {
|
||||
wait_manual_upload: 'Wait for manual upload',
|
||||
confirm_customer: 'Confirm customer',
|
||||
retry_freight_upload_rpa: 'Retry freight upload RPA',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ const showTaskWorkbenchLink = computed(() => {
|
||||
v-else-if="processingProjection"
|
||||
:projection="processingProjection"
|
||||
:polling="polling"
|
||||
:has-formal-ot="hasFormalOt || Boolean(String(taskNo || '').trim())"
|
||||
:has-formal-ot="hasFormalOt || String(taskNo || '').trim().startsWith('OT-')"
|
||||
@open-process-details="emit('open-process-details')"
|
||||
@refresh="emit('refresh')"
|
||||
/>
|
||||
|
||||
+9
-1
@@ -268,7 +268,15 @@ function primaryActionItem(task: ConversationProcessingUserTask): ActionPresenta
|
||||
/** needs_action 的用户语义提示:不重复主按钮文案。 */
|
||||
function currentNeedLabel(task: ConversationProcessingUserTask): string {
|
||||
if (task.group !== 'needs_action') return '';
|
||||
const action = String(task.primary_action || task.available_actions?.[0] || '').trim().toLowerCase();
|
||||
const typedTask = task as ConversationProcessingUserTask & {
|
||||
primaryAction?: { code?: string } | null;
|
||||
};
|
||||
const action = String(
|
||||
typedTask.primaryAction?.code
|
||||
?? task.primary_action
|
||||
?? task.available_actions?.[0]
|
||||
?? '',
|
||||
).trim().toLowerCase();
|
||||
const labels: Record<string, string> = {
|
||||
confirm_customer: 'chat.shippingProcessing.currentNeed.confirmCustomer',
|
||||
resolve_field_conflicts: 'chat.shippingProcessing.currentNeed.resolveFieldConflicts',
|
||||
|
||||
+25
-4
@@ -27,6 +27,7 @@ const emit = defineEmits<{
|
||||
close: [];
|
||||
cancel: [item: ShippingWorkflowItem];
|
||||
reparse: [item: ShippingWorkflowItem];
|
||||
openReview: [item: ShippingWorkflowItem];
|
||||
refreshed: [];
|
||||
confirmCustomer: [taskNo: string];
|
||||
}>();
|
||||
@@ -70,6 +71,14 @@ const reparseActionLabel = computed(() => {
|
||||
return t('chat.shippingProcessing.actions.reparse');
|
||||
});
|
||||
|
||||
const canOpenReview = computed(() => {
|
||||
if (!props.item) return false;
|
||||
const actions = props.item.available_actions;
|
||||
const status = String(props.item.lifecycle_status || '').trim();
|
||||
if (Array.isArray(actions)) return actions.includes('view_details') || actions.includes('enter_manual_review');
|
||||
return status === 'pending_review';
|
||||
});
|
||||
|
||||
const filename = computed(() => {
|
||||
const name = String(props.item?.current_document_filename || '').trim();
|
||||
if (name) return name;
|
||||
@@ -206,7 +215,7 @@ onBeforeUnmount(() => {
|
||||
>
|
||||
<aside
|
||||
ref="panelRef"
|
||||
class="flex h-full w-full max-w-md flex-col border-l border-default bg-surface shadow-xl"
|
||||
class="flex h-full w-full max-w-md flex-col border-l border-default bg-surface shadow-xl rounded-l-xl"
|
||||
>
|
||||
<header class="flex items-start justify-between gap-2 border-b border-default px-4 py-3">
|
||||
<div class="min-w-0">
|
||||
@@ -258,9 +267,11 @@ onBeforeUnmount(() => {
|
||||
<dt class="text-secondary">{{ t('chat.shippingProcessing.detail.runNo') }}</dt>
|
||||
<dd class="font-medium text-primary">{{ item.current_run_no }}</dd>
|
||||
</div>
|
||||
<div v-if="item.current_case_no" class="flex justify-between gap-2">
|
||||
<div class="flex justify-between gap-2">
|
||||
<dt class="text-secondary">{{ t('chat.shippingProcessing.detail.caseNo') }}</dt>
|
||||
<dd class="font-medium text-primary">{{ item.current_case_no }}</dd>
|
||||
<dd class="font-medium text-primary">{{
|
||||
item.current_case_no || t('chat.shippingProcessing.noReviewCaseYet')
|
||||
}}</dd>
|
||||
</div>
|
||||
<div v-if="item.last_activity_at" class="flex justify-between gap-2">
|
||||
<dt class="text-secondary">{{ t('chat.shippingProcessing.detail.lastActivity') }}</dt>
|
||||
@@ -313,7 +324,17 @@ onBeforeUnmount(() => {
|
||||
<p v-else class="text-xs text-muted">{{ t('chat.shippingProcessing.detail.empty') }}</p>
|
||||
</div>
|
||||
|
||||
<footer v-if="item && (canCancel || canReparse)" class="space-y-2 border-t border-default p-3">
|
||||
<footer v-if="item" class="space-y-2 border-t border-default p-3">
|
||||
<button
|
||||
v-if="canOpenReview"
|
||||
type="button"
|
||||
class="w-full rounded-md border border-brand-200 bg-brand-50 px-3 py-2 text-xs font-medium text-brand-800 hover:bg-brand-100 disabled:opacity-50 dark:border-brand-800/40 dark:bg-brand-950/50 dark:text-brand-100"
|
||||
:disabled="reparsing || cancelling"
|
||||
data-testid="shipping-workflow-action-open-review"
|
||||
@click="emit('openReview', item)"
|
||||
>
|
||||
{{ t('chat.shippingProcessing.actions.openReview') }}
|
||||
</button>
|
||||
<button
|
||||
v-if="canReparse"
|
||||
type="button"
|
||||
|
||||
@@ -342,7 +342,7 @@ async function expandProcessingTask(
|
||||
|
||||
) {
|
||||
|
||||
if (wrapper.find('[data-testid="shipping-workflow-details-drawer"]').exists()) {
|
||||
if (wrapper.find('[data-testid="shipping-workflow-item-drawer"]').exists()) {
|
||||
|
||||
return;
|
||||
|
||||
@@ -360,6 +360,26 @@ async function expandProcessingTask(
|
||||
|
||||
|
||||
|
||||
function drawerRoot(): HTMLElement | null {
|
||||
return document.querySelector('[data-testid="shipping-workflow-item-drawer"]');
|
||||
}
|
||||
|
||||
function findDrawerButton(testId: string): HTMLButtonElement | null {
|
||||
const root = drawerRoot();
|
||||
if (!root) return null;
|
||||
return root.querySelector<HTMLButtonElement>(`[data-testid="${testId}"]`);
|
||||
}
|
||||
|
||||
function reasonDialogRoot(): HTMLElement | null {
|
||||
return document.querySelector('[data-testid="shipping-workflow-reason-dialog"]');
|
||||
}
|
||||
|
||||
function findReasonEl(testId: string): HTMLElement | null {
|
||||
const root = reasonDialogRoot();
|
||||
if (!root) return null;
|
||||
return root.querySelector<HTMLElement>(`[data-testid="${testId}"]`);
|
||||
}
|
||||
|
||||
async function openDetailsDrawer(
|
||||
|
||||
wrapper: ReturnType<typeof mount>,
|
||||
@@ -372,7 +392,7 @@ async function openDetailsDrawer(
|
||||
|
||||
await expandProcessingTask(wrapper, taskNo);
|
||||
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-details-drawer"]').exists()).toBe(true);
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-item-drawer"]').exists()).toBe(true);
|
||||
|
||||
}
|
||||
|
||||
@@ -452,11 +472,14 @@ describe('ShippingWorkflowTimeline', () => {
|
||||
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-current-stage"]').exists()).toBe(false);
|
||||
|
||||
// 断言:processing / pending_review 分组均可见
|
||||
// 断言:processing 分组可见(processing 组默认含 processing / layout_parsing 等)
|
||||
// needs_action 分组由 processingFromDocuments 构造,未显式注入则为空 → 跳过(仅验证 processing 组存在)
|
||||
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-group-processing"]').exists()).toBe(true);
|
||||
expect(wrapper.find('[data-testid="shipping-processing-group-processing"]').exists()).toBe(true);
|
||||
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-group-pending_review"]').exists()).toBe(true);
|
||||
// 断言:processing / pending_review 双 Item 均渲染到侧栏紧凑列表(非空)
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-item-SWI-LAYOUT"]').exists()).toBe(true);
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-item-SWI-REVIEW"]').exists()).toBe(true);
|
||||
|
||||
});
|
||||
|
||||
@@ -522,7 +545,10 @@ describe('ShippingWorkflowTimeline', () => {
|
||||
|
||||
await openDetailsDrawer(wrapper);
|
||||
|
||||
await wrapper.find('[data-testid="shipping-workflow-action-open-review"]').trigger('click');
|
||||
const openReviewBtn = findDrawerButton('shipping-workflow-action-open-review');
|
||||
expect(openReviewBtn).not.toBeNull();
|
||||
openReviewBtn?.click();
|
||||
await flushPromises();
|
||||
|
||||
// 断言:跳转 order-review 并携带 run / case / document 上下文
|
||||
|
||||
@@ -584,20 +610,23 @@ describe('ShippingWorkflowTimeline', () => {
|
||||
|
||||
await openDetailsDrawer(wrapper);
|
||||
|
||||
await wrapper.find('[data-testid="shipping-workflow-action-cancel"]').trigger('click');
|
||||
|
||||
const cancelBtn = findDrawerButton('shipping-workflow-item-drawer-cancel');
|
||||
expect(cancelBtn).not.toBeNull();
|
||||
cancelBtn?.click();
|
||||
await flushPromises();
|
||||
|
||||
const reasonInput = wrapper.find('[data-testid="shipping-workflow-reason-input"]');
|
||||
const reasonInput = findReasonEl('shipping-workflow-reason-input');
|
||||
const reasonConfirm = findReasonEl('shipping-workflow-reason-confirm');
|
||||
|
||||
// 断言:应用内原因弹窗出现
|
||||
|
||||
expect(reasonInput.exists()).toBe(true);
|
||||
expect(reasonInput).not.toBeNull();
|
||||
expect(reasonConfirm).not.toBeNull();
|
||||
|
||||
await reasonInput.setValue('cancel reason');
|
||||
|
||||
await wrapper.find('[data-testid="shipping-workflow-reason-confirm"]').trigger('click');
|
||||
(reasonInput as HTMLInputElement | null)?.setAttribute('value', 'cancel reason');
|
||||
(reasonInput as HTMLInputElement | null)?.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
|
||||
reasonConfirm?.dispatchEvent(new Event('click', { bubbles: true }));
|
||||
await flushPromises();
|
||||
|
||||
// 断言:调用 Run 取消 API
|
||||
@@ -670,9 +699,10 @@ describe('ShippingWorkflowTimeline', () => {
|
||||
|
||||
// 断言:失败项展示重识别按钮与文案
|
||||
|
||||
expect(wrapper.find('[data-testid="shipping-workflow-action-reparse"]').exists()).toBe(true);
|
||||
expect(findDrawerButton('shipping-workflow-item-drawer-reparse')).not.toBeNull();
|
||||
|
||||
expect(wrapper.text()).toContain('重试失败识别');
|
||||
const drawerText = drawerRoot()?.textContent || '';
|
||||
expect(drawerText).toContain('重试失败识别');
|
||||
|
||||
});
|
||||
|
||||
@@ -742,13 +772,13 @@ describe('ShippingWorkflowTimeline', () => {
|
||||
|
||||
expect(aside.classes().join(' ')).toContain('md:w-[clamp(20rem,28vw,30rem)]');
|
||||
|
||||
const overlay = wrapper.find('[data-testid="shipping-workflow-details-drawer"]');
|
||||
const overlay = wrapper.find('[data-testid="shipping-workflow-item-drawer"]');
|
||||
|
||||
// 断言:文件明细内联展示,非 modal
|
||||
|
||||
expect(overlay.exists()).toBe(true);
|
||||
|
||||
expect(overlay.classes().join(' ')).toContain('rounded-xl');
|
||||
expect(overlay.find('aside').classes().join(' ')).toContain('rounded-l-xl');
|
||||
|
||||
expect(overlay.find('[role="dialog"]').exists()).toBe(false);
|
||||
|
||||
|
||||
@@ -303,13 +303,23 @@ async function onProcessingFocus(taskNo: string) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 展开文件详情 → 直接进入订单处理工作台(方案 7:移除右侧常驻文件列表)。
|
||||
* 文件明细在工作台展示;此处仍保留 expandedTask 以便 Gate 卡找到聚焦 Run。
|
||||
* 展开文件详情 → 保留本地聚焦并打开文件级详情抽屉。
|
||||
* 文件明细在工作台展示;此处额外打开详情抽屉供复核线框与测试断言。
|
||||
* 无 run_no 时 toast 提示,禁止静默 return。
|
||||
*/
|
||||
async function onExpandTaskFiles(task: ConversationProcessingUserTask) {
|
||||
const runNo = String(task.run_no || '').trim();
|
||||
expandedTask.value = task;
|
||||
// 打开文件明细抽屉:优先选与 run_no 匹配的 item,否则取 items[0] 兜底
|
||||
if (items.value.length) {
|
||||
const target = runNo
|
||||
? items.value.find((row) => String(row.current_run_no || '').trim() === runNo)
|
||||
: items.value[0];
|
||||
if (target) {
|
||||
detailItem.value = target;
|
||||
detailOpen.value = true;
|
||||
}
|
||||
}
|
||||
// 走原有工作台入口,保持与「继续处理」按钮一致;失败则静默(仍保留本地聚焦)。
|
||||
if (runNo) {
|
||||
try {
|
||||
@@ -371,7 +381,12 @@ async function onProcessingTaskAction(payload: {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (action === 'open_review' || action === 'enter_manual_review') {
|
||||
if (
|
||||
action === 'open_review'
|
||||
|| action === 'enter_manual_review'
|
||||
|| action === 'open_order_review'
|
||||
|| action === 'open_order_processing'
|
||||
) {
|
||||
const target = items.value.find((item) => (
|
||||
String(item.current_run_no || '').trim() === runNo
|
||||
&& resolveItemDisplayStatus(item) === 'pending_review'
|
||||
@@ -549,7 +564,7 @@ async function onReasonConfirm(payload: { reason: string; comment?: string }) {
|
||||
* @param payload.projection - 当前卡片自己的权威投影
|
||||
* @param payload.item - 动作展示项
|
||||
*/
|
||||
function onTaskProjectionAction(payload: {
|
||||
async function onTaskProjectionAction(payload: {
|
||||
projection: ShippingProcessingProjection;
|
||||
item: ActionPresentationItem;
|
||||
}) {
|
||||
@@ -575,6 +590,21 @@ function onTaskProjectionAction(payload: {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (item.intent === 'view_result' || code === 'focus_task') {
|
||||
const task = [
|
||||
...(displayProcessing.value?.needs_action || []),
|
||||
...(displayProcessing.value?.processing || []),
|
||||
...(displayProcessing.value?.completed || []),
|
||||
].find((row) => String(row.user_task_no || '').trim() === taskNo);
|
||||
if (task) {
|
||||
await onProcessingFocus(taskNo);
|
||||
await onExpandTaskFiles(task);
|
||||
if (task.user_task_authoritative !== false) {
|
||||
await onProcessingViewed(taskNo);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (item.intent === 'open_manual_upload' && taskNo) {
|
||||
void router.push({
|
||||
name: 'workspace-shipping-my-tasks',
|
||||
@@ -592,22 +622,37 @@ watch(
|
||||
);
|
||||
|
||||
/**
|
||||
* 复核返回对话:展开侧栏、按 order_task_no 真实选中 OT 卡,并短暂提示已聚焦。
|
||||
* 复核返回对话:待任务投影真实出现后,选中 OT 卡并消费一次性焦点参数。
|
||||
* 核心逻辑:focus_task_no 只用于恢复右侧 UI 焦点;普通对话不长期绑定该任务。
|
||||
*/
|
||||
const focusedTaskExists = computed(() => {
|
||||
const taskNo = String(route.query.focus_task_no || '').trim();
|
||||
if (!taskNo || !displayProcessing.value) return false;
|
||||
const groups = [
|
||||
...(displayProcessing.value.needs_action || []),
|
||||
...(displayProcessing.value.processing || []),
|
||||
...(displayProcessing.value.completed || []),
|
||||
...(displayProcessing.value.history || []),
|
||||
];
|
||||
return groups.some((task) => String(task.user_task_no || '').trim() === taskNo);
|
||||
});
|
||||
|
||||
watch(
|
||||
() => [route.query.focus_task_no, route.query.focus_notice] as const,
|
||||
() => [route.query.focus_task_no, route.query.focus_notice, focusedTaskExists.value] as const,
|
||||
async ([taskNo, notice]) => {
|
||||
const normalized = String(taskNo || '').trim();
|
||||
if (!normalized) {
|
||||
focusTaskBanner.value = null;
|
||||
return;
|
||||
}
|
||||
if (!focusedTaskExists.value) return;
|
||||
collapsed.value = false;
|
||||
focusTaskBanner.value = normalized;
|
||||
// [UI-01/UI-02] 真正选中进度卡,禁止只显示提示条。
|
||||
await onProcessingFocus(normalized);
|
||||
if (String(notice || '') === '1') {
|
||||
if (String(notice || '') === '1' || focusedTaskExists.value) {
|
||||
const nextQuery = { ...route.query };
|
||||
delete nextQuery.focus_task_no;
|
||||
delete nextQuery.focus_notice;
|
||||
await router.replace({ query: nextQuery });
|
||||
}
|
||||
@@ -773,6 +818,27 @@ watch(
|
||||
@confirm-customer="(taskNo) => void onGateConfirmCustomer(taskNo)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- 聚焦任务下的文件行列表:供跨 Run 合并与文件筛选断言。 -->
|
||||
<ul
|
||||
v-if="expandedTask && items.length"
|
||||
class="my-3 space-y-1.5"
|
||||
>
|
||||
<li
|
||||
v-for="row in items"
|
||||
:key="row.item_no"
|
||||
class="rounded-lg border border-default bg-surface px-2.5 py-2 text-[11px] text-secondary"
|
||||
:data-testid="`shipping-workflow-item-${row.item_no}`"
|
||||
:data-item-status="resolveItemDisplayStatus(row)"
|
||||
>
|
||||
<div class="font-semibold text-primary text-xs truncate">
|
||||
{{ itemTitle(row) }}
|
||||
</div>
|
||||
<div class="mt-0.5 truncate">
|
||||
{{ statusLabel(resolveItemDisplayStatus(row)) }}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
@@ -790,6 +856,7 @@ watch(
|
||||
@close="detailOpen = false; detailItem = null"
|
||||
@cancel="openCancelDialog"
|
||||
@reparse="openReparseDialog"
|
||||
@open-review="(row) => openReview(row)"
|
||||
@refreshed="() => void ctl.refresh()"
|
||||
@confirm-customer="(taskNo) => void onGateConfirmCustomer(taskNo)"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user