Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 364fdc24
authored
Feb 04, 2026
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:新加参数
1 parent
cf196dfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
26 deletions
mixin/interceptionMixin.js
mixin/interceptionMixin.js
View file @
364fdc2
let
modalQueue
=
[],
let
modalQueue
=
[],
eventRequest
=
[]
eventRequest
=
[]
export
default
{
export
default
{
data
()
{
data
()
{
return
{}
return
{}
},
},
computed
:
{
computed
:
{
userInfo
()
{
userInfo
()
{
return
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
return
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
}
}
},
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
/**
/**
*
*
* @param {是否需要检测企微打卡} checkWW
* @param {是否需要检测企微打卡} checkWW
* @returns
* @returns
*/
*/
async
checkDailyReport
(
checkWW
=
true
)
{
async
checkDailyReport
(
checkWW
=
true
)
{
modalQueue
=
[]
modalQueue
=
[]
eventRequest
=
[]
eventRequest
=
[]
let
{
sceneType
,
isSuper
,
loginRole
}
=
this
.
userInfo
let
{
sceneType
,
isSuper
,
loginRole
}
=
this
.
userInfo
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
})
})
})
})
},
},
showNextModal
()
{
showNextModal
()
{
if
(
modalQueue
.
length
>
0
)
{
if
(
modalQueue
.
length
>
0
)
{
const
modalInfo
=
modalQueue
.
pop
()
const
modalInfo
=
modalQueue
.
pop
()
// if (wx.__HAS_SHOW_MODAL) return;
// if (wx.__HAS_SHOW_MODAL) return;
...
@@ -63,7 +63,7 @@ export default {
...
@@ -63,7 +63,7 @@ export default {
/**
/**
* 轻改日报
* 轻改日报
*/
*/
staffDailyReport
()
{
staffDailyReport
()
{
let
{
userInfo
}
=
this
let
{
userInfo
}
=
this
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
$api
.
interceptionApi
uni
.
$api
.
interceptionApi
...
@@ -92,7 +92,8 @@ export default {
...
@@ -92,7 +92,8 @@ export default {
const
pages
=
getCurrentPages
(),
const
pages
=
getCurrentPages
(),
currentPage
=
pages
[
pages
.
length
-
1
]
currentPage
=
pages
[
pages
.
length
-
1
]
if
(
currentPage
.
route
==
'pages/boutique/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
if
(
currentPage
.
route
==
'pages/boutique/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
else
uni
.
navigateTo
({
else
uni
.
navigateTo
({
url
:
`/pages/boutique/tool/index?componentName=DailyReport¤tDate=
${
formattedDate
}
`
url
:
`/pages/boutique/tool/index?componentName=DailyReport¤tDate=
${
formattedDate
}
`
})
})
}
}
...
@@ -110,7 +111,7 @@ export default {
...
@@ -110,7 +111,7 @@ export default {
/**
/**
* 二手车日报
* 二手车日报
*/
*/
usedCarDailyReport
()
{
usedCarDailyReport
()
{
let
{
userInfo
}
=
this
let
{
userInfo
}
=
this
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
const
data
=
await
uni
.
$api
.
interceptionApi
.
checkUsedCarStaffIsNew
({
const
data
=
await
uni
.
$api
.
interceptionApi
.
checkUsedCarStaffIsNew
({
...
@@ -120,10 +121,11 @@ export default {
...
@@ -120,10 +121,11 @@ export default {
staffPhone
:
userInfo
.
phone
,
staffPhone
:
userInfo
.
phone
,
sceneType
:
7
sceneType
:
7
})
})
if
(
!
data
)
resolve
(
false
)
//检测是否新员工或调店 flase不检测日报 true检测日报
if
(
!
data
)
resolve
(
false
)
//检测是否新员工或调店 flase不检测日报 true检测日报
else
{
else
{
const
_data
=
await
uni
.
$api
.
interceptionApi
.
checkUsedCarStaffDailyReportValid
({
const
_data
=
await
uni
.
$api
.
interceptionApi
.
checkUsedCarStaffDailyReportValid
({
sellerMerchantId
:
userInfo
.
shopMerchantId
,
sellerMerchantId
:
userInfo
.
shopMerchantId
})
//true 已填写 false 未填写
})
//true 已填写 false 未填写
if
(
!
_data
)
{
if
(
!
_data
)
{
// 获取当前日期
// 获取当前日期
...
@@ -141,7 +143,8 @@ export default {
...
@@ -141,7 +143,8 @@ export default {
const
pages
=
getCurrentPages
(),
const
pages
=
getCurrentPages
(),
currentPage
=
pages
[
pages
.
length
-
1
]
currentPage
=
pages
[
pages
.
length
-
1
]
if
(
currentPage
.
route
==
'pages/usedCar/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
if
(
currentPage
.
route
==
'pages/usedCar/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
else
uni
.
navigateTo
({
else
uni
.
navigateTo
({
url
:
`/pages/usedCar/tool/index?componentName=DailyReport¤tDate=
${
formattedDate
}
`
url
:
`/pages/usedCar/tool/index?componentName=DailyReport¤tDate=
${
formattedDate
}
`
})
})
}
}
...
@@ -149,10 +152,9 @@ export default {
...
@@ -149,10 +152,9 @@ export default {
resolve
(
true
)
resolve
(
true
)
}
else
resolve
(
false
)
}
else
resolve
(
false
)
}
}
})
})
},
},
clockedIntoWork
()
{
clockedIntoWork
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
$api
.
interceptionApi
uni
.
$api
.
interceptionApi
.
clockInConfigPhone
({})
.
clockInConfigPhone
({})
...
@@ -179,7 +181,7 @@ export default {
...
@@ -179,7 +181,7 @@ export default {
})
})
},
},
/**延保日报 */
/**延保日报 */
equityStaffDailyReport
()
{
equityStaffDailyReport
()
{
let
{
userInfo
}
=
this
let
{
userInfo
}
=
this
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
$api
.
interceptionApi
uni
.
$api
.
interceptionApi
...
@@ -207,7 +209,8 @@ export default {
...
@@ -207,7 +209,8 @@ export default {
const
pages
=
getCurrentPages
(),
const
pages
=
getCurrentPages
(),
currentPage
=
pages
[
pages
.
length
-
1
]
currentPage
=
pages
[
pages
.
length
-
1
]
if
(
currentPage
.
route
==
'pages/equity/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
if
(
currentPage
.
route
==
'pages/equity/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
else
uni
.
navigateTo
({
else
uni
.
navigateTo
({
url
:
`/pages/equity/tool/index?componentName=DailyReport¤tDate=
${
formattedDate
}
`
url
:
`/pages/equity/tool/index?componentName=DailyReport¤tDate=
${
formattedDate
}
`
})
})
}
}
...
@@ -216,12 +219,13 @@ export default {
...
@@ -216,12 +219,13 @@ export default {
}
else
{
}
else
{
resolve
(
false
)
resolve
(
false
)
}
}
}).
catch
(
err
=>
{
})
.
catch
(
err
=>
{
resolve
()
resolve
()
})
})
})
})
},
},
addModalToQueue
(
title
,
content
,
confirmText
,
showCancel
,
priority
,
eventCallback
)
{
addModalToQueue
(
title
,
content
,
confirmText
,
showCancel
,
priority
,
eventCallback
)
{
if
(
modalQueue
.
findIndex
(
val
=>
val
.
content
==
content
)
<
0
)
if
(
modalQueue
.
findIndex
(
val
=>
val
.
content
==
content
)
<
0
)
modalQueue
.
push
({
modalQueue
.
push
({
title
,
title
,
...
@@ -236,7 +240,7 @@ export default {
...
@@ -236,7 +240,7 @@ export default {
/**
/**
* 查询当前员工处罚情况
* 查询当前员工处罚情况
*/
*/
async
inspectionOfProhibitionBill
()
{
async
inspectionOfProhibitionBill
()
{
const
data
=
await
uni
.
$api
.
interceptionApi
.
checkStaffStudyPunish
()
const
data
=
await
uni
.
$api
.
interceptionApi
.
checkStaffStudyPunish
()
if
(
data
)
if
(
data
)
uni
.
showModal
({
uni
.
showModal
({
...
@@ -250,17 +254,16 @@ export default {
...
@@ -250,17 +254,16 @@ export default {
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
},
},
// 限制录单
// 限制录单
async
getLimitRecord
()
{
async
getLimitRecord
()
{
const
data
=
await
uni
.
$api
.
commonApi
.
getLimitRecord
()
const
data
=
await
uni
.
$api
.
commonApi
.
getLimitRecord
()
if
(
data
)
if
(
data
)
console
.
log
(
data
,
'限制录单'
)
console
.
log
(
data
,
'限制录单'
)
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
},
},
async
getAbnormalOrderLock
()
{
async
getAbnormalOrderLock
()
{
const
data
=
await
uni
.
$api
.
commonApi
.
getAbnormalOrderLock
()
let
{
sceneType
}
=
this
.
userInfo
if
(
data
)
const
data
=
await
uni
.
$api
.
commonApi
.
getAbnormalOrderLock
({
sceneType
:
sceneType
}
)
console
.
log
(
data
,
'异常订单锁单信息'
)
if
(
data
)
console
.
log
(
data
,
'异常订单锁单信息'
)
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
}
,
}
}
}
}
}
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