feat(wms/coil): 优化钢卷生命周期追踪的步骤插槽数据传递

1. 给CoilTraceResult的stepBody插槽新增allSteps参数传递标准化后的全量步骤列表
2. 在LifecycleTrace中新增getCreationCoils方法,实现创建步骤钢卷列表的兜底获取逻辑:
   - 优先使用步骤自身的newCoilInfoList
   - 若为空则通过全量步骤匹配获取前序步骤的旧钢卷信息
   - 最后兜底使用当前钢卷信息
3. 修复入库步骤空钢卷判断和列表渲染的逻辑
This commit is contained in:
2026-06-16 11:41:33 +08:00
parent 1510f43aee
commit e6b1e31bd1
2 changed files with 33 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
<div v-if="panel.type === 'linear'" :key="'lin-' + pIdx" class="trace-panel-block">
<el-card shadow="hover" v-for="(rawStep, idx) in panel.steps">
<template v-if="$scopedSlots.stepBody">
<slot name="stepBody" :step="formatStep(rawStep)" :compact="false" />
<slot name="stepBody" :step="formatStep(rawStep)" :compact="false" :all-steps="standardSteps" />
</template>
<trace-step-body v-else :standard-step="formatStep(rawStep)" :get-step-tag-type="getStepTagType"
:parse-changed-fields="parseChangedFields" />
@@ -23,7 +23,7 @@
<div class="lane-steps-stack">
<el-card v-for="(rawStep, si) in lane" :key="si" shadow="hover" class="lane-step-card mb10">
<template v-if="$scopedSlots.stepBody">
<slot name="stepBody" :step="formatStep(rawStep)" :compact="true" />
<slot name="stepBody" :step="formatStep(rawStep)" :compact="true" :all-steps="standardSteps" />
</template>
<trace-step-body v-else :standard-step="formatStep(rawStep)" :get-step-tag-type="getStepTagType"
:parse-changed-fields="parseChangedFields" compact />
@@ -35,7 +35,7 @@
<el-divider content-position="center">合卷汇聚</el-divider>
<el-card shadow="hover">
<template v-if="$scopedSlots.stepBody">
<slot name="stepBody" :step="formatStep(panel.mergeStep)" :compact="false" />
<slot name="stepBody" :step="formatStep(panel.mergeStep)" :compact="false" :all-steps="standardSteps" />
</template>
<trace-step-body v-else :standard-step="formatStep(panel.mergeStep)" :get-step-tag-type="getStepTagType"
:parse-changed-fields="parseChangedFields" />