refactor(产品信息展示): 统一产品及原料信息展示格式并清理冗余代码

- 将产品信息和原料信息的默认展示格式统一为"名称[规格] - (材质:材质)"
- 移除DrillDownTable中重复的模板代码,直接使用组件默认插槽
- 删除base.vue中注释掉的冗余表单代码
- 增强删除确认提示信息,明确告知会清理相关记录
This commit is contained in:
砂糖
2025-11-18 10:30:25 +08:00
parent 02cb0f654f
commit a13b7058b0
4 changed files with 5 additions and 36 deletions

View File

@@ -2,7 +2,7 @@
<div>
<span class="product-name" @click.stop="clickHandle">
<slot name="default" :product="productFull">
{{ productFull.productName || '--' }}
{{ productFull.productName || '未知' }}[{{ productFull.specification || '无规格' }}] - (材质{{ productFull.material || '无材质' }})
</slot>
</span>
<el-dialog

View File

@@ -3,7 +3,7 @@
<!-- 作用域插槽 -->
<span class="material-name" @click.stop="showDetail = true">
<slot name="default" :material="materialFull">
{{ materialFull.rawMaterialName || '-' }}
{{ materialFull.rawMaterialName || '未知' }}[{{ materialFull.specification || '无规格' }}] - (材质{{ materialFull.material || '无材质' }})
</slot>
</span>
<el-dialog :visible="showDetail" @close="showDetail = false" :title="materialFull.rawMaterialName || '--'" width="600px"