|
|
@@ -109,7 +109,13 @@
|
|
|
icon="el-icon-refresh"
|
|
|
plain
|
|
|
@click="transformation('M')"
|
|
|
- v-if="currentNodeData.bomType == 1"
|
|
|
+ v-if="
|
|
|
+ $hasPermission('main:bomcategory:convertmbom') &&
|
|
|
+ currentNodeData.bomType == 1 &&
|
|
|
+ (searchObj.isProduct ||
|
|
|
+ ['1', '9', '23'].includes(searchObj.rootPathIdParent)) &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
+ "
|
|
|
>转换MBOM</el-button
|
|
|
>
|
|
|
|
|
|
@@ -119,7 +125,13 @@
|
|
|
icon="el-icon-refresh"
|
|
|
plain
|
|
|
@click="transformation('A')"
|
|
|
- v-if="currentNodeData.bomType == 1"
|
|
|
+ v-if="
|
|
|
+ $hasPermission('main:bomcategory:convertabom') &&
|
|
|
+ currentNodeData.bomType == 1 &&
|
|
|
+ (searchObj.isProduct ||
|
|
|
+ ['1', '9', '23'].includes(searchObj.rootPathIdParent)) &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
+ "
|
|
|
>转换ABOM</el-button
|
|
|
>
|
|
|
|