feat(shipping-notice): 新增订单行与字段冲突管理功能,支持字段冲突查询与解决
This commit is contained in:
1 parent
4fbaed2b4c
commit
9da0481fc3
74 files changed
+4861
-375
No files matched your search
@@ -2,8 +2,8 @@
|
||||
/**
|
||||
* features/workspace/views/ShippingNoticeView.vue
|
||||
* 用途:货代发货任务只读工作台,提供任务筛选、详情查看与跳转 Chat 继续处理入口。
|
||||
* 依赖:ShippingWorkflowStepper、ShippingMatchResultCard、shipping.api。
|
||||
* 逻辑:先拉取任务列表与详情,再以只读方式展示步骤、匹配结果和事件记录;所有写操作回到 Chat 主路径完成。
|
||||
* 依赖:ShippingWorkflowStepper、ShippingMatchResultCard、ShippingTaskParsedResultCard、shipping.api。
|
||||
* 逻辑:先拉取任务列表与详情,再以只读方式展示步骤、匹配结果、解析行和事件记录;所有写操作回到 Chat 主路径完成。
|
||||
*/
|
||||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
@@ -11,6 +11,7 @@ import { useI18n } from 'vue-i18n';
|
||||
import { ArrowLeft, Download, ExternalLink, RefreshCw } from 'lucide-vue-next';
|
||||
import ShippingWorkflowStepper from '@/features/chat/components/ShippingWorkflowStepper.vue';
|
||||
import ShippingMatchResultCard from '@/features/chat/components/messages/ShippingMatchResultCard.vue';
|
||||
import ShippingTaskParsedResultCard from '@/features/chat/components/ShippingTaskParsedResultCard.vue';
|
||||
import { formatLocalDateTime } from '@/shared/utils/dateTime';
|
||||
import {
|
||||
getWorkspaceShippingTask,
|
||||
@@ -510,25 +511,20 @@ onMounted(async () => {
|
||||
:action-busy="false"
|
||||
/>
|
||||
|
||||
<div v-if="detail.lines?.length">
|
||||
<h3 class="mb-2 text-sm font-semibold text-secondary">{{ $t('workspace.shippingNotice.lines') }}</h3>
|
||||
<div class="overflow-x-auto rounded-xl border border-default">
|
||||
<table class="min-w-full text-sm">
|
||||
<thead class="bg-surface-soft text-left text-xs text-muted">
|
||||
<tr>
|
||||
<th class="px-3 py-2">{{ $t('workspace.shippingNotice.columns.sku') }}</th>
|
||||
<th class="px-3 py-2">{{ $t('workspace.shippingNotice.qty') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(line, idx) in detail.lines" :key="idx" class="border-t border-default/60">
|
||||
<td class="px-3 py-2 font-mono">{{ line.sku || '—' }}</td>
|
||||
<td class="px-3 py-2">{{ line.qty ?? '—' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<ShippingTaskParsedResultCard
|
||||
v-if="detail.lines?.length || detail.process_field_gate || detail.parse_validation || detail.source_candidate || detail.field_conflicts?.length"
|
||||
class="mt-3"
|
||||
:task-no="detail.task_no"
|
||||
:po-number="detail.po_number"
|
||||
:lines="detail.lines"
|
||||
:parse-validation="detail.parse_validation || detail.step_payload?.parse_validation || null"
|
||||
:process-field-gate="detail.process_field_gate || null"
|
||||
:source-candidate="detail.source_candidate || null"
|
||||
:field-conflicts="detail.field_conflicts || []"
|
||||
:order-data-version="detail.order_data_version"
|
||||
:default-expanded="true"
|
||||
@refreshed="detail?.task_no && loadDetail(detail.task_no)"
|
||||
/>
|
||||
|
||||
<div v-if="detail.events?.length">
|
||||
<h3 class="mb-2 text-sm font-semibold text-secondary">{{ $t('workspace.shippingNotice.events') }}</h3>
|
||||
|
||||
Reference in new issue
Block a user