소스 검색

复运完不再复运

HD_wangm 6 달 전
부모
커밋
60f2c5c8f3
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      ygtx-ui/src/views/gxt/gxtOrder/index.vue
  2. 2 2
      ygtx-ui/src/views/gxt/repairOrder/index.vue

+ 2 - 2
ygtx-ui/src/views/gxt/gxtOrder/index.vue

@@ -257,7 +257,7 @@
 <!--          </el-button>-->
 
           <!-- 已完成状态:显示复运按钮 -->
-          <el-button link type="success" @click="handleRestart(scope.row)" v-if="scope.row.workOrderStatus === 'completed'" v-hasPermi="['gxt:maintenance:order:restart']">
+          <el-button link type="success" @click="handleRestart(scope.row)" v-if="scope.row.workOrderStatus === 'completed' && scope.row.restartTime == null" v-hasPermi="['gxt:maintenance:order:restart']">
             <i class="fa fa-refresh"></i>复运
           </el-button>
 
@@ -805,7 +805,7 @@
     </el-dialog>
 
     <!-- 复运对话框 -->
-    <el-dialog title="复运工单" v-model="restartDialogVisible" width="800px" append-to-body>
+    <el-dialog title="复运" v-model="restartDialogVisible" width="800px" append-to-body>
       <div class="space-y-4">
         <el-alert type="info" :closable="false" style="border-color: #0ea5e9; background-color: #ecf7ff; color: #0369a1; height: 35px;">
           <template #default>

+ 2 - 2
ygtx-ui/src/views/gxt/repairOrder/index.vue

@@ -336,7 +336,7 @@
 <!--              v-hasPermi="['gxt:repairOrder:rating']"-->
 <!--          ><i class="fa fa-star"></i>评分</el-button>-->
           <el-button
-              v-if="scope.row.workOrderStatus === 'completed'"
+              v-if="scope.row.workOrderStatus === 'completed' && scope.row.restartTime == null"
               type="success"
               link
               @click="handleRestart(scope.row)"
@@ -2439,7 +2439,7 @@ const route = useRoute();
 watch(() => route.query, (newQuery, oldQuery) => {
   // 当路由查询参数发生变化时,重新解析参数
   parseRouteParams(route);
-  
+
   // 重新获取列表数据
   getList();
 }, { deep: true });