feat: add material spec to BOM responses and UI
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
<el-table v-loading="loading" :data="bomList" border style="width: 100%">
|
||||
<el-table-column prop="bom_no" label="BOM编号" min-width="180" />
|
||||
<el-table-column prop="parent_name" label="父件名称" min-width="180" />
|
||||
<el-table-column prop="parent_spec" label="父件规格" min-width="180" />
|
||||
<el-table-column prop="version" label="版本" width="100" />
|
||||
<el-table-column prop="child_count" label="子件数量" width="100" />
|
||||
<el-table-column label="操作" width="280" align="center" fixed="right">
|
||||
@ -39,7 +40,7 @@
|
||||
<el-option
|
||||
v-for="item in materialOptions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:label="`${item.name} (${item.spec})`"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
@ -61,7 +62,7 @@
|
||||
<el-option
|
||||
v-for="item in materialOptions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:label="`${item.name} (${item.spec})`"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
@ -120,6 +121,7 @@ interface BomItem {
|
||||
interface MaterialBase {
|
||||
id: number
|
||||
name: string
|
||||
spec: string
|
||||
}
|
||||
|
||||
interface ChildRow {
|
||||
|
||||
Reference in New Issue
Block a user