feat: BOM 子件展示自制件 BOM 版本号——子件列表与出库/借库 BOM 清单打印均显示

This commit is contained in:
yueli
2026-09-07 18:01:16 +08:00
parent d182af7d2a
commit 3dd8458de0
4 changed files with 37 additions and 11 deletions

View File

@ -274,7 +274,7 @@
<tr v-for="(row, idx) in bomDetailList" :key="idx">
<td>{{ idx + 1 }}</td>
<td>{{ row.name }}</td>
<td>{{ row.sku }}</td>
<td>{{ row.sku }}<span v-if="row.child_bom_version" style="color:#666; font-size:11px;">(自制 {{ row.child_bom_version }})</span></td>
<td>{{ row.need }}</td>
<td>{{ row.available }}</td>
<td>{{ row.shortage > 0 ? row.shortage : '-' }}</td>
@ -304,7 +304,7 @@
<tr v-for="(row, idx) in bomDetailList.filter(i => i.shortage > 0)" :key="idx">
<td>{{ idx + 1 }}</td>
<td>{{ row.name }}</td>
<td>{{ row.sku }}</td>
<td>{{ row.sku }}<span v-if="row.child_bom_version" style="color:#666; font-size:11px;">(自制 {{ row.child_bom_version }})</span></td>
<td>{{ row.shortage }}</td>
<td></td>
<td></td>
@ -610,7 +610,8 @@ const bomDetailList = computed(() => {
sku: bomItem.child_sku || bomItem.sku || '-',
need: totalNeed,
available: stock,
shortage
shortage,
child_bom_version: bomItem.child_bom_version || ''
}
})
.sort((a, b) => {