This commit is contained in:
2025-11-11 22:30:14 +08:00
parent ff88c2c04a
commit 2c46526a98
2 changed files with 23 additions and 7 deletions

View File

@@ -106,12 +106,12 @@
<template slot-scope="scope">
<ProductInfo v-if="scope.row.itemType === 'product'" :productId="scope.row.itemId">
<template #default="{ product }">
{{ product.productName || '未知' }}({{ product.productCode || '无编码' }})
{{ product.itemName || '未知' }}({{ product.itemCode || '无编码' }})
</template>
</ProductInfo>
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :materialId="scope.row.itemId">
<template #default="{ material }">
{{ material.rawMaterialName || '未知' }}({{ material.rawMaterialCode || '无编码' }})
{{ material.itemName || '未知' }}({{ material.itemCode || '无编码' }})
</template>
</RawMaterialInfo>
</template>
@@ -712,4 +712,4 @@ h3 {
border-radius: 6px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
</style>
</style>