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 3dbd35d2
authored
Oct 31, 2025
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:招聘管理入口文件配置
1 parent
02de293f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
14 deletions
packageCrowdFunding/api.js
packageCrowdFunding/pages/homePage/index/index.js
subvehicleConversion/pages/indexPage/index.js
tabIndex/pages/index/index.js
tabIndex/pages/index/index.sass
packageCrowdFunding/api.js
View file @
3dbd35d
...
@@ -58,5 +58,14 @@ module.exports = {
...
@@ -58,5 +58,14 @@ module.exports = {
/** 获取首页统计数据 */
/** 获取首页统计数据 */
getStaticData
(
data
)
{
getStaticData
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.shopmallActivity.getMerchantCrowdfundingStatistics'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.shopmallActivity.getMerchantCrowdfundingStatistics'
,
data
)
},
/** 待处理招聘统计 */
waitstaffstateAPI
(
data
)
{
return
api
.
post
(
'dj.api.staff.miniprogram.recruitment.demand.stat'
,
data
,
[],
'/rop-dj-staff-miniprogram/router'
)
}
}
}
}
packageCrowdFunding/pages/homePage/index/index.js
View file @
3dbd35d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import
api
from
'~/packageCrowdFunding/api'
import
api
from
'~/packageCrowdFunding/api'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
import
{
waitstaffstateAPI
}
from
'~/api/api'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -75,6 +76,14 @@ Component({
...
@@ -75,6 +76,14 @@ Component({
isTab
:
true
,
isTab
:
true
,
tabIndex
:
1
tabIndex
:
1
},
},
{
menuText
:
'招聘管理'
,
icon
:
'event_management'
,
path
:
''
,
isTab
:
true
,
tabIndex
:
1
,
tipsNum
:
99
},
// {
// {
// menuText: '话术库',
// menuText: '话术库',
// icon: 'script _library',
// icon: 'script _library',
...
@@ -104,12 +113,22 @@ Component({
...
@@ -104,12 +113,22 @@ Component({
icon
:
"sceneMarket"
,
icon
:
"sceneMarket"
,
navigateToUrl
:
"/packageEquity/pages/sceneMarket/index/index"
,
navigateToUrl
:
"/packageEquity/pages/sceneMarket/index/index"
,
})
})
// 仅区域运营展示招聘管理模块
if
((
userInfo
.
loginRole
==
3
)
&&
menuList
.
every
((
item
)
=>
item
.
menuText
!=
"招聘管理"
))
menuList
.
push
({
menuText
:
"招聘管理"
,
icon
:
"recruit-manage"
,
path
:
'packageEquity.recruitManage'
,
isTab
:
true
,
tabIndex
:
1
,
tipsNum
:
0
})
this
.
setData
({
this
.
setData
({
loginRole
,
loginRole
,
userInfo
,
userInfo
,
menuList
menuList
})
})
this
.
getData
()
this
.
getData
()
this
.
getWaitStaff
()
// 在组件加载时调用
}
}
},
},
...
@@ -138,6 +157,24 @@ Component({
...
@@ -138,6 +157,24 @@ Component({
}
}
})
})
},
},
// 招聘管理首页需求分析
getWaitStaff
()
{
const
{
menuList
}
=
this
.
data
const
index
=
menuList
.
findIndex
(
e
=>
e
.
menuText
===
'招聘管理'
)
waitstaffstateAPI
()
.
then
(
result
=>
{
const
{
code
,
data
}
=
result
if
(
code
==
0
)
{
this
.
setData
({
[
`menuList[
${
index
}
].tipsNum`
]:
data
.
waitProcessCount
||
0
})
}
})
.
catch
(
err
=>
{
console
.
error
(
'获取招聘管理统计失败:'
,
err
)
})
},
navGo
(
e
)
{
navGo
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
...
...
subvehicleConversion/pages/indexPage/index.js
View file @
3dbd35d
import
api
from
'~/subvehicleConversion/api'
import
api
from
'~/subvehicleConversion/api'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import
{
waitstaffstateAPI
}
from
'~/api/api'
Component
({
Component
({
properties
:
{
properties
:
{
navBarHeight
:
Number
navBarHeight
:
Number
...
@@ -19,12 +20,14 @@ Component({
...
@@ -19,12 +20,14 @@ Component({
{
title
:
'调查问卷'
,
imgName
:
'questionnaire'
,
isOpen
:
false
},
{
title
:
'调查问卷'
,
imgName
:
'questionnaire'
,
isOpen
:
false
},
{
title
:
'营销素材'
,
imgName
:
'marketingMaterial'
,
isOpen
:
false
},
{
title
:
'营销素材'
,
imgName
:
'marketingMaterial'
,
isOpen
:
false
},
{
title
:
'业务申请'
,
imgName
:
'businessApplication'
,
isOpen
:
false
},
{
title
:
'业务申请'
,
imgName
:
'businessApplication'
,
isOpen
:
false
},
{
title
:
'招聘管理'
,
imgName
:
'businessApplication'
,
isOpen
:
false
,
tipsNum
:
99
},
],
],
exhibitionToolsList
:
[
exhibitionToolsList
:
[
{
title
:
'调查问卷'
,
icon
:
'questionnaire'
,
isOpen
:
false
},
{
title
:
'调查问卷'
,
icon
:
'questionnaire'
,
isOpen
:
false
},
{
title
:
'营销素材'
,
icon
:
'marketing_materials'
,
isOpen
:
false
},
{
title
:
'营销素材'
,
icon
:
'marketing_materials'
,
isOpen
:
false
},
{
title
:
'业务申请'
,
icon
:
'business_application'
,
isOpen
:
false
},
{
title
:
'业务申请'
,
icon
:
'business_application'
,
isOpen
:
false
},
{
title
:
'活动管理'
,
icon
:
'event_management'
,
isOpen
:
true
,
path
:
'activityManagement'
,
isTab
:
true
,
tabIndex
:
2
},
{
title
:
'活动管理'
,
icon
:
'event_management'
,
isOpen
:
true
,
path
:
'activityManagement'
,
isTab
:
true
,
tabIndex
:
2
},
{
title
:
'招聘管理'
,
imgName
:
'businessApplication'
,
isOpen
:
false
,
tipsNum
:
99
},
// {title: '话术库', icon: 'script _library', isOpen: false},
// {title: '话术库', icon: 'script _library', isOpen: false},
{
title
:
'订单补录'
,
icon
:
'supplementary_order'
,
isOpen
:
true
,
path
:
'supplementaryOrderList'
,
isTab
:
true
,
tabIndex
:
1
}
{
title
:
'订单补录'
,
icon
:
'supplementary_order'
,
isOpen
:
true
,
path
:
'supplementaryOrderList'
,
isTab
:
true
,
tabIndex
:
1
}
],
],
...
@@ -75,6 +78,23 @@ Component({
...
@@ -75,6 +78,23 @@ Component({
if
(
isTab
)
return
thisPage
.
changeTabBar
&&
thisPage
.
changeTabBar
({
detail
:
tabIndex
})
if
(
isTab
)
return
thisPage
.
changeTabBar
&&
thisPage
.
changeTabBar
({
detail
:
tabIndex
})
wx
.
$router
.
go
(
path
)
wx
.
$router
.
go
(
path
)
},
},
// 获取招聘管理待处理数量
getWaitStaff
()
{
waitstaffstateAPI
()
.
then
(
result
=>
{
const
{
code
,
data
}
=
result
if
(
code
==
0
)
{
const
{
exhibitionToolsList
}
=
this
.
data
const
index
=
exhibitionToolsList
.
findIndex
(
e
=>
e
.
title
===
'招聘管理'
)
this
.
setData
({
[
`exhibitionToolsList[
${
index
}
].tipsNum`
]:
14
})
}
})
.
catch
(
err
=>
{
console
.
error
(
'获取招聘管理统计失败:'
,
err
)
})
},
onLoad
()
{
onLoad
()
{
const
userInfo
=
wx
.
$util
.
getUserInfo
(),
const
userInfo
=
wx
.
$util
.
getUserInfo
(),
{
exhibitionToolsList
}
=
this
.
data
{
exhibitionToolsList
}
=
this
.
data
...
@@ -88,6 +108,24 @@ Component({
...
@@ -88,6 +108,24 @@ Component({
exhibitionToolsList
exhibitionToolsList
})
})
}
}
// 仅区域运营角色展示招聘管理模块
if
((
userInfo
.
loginRole
==
3
)
&&
exhibitionToolsList
.
every
((
item
)
=>
item
.
title
!=
"招聘管理"
))
{
exhibitionToolsList
.
push
({
title
:
"招聘管理"
,
icon
:
"recruit-manage"
,
path
:
'packageEquity.recruitManage'
,
isOpen
:
true
,
isTab
:
true
,
tabIndex
:
1
,
tipsNum
:
0
});
this
.
setData
({
exhibitionToolsList
},
()
=>
{
// 在设置完成后再获取招聘管理统计
this
.
getWaitStaff
()
})
}
const
params
=
{
const
params
=
{
merchantId
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo_newCarConversion
?.
merchantId
||
''
merchantId
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo_newCarConversion
?.
merchantId
||
''
}
}
...
...
tabIndex/pages/index/index.js
View file @
3dbd35d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
mixins
from
'./index_mixins'
import
mixins
from
'./index_mixins'
import
api
from
'../../api.js'
import
api
from
'../../api.js'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
import
{
getWaitAuditCountAPI
}
from
'~/api/api'
import
{
getWaitAuditCountAPI
,
waitstaffstateAPI
}
from
'~/api/api'
import
{
import
{
getYQInfo
,
getYQInfo
,
get4SStoreList
,
get4SStoreList
,
...
@@ -751,8 +751,7 @@ Page({
...
@@ -751,8 +751,7 @@ Page({
},
},
// 招聘管理首页需求分析
// 招聘管理首页需求分析
getWaitStaff
(
userInfo
,
index
)
{
getWaitStaff
(
userInfo
,
index
)
{
api
waitstaffstateAPI
()
.
waitstaffstateAPI
()
.
then
(
result
=>
{
.
then
(
result
=>
{
let
{
let
{
code
,
code
,
...
@@ -1495,17 +1494,17 @@ Page({
...
@@ -1495,17 +1494,17 @@ Page({
})
})
}
}
//区域督导和超管角色
//区域督导和超管角色
if
(
//
if (
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
===
3
||
userInfo
?.
loginRole
===
5
)
&&
//
(userInfo?.isSuper || userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
menu
.
every
(
item
=>
item
.
name
!=
'技师工单'
)
//
menu.every(item => item.name != '技师工单')
)
{
//
) {
menu
.
push
({
//
menu.push({
name
:
'技师工单'
,
//
name: '技师工单',
url
:
'tabWorkOrder.technicianSearchList'
,
//
url: 'tabWorkOrder.technicianSearchList',
recordId
:
17
,
//
recordId: 17,
icon
:
'technician'
//
icon: 'technician'
})
//
})
}
//
}
// if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menu.every((item) => item.name != '积分审批')) {
// if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menu.every((item) => item.name != '积分审批')) {
// menu.push({
// menu.push({
// name: '积分审批',
// name: '积分审批',
...
...
tabIndex/pages/index/index.sass
View file @
3dbd35d
...
@@ -221,16 +221,23 @@ page ::-webkit-scrollbar {
...
@@ -221,16 +221,23 @@ page ::-webkit-scrollbar {
.menu
.item
.hot_icon
{
.menu
.item
.hot_icon
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
right
:
var
(
--
fontSize12
)
;
top
:
0
;
top
:
0
;
width
:
var
(
--
fontSize38
)
;
width
:
var
(
--
fontSize38
)
;
height
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
min-width
:
var
(
--
fontSize24
)
;
height
:
var
(
--
fontSize24
)
;
background
:
#F24724
;
background
:
#F24724
;
border-radius
:
var
(
--
fontSize16
)
;
border-radius
:
var
(
--
fontSize16
)
;
border-radius
:
50%
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
font-size
:
var
(
--
fontSize22
)
;
font-size
:
var
(
--
fontSize22
)
;
font-size
:
var
(
--
fontSize20
)
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
padding
:var
(
--fontSize2
);
border
:var
(
--fontSize2
)
solid
#ffffff
;
}
}
.menu
.item
.bubble_icon
{
.menu
.item
.bubble_icon
{
...
...
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