Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 00221d2f
authored
Jan 21, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+v5.5.3' into SAAS+V5.6.1
2 parents
1de6dfb4
77f70cb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
153 additions
and
153 deletions
components/report-template-popup/report-template-popup.js
pages/tab/workspace/workspace.js
components/report-template-popup/report-template-popup.js
View file @
00221d2
...
@@ -11,12 +11,11 @@ Component({
...
@@ -11,12 +11,11 @@ Component({
},
},
methods
:
{
methods
:
{
onModalBtn
(
e
)
{
onModalBtn
(
e
)
{
// modal button click: 0 is Cancel
this
.
triggerEvent
(
'cancel'
)
this
.
triggerEvent
(
'cancel'
);
},
},
onSelect
(
e
)
{
onSelect
(
e
)
{
const
item
=
e
.
currentTarget
.
dataset
.
item
;
const
item
=
e
.
currentTarget
.
dataset
.
item
this
.
triggerEvent
(
'select'
,
item
)
;
this
.
triggerEvent
(
'select'
,
item
)
}
}
}
}
})
})
pages/tab/workspace/workspace.js
View file @
00221d2
// pages/tab/workspace/workspace.js
// pages/tab/workspace/workspace.js
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
import
{
import
{
getWaitAuditCountAPI
,
getWaitAuditCountAPI
,
waitstaffstateAPI
,
waitstaffstateAPI
,
getStaffTemplate
getStaffTemplate
}
from
'~/api/api'
}
from
'~/api/api'
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
...
@@ -14,101 +14,113 @@ Page({
...
@@ -14,101 +14,113 @@ Page({
IMG_URL
,
IMG_URL
,
navBarHeight
:
0
,
navBarHeight
:
0
,
showBanner
:
true
,
showBanner
:
true
,
approvalMenus
:
[{
approvalMenus
:
[
name
:
'退款审批'
,
{
icon
:
'refund-review'
,
name
:
'退款审批'
,
url
:
'packageWorkspace.refundOperationList'
,
icon
:
'refund-review'
,
trackingCode
:
'regional-assistant-refund-approval'
url
:
'packageWorkspace.refundOperationList'
,
}],
trackingCode
:
'regional-assistant-refund-approval'
storeManagementMenus
:
[{
}
name
:
"驻店管理"
,
],
url
:
"packageWorkspace.residentManage"
,
storeManagementMenus
:
[
icon
:
"resident-manage"
,
{
trackingCode
:
'regional-assistant-resident-manage'
name
:
'驻店管理'
,
},
{
url
:
'packageWorkspace.residentManage'
,
name
:
"工作日报"
,
icon
:
'resident-manage'
,
url
:
"packageWorkspace.supervisorDaily"
,
trackingCode
:
'regional-assistant-resident-manage'
icon
:
"warranty-supervisor-daily"
,
},
reportTypeAttr
:
'daily'
,
{
reportTypeVal
:
'1'
,
name
:
'工作日报'
,
trackingCode
:
'regional-modifications-supervisor-daily'
url
:
'packageWorkspace.supervisorDaily'
,
},
{
icon
:
'warranty-supervisor-daily'
,
name
:
"工作周报"
,
reportTypeAttr
:
'daily'
,
url
:
"packageWorkspace.supervisorDaily"
,
reportTypeVal
:
'1'
,
icon
:
"modifications-supervisor-week"
,
trackingCode
:
'regional-modifications-supervisor-daily'
reportTypeAttr
:
'weekly'
,
},
reportTypeVal
:
'2'
,
{
trackingCode
:
'regional-modifications-supervisor-daily'
name
:
'工作周报'
,
},
{
url
:
'packageWorkspace.supervisorDaily'
,
name
:
"工作月报"
,
icon
:
'modifications-supervisor-week'
,
url
:
"packageWorkspace.supervisorDaily"
,
reportTypeAttr
:
'weekly'
,
icon
:
"modifications-supervisor-month"
,
reportTypeVal
:
'2'
,
reportTypeAttr
:
'monthly'
,
trackingCode
:
'regional-modifications-supervisor-daily'
reportTypeVal
:
'3'
,
},
trackingCode
:
'regional-modifications-supervisor-daily'
{
}],
name
:
'工作月报'
,
staffDevelopmentMenus
:
[{
url
:
'packageWorkspace.supervisorDaily'
,
name
:
"招聘管理"
,
icon
:
'modifications-supervisor-month'
,
url
:
"packageWorkspace.recruitManage"
,
reportTypeAttr
:
'monthly'
,
icon
:
"recruit-manage"
,
reportTypeVal
:
'3'
,
tipsNum
:
0
,
trackingCode
:
'regional-modifications-supervisor-daily'
trackingCode
:
'regional-assistant-recruit-manage'
}
},
{
],
name
:
"人才分析"
,
staffDevelopmentMenus
:
[
url
:
"packageWorkspace.talentAnalysis"
,
{
icon
:
"talent-analysis"
,
name
:
'招聘管理'
,
trackingCode
:
'regional-assistant-talent-analysis'
url
:
'packageWorkspace.recruitManage'
,
}],
icon
:
'recruit-manage'
,
compensationMenus
:
[{
tipsNum
:
0
,
name
:
"绩效评分"
,
trackingCode
:
'regional-assistant-recruit-manage'
path
:
"/packageWorkspace/pages/performanceRating/rateList/retaList"
,
},
icon
:
"performance_rating_icon"
,
{
trackingCode
:
'regional-assistant-performance-rating'
name
:
'人才分析'
,
},
{
url
:
'packageWorkspace.talentAnalysis'
,
name
:
"有效引荐数"
,
icon
:
'talent-analysis'
,
path
:
"/packageWorkspace/pages/validReferralCount/referralCountList/referralCountList"
,
trackingCode
:
'regional-assistant-talent-analysis'
icon
:
"valid_referrals_icon"
,
}
trackingCode
:
'regional-assistant-valid-referrals'
],
},
{
compensationMenus
:
[
name
:
"考勤统计"
,
{
path
:
"/packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList"
,
name
:
'绩效评分'
,
icon
:
"attendance_statistics_icon"
,
path
:
'/packageWorkspace/pages/performanceRating/rateList/retaList'
,
trackingCode
:
'regional-assistant-attendance-statistics'
icon
:
'performance_rating_icon'
,
},
{
trackingCode
:
'regional-assistant-performance-rating'
name
:
"申诉单"
,
},
path
:
"/packageWorkspace/pages/appealFormManage/appealFormList/appealFormList"
,
{
icon
:
"appeal_form_icon"
,
name
:
'有效引荐数'
,
trackingCode
:
'regional-assistant-appeal-form'
path
:
'/packageWorkspace/pages/validReferralCount/referralCountList/referralCountList'
,
},
{
icon
:
'valid_referrals_icon'
,
name
:
"订单审核"
,
trackingCode
:
'regional-assistant-valid-referrals'
path
:
"/packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList"
,
},
icon
:
"order_approval_icon"
,
{
trackingCode
:
'regional-assistant-order-approval'
name
:
'考勤统计'
,
}],
path
:
'/packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList'
,
icon
:
'attendance_statistics_icon'
,
trackingCode
:
'regional-assistant-attendance-statistics'
},
{
name
:
'申诉单'
,
path
:
'/packageWorkspace/pages/appealFormManage/appealFormList/appealFormList'
,
icon
:
'appeal_form_icon'
,
trackingCode
:
'regional-assistant-appeal-form'
},
{
name
:
'订单审核'
,
path
:
'/packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList'
,
icon
:
'order_approval_icon'
,
trackingCode
:
'regional-assistant-order-approval'
}
],
showReportPopup
:
false
,
showReportPopup
:
false
,
reportTemplateList
:
[],
reportTemplateList
:
[],
currentReportItem
:
null
,
currentReportItem
:
null
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{
onReady
()
{},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
;
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
this
.
setData
({
navBarHeight
,
navBarHeight
})
;
})
},
},
closeBannaer
()
{
closeBannaer
()
{
...
@@ -119,28 +131,28 @@ Page({
...
@@ -119,28 +131,28 @@ Page({
onReportPopupCancel
()
{
onReportPopupCancel
()
{
this
.
setData
({
this
.
setData
({
showReportPopup
:
false
,
showReportPopup
:
false
})
;
})
},
},
onReportPopupSelect
(
e
)
{
onReportPopupSelect
(
e
)
{
const
selectedTemplate
=
e
.
detail
;
const
selectedTemplate
=
e
.
detail
this
.
setData
({
this
.
setData
({
showReportPopup
:
false
,
showReportPopup
:
false
})
;
})
console
.
log
(
selectedTemplate
,
'selectedTemplate---'
)
console
.
log
(
selectedTemplate
,
'selectedTemplate---'
)
const
item
=
this
.
data
.
currentReportItem
;
const
item
=
this
.
data
.
currentReportItem
if
(
!
item
)
return
;
if
(
!
item
)
return
// Merge params
// Merge params
const
params
=
{
const
params
=
{
// ...(item.params || {}),
// ...(item.params || {}),
reportTypeAttr
:
item
.
reportTypeAttr
,
reportTypeAttr
:
item
.
reportTypeAttr
,
...(
selectedTemplate
||
{}),
...(
selectedTemplate
||
{})
}
;
}
wx
.
$router
.
go
(
item
.
url
,
{
wx
.
$router
.
go
(
item
.
url
,
{
params
:
params
,
params
:
params
})
;
})
},
},
/**
/**
...
@@ -152,9 +164,9 @@ Page({
...
@@ -152,9 +164,9 @@ Page({
if
(
userInfo
.
sceneType
==
0
)
{
if
(
userInfo
.
sceneType
==
0
)
{
if
(
storeManagementMenus
.
every
(
item
=>
item
.
name
!=
'接待记录'
))
{
if
(
storeManagementMenus
.
every
(
item
=>
item
.
name
!=
'接待记录'
))
{
storeManagementMenus
.
push
({
storeManagementMenus
.
push
({
name
:
"接待记录"
,
name
:
'接待记录'
,
icon
:
"reception-record"
,
icon
:
'reception-record'
,
url
:
"packageWorkspace.receptionRecords"
,
url
:
'packageWorkspace.receptionRecords'
,
trackingCode
:
'regional-assistant-reception-records'
trackingCode
:
'regional-assistant-reception-records'
})
})
}
}
...
@@ -168,15 +180,18 @@ Page({
...
@@ -168,15 +180,18 @@ Page({
// })
// })
// }
// }
}
}
this
.
setData
({
this
.
setData
(
approvalMenus
,
{
storeManagementMenus
approvalMenus
,
},
()
=>
{
storeManagementMenus
// 获取退款待审批数量
},
this
.
getWaitAuditCount
(
userInfo
)
()
=>
{
// 获取招聘管理待处理数量
// 获取退款待审批数量
this
.
getWaitStaff
()
this
.
getWaitAuditCount
(
userInfo
)
})
// 获取招聘管理待处理数量
this
.
getWaitStaff
()
}
)
},
},
getWaitAuditCount
(
userInfo
)
{
getWaitAuditCount
(
userInfo
)
{
...
@@ -185,13 +200,11 @@ Page({
...
@@ -185,13 +200,11 @@ Page({
getWaitAuditCountAPI
({
getWaitAuditCountAPI
({
sceneType
:
userInfo
?.
sceneType
sceneType
:
userInfo
?.
sceneType
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
let
{
code
,
data
}
=
res
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
this
.
setData
({
this
.
setData
({
[
`approvalMenus[
${
index
}
].tipsNum`
]:
data
.
waiteForAuditNum
>
99
?
'99+'
:
data
.
waiteForAuditNum
[
`approvalMenus[
${
index
}
].tipsNum`
]:
data
.
waiteForAuditNum
>
99
?
'99+'
:
data
.
waiteForAuditNum
})
})
}
}
})
})
...
@@ -201,33 +214,30 @@ Page({
...
@@ -201,33 +214,30 @@ Page({
let
index
=
staffDevelopmentMenus
.
findIndex
(
e
=>
e
.
name
==
'招聘管理'
)
let
index
=
staffDevelopmentMenus
.
findIndex
(
e
=>
e
.
name
==
'招聘管理'
)
waitstaffstateAPI
()
waitstaffstateAPI
()
.
then
(
result
=>
{
.
then
(
result
=>
{
let
{
let
{
code
,
data
}
=
result
code
,
data
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
console
.
log
(
"调统计招聘"
,
data
);
console
.
log
(
'调统计招聘'
,
data
)
this
.
setData
({
this
.
setData
({
[
`staffDevelopmentMenus[
${
index
}
].tipsNum`
]:
data
.
waitProcessCount
[
`staffDevelopmentMenus[
${
index
}
].tipsNum`
]:
data
.
waitProcessCount
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{})
},
},
jump
(
e
)
{
jump
(
e
)
{
// 创建节流函数,1500ms 内只能触发一次
// 创建节流函数,1500ms 内只能触发一次
if
(
!
this
.
throttledJump
)
{
if
(
!
this
.
throttledJump
)
{
this
.
throttledJump
=
wx
.
$util
.
throttle
(
(
event
)
=>
this
.
jumpTo
(
event
),
1500
);
this
.
throttledJump
=
wx
.
$util
.
throttle
(
event
=>
this
.
jumpTo
(
event
),
1500
)
}
}
this
.
throttledJump
(
e
)
;
// 调用节流后的函数
this
.
throttledJump
(
e
)
// 调用节流后的函数
},
},
openWorkReportTemp
(
targetItem
)
{
openWorkReportTemp
(
targetItem
)
{
const
tipTxtObj
=
{
const
tipTxtObj
=
{
'daily'
:
'暂无可填日报模版,请找总部运营配置'
,
daily
:
'暂无可填日报模版,请找总部运营配置'
,
'weekly'
:
'暂无可填周报模版,请找总部运营配置'
,
weekly
:
'暂无可填周报模版,请找总部运营配置'
,
'monthly'
:
'暂无可填月报模版,请找总部运营配置'
monthly
:
'暂无可填月报模版,请找总部运营配置'
}
}
getStaffTemplate
({
reportType
:
targetItem
.
reportTypeVal
}).
then
(
res
=>
{
getStaffTemplate
({
reportType
:
targetItem
.
reportTypeVal
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
...
@@ -241,69 +251,60 @@ Page({
...
@@ -241,69 +251,60 @@ Page({
showReportPopup
:
true
,
showReportPopup
:
true
,
reportTemplateList
:
data
,
reportTemplateList
:
data
,
currentReportItem
:
targetItem
||
null
currentReportItem
:
targetItem
||
null
})
;
})
}
}
})
})
},
},
jumpTo
(
e
)
{
jumpTo
(
e
)
{
let
{
url
,
query
,
trackingCode
,
params
,
path
}
=
e
.
currentTarget
.
dataset
.
target
let
{
url
,
query
,
trackingCode
,
params
,
path
}
=
e
.
currentTarget
.
dataset
.
target
let
item
=
e
.
currentTarget
.
dataset
.
target
let
item
=
e
.
currentTarget
.
dataset
.
target
if
(
item
.
url
==
"packageWorkspace.supervisorDaily"
)
{
if
(
item
.
url
==
'packageWorkspace.supervisorDaily'
)
{
this
.
openWorkReportTemp
(
item
)
this
.
openWorkReportTemp
(
item
)
return
;
return
}
}
let
userInfo
=
wx
.
$util
.
getUserInfo
()
let
userInfo
=
wx
.
$util
.
getUserInfo
()
// 埋点
// 埋点
wx
.
$track
.
setTrackData
(
0
,
trackingCode
,
{},
''
,
userInfo
?.
sceneType
)
wx
.
$track
.
setTrackData
(
0
,
trackingCode
,
{},
''
,
userInfo
?.
sceneType
)
if
(
url
==
'packageWorkspace.receptionRecords'
&&
query
)
{
if
(
url
==
'packageWorkspace.receptionRecords'
&&
query
)
{
return
wx
.
navigateTo
({
return
wx
.
navigateTo
({
url
:
'/packageWorkspace/pages/receptionRecords/receptionRecords?hideScore=1'
,
url
:
'/packageWorkspace/pages/receptionRecords/receptionRecords?hideScore=1'
})
})
}
}
if
(
path
)
{
if
(
path
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`
${
path
}
`
,
url
:
`
${
path
}
`
})
})
return
return
}
}
wx
.
$router
.
go
(
url
,
{
wx
.
$router
.
go
(
url
,
{
params
:
params
||
{}
,
params
:
params
||
{}
})
})
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
()
{
onHide
()
{},
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
()
{
onUnload
()
{},
},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
()
{
onPullDownRefresh
()
{},
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom
()
{
onReachBottom
()
{},
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
\ No newline at end of file
onShareAppMessage
()
{}
})
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