소스 검색

取消三天认领

xuzhancheng 4 일 전
부모
커밋
bcd035a3a8
1개의 변경된 파일14개의 추가작업 그리고 14개의 파일을 삭제
  1. 14 14
      yudao-ui-admin-vue3/src/views/pressure2/pipechecker/task.vue

+ 14 - 14
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/task.vue

@@ -477,20 +477,20 @@ const showChangeLog = (row: PipeTaskOrderVO) => {
 const handleConfirm = async (id: string,checkDate: string) => {
 
   // 检查检验日期是否在三天内
-  if (checkDate) {
-
-    if (checkDate) {
-      const inspectionStartDate = dayjs(checkDate);
-      const now = dayjs();
-      const daysDiff = now.diff(inspectionStartDate, 'day', true); // 精确计算天数差(包含小数)
-
-      // 如果当前时间不在检验日期开始后的 3 天内,则不允许认领
-      if (daysDiff < 0 || daysDiff > 3) {
-        ElMessage.warning('只能在检验日期开始后的 3 天内进行认领操作');
-        return;
-      }
-    }
-  }
+  // if (checkDate) {
+
+  //   if (checkDate) {
+  //     const inspectionStartDate = dayjs(checkDate);
+  //     const now = dayjs();
+  //     const daysDiff = now.diff(inspectionStartDate, 'day', true); // 精确计算天数差(包含小数)
+
+  //     // 如果当前时间不在检验日期开始后的 3 天内,则不允许认领
+  //     if (daysDiff < 0 || daysDiff > 3) {
+  //       ElMessage.warning('只能在检验日期开始后的 3 天内进行认领操作');
+  //       return;
+  //     }
+  //   }
+  // }
 
   try {
     await ElMessageBox.confirm('是否认领该任务单?', '认领提示', {