Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3cbe4db9
authored
Nov 01, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉当前版本功能
1 parent
fc30b770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
63 deletions
store/ModalToQueueControl.js
store/ModalToQueueControl.js
View file @
3cbe4db
...
@@ -11,19 +11,10 @@ const checkDailyReport = async (sceneType) => {
...
@@ -11,19 +11,10 @@ const checkDailyReport = async (sceneType) => {
);
);
}
}
// 判断员工是否已打卡上班
eventRequest
.
push
(
clockedIntoWork
());
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
Promise
.
all
(
eventRequest
).
then
((
results
)
=>
{
Promise
.
all
(
eventRequest
).
then
((
results
)
=>
{
const
[
reportStatus
]
=
results
;
const
[
reportStatus
]
=
results
;
console
.
log
(
console
.
log
(
reportStatus
,
results
,
results
.
length
,
results
[
results
.
length
-
1
],
'reportStatus'
);
reportStatus
,
results
,
results
.
length
,
results
[
results
.
length
-
1
],
"reportStatus"
);
showNextModal
();
showNextModal
();
resolve
(
results
[
results
.
length
-
1
]);
resolve
(
results
[
results
.
length
-
1
]);
});
});
...
@@ -146,59 +137,7 @@ const equityStaffDailyReport = (userInfo) => {
...
@@ -146,59 +137,7 @@ const equityStaffDailyReport = (userInfo) => {
}
else
{
}
else
{
resolve
(
false
);
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
)
=>
{
.
catch
((
err
)
=>
{
resolve
(
false
);
resolve
(
false
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment