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 f63a2418
authored
Jan 12, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
fe3867a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
193 additions
and
168 deletions
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.js
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml
packageWorkspace/pages/recruitManage/recruitManage/recruitManage.wxml
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.js
View file @
f63a241
...
...
@@ -144,10 +144,19 @@ Page({
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
)
const
formattedDate
=
`
${
year
}
年
${
month
}
月
${
day
}
日`
const
formattedFull
=
new
Date
(
timestamp
)
const
{
formData
,
pageScrollTop
}
=
this
.
data
formData
.
interviewTime
=
`
${
year
}
-
${
month
}
-
${
day
}
00:00:00`
const
apiDate
=
`
${
year
}
-
${
month
}
-
${
day
}
00:00:00`
const
{
formData
,
pageScrollTop
,
popupType
}
=
this
.
data
// 根据 popupType 设置不同的字段
if
(
popupType
===
'initial'
)
{
formData
.
expectedInterviewTime
=
apiDate
}
else
if
(
popupType
===
'interview'
)
{
formData
.
interviewTime
=
apiDate
}
formData
.
dipalyTime
=
formattedDate
this
.
setData
(
{
formData
,
...
...
@@ -365,7 +374,14 @@ Page({
* 处理按钮点击
*/
handleProcess
(
e
)
{
let
{
id
}
=
e
.
currentTarget
.
dataset
const
{
index
}
=
e
.
currentTarget
.
dataset
const
item
=
this
.
data
.
recruitmentPlans
[
index
]
// Determine popup type based on item status
let
popupType
=
'initial'
if
(
item
.
processResult
==
2
&&
item
.
interviewResult
==
null
)
{
popupType
=
'interview'
}
// 保存当前页面滚动位置
const
query
=
wx
.
createSelectorQuery
()
...
...
@@ -380,9 +396,10 @@ Page({
this
.
setData
({
showPopup
:
true
,
popupType
,
currentDate
:
new
Date
().
getTime
(),
// 重置当前时间为今天
formData
:
{
id
:
id
,
id
:
i
tem
.
i
d
,
processResult
:
''
,
// 处理结果
interviewTime
:
''
,
// 面试时间
description
:
''
,
// 说明
...
...
@@ -506,40 +523,44 @@ Page({
* 确认处理
*/
confirmProcess
()
{
const
{
formData
,
isProcessing
}
=
this
.
data
const
{
formData
,
isProcessing
,
popupType
,
recruitment
}
=
this
.
data
// 防止重复提交
if
(
isProcessing
)
return
// 验证必填项
if
(
!
formData
.
processResult
)
{
wx
.
showToast
({
title
:
'请选择处理结果'
,
icon
:
'none'
})
return
}
// 对于面试通过和面试不通过,都需要选择面试时间
if
(
(
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewTime
)
{
wx
.
showToast
({
title
:
'请选择面试时间'
,
icon
:
'none'
})
return
}
// 对于面试通过和面试不通过,都需要选择面试时间
if
(
(
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewResult
)
{
wx
.
showToast
({
title
:
'请选择面试结果'
,
icon
:
'none'
})
return
if
(
popupType
===
'initial'
)
{
// 简历处理阶段验证
if
(
!
formData
.
processResult
)
{
wx
.
showToast
({
title
:
'请选择处理结果'
,
icon
:
'none'
})
return
}
// 人员符合(2)时,预计面试时间必填
if
(
formData
.
processResult
==
2
&&
!
formData
.
expectedInterviewTime
)
{
wx
.
showToast
({
title
:
'请选择预计面试时间'
,
icon
:
'none'
})
return
}
}
else
if
(
popupType
===
'interview'
)
{
// 面试反馈阶段验证
if
(
!
formData
.
interviewResult
)
{
wx
.
showToast
({
title
:
'请选择面试结果'
,
icon
:
'none'
})
return
}
if
(
!
formData
.
interviewTime
)
{
wx
.
showToast
({
title
:
'请选择面试时间'
,
icon
:
'none'
})
return
}
}
// 设置处理状态为true,防止重复提交
...
...
@@ -549,10 +570,21 @@ Page({
let
requestParams
=
{
id
:
formData
.
id
,
processResult
:
formData
?.
processResult
,
interviewTime
:
formData
?.
interviewTime
,
interviewResult
:
formData
?.
interviewResult
,
description
:
formData
?.
description
technicalSupervisorName
:
recruitment
.
technicalSupervisorName
,
technicalSupervisorPhone
:
recruitment
.
technicalSupervisorPhone
,
processResult
:
formData
?.
processResult
}
if
(
popupType
===
'initial'
)
{
requestParams
.
processResult
=
formData
?.
processResult
if
(
formData
.
processResult
==
2
)
{
requestParams
.
expectedInterviewTime
=
formData
.
expectedInterviewTime
}
requestParams
.
description
=
formData
?.
description
}
else
{
requestParams
.
interviewTime
=
formData
?.
interviewTime
requestParams
.
interviewResult
=
formData
?.
interviewResult
requestParams
.
interviewExplanation
=
formData
?.
description
}
processResumeAPI
(
requestParams
)
...
...
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml
View file @
f63a241
...
...
@@ -137,7 +137,12 @@
</view>
<view class="btn_group">
<view class="btn btn_outline" bindtap="handleViewResume" data-url="{{ item.resumeUrl }}">查看简历</view>
<view wx:if="{{ item.status === 0 }}" class="btn btn_primary" bindtap="handleProcess" data-id="{{ item.id }}">处理</view>
<view
wx:if="{{ item.status === 0 || (item.processResult == 2 && item.interviewResult == null) }}"
class="btn btn_primary"
bindtap="handleProcess"
data-index="{{ index }}"
>处理</view>
<!-- <van-button wx:if="{{item.status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}" plain type="primary">处理</van-button> -->
</view>
</view>
...
...
@@ -194,55 +199,71 @@
catchtouchmove="preventTouchMove"
>
<view class="popup_content">
<view class="title">
简历处理
</view>
<view class="title">
{{ popupType == 'initial' ? '简历处理' : '面试反馈' }}
</view>
<scroll-view scroll-y style="height: var(--fontSize807);" bindtouchmove="stopPropagation">
<view class="form">
<view class="form_item">
<view class="label">
处理结果
<text class="required">*</text>
</view>
<view class="value">
<view class="radio mar-r20" bindtap="selectTag" data-field="processResult" data-value="1">
<image class="radio-icon" wx:if="{{ formData.processResult == 1 }}" src="{{ IMG_URL }}radio-checked.png" mode="" />
<view class="cily" wx:else></view>
<view class="text">人员不匹配</view>
<!-- Initial Processing -->
<block wx:if="{{ popupType == 'initial' }}">
<view class="form_item">
<view class="label">
处理结果
<text class="required">*</text>
</view>
<view class="radio" bindtap="selectTag" data-field="processResult" data-value="2">
<image class="radio-icon" wx:if="{{ formData.processResult == 2 }}" src="{{ IMG_URL }}radio-checked.png" mode="" />
<view class="cily" wx:else></view>
<view class="text">已完成面试</view>
<view class="value">
<view class="radio mar-r20" bindtap="selectTag" data-field="processResult" data-value="{{ 2 }}">
<image class="radio-icon" wx:if="{{ formData.processResult == 2 }}" src="{{ IMG_URL }}radio-checked.png" />
<view class="cily" wx:else></view>
<view class="text">人员符合</view>
</view>
<view class="radio" bindtap="selectTag" data-field="processResult" data-value="{{ 1 }}">
<image class="radio-icon" wx:if="{{ formData.processResult == 1 }}" src="{{ IMG_URL }}radio-checked.png" />
<view class="cily" wx:else></view>
<view class="text">人员不符合</view>
</view>
</view>
</view>
</view
>
<view class="form_item" wx:if="{{ formData.processResult == 2 }}
">
<view class="label">
面试时间
<
text class="required">*</text
>
</view
>
<view class="value" catchtap="showTimePicker"
>
<view class="{{ formData.dipalyTime ? 'time_text' : 'placeholder_text' }}">{{formData.dipalyTime || '点击选择'}}</view
>
<
image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" /
>
<view class="form_item"
>
<view class="label
">
预计面试时间
<text class="required">*</text>
<
/view
>
<view class="value" bindtap="showTimePicker"
>
<view class="{{ formData.dipalyTime ? 'time_text' : 'placeholder_text' }}">{{formData.dipalyTime || '点击选择'}}</view
>
<image class="arrow_right" src="{{ IMG_URL }}arrow_right.png" mode="aspectFill" /
>
<
/view
>
</view>
</view>
<view class="form_item" wx:if="{{ formData.processResult == 2 }}">
<view class="label">
面试结果
<text class="required">*</text>
</block>
<!-- Interview Feedback -->
<block wx:if="{{ popupType == 'interview' }}">
<view class="form_item">
<view class="label">
面试结果
<text class="required">*</text>
</view>
<view class="value">
<view class="radio mar-r20" bindtap="selectTag" data-field="interviewResult" data-value="{{ 1 }}">
<image class="radio-icon" wx:if="{{ formData.interviewResult == 1 }}" src="{{ IMG_URL }}radio-checked.png" />
<view class="cily" wx:else></view>
<view class="text">通过</view>
</view>
<view class="radio" bindtap="selectTag" data-field="interviewResult" data-value="{{ 0 }}">
<image class="radio-icon" wx:if="{{ formData.interviewResult === 0 }}" src="{{ IMG_URL }}radio-checked.png" />
<view class="cily" wx:else></view>
<view class="text">不通过</view>
</view>
</view>
</view>
<view class="value">
<view class="radio mar-r20" bindtap="selectTag" data-field="interviewResult" data-value="1">
<image class="radio-icon" wx:if="{{ formData.interviewResult == '1' }}" src="{{ IMG_URL }}radio-checked.png" mode="" />
<view class="cily" wx:else></view>
<view class="text">通过</view>
<view class="form_item">
<view class="label">
面试时间
<text class="required">*</text>
</view>
<view class="radio" bindtap="selectTag" data-field="interviewResult" data-value="0">
<image class="radio-icon" wx:if="{{ formData.interviewResult == '0' }}" src="{{ IMG_URL }}radio-checked.png" mode="" />
<view class="cily" wx:else></view>
<view class="text">不通过</view>
<view class="value" bindtap="showTimePicker">
<view class="{{ formData.dipalyTime ? 'time_text' : 'placeholder_text' }}">{{formData.dipalyTime || '点击选择'}}</view>
<image class="arrow_right" src="{{ IMG_URL }}arrow_right.png" mode="aspectFill" />
</view>
</view>
</
view
>
</
block
>
<view class="form_item form_item_textarea">
<view class="label">说明</view>
<view class="value">
...
...
@@ -250,10 +271,10 @@
<textarea
placeholder="请输入"
value="{{ formData.description }}"
data-field="description"
bindinput="handleTextareaInput"
maxlength="200"
data-field="description"
/>
></textarea>
<view class="char_count">{{formData.descriptionLength || 0}}/200</view>
</view>
</view>
...
...
@@ -267,24 +288,14 @@
</view>
</van-popup>
<!-- 时间选择器 -->
<van-popup
show="{{ timeShow }}"
position="bottom"
bind:close="calcelDate"
close-on-click-overlay="{{ true }}"
z-index="10000"
round
catchtouchmove="preventTouchMove"
>
<van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove">
<van-datetime-picker
type="date"
bind:input="onInput"
bind:cancel="calcelDate"
confirm-button-text="确定"
value="{{ currentDate }}"
formatter="{{ formatter }}"
max-date="{{ today }}"
bind:confirm="bindDateChange"
bind:cancel="calcelDate"
/>
</van-popup>
</view>
\ No newline at end of file
packageWorkspace/pages/recruitManage/recruitManage/recruitManage.wxml
View file @
f63a241
<!-- 招聘管理 -->
<glsx-privacy appletName="招聘管理" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="container_page">
<!-- 顶部Tab模块 -->
<view class="top_content" wx:if="{{ tabList.length }}">
<view class="tab_box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
</view>
<!-- 列表模块 -->
<view class="content">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="onBottomRefresh"
bindscroll="handleScroll"
class="list"
scroll-top="{{ scrollTop }}"
lower-threshold="400"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<!-- 需求列表 -->
<block wx:if="{{ list.length && list[0].length }}">
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view
wx:for="{{ i }}"
wx:key="index"
class="item {{ userInfo.isSuper ? 'super_item' : '' }}"
bind:tap="handleDetail"
data-item="{{ item }}"
>
<view class="item_header">
<image wx:if="{{ item.urgent == 1 }}" class="ji" src="{{ IMG_URL }}miniProgram/ji.png" mode="aspectFill"></image>
<text class="merchant-name">{{item.merchantName}}</text>
<text class="status-tag status-{{ item.status }}">{{item.statusName}}</text>
</view>
<view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd">
<block>
<view class="label">{{it.label}}</view>
<view class="value">
{{item[it.labelName] || '-'}}
<text wx:if="{{ it.label == '招聘数量' }}">人</text>
</view>
</block>
</view>
<!-- 提示消息 -->
<view class="item_footer" wx:if="{{ tabIndex == 0 && item.showTip && item.confirmFlag == 'N' && item.status !== 0 }}">
<view class="msg_tips">
<text>{{item.tipText}}</text>
<image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" />
</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">没有更多了</view>
</block>
</block>
<!-- 空数据占位 -->
<view class="no_data" wx:else>
<empty-data />
</view>
</scroll-view>
</view>
<!-- 添加招聘按钮 -->
<view class="insert_btn {{ btnVisible ? 'btn-visible' : 'btn-hidden' }}" bindtap="handleInsertRecruit">
<image class="insert_icon" src="{{IMG_URL}}new-recruitment.png" mode="widthFix" />
<view class="label">
<text>新增招聘</text>
</view>
</view>
<!-- 箭头图标 - 与按钮互斥显示 -->
<view class="arrowIcon {{ btnVisible ? 'arrow-hidden' : 'arrow-visible' }}">
<image class="image" src="{{ IMG_URL }}arrow-left.png" />
</view>
<!-- 顶部Tab模块 -->
<view class="top_content" wx:if="{{ tabList.length }}">
<view class="tab_box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
</view>
<!-- 列表模块 -->
<view class="content">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" bindscroll="handleScroll" class="list" scroll-top="{{ scrollTop }}" lower-threshold="400" refresher-threshold="104" refresher-triggered="{{ triggered }}">
<!-- 需求列表 -->
<block wx:if="{{ list.length && list[0].length }}">
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view wx:for="{{ i }}" wx:key="index" class="item {{ userInfo.isSuper ? 'super_item' : '' }}" bind:tap="handleDetail" data-item="{{ item }}">
<view class="item_header">
<image wx:if="{{ item.urgent == 1 }}" class="ji" src="{{ IMG_URL }}ji.png" mode="aspectFill"></image>
<text class="merchant-name">{{item.merchantName}}</text>
<text class="status-tag status-{{ item.status }}">{{item.statusName}}</text>
</view>
<view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd">
<block>
<view class="label">{{it.label}}</view>
<view class="value">
{{item[it.labelName] || '-'}}
<text wx:if="{{ it.label == '招聘数量' }}">人</text>
</view>
</block>
</view>
<!-- 提示消息 -->
<view class="item_footer" wx:if="{{ tabIndex == 0 && item.showTip && item.confirmFlag == 'N' && item.status !== 0 }}">
<view class="msg_tips">
<text>{{item.tipText}}</text>
<image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" />
</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">没有更多了</view>
</block>
</block>
<!-- 空数据占位 -->
<view class="no_data" wx:else>
<empty-data />
</view>
</scroll-view>
</view>
<!-- 添加招聘按钮 -->
<view class="insert_btn {{ btnVisible ? 'btn-visible' : 'btn-hidden' }}" bindtap="handleInsertRecruit">
<image class="insert_icon" src="{{IMG_URL}}new-recruitment.png" mode="widthFix" />
<view class="label">
<text>新增招聘</text>
</view>
</view>
<!-- 箭头图标 - 与按钮互斥显示 -->
<view class="arrowIcon {{ btnVisible ? 'arrow-hidden' : 'arrow-visible' }}">
<image class="image" src="{{ IMG_URL }}arrow-left.png" />
</view>
</view>
\ No newline at end of file
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