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 23bd05d7
authored
Sep 08, 2025
by
胡悦
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
365dbe93
00524deb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
15 deletions
components/HomeFrame/index.vue
pages/boutique/tool/index.vue
components/HomeFrame/index.vue
View file @
23bd05d
...
...
@@ -401,7 +401,8 @@ export default {
this
.
checkVersion
()
},
async
entranceClick
(
item
)
{
if
(
item
.
name
!=
'DailyReport'
&&
(
await
this
.
checkDailyReport
()
||
await
this
.
inspectionOfProhibitionBill
()))
return
const
noInterceptPage
=
[
'DailyReport'
,
'OrderManagement'
]
if
(
!
noInterceptPage
.
includes
(
item
.
name
)
&&
(
await
this
.
checkDailyReport
()
||
await
this
.
inspectionOfProhibitionBill
()))
return
uni
.
navigateTo
({
url
:
`/pages/boutique/tool/index?componentName=
${
item
.
name
}
`
})
...
...
@@ -590,7 +591,7 @@ export default {
}
.tool-box
{
height
:
calc
(
100%
-
#{
toRpx
(
712
)}
);
.content-box
{
.content-box
{
margin
:
0
toRpx
(
48
);
}
}
...
...
pages/boutique/tool/index.vue
View file @
23bd05d
<
template
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
<view
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
<view
class=
"title"
>
展业工具
</view>
</view>
...
...
@@ -10,20 +17,46 @@
<view
class=
"detail-left"
>
<view
class=
"common-title"
>
展业
</view>
<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'"
>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
</
template
>
<
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" :date="currentDate" />
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
:date="currentDate"
/>
</
template
>
</view>
</view>
<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>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
</view>
</template>
...
...
@@ -53,7 +86,7 @@ export default {
UploadProofOfPayment
,
OrderDetail
},
data
()
{
data
()
{
return
{
toolComponentName
:
''
,
transmissionOfData
:
null
,
...
...
@@ -63,7 +96,7 @@ export default {
selectedDays
:
[]
}
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
if
(
options
.
currentDate
)
this
.
currentDate
=
options
.
currentDate
uni
.
$on
(
'jumpToDailyReport'
,
currentDate
=>
{
...
...
@@ -72,9 +105,9 @@ export default {
})
},
methods
:
{
async
entranceClick
(
item
)
{
cons
ole
.
log
(
item
)
if
(
item
.
name
!=
'DailyReport'
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
async
entranceClick
(
item
)
{
cons
t
noInterceptPage
=
[
'DailyReport'
,
'OrderManagement'
]
if
(
!
noInterceptPage
.
includes
(
item
.
name
)
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
// 保存当前选择的组件信息,但不立即切换
const
selectedItem
=
item
if
(
this
.
toolComponentName
==
selectedItem
.
name
)
return
...
...
@@ -112,11 +145,11 @@ export default {
// 打开弹窗
this
.
$refs
.
notice
.
open
()
},
backPage
()
{
backPage
()
{
uni
.
navigateBack
()
},
// name:跳转组件名,val:跳转参数
jump
(
name
,
val
)
{
jump
(
name
,
val
)
{
this
.
toolComponentName
=
name
console
.
log
(
this
.
toolComponentName
,
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