wangggziwen 2 mēneši atpakaļ
vecāks
revīzija
446d415af0

+ 21 - 15
ui/src/views/production/eoegapply/all/index.vue

@@ -279,22 +279,22 @@
             size="mini"
             type="text"
             @click="processImg(scope.row.processId)"
-            v-if="scope.row.applyStatus != 0"
+            v-if="scope.row.applyStatus != 0 && (scope.row.saiType=='SAI' || (scope.row.saiType=='TPM' && scope.row.tpmStatus == '未完成'))"
           >{{ $t('流程图') }}</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['production:eoegapply:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['production:eoegapply:remove']"
-          >删除</el-button>
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-edit"-->
+            <!--@click="handleUpdate(scope.row)"-->
+            <!--v-hasPermi="['production:eoegapply:edit']"-->
+          <!--&gt;修改</el-button>-->
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-delete"-->
+            <!--@click="handleDelete(scope.row)"-->
+            <!--v-hasPermi="['production:eoegapply:remove']"-->
+          <!--&gt;删除</el-button>-->
         </template>
       </el-table-column>
     </el-table>
@@ -1111,6 +1111,12 @@ export default {
         category: [
           { required: true, message: this.$t('SAI类别') + this.$t('不能为空'), trigger: "change" }
         ],
+        executor: [
+          { required: true, message: this.$t('整改负责人') + this.$t('不能为空'), trigger: "change" }
+        ],
+        saiType: [
+          { required: true, message: this.$t('TPM状态') + this.$t('不能为空'), trigger: "change" }
+        ],
       },
       // 申请状态字典
       applyStatusOptions: [],

+ 21 - 15
ui/src/views/production/eoegapply/mine/index.vue

@@ -272,22 +272,22 @@
             size="mini"
             type="text"
             @click="processImg(scope.row.processId)"
-            v-if="scope.row.applyStatus != 0"
+            v-if="scope.row.applyStatus != 0 && (scope.row.saiType=='SAI' || (scope.row.saiType=='TPM' && scope.row.tpmStatus == '未完成'))"
           >{{ $t('流程图') }}</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['production:eoegapply:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['production:eoegapply:remove']"
-          >删除</el-button>
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-edit"-->
+            <!--@click="handleUpdate(scope.row)"-->
+            <!--v-hasPermi="['production:eoegapply:edit']"-->
+          <!--&gt;修改</el-button>-->
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-delete"-->
+            <!--@click="handleDelete(scope.row)"-->
+            <!--v-hasPermi="['production:eoegapply:remove']"-->
+          <!--&gt;删除</el-button>-->
         </template>
       </el-table-column>
     </el-table>
@@ -1000,6 +1000,12 @@
           category: [
             { required: true, message: this.$t('SAI类别') + this.$t('不能为空'), trigger: "change" }
           ],
+          executor: [
+            { required: true, message: this.$t('整改负责人') + this.$t('不能为空'), trigger: "change" }
+          ],
+          saiType: [
+            { required: true, message: this.$t('TPM状态') + this.$t('不能为空'), trigger: "change" }
+          ],
         },
         // 申请状态字典
         applyStatusOptions: [],

+ 21 - 15
ui/src/views/production/eoegapply/pending/index.vue

@@ -272,22 +272,22 @@
             size="mini"
             type="text"
             @click="processImg(scope.row.processId)"
-            v-if="scope.row.applyStatus != 0"
+            v-if="scope.row.applyStatus != 0 && (scope.row.saiType=='SAI' || (scope.row.saiType=='TPM' && scope.row.tpmStatus == '未完成'))"
           >{{ $t('流程图') }}</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['production:eoegapply:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['production:eoegapply:remove']"
-          >删除</el-button>
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-edit"-->
+            <!--@click="handleUpdate(scope.row)"-->
+            <!--v-hasPermi="['production:eoegapply:edit']"-->
+          <!--&gt;修改</el-button>-->
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-delete"-->
+            <!--@click="handleDelete(scope.row)"-->
+            <!--v-hasPermi="['production:eoegapply:remove']"-->
+          <!--&gt;删除</el-button>-->
         </template>
       </el-table-column>
     </el-table>
@@ -1000,6 +1000,12 @@
           category: [
             { required: true, message: this.$t('SAI类别') + this.$t('不能为空'), trigger: "change" }
           ],
+          executor: [
+            { required: true, message: this.$t('整改负责人') + this.$t('不能为空'), trigger: "change" }
+          ],
+          saiType: [
+            { required: true, message: this.$t('TPM状态') + this.$t('不能为空'), trigger: "change" }
+          ],
         },
         // 申请状态字典
         applyStatusOptions: [],