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 967b2eff
authored
Apr 20, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增试岗处理功能及相关界面调整
1 parent
96d299cb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
152 additions
and
13 deletions
packageWorkspace/pages/recruitManage/api.js
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.js
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml
packageWorkspace/pages/recruitManage/recruitManage/constantData.js
packageWorkspace/pages/recruitManage/api.js
View file @
967b2ef
...
@@ -114,6 +114,17 @@ module.exports = {
...
@@ -114,6 +114,17 @@ module.exports = {
'/rop-dj-staff-miniprogram/router'
'/rop-dj-staff-miniprogram/router'
)
)
},
},
// 处理试岗计划
processTrialPlanAPI
(
data
)
{
return
api
.
post
(
'dj.api.staff.miniprogram.recruitment.trial.onboarding.process'
,
data
,
[],
'/rop-dj-staff-miniprogram/router'
)
},
// 获取带教任务数量
// 获取带教任务数量
getMentorShipTaskNum
(
data
)
{
getMentorShipTaskNum
(
data
)
{
return
api
.
post
(
return
api
.
post
(
...
...
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.js
View file @
967b2ef
// packageWorkspace/pages/recruitManage/pages/recruitDetail/recruitDetail.js
// packageWorkspace/pages/recruitManage/pages/recruitDetail/recruitDetail.js
import
{
unix
}
from
'dayjs'
import
{
unix
}
from
'dayjs'
import
{
getRecruitDetailAPI
,
processResumeAPI
,
getStaffDictListAPI
,
addTrialPlanAPI
,
updateTrialPlanAPI
,
deleteTrialPlanAPI
}
from
'../api'
import
{
getRecruitDetailAPI
,
processResumeAPI
,
getStaffDictListAPI
,
addTrialPlanAPI
,
updateTrialPlanAPI
,
deleteTrialPlanAPI
,
processTrialPlanAPI
}
from
'../api'
const
IMG_URL
=
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
// 统计列表配置映射
// 统计列表配置映射
...
@@ -99,6 +99,7 @@ Page({
...
@@ -99,6 +99,7 @@ Page({
showTrialPopup
:
false
,
showTrialPopup
:
false
,
trialPopupType
:
'add'
,
trialPopupType
:
'add'
,
trialFormData
:
{
trialFormData
:
{
id
:
''
,
personName
:
''
,
personName
:
''
,
phoneNumber
:
''
,
phoneNumber
:
''
,
channelType
:
''
,
channelType
:
''
,
...
@@ -113,6 +114,10 @@ Page({
...
@@ -113,6 +114,10 @@ Page({
trialTimeShow
:
false
,
trialTimeShow
:
false
,
trialCurrentDate
:
new
Date
().
getTime
(),
trialCurrentDate
:
new
Date
().
getTime
(),
isProcessingTrial
:
false
,
isProcessingTrial
:
false
,
trialDealResultOptions
:
[
{
label
:
'通过'
,
value
:
'1'
},
{
label
:
'不通过'
,
value
:
'0'
}
],
// 时间选择器列表子项展示-格式化处理
// 时间选择器列表子项展示-格式化处理
formatter
(
type
,
value
)
{
formatter
(
type
,
value
)
{
...
@@ -392,7 +397,8 @@ Page({
...
@@ -392,7 +397,8 @@ Page({
if
(
trialOnboardingPlans
&&
trialOnboardingPlans
?.
length
>
0
)
{
if
(
trialOnboardingPlans
&&
trialOnboardingPlans
?.
length
>
0
)
{
trialOnboardingPlans
=
trialOnboardingPlans
.
map
(
item
=>
({
trialOnboardingPlans
=
trialOnboardingPlans
.
map
(
item
=>
({
...
item
,
...
item
,
isShow
:
item
.
createdPhone
==
userInfo
.
phone
,
// 是否登陆用户新增
isUserAdd
:
item
.
createdPhone
==
userInfo
.
phone
,
onboardingDate
:
this
.
formatDate
(
item
.
trialTime
)
onboardingDate
:
this
.
formatDate
(
item
.
trialTime
)
}))
}))
}
}
...
@@ -608,7 +614,15 @@ Page({
...
@@ -608,7 +614,15 @@ Page({
// 防止重复提交
// 防止重复提交
if
(
isProcessing
)
return
if
(
isProcessing
)
return
if
(
popupType
===
'initial'
)
{
if
(
popupType
===
'trialDeal'
)
{
if
(
formData
.
processResult
===
''
)
{
wx
.
showToast
({
title
:
'请选择处理结果'
,
icon
:
'none'
})
return
}
}
else
if
(
popupType
===
'initial'
)
{
// 简历处理阶段验证
// 简历处理阶段验证
if
(
formData
.
processResult
===
''
)
{
if
(
formData
.
processResult
===
''
)
{
wx
.
showToast
({
wx
.
showToast
({
...
@@ -655,6 +669,44 @@ Page({
...
@@ -655,6 +669,44 @@ Page({
// processResult: formData?.processResult
// processResult: formData?.processResult
}
}
if
(
popupType
===
'trialDeal'
)
{
processTrialPlanAPI
({
id
:
formData
.
id
,
demandId
:
this
.
curDataId
,
processResult
:
Number
(
formData
.
processResult
),
processRemark
:
formData
.
processRemark
||
''
})
.
then
(
result
=>
{
let
{
code
,
message
}
=
result
if
(
code
==
0
)
{
this
.
getDetail
(
this
.
curDataId
)
wx
.
showToast
({
title
:
'处理成功'
,
icon
:
'success'
})
this
.
hidePopup
()
}
else
{
this
.
setData
({
isProcessing
:
false
})
wx
.
showToast
({
title
:
message
||
'处理失败'
,
icon
:
'none'
})
}
})
.
catch
(()
=>
{
this
.
setData
({
isProcessing
:
false
})
wx
.
showToast
({
title
:
'处理失败'
,
icon
:
'none'
})
})
return
}
if
(
popupType
===
'initial'
)
{
if
(
popupType
===
'initial'
)
{
requestParams
.
processResult
=
formData
?.
processResult
requestParams
.
processResult
=
formData
?.
processResult
if
(
formData
.
processResult
==
2
)
{
if
(
formData
.
processResult
==
2
)
{
...
@@ -774,6 +826,7 @@ showTrialTimePicker() {
...
@@ -774,6 +826,7 @@ showTrialTimePicker() {
showTrialPopup
:
true
,
showTrialPopup
:
true
,
trialPopupType
:
'add'
,
trialPopupType
:
'add'
,
trialFormData
:
{
trialFormData
:
{
id
:
''
,
personName
:
''
,
personName
:
''
,
phoneNumber
:
''
,
phoneNumber
:
''
,
channelType
:
''
,
channelType
:
''
,
...
@@ -801,8 +854,32 @@ showTrialTimePicker() {
...
@@ -801,8 +854,32 @@ showTrialTimePicker() {
})
})
}
}
},
},
// 显示试岗处理弹窗
handleTrialDeal
(
e
)
{
const
item
=
e
.
currentTarget
.
dataset
.
item
||
{}
const
query
=
wx
.
createSelectorQuery
()
query
.
selectViewport
().
scrollOffset
()
query
.
exec
(
res
=>
{
if
(
res
&&
res
[
0
])
{
this
.
setData
({
pageScrollTop
:
res
[
0
].
scrollTop
})
}
})
this
.
setData
({
showPopup
:
true
,
popupType
:
'trialDeal'
,
formData
:
{
id
:
item
.
id
||
''
,
processResult
:
''
,
processRemark
:
''
,
processRemarkLength
:
0
}
})
},
hideTrialPopup
()
{
hideTrialPopup
()
{
this
.
setData
({
showTrialPopup
:
false
})
this
.
setData
({
showTrialPopup
:
false
,
isProcessingTrial
:
false
})
},
},
handleTrialInput
(
e
)
{
handleTrialInput
(
e
)
{
...
@@ -813,6 +890,27 @@ showTrialTimePicker() {
...
@@ -813,6 +890,27 @@ showTrialTimePicker() {
})
})
},
},
selectTrialDealResult
(
e
)
{
const
{
value
}
=
e
.
currentTarget
.
dataset
const
{
formData
}
=
this
.
data
this
.
setData
({
'formData.processResult'
:
formData
.
processResult
===
value
?
''
:
value
})
},
handleTrialDealRemarkInput
(
e
)
{
let
value
=
e
.
detail
.
value
||
''
const
{
formData
}
=
this
.
data
if
(
value
.
length
>
200
)
{
value
=
value
.
substring
(
0
,
200
)
}
formData
.
processRemark
=
value
formData
.
processRemarkLength
=
value
.
length
this
.
setData
({
formData
})
},
showChannelPicker
()
{
showChannelPicker
()
{
this
.
setData
({
this
.
setData
({
showChannelPopup
:
true
,
showChannelPopup
:
true
,
...
...
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml
View file @
967b2ef
...
@@ -74,15 +74,19 @@
...
@@ -74,15 +74,19 @@
<text class="phone_text"> {{ item.phoneNumber}}</text>
<text class="phone_text"> {{ item.phoneNumber}}</text>
<image class="phone_icon" src="/packageWorkspace/pages/image/call-icon.png" mode="widthFix" />
<image class="phone_icon" src="/packageWorkspace/pages/image/call-icon.png" mode="widthFix" />
</view>
</view>
<view class="tag tag-{{ item.processResult == null ? 'pending' : (item.processResult == 1 ? 'pass' : 'fail') }}">
{{ item.processResult == null ? '试岗中' : (item.processResult == 1 ? '通过' : '不通过') }}
</view>
</view>
</view>
<view class="user_bottom">
<view class="user_bottom">
<view class="date">试岗时间: {{ item.onboardingDate}}</view>
<view class="date">试岗时间: {{ item.onboardingDate}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="card_actions" wx:if="{{item.isShow}}">
<view class="card_actions" wx:if="{{item.processResult === null}}">
<view class="btn btn_delete" bindtap="deleteTrialPlan" data-id="{{item.id}}">删除</view>
<view wx:if="{{item.isUserAdd}}" class="btn btn_delete" bindtap="deleteTrialPlan" data-id="{{item.id}}">删除</view>
<view class="btn btn_edit" bindtap="showTrialPopup" data-type="edit" data-item="{{item}}">编辑</view>
<view wx:if="{{item.isUserAdd}}" class="btn btn_edit" bindtap="showTrialPopup" data-type="edit" data-item="{{item}}">编辑</view>
<view class="btn btn_edit" bindtap="handleTrialDeal" data-type="edit" data-item="{{item}}">处理</view>
</view>
</view>
</view>
</view>
</block>
</block>
...
@@ -216,11 +220,37 @@
...
@@ -216,11 +220,37 @@
catchtouchmove="preventTouchMove"
catchtouchmove="preventTouchMove"
>
>
<view class="popup_content">
<view class="popup_content">
<view class="title">{{ popupType ==
'initial' ? '简历处理' : '面试反馈'
}}</view>
<view class="title">{{ popupType ==
= 'interview' ? '面试反馈' : (popupType === 'trialDeal' ? '试岗处理' : '简历处理')
}}</view>
<scroll-view scroll-y style="height: var(--fontSize807);" bindtouchmove="stopPropagation">
<scroll-view scroll-y style="height: var(--fontSize807);" bindtouchmove="stopPropagation">
<view class="form">
<view class="form">
<block wx:if="{{ popupType === 'trialDeal' }}">
<view class="form_item">
<view class="label">
处理结果
<text class="required">*</text>
</view>
<view class="value">
<text
wx:for="{{ trialDealResultOptions }}"
wx:key="value"
class="tag {{ formData.processResult == item.value ? 'active' : '' }}"
bindtap="selectTrialDealResult"
data-value="{{ item.value }}"
>{{ item.label }}</text>
</view>
</view>
<view class="form_item form_item_textarea">
<view class="label">说明</view>
<view class="value">
<view class="textarea_wrapper">
<textarea placeholder="请输入说明" value="{{ formData.processRemark }}" bindinput="handleTrialDealRemarkInput" maxlength="200" />
<view class="char_count">{{ formData.processRemarkLength || 0 }}/200</view>
</view>
</view>
</view>
</block>
<!-- Initial Processing -->
<!-- Initial Processing -->
<block wx:if="{{ popupType == 'initial' }}">
<block wx:
el
if="{{ popupType == 'initial' }}">
<view class="form_item">
<view class="form_item">
<view class="label">
<view class="label">
处理结果
处理结果
...
@@ -281,7 +311,7 @@
...
@@ -281,7 +311,7 @@
</view>
</view>
</view>
</view>
</block>
</block>
<view class="form_item form_item_textarea">
<view class="form_item form_item_textarea"
wx:if="{{ popupType !== 'trialDeal' }}"
>
<view class="label">说明</view>
<view class="label">说明</view>
<view class="value">
<view class="value">
<view class="textarea_wrapper">
<view class="textarea_wrapper">
...
...
packageWorkspace/pages/recruitManage/recruitManage/constantData.js
View file @
967b2ef
...
@@ -154,15 +154,15 @@ export const getStatusTipText = function (item) {
...
@@ -154,15 +154,15 @@ export const getStatusTipText = function (item) {
status
,
status
,
waitProcessResumeCount
,
waitProcessResumeCount
,
confirmFlag
,
confirmFlag
,
trialWaitConfirm
Count
,
waitProcessTrial
Count
,
onboardingWaitConfirmCount
onboardingWaitConfirmCount
}
=
item
}
=
item
// 待处理提示文案显示逻辑
// 待处理提示文案显示逻辑
if
(
status
==
1
&&
waitProcessResumeCount
>
0
)
{
if
(
status
==
1
&&
waitProcessResumeCount
>
0
)
{
return
`您有
${
waitProcessResumeCount
}
份简历待处理,请及时跟进`
return
`您有
${
waitProcessResumeCount
}
份简历待处理,请及时跟进`
}
else
if
(
status
==
1
&&
trialWaitConfirm
Count
>
0
)
{
}
else
if
(
status
==
1
&&
waitProcessTrial
Count
>
0
)
{
return
'您有新的试岗记录,请及时查看'
return
`您有
${
waitProcessTrialCount
}
个试岗记录待处理,请及时跟进`
}
else
if
(
status
==
1
&&
onboardingWaitConfirmCount
>
0
)
{
}
else
if
(
status
==
1
&&
onboardingWaitConfirmCount
>
0
)
{
return
'您有新的入职记录,请及时查看'
return
'您有新的入职记录,请及时查看'
}
else
if
(
status
==
2
&&
confirmFlag
==
'N'
)
{
}
else
if
(
status
==
2
&&
confirmFlag
==
'N'
)
{
...
...
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