Commit 3cbe4db9 by 张立顺

去掉当前版本功能

1 parent fc30b770
......@@ -11,19 +11,10 @@ const checkDailyReport = async (sceneType) => {
);
}
// 判断员工是否已打卡上班
eventRequest.push(clockedIntoWork());
return new Promise((resolve) => {
Promise.all(eventRequest).then((results) => {
const [reportStatus] = results;
console.log(
reportStatus,
results,
results.length,
results[results.length - 1],
"reportStatus"
);
console.log(reportStatus, results, results.length, results[results.length - 1], 'reportStatus');
showNextModal();
resolve(results[results.length - 1]);
});
......@@ -146,59 +137,7 @@ const equityStaffDailyReport = (userInfo) => {
} else {
resolve(false);
}
})
.catch((err) => {
resolve(false);
});
});
};
const clockedIntoWork = (userInfo) => {
return new Promise((resolve, reject) => {
api
.staffDailyReportMerchantValid({
merchantId: userInfo?.shopMerchantId,
yqMerchantId: userInfo?.merchantId,
staffUuid: userInfo?.uuid,
sceneType: 0,
})
.then((res) => {
if (res.data) {
// // 获取当前日期
// let currentDate = new Date();
// // 获取上一天的日期
// let previousDate = new Date(currentDate);
// previousDate.setDate(currentDate.getDate() - 1);
// console.log(previousDate, "previousDate");
// // toISOString 方法会丢失时区 导致与北京时间差八小时
// let hour = previousDate.getHours() + 8;
// previousDate.setHours(hour);
// // 格式化日期为"yyyy-mm-dd"
// let formattedDate = previousDate.toISOString().split("T")[0];
// console.log("formattedDate", formattedDate);
// if (
// wx.__HAS_NOTLOGIN_MODAL ||
// userInfo?.isSuper ||
// userInfo?.loginRole == 3
// )
// return false;
addModalToQueue(
"打卡提醒",
"您当前企微未打卡,无法录单,请前往企微打卡后再试,如有异议请联系管理员。",
"知道了",
false,
4,
(res) => {
// if (res.confirm) {
// wx.$router.go("tabWorkOrder.staffDaily", {
// reportDate: formattedDate,
// });
// }
}
);
resolve(true);
} else {
resolve(false);
}
})
.catch((err) => {
resolve(false);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!