From f294efb8c01ad8b0704a92d51c14dbd55d898874 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 23 十月 2025 16:49:46 +0800
Subject: [PATCH] 拆分原材料和外购成品的业务流程(报检、下单、检验)
---
src/views/standard/standardLibrary/index.vue | 91 +++++++++++++++++++++++++++++----------------
1 files changed, 58 insertions(+), 33 deletions(-)
diff --git a/src/views/standard/standardLibrary/index.vue b/src/views/standard/standardLibrary/index.vue
index e36597d..37c25a7 100644
--- a/src/views/standard/standardLibrary/index.vue
+++ b/src/views/standard/standardLibrary/index.vue
@@ -19,38 +19,68 @@
scrollbar-width: none;
" @node-click="handleNodeClick"
@node-drop="handleDrop">
- <div slot-scope="{ node, data }" class="custom-tree-node">
- <el-row style="width: 100%">
- <el-col :class="{ sort: node.level > 3 }" :span="19" :title="data.label" style="text-align: left">
- <span>
- <i :class="`node_i ${data.children != undefined
- ? data.code === '[1]'
- ? 'el-icon-folder-opened'
- : 'el-icon-folder'
- : 'el-icon-tickets'
- }`"></i>
- {{ data.label }}
- </span>
- </el-col>
- <el-col v-if="
- checkPermi(['standard:standardLibrary:delStandardTree']) &&
- (node.data.children === null ||
- node.data.children === undefined)
- " :span="2" style="text-align: right">
- <el-button size="mini" type="text" @click.stop="editTreeName(node.data)">
+ <div slot-scope="{ node, data }" class="custom-tree-node" style="width: calc(100% - 15px)">
+ <div style="display: flex;align-items: center;flex-wrap: nowrap;flex-direction: row;justify-content: space-between;">
+ <div style="width: calc(100% - 50px);text-overflow: ellipsis;white-space: nowrap;"
+ :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`"
+ >
+ <i :class="`node_i ${data.children != undefined
+ ? data.code === '[1]'
+ ? 'el-icon-folder-opened'
+ : 'el-icon-folder'
+ : 'el-icon-tickets'
+ }`"></i>
+ {{data.label}}
+ </div>
+ <div v-if="(node.data.children === null || node.data.children === undefined)" style="width:50px">
+ <el-button v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" size="mini" type="text" @click.stop="editTreeName(node.data)">
<i class="el-icon-edit"></i>
</el-button>
- </el-col>
- <el-col v-if="
- checkPermi(['standard:standardLibrary:delStandardTree']) &&
- (node.data.children === null ||
- node.data.children === undefined)
- " :span="2" style="text-align: right">
- <el-button size="mini" type="text" @click.stop="remove(node, data)">
+ <el-button style="margin-left: 0" size="mini" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" type="text" @click.stop="remove(node, data)">
<i class="el-icon-delete"></i>
</el-button>
- </el-col>
- </el-row>
+ </div>
+ </div>
+
+
+
+
+<!-- <div style="display: inline-block;width: calc(100% - 60px);text-overflow: ellipsis;white-space: nowrap;" :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`">-->
+<!-- <i :class="`node_i ${data.children != undefined-->
+<!-- ? data.code === '[1]'-->
+<!-- ? 'el-icon-folder-opened'-->
+<!-- : 'el-icon-folder'-->
+<!-- : 'el-icon-tickets'-->
+<!-- }`"></i>-->
+<!-- {{ data.label }}-->
+<!-- </div>-->
+<!-- <span v-if="(node.data.children === null || node.data.children === undefined)" style="text-align: right">-->
+<!-- <el-button style="width:20px" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" size="mini" type="text" @click.stop="editTreeName(node.data)">-->
+<!-- <i class="el-icon-edit"></i>-->
+<!-- </el-button>-->
+<!-- <el-button style="width:20px;margin-left: 0" size="mini" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" type="text" @click.stop="remove(node, data)">-->
+<!-- <i class="el-icon-delete"></i>-->
+<!-- </el-button>-->
+<!-- </span>-->
+<!-- <el-row style="width: 100%">-->
+<!-- <el-col :class="{ sort: node.level > 3 }" :span="19" :title="data.label" style="text-align: left">-->
+
+<!-- </el-col>-->
+<!-- <el-col v-if="-->
+<!-- checkPermi(['standard:standardLibrary:delStandardTree']) &&-->
+<!-- (node.data.children === null ||-->
+<!-- node.data.children === undefined)-->
+<!-- " :span="2" style="text-align: right">-->
+
+<!-- </el-col>-->
+<!-- <el-col v-if="-->
+<!-- checkPermi(['standard:standardLibrary:delStandardTree']) &&-->
+<!-- (node.data.children === null ||-->
+<!-- node.data.children === undefined)-->
+<!-- " :span="2" style="text-align: right">-->
+
+<!-- </el-col>-->
+<!-- </el-row>-->
</div>
</el-tree>
</div>
@@ -1336,11 +1366,6 @@
>>>.is-disabled .el-textarea__inner {
background: rgba(0, 0, 0, 0.05) !important;
-}
-
->>>.el-table__body-wrapper::-webkit-scrollbar {
- height: 14px;
- /* 璁剧疆婊氬姩鏉″搴� */
}
</style>
<style scoped>
--
Gitblit v1.9.3