| | |
| | | outputItemCode: item.outputItemCode, |
| | | outputItemName: item.outputItemName, |
| | | remark: item.remark, |
| | | bomItems: item.bomItems, |
| | | })); |
| | | } |
| | | } else { |
| | |
| | | ]" |
| | | /> |
| | | </template> |
| | | <template #expand="{ row }"> |
| | | <div |
| | | v-if="row.bomItems && row.bomItems.length > 0" |
| | | class="bg-gray-50 px-8 py-3" |
| | | > |
| | | <div class="text-xs text-gray-500 mb-2 font-medium">投料明细</div> |
| | | <div class="flex flex-wrap gap-2"> |
| | | <Tag |
| | | v-for="(bom, idx) in row.bomItems" |
| | | :key="idx" |
| | | color="blue" |
| | | > |
| | | {{ bom.itemName || bom.itemCode }} |
| | | <span class="text-gray-400 ml-1">×{{ bom.quantity }}</span> |
| | | </Tag> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </Grid> |
| | | </div> |
| | | </template> |