Lijy 1 dag sedan
förälder
incheckning
e2b7a81b3c

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet_mld/src/components/taskComponent.vue

@@ -401,7 +401,7 @@
             </template>
         </template>
 
-        <template v-if="permissions.taskApprovalPlan">
+        <template v-if="permissions.taskApprovalPlan && addForm.id">
             <el-button type="danger" @click="planOperation(false)" :loading="addLoading">驳回</el-button>
             <el-button type="success" @click="planOperation(true)" :loading="addLoading">通过</el-button>
         </template>

+ 4 - 0
fhKeeper/formulahousekeeper/timesheet_mld/src/views/task/list.vue

@@ -199,6 +199,10 @@
                             <el-button v-if="scope.row.taskStatus == 1" size="small" type="warning" @click="completes(scope.row.id, 1, scope.row)">{{ $t('zhong-qi') }}</el-button>
                             <el-button v-if="idx == 3" size="small" type="primary" @click="handleAuditTask(scope.row, true)">通过</el-button>
                             <el-button v-if="idx == 3" size="small" type="danger" @click="handleAuditTask(scope.row, false)">驳回</el-button>
+                            <template v-if="permissions.taskApprovalPlan && idx == 0">
+                                <el-button v-if="scope.row.taskStatus == 3 || scope.row.taskStatus == 4" size="small" type="success" @click="handleAuditTask(scope.row, true)">通过</el-button>
+                                <el-button v-if="scope.row.taskStatus == 3 || scope.row.taskStatus == 4" size="small" type="danger" @click="handleAuditTask(scope.row, false)">驳回</el-button>
+                            </template>
                             </div>
                         </template>
                     </el-table-column>