|
|
@@ -106,6 +106,7 @@
|
|
|
@click="transformation('P')"
|
|
|
:disabled="currentNodeData.approvalStatus != 2"
|
|
|
v-if="
|
|
|
+ $hasPermission('main:bomcategory:convertpbom') &&
|
|
|
currentNodeData.bomType == 4 &&
|
|
|
(currentNodeData.parentId == '0' ||
|
|
|
!currentNodeData.parentId) &&
|
|
|
@@ -122,6 +123,7 @@
|
|
|
:disabled="currentNodeData.approvalStatus != 2"
|
|
|
@click="transformation('E')"
|
|
|
v-if="
|
|
|
+ $hasPermission('main:bomcategory:convertebom') &&
|
|
|
currentNodeData.bomType == 1 &&
|
|
|
(currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
@@ -136,6 +138,7 @@
|
|
|
:disabled="currentNodeData.approvalStatus != 2"
|
|
|
@click="transformation('M')"
|
|
|
v-if="
|
|
|
+ $hasPermission('main:bomcategory:convertmbom') &&
|
|
|
currentNodeData.bomType == 1 &&
|
|
|
(searchObj.isProduct ||
|
|
|
['1', '9'].includes(searchObj.rootPathIdParent)) &&
|
|
|
@@ -152,6 +155,7 @@
|
|
|
:disabled="currentNodeData.approvalStatus != 2"
|
|
|
@click="transformation('A')"
|
|
|
v-if="
|
|
|
+ $hasPermission('main:bomcategory:convertabom') &&
|
|
|
currentNodeData.bomType == 1 &&
|
|
|
(searchObj.isProduct ||
|
|
|
['1', '9'].includes(searchObj.rootPathIdParent)) &&
|