ly hai 1 ano
pai
achega
4a4db55355
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/views/business/production/onceWork/index.vue

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

@@ -175,16 +175,16 @@
       <el-table-column label="操作" width="130" align="center" prop="">
         <template #default="scope">
 
-          <el-button v-show="scope.row.record != null && scope.row.record.status == 1" size="small" type="primary" link
+          <el-button v-if="scope.row.record != null && scope.row.record.status == 1" size="small" type="primary" link
             v-hasPermi="['business:production:onceWork:finished']" @click="finishedHandle(scope.row)">
             完成
           </el-button>
-          <el-button v-show="scope.row.record == null || scope.row.record.status == 0" size="small" type="primary" link
+          <el-button v-if="scope.row.record == null || scope.row.record.status == 0" size="small" type="primary" link
             v-hasPermi="['business:production:onceWork:finished']" @click="finishedHandle2(scope.row)">
             领取
           </el-button>
 
-          <el-button v-show="scope.row.record !== undefined && scope.row.record.status == 1" size="small" type="primary"
+          <el-button v-if="scope.row.record !== undefined && scope.row.record.status == 1 && scope.row.record.handlerId  ===  useUserStore().user.userId" size="small" type="primary"
             link v-hasPermi="['business:production:onceWork:finished']" @click="finishedHandle3(scope.row)">
             取消领取
           </el-button>