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 005212bf
authored
Aug 25, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'V4.56.0' of
http://192.168.3.233:8090/glsx/gl_tape
into V4.56.0
2 parents
58b760db
afd0d635
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
26 deletions
components/HomeFrame/index.vue
mixin/interceptionMixin.js
pages/boutique/tool/index.vue
components/HomeFrame/index.vue
View file @
005212b
...
@@ -401,7 +401,7 @@ export default {
...
@@ -401,7 +401,7 @@ export default {
this
.
checkVersion
()
this
.
checkVersion
()
},
},
async
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
//
if (item.name != 'DailyReport' && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
if
(
item
.
name
!=
'DailyReport'
&&
(
await
this
.
checkDailyReport
()
||
await
this
.
inspectionOfProhibitionBill
()))
return
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/boutique/tool/index?componentName=
${
item
.
name
}
`
url
:
`/pages/boutique/tool/index?componentName=
${
item
.
name
}
`
})
})
...
...
mixin/interceptionMixin.js
View file @
005212b
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
:
{
async
checkDailyReport
()
{
async
checkDailyReport
()
{
modalQueue
=
[]
modalQueue
=
[]
eventRequest
=
[]
eventRequest
=
[]
let
{
sceneType
,
isSuper
,
loginRole
}
=
this
.
userInfo
let
{
sceneType
,
isSuper
,
loginRole
}
=
this
.
userInfo
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,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;
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,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
...
@@ -79,12 +79,12 @@ export default {
...
@@ -79,12 +79,12 @@ export default {
// if (wx.__HAS_NOTLOGIN_MODAL) return false; //
// if (wx.__HAS_NOTLOGIN_MODAL) return false; //
this
.
addModalToQueue
(
'日报提醒'
,
'您有未填写的日报,请点击前往。'
,
'前往填写'
,
false
,
2
,
res
=>
{
this
.
addModalToQueue
(
'日报提醒'
,
'您有未填写的日报,请点击前往。'
,
'前往填写'
,
false
,
2
,
res
=>
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
uni
.
navigateTo
({
const
pages
=
getCurrentPages
(),
currentPage
=
pages
[
pages
.
length
-
1
]
if
(
currentPage
.
route
==
'pages/boutique/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
)
else
uni
.
navigateTo
({
url
:
`/pages/boutique/tool/index?componentName=DailyReport`
url
:
`/pages/boutique/tool/index?componentName=DailyReport`
})
})
// wx.$router.go("tabWorkOrder.upgradeStaffDaily", {
// reportDate: formattedDate,
// });
}
}
})
})
resolve
(
true
)
resolve
(
true
)
...
@@ -97,7 +97,7 @@ export default {
...
@@ -97,7 +97,7 @@ export default {
})
})
})
})
},
},
clockedIntoWork
()
{
clockedIntoWork
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
$api
.
interceptionApi
uni
.
$api
.
interceptionApi
.
clockInConfigPhone
({})
.
clockInConfigPhone
({})
...
@@ -123,8 +123,8 @@ export default {
...
@@ -123,8 +123,8 @@ export default {
})
})
})
})
},
},
equityStaffDailyReport
()
{
},
equityStaffDailyReport
()
{
},
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
,
...
@@ -139,7 +139,7 @@ export default {
...
@@ -139,7 +139,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
({
...
...
pages/boutique/tool/index.vue
View file @
005212b
<
template
>
<
template
>
<view
class=
"detail-box"
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"backPage"
>
<view
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
</view>
<view
class=
"title"
>
展业工具
</view>
<view
class=
"title"
>
展业工具
</view>
</view>
</view>
...
@@ -10,20 +17,45 @@
...
@@ -10,20 +17,45 @@
<view
class=
"detail-left"
>
<view
class=
"detail-left"
>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<image
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
<image
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" />
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
/>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"detail-right"
>
<view
class=
"detail-right"
>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
</view>
</view>
</view>
</view>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
</view>
</view>
</template>
</template>
...
@@ -38,7 +70,10 @@ import OrderDetail from './components/OrderDetail.vue'
...
@@ -38,7 +70,10 @@ import OrderDetail from './components/OrderDetail.vue'
import
UploadProofOfPayment
from
'./components/UploadProofOfPayment.vue'
import
UploadProofOfPayment
from
'./components/UploadProofOfPayment.vue'
import
NoticePopup
from
'./components/NoticePopup.vue'
import
NoticePopup
from
'./components/NoticePopup.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
interceptionMixin
}
from
'@/mixin/index'
export
default
{
export
default
{
mixins
:
[
interceptionMixin
],
components
:
{
components
:
{
Entrance
,
Entrance
,
CreateOrder
,
CreateOrder
,
...
@@ -50,7 +85,7 @@ export default {
...
@@ -50,7 +85,7 @@ export default {
UploadProofOfPayment
,
UploadProofOfPayment
,
OrderDetail
OrderDetail
},
},
data
()
{
data
()
{
return
{
return
{
toolComponentName
:
''
,
toolComponentName
:
''
,
transmissionOfData
:
null
,
transmissionOfData
:
null
,
...
@@ -60,12 +95,16 @@ export default {
...
@@ -60,12 +95,16 @@ export default {
selectedDays
:
[]
selectedDays
:
[]
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
uni
.
$on
(
'jumpToDailyReport'
,
_
=>
{
this
.
toolComponentName
=
'DailyReport'
})
},
},
methods
:
{
methods
:
{
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
if
(
item
.
name
!=
'DailyReport'
&&
(
await
this
.
checkDailyReport
()
||
await
this
.
inspectionOfProhibitionBill
()))
return
// 保存当前选择的组件信息,但不立即切换
// 保存当前选择的组件信息,但不立即切换
const
selectedItem
=
item
const
selectedItem
=
item
if
(
this
.
toolComponentName
==
selectedItem
.
name
)
return
if
(
this
.
toolComponentName
==
selectedItem
.
name
)
return
...
@@ -100,11 +139,11 @@ export default {
...
@@ -100,11 +139,11 @@ export default {
// 打开弹窗
// 打开弹窗
this
.
$refs
.
notice
.
open
()
this
.
$refs
.
notice
.
open
()
},
},
backPage
()
{
backPage
()
{
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
// name:跳转组件名,val:跳转参数
// name:跳转组件名,val:跳转参数
jump
(
name
,
val
)
{
jump
(
name
,
val
)
{
this
.
toolComponentName
=
name
this
.
toolComponentName
=
name
console
.
log
(
this
.
toolComponentName
)
console
.
log
(
this
.
toolComponentName
)
if
(
val
)
{
if
(
val
)
{
...
...
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