Преглед на файлове

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

ly преди 10 месеца
родител
ревизия
46b0db8e6d
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/views/business/production/onceWork/index.vue

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

@@ -35,7 +35,7 @@
         <el-input size="small" v-model="queryParams.taskTypeName" style="width: 150px" placeholder="请输入项目" clearable
           @keyup.enter="handleQuery" />
       </el-form-item>
-      <el-form-item label="交接单状态:" prop="resultStatus">
+      <el-form-item label="任务结果:" prop="resultStatus">
         <el-select size="small" v-model="queryParams.resultStatus" placeholder="请选择交接单状态" clearable @change="handleQuery">
           <el-option v-for="item in resultStatus" :key="item.value" :label="item.label" :value="item.value" />
         </el-select>
@@ -218,7 +218,7 @@
           <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"
+            <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)" />