Explorar el Código

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

ly hace 10 meses
padre
commit
957866b126
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/business/production/onceWork/index.vue

+ 1 - 1
src/views/business/production/onceWork/index.vue

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