Quellcode durchsuchen

取消三天认领

xuzhancheng vor 3 Tagen
Ursprung
Commit
bcd035a3a8
1 geänderte Dateien mit 14 neuen und 14 gelöschten Zeilen
  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('是否认领该任务单?', '认领提示', {