duy 10 сар өмнө
parent
commit
c720f81026

+ 14 - 4
src/views/data-fill/wbs.vue

@@ -147,7 +147,10 @@
                     <template #extra>
                         <HcTooltip keys="wbs_views_sort_btn">
                             <el-button
-                                :disabled="ListItemDatas.length <= 0"
+                                :disabled="
+                                    ListItemDatas.length <= 0 ||
+                                    nodeDataInfo?.nodeClass == 2
+                                "
                                 hc-btn
                                 type="primary"
                                 @click="sortFormClick"
@@ -161,6 +164,7 @@
                                 hc-btn
                                 type="primary"
                                 @click="NodeSaveClick"
+                                :disabled="nodeDataInfo?.nodeClass == 2"
                             >
                                 辅助保存
                             </el-button>
@@ -169,7 +173,8 @@
                             <el-button
                                 :disabled="
                                     nodeDataInfo?.drawingsId === -1 ||
-                                    nodeDataInfo?.drawingsId === null
+                                    nodeDataInfo?.drawingsId === null ||
+                                    nodeDataInfo?.nodeClass == 2
                                 "
                                 hc-btn
                                 color="#e03997"
@@ -207,7 +212,9 @@
                         <HcTooltip v-if="NodeStatus !== '3'" keys="wbs_report">
                             <el-button
                                 :disabled="
-                                    NodeStatus === '3' || NodeStatus === '1'
+                                    NodeStatus === '3' ||
+                                    NodeStatus === '1' ||
+                                    nodeDataInfo?.nodeClass == 2
                                 "
                                 :loading="reportLoading"
                                 hc-btn
@@ -225,6 +232,7 @@
                                 color="#FF976A"
                                 style="color: white"
                                 @click="abolishOneClick"
+                                :disabled="nodeDataInfo?.nodeClass == 2"
                             >
                                 撤回上报流程
                             </el-button>
@@ -237,6 +245,7 @@
                                 style="color: white"
                                 :loading="syncdataloading"
                                 @click="syncdata"
+                                :disabled="nodeDataInfo?.nodeClass == 2"
                             >
                                 同步质检资料
                             </el-button>
@@ -245,7 +254,8 @@
                             <el-button
                                 :disabled="
                                     NodeStatus === '3' ||
-                                    ListItemDatas.length <= 0
+                                    ListItemDatas.length <= 0 ||
+                                    nodeDataInfo?.nodeClass == 2
                                 "
                                 :loading="tableFormSaveLoading"
                                 hc-btn