|
@@ -477,20 +477,20 @@ const showChangeLog = (row: PipeTaskOrderVO) => {
|
|
|
const handleConfirm = async (id: string,checkDate: string) => {
|
|
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 {
|
|
try {
|
|
|
await ElMessageBox.confirm('是否认领该任务单?', '认领提示', {
|
|
await ElMessageBox.confirm('是否认领该任务单?', '认领提示', {
|