From 2cdbad409e82d4354e4eca5cffa65c6bef7a4d20 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 16 三月 2026 13:36:37 +0800
Subject: [PATCH] bom添加产品编码
---
src/views/productionPlan/productionPlan/components/PIMTable.vue | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/views/productionPlan/productionPlan/components/PIMTable.vue b/src/views/productionPlan/productionPlan/components/PIMTable.vue
index c0f7616..9431002 100644
--- a/src/views/productionPlan/productionPlan/components/PIMTable.vue
+++ b/src/views/productionPlan/productionPlan/components/PIMTable.vue
@@ -43,7 +43,8 @@
:align="item.align"
:sortable="!!item.sortable"
:type="item.type"
- :width="item.width">
+ :width="item.width"
+ :class-name="item.className || ''">
<template #header="scope">
<div class="pim-table-header-cell">
<div class="pim-table-header-title">
@@ -65,24 +66,28 @@
</template>
<template #default="scope">
<!-- 鎻掓Ы -->
- <div v-if="item.dataType == 'slot'">
+ <div v-if="item.dataType == 'slot'"
+ :class="item.className || ''">
<slot v-if="item.slot"
:index="scope.$index"
:name="item.slot"
:row="scope.row" />
</div>
<!-- 杩涘害鏉� -->
- <div v-else-if="item.dataType == 'progress'">
+ <div v-else-if="item.dataType == 'progress'"
+ :class="item.className || ''">
<el-progress :percentage="Number(scope.row[item.prop])" />
</div>
<!-- 鍥剧墖 -->
- <div v-else-if="item.dataType == 'image'">
+ <div v-else-if="item.dataType == 'image'"
+ :class="item.className || ''">
<img :src="javaApi + '/img/' + scope.row[item.prop]"
alt=""
style="width: 40px; height: 40px; margin-top: 10px" />
</div>
<!-- tag -->
- <div v-else-if="item.dataType == 'tag'">
+ <div v-else-if="item.dataType == 'tag'"
+ :class="item.className || ''">
<el-tag v-if="
typeof dataTypeFn(scope.row[item.prop], item.formatData) ===
'string'
@@ -112,6 +117,7 @@
</div>
<!-- 鎸夐挳 -->
<div v-else-if="item.dataType == 'action'"
+ :class="item.className || ''"
@click.stop>
<template v-for="(o, key) in item.operation"
:key="key">
@@ -172,6 +178,7 @@
</div>
<!-- 鍙偣鍑荤殑鏂囧瓧 -->
<div v-else-if="item.dataType == 'link'"
+ :class="item.className || ''"
class="cell link"
style="width: 100%"
@click="goLink(scope.row, item.linkMethod)">
@@ -180,6 +187,7 @@
<!-- 榛樿绾睍绀烘暟鎹� -->
<div v-else
class="cell"
+ :class="item.className || ''"
style="width: 100%">
<span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
<span v-else>{{
--
Gitblit v1.9.3