695593266@qq.com 7 mesi fa
parent
commit
7646228685
1 ha cambiato i file con 20 aggiunte e 6 eliminazioni
  1. 20 6
      src/views/productionPlan/index.vue

+ 20 - 6
src/views/productionPlan/index.vue

@@ -108,7 +108,9 @@
           type="primary"
           size="mini"
           v-if="
-            isshow && $hasPermission('aps:productionplan:plandecomposition')
+            isshow &&
+            $hasPermission('aps:productionplan:plandecomposition') &&
+            row.approvalStatus != 1
           "
           @click="disassemblePlan"
           >计划分解</el-button
@@ -134,20 +136,30 @@
         <el-button
           type="primary"
           size="mini"
-          v-if="isshow && $hasPermission('aps:productionplan:batchmerging')"
+          v-if="
+            isshow &&
+            $hasPermission('aps:productionplan:batchmerging') &&
+            row.approvalStatus != 1
+          "
           @click="handleMerge"
           >合批</el-button
         >
         <el-button
           type="danger"
           size="mini"
-          v-if="$hasPermission('aps:productionplan:extensionapplication')"
+          v-if="
+            $hasPermission('aps:productionplan:extensionapplication') &&
+            row.approvalStatus != 1
+          "
           >延期申请</el-button
         >
         <el-button
           type="danger"
           size="mini"
-          v-if="$hasPermission('aps:productionplan:changerequest')"
+          v-if="
+            $hasPermission('aps:productionplan:changerequest') &&
+            row.approvalStatus != 1
+          "
           >变更申请</el-button
         >
         <el-button
@@ -310,7 +322,8 @@
               row.splitBatch != 1 &&
               !row.joinPlanCode &&
               activeName == 'first' &&
-              $hasPermission('aps:productionplan:update')
+              $hasPermission('aps:productionplan:update') &&
+              row.approvalStatus != 1
             "
             type="primary"
             :underline="false"
@@ -353,7 +366,8 @@
               activeName == 'first' &&
               row.splitBatch != 2 &&
               !row.joinPlanCode &&
-              $hasPermission('aps:productionplan:dismantlingbatch')
+              $hasPermission('aps:productionplan:dismantlingbatch') &&
+              row.approvalStatus != 1
             "
             type="primary"
             :underline="false"