refactor(wms): 简化产品信息组件使用方式并删除无用文件

删除未使用的视图组件和文件,简化多个视图中ProductInfo组件的使用方式,移除冗余模板代码

- 删除work/plan、work/task/components、work/pspec/components等目录下未使用的vue文件
- 简化wms/order/panels/detail、wms/coil多个视图及wms/stock/index中ProductInfo组件的使用方式
- 移除冗余的模板代码和插槽,使用更简洁的组件语法
- 删除未使用的Gantt图表组件及相关视图文件
This commit is contained in:
砂糖
2025-12-05 15:03:12 +08:00
parent bdc8a92341
commit 834698d63d
31 changed files with 17 additions and 5979 deletions

View File

@@ -47,8 +47,8 @@
</el-table-column>
<el-table-column label="产品类型" align="center" min-width="250">
<template slot-scope="scope">
<ProductInfo v-if="scope.row.itemType === 'product'" :product="scope.row.product"></ProductInfo>
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row.rawMaterial"></RawMaterialInfo>
<ProductInfo v-if="scope.row.itemType === 'product'" :product="scope.row.product" />
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row.rawMaterial" />
</template>
</el-table-column>
<el-table-column label="更新时间" align="center" prop="updateTime" />

View File

@@ -87,10 +87,8 @@
<!-- <el-table-column label="物料类型" align="center" prop="materialType" /> -->
<el-table-column label="产品类型" align="center" width="220">
<template slot-scope="scope">
<ProductInfo v-if="scope.row.itemType == 'product'" :product="scope.row.product">
</ProductInfo>
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row.rawMaterial">
</RawMaterialInfo>
<ProductInfo v-if="scope.row.itemType == 'product'" :product="scope.row.product" />
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row.rawMaterial" />
</template>
</el-table-column>
<el-table-column v-if="showAbnormal" label="异常数量" align="center" prop="abnormalCount"></el-table-column>