Răsfoiți Sursa

fix:单次任务交接单只有权限才有修改

ly 10 luni în urmă
părinte
comite
7a7ba9979c
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/views/business/production/onceWork/index.vue

+ 2 - 0
src/views/business/production/onceWork/index.vue

@@ -218,6 +218,8 @@
           <div v-else>
             <el-button link type="primary" size="small" @click="viewResult(scope.row,true)"
             >{{resultLable(scope.row)}}</el-button>
+            <el-button v-hasNoPermi="['business:production:onceWork:perEdit']" v-if="(scope.row.record !== null && scope.row.record.status === 0) && scope.row.record.handlerId  ===  useUserStore().user.userId"  link type="primary" icon="Edit" size="small" style="margin: 0"
+                       @click="viewResult(scope.row,false)" />
             <el-button v-hasPermi="['business:production:onceWork:perEdit']"  link type="primary" icon="Edit" size="small" style="margin: 0"
                        @click="viewResult(scope.row,false)" />
           </div>