fix: expose manual plans awaiting pallets

This commit is contained in:
2026-09-10 16:33:43 +08:00
parent 4382351569
commit 0ed913a114
5 changed files with 11 additions and 8 deletions
@@ -246,13 +246,12 @@ function inboundPlanStatusLabel(value: unknown) {
} as Record<string, string>)[code] || (code ? '未知状态' : '—')
}
function canGenerateContainerPlans(container: ContainerPlanProgressSummaryDto) {
return Boolean(!container.allPlansReady
&& container.containerNo
return Boolean(container.containerNo
&& container.overseasWarehouseId
&& container.overseasWarehouseCode
&& container.overseasWarehouseName
&& container.assignmentVersion >= 0
&& container.pendingPlanCount > 0)
&& (container.pendingPlanCount > 0 || container.resourcePendingPlanCount > 0))
}
function containerSnapshotBlockReason(container: ContainerPlanProgressSummaryDto) {
if (!container.containerNo) return container.blockingReason || '来源柜真实集装箱号缺失、格式无效或存在漂移'
@@ -772,6 +771,7 @@ onMounted(() => { void load() })
</span>
<span class="container-workbench-card__facts">
<span>共 {{ container.inboundCodeCount }} 个入仓码</span>
<span v-if="container.resourcePendingPlanCount">{{ container.resourcePendingPlanCount }} 票待补真实托盘</span>
</span>
<span class="container-workbench-card__actions">
<el-button class="container-workbench-card__detail" plain @click="openContainerDetail(container)">查看详情</el-button>