|
|
@@ -46,7 +46,8 @@
|
|
|
@click="handleAdd"
|
|
|
v-if="
|
|
|
$hasPermission('main:categoryparam:saveBom') &&
|
|
|
- currentNodeData.bomType == 1
|
|
|
+ currentNodeData.bomType == 1 &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>
|
|
|
新建
|
|
|
@@ -61,7 +62,7 @@
|
|
|
(currentNodeData.approvalStatus == 0 ||
|
|
|
currentNodeData.approvalStatus == 3) &&
|
|
|
$hasPermission('main:categoryparam:deleteBom') &&
|
|
|
- (currentNodeData.parentId == '0' || currentNodeData.bomType)
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>
|
|
|
删除
|
|
|
@@ -69,7 +70,8 @@
|
|
|
|
|
|
<el-button
|
|
|
v-if="
|
|
|
- currentNodeData.bomType == 1 && currentNodeData.parentId == '0'
|
|
|
+ currentNodeData.bomType == 1 &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
@@ -81,7 +83,8 @@
|
|
|
<el-button
|
|
|
@click="uploadFile"
|
|
|
v-if="
|
|
|
- currentNodeData.bomType == 1 && currentNodeData.parentId == '0'
|
|
|
+ currentNodeData.bomType == 1 &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
@@ -97,7 +100,8 @@
|
|
|
plain
|
|
|
@click="transformation('P')"
|
|
|
v-if="
|
|
|
- currentNodeData.bomType == 4 && currentNodeData.parentId == '0'
|
|
|
+ currentNodeData.bomType == 4 &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>转换PBOM</el-button
|
|
|
>
|
|
|
@@ -109,7 +113,8 @@
|
|
|
plain
|
|
|
@click="transformation('E')"
|
|
|
v-if="
|
|
|
- currentNodeData.bomType == 1 && currentNodeData.parentId == '0'
|
|
|
+ currentNodeData.bomType == 1 &&
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>转换EBOM</el-button
|
|
|
>
|
|
|
@@ -124,8 +129,7 @@
|
|
|
currentNodeData.bomType == 1 &&
|
|
|
(searchObj.isProduct ||
|
|
|
['1', '9'].includes(searchObj.rootPathIdParent)) &&
|
|
|
- (currentNodeData.parentId == '0' ||
|
|
|
- currentNodeData.bomType == 1)
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>转换MBOM</el-button
|
|
|
>
|
|
|
@@ -140,8 +144,7 @@
|
|
|
currentNodeData.bomType == 1 &&
|
|
|
(searchObj.isProduct ||
|
|
|
['1', '9'].includes(searchObj.rootPathIdParent)) &&
|
|
|
- (currentNodeData.parentId == '0' ||
|
|
|
- currentNodeData.bomType == 1)
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>转换ABOM</el-button
|
|
|
>
|
|
|
@@ -153,8 +156,7 @@
|
|
|
v-if="
|
|
|
(currentNodeData.approvalStatus == 0 ||
|
|
|
currentNodeData.approvalStatus == 3) &&
|
|
|
- (currentNodeData.parentId == '0' ||
|
|
|
- currentNodeData.bomType == 1)
|
|
|
+ (currentNodeData.parentId == '0' || !currentNodeData.parentId)
|
|
|
"
|
|
|
>
|
|
|
提交发布
|
|
|
@@ -428,7 +430,8 @@
|
|
|
resourceBomId: '',
|
|
|
currentNodeData: {
|
|
|
bomType: 1,
|
|
|
- children: []
|
|
|
+ children: [],
|
|
|
+ parentId: ''
|
|
|
},
|
|
|
|
|
|
current: {},
|