feat(in-transit-transfer): 自动调拨联动收料就绪并分层来源错误
- 调度整合:退役 in_transit_receipt_file_job,收料归档收敛 shipping_receipt_rpa_archive,排程注册表统一 - 自动调拨 Job:调拨前确保各来源当日收料文件就绪(缺失自动触发收料 RPA),严格等量匹配后生成 ERP 调拨单 - worker 手动唤醒:排程工作台支持手动唤醒与 runs 透视,heartbeat 协议同步 - 收料缺失幸存 T2:parse_failed 状态落库(迁移 q4c5) - 来源错误分层与 stale 时钟换源:改挂 inventory_checked_at 库存查得时刻,展示阈值与执行门禁解耦(迁移 t5a6) - 新增 wecom_sender 企微通知:每非空 Run 汇总一条,通知失败不影响 ERP 结果 - 同步排程工作台/调拨卡片前端、chat/admin 文案四语言、RPA 脚本与测试全家
This commit is contained in:
1 parent
993e581135
commit
abf3d48927
144 files changed
+10161
-2132
No files matched your search
@@ -2,7 +2,7 @@
|
||||
features/chat/components/messages/TransferBacklogSummaryCard.vue
|
||||
用途:待处理异常卡(可恢复/已关闭/结果未知三组)——列与匹配窗口一致,
|
||||
支持关键字/结果筛选、多选批量操作(重查/恢复处理/标记无需处理)与行级快捷操作。
|
||||
依赖:props.items、i18n chat.transfer.*、transferBatch.deriveBatchNo。
|
||||
依赖:props.items、i18n chat.transfer.*、transferBatch.deriveBatchNo、transferFormat.formatQuantity。
|
||||
逻辑:仅 blocked_recoverable 可勾选与操作;result_unknown / manually_closed 只读;
|
||||
可恢复行按 result_code 细分徽标(blocked_file_removed=文件已移除);
|
||||
blocked_file_removed 行行内仅留「标记无需继续处理」(重查不可恢复——消失证据
|
||||
@@ -12,6 +12,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue';
|
||||
import { deriveBatchNo } from './transferBatch';
|
||||
import { formatQuantity } from './transferFormat';
|
||||
import type { TransferBacklogItem } from '../../types/transfer.types';
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -199,7 +200,7 @@ function resultLabelKey(item: TransferBacklogItem): string {
|
||||
</div>
|
||||
|
||||
<div v-if="filtered.length" class="overflow-x-auto">
|
||||
<table class="w-full min-w-[1180px] text-xs" data-testid="transfer-backlog-table">
|
||||
<table class="w-full min-w-[1360px] text-xs" data-testid="transfer-backlog-table">
|
||||
<thead>
|
||||
<tr class="border-b border-default bg-surface-soft text-left text-[11px] text-muted">
|
||||
<th class="p-2">
|
||||
@@ -210,19 +211,20 @@ function resultLabelKey(item: TransferBacklogItem): string {
|
||||
@change="toggleAll(($event.target as HTMLInputElement).checked)"
|
||||
/>
|
||||
</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colSource') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colInvoice') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colReceiptDate') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colMaterial') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colName') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colFromWarehouse') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colFromBatch') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colFromQty') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colToWarehouse') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colToQty') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colResult') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colAging') }}</th>
|
||||
<th class="p-2">{{ $t('chat.transfer.colAction') }}</th>
|
||||
<!-- 表头全列 nowrap:防「拨出仓库/匹配结果」等折行;品名列吃剩余宽度 -->
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colSource') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colInvoice') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colReceiptDate') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colMaterial') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colName') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colFromWarehouse') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colFromBatch') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colFromQty') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colToWarehouse') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colToQty') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colResult') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colAging') }}</th>
|
||||
<th class="whitespace-nowrap p-2">{{ $t('chat.transfer.colAction') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -242,19 +244,21 @@ function resultLabelKey(item: TransferBacklogItem): string {
|
||||
@change="toggleRow(item, ($event.target as HTMLInputElement).checked)"
|
||||
/>
|
||||
</td>
|
||||
<td class="p-2">{{ item.source_code }}</td>
|
||||
<td class="p-2 font-semibold">{{ item.invoice_no }}</td>
|
||||
<td class="p-2">{{ item.receipt_date || '—' }}</td>
|
||||
<td class="p-2">{{ item.material_no }}</td>
|
||||
<!-- 除品名外全列 nowrap:日期/仓库/料号带连字符,列宽不足时从连字符处折行;
|
||||
操作列三按钮保持一行 -->
|
||||
<td class="whitespace-nowrap p-2">{{ item.source_code }}</td>
|
||||
<td class="whitespace-nowrap p-2 font-semibold">{{ item.invoice_no }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ item.receipt_date || '—' }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ item.material_no }}</td>
|
||||
<td class="p-2">{{ item.material_name || '—' }}</td>
|
||||
<td class="p-2">{{ item.from_warehouse || '—' }}</td>
|
||||
<td class="p-2">{{ deriveBatchNo(item.lot_no ?? '') || '—' }}</td>
|
||||
<td class="p-2">{{ item.external_quantity ?? '—' }}</td>
|
||||
<td class="p-2">{{ item.to_warehouse || '—' }}</td>
|
||||
<td class="p-2">{{ item.receipt_quantity ?? '—' }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ item.from_warehouse || '—' }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ deriveBatchNo(item.lot_no ?? '') || '—' }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ formatQuantity(item.external_quantity) }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ item.to_warehouse || '—' }}</td>
|
||||
<td class="whitespace-nowrap p-2">{{ formatQuantity(item.receipt_quantity) }}</td>
|
||||
<td class="p-2">
|
||||
<span
|
||||
class="rounded-full px-2 py-0.5 font-bold"
|
||||
class="whitespace-nowrap rounded-full px-2 py-0.5 font-bold"
|
||||
:class="{
|
||||
'bg-red-50 text-red-700': item.status === 'blocked_recoverable',
|
||||
'bg-amber-50 text-amber-700': item.status === 'result_unknown',
|
||||
@@ -268,8 +272,8 @@ function resultLabelKey(item: TransferBacklogItem): string {
|
||||
}}
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-2">{{ $t(agingLabel(item.aging_level)) }}</td>
|
||||
<td class="p-2">
|
||||
<td class="whitespace-nowrap p-2">{{ $t(agingLabel(item.aging_level)) }}</td>
|
||||
<td class="whitespace-nowrap p-2">
|
||||
<template v-if="isActionable(item)">
|
||||
<!-- 失效行(文件已移除)隐藏重查/恢复处理:重查会被后端拒绝
|
||||
(TRANSFER.RETRY_NOT_ALLOWED),恢复处理也无济于事,只留关闭出口 -->
|
||||
@@ -287,20 +291,22 @@ function resultLabelKey(item: TransferBacklogItem): string {
|
||||
v-if="!isFileRemoved(item)"
|
||||
type="button"
|
||||
class="mr-1 rounded border border-brand-200 px-1 py-0.5 text-[10px] font-bold text-brand-700 transition hover:bg-brand-50 disabled:opacity-40"
|
||||
:title="$t('chat.transfer.resumeAction')"
|
||||
:data-testid="`transfer-backlog-resume-${item.invoice_no}`"
|
||||
:disabled="busy"
|
||||
@click="emit('resume', [item.item_id])"
|
||||
>
|
||||
{{ $t('chat.transfer.resumeAction') }}
|
||||
{{ $t('chat.transfer.resumeActionShort') }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="rounded border border-red-200 px-1 py-0.5 text-[10px] font-bold text-red-600 transition hover:bg-red-50 disabled:opacity-40"
|
||||
:title="$t('chat.transfer.manualClose')"
|
||||
:data-testid="`transfer-backlog-close-${item.invoice_no}`"
|
||||
:disabled="busy"
|
||||
@click="emit('close', item)"
|
||||
>
|
||||
{{ $t('chat.transfer.manualClose') }}
|
||||
{{ $t('chat.transfer.manualCloseShort') }}
|
||||
</button>
|
||||
</template>
|
||||
<span v-else-if="item.status === 'result_unknown'" class="text-[11px] text-muted">
|
||||
|
||||
Reference in new issue
Block a user