feat: BOM 子件展示自制件 BOM 版本号——子件列表与出库/借库 BOM 清单打印均显示
This commit is contained in:
@ -280,7 +280,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>
|
||||
@ -310,7 +310,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>
|
||||
@ -632,7 +632,8 @@ const bomDetailList = computed(() => {
|
||||
sku: bomItem.child_spec || bomItem.spec_model || '-',
|
||||
need: totalNeed,
|
||||
available: stock,
|
||||
shortage
|
||||
shortage,
|
||||
child_bom_version: bomItem.child_bom_version || ''
|
||||
}
|
||||
})
|
||||
.sort((a, b) => {
|
||||
|
||||
Reference in New Issue
Block a user