Commit 1bf5e2dd by 张立顺

feat 功能修改

1 parent f63a2418
...@@ -37,7 +37,7 @@ const RECRUITMENT_INFO_CONFIG = [ ...@@ -37,7 +37,7 @@ const RECRUITMENT_INFO_CONFIG = [
const RECRUIT_STATUS_CONFIG = { const RECRUIT_STATUS_CONFIG = {
// mixResult状态映射 // mixResult状态映射
0: { text: '待处理', class: 'pending', canProcess: true }, 0: { text: '待处理', class: 'pending', canProcess: true },
1: { text: '人员不匹配', class: 'mismatch', canProcess: false }, 1: { text: '人员不符合', class: 'mismatch', canProcess: false },
2: { text: '面试通过', class: 'pass', canProcess: false }, 2: { text: '面试通过', class: 'pass', canProcess: false },
3: { text: '面试不通过', class: 'fail', canProcess: false } 3: { text: '面试不通过', class: 'fail', canProcess: false }
} }
...@@ -400,7 +400,7 @@ Page({ ...@@ -400,7 +400,7 @@ Page({
// 当切换"处理结果"标签时,初始化相关表单数据 // 当切换"处理结果"标签时,初始化相关表单数据
if (field === 'processResult') { if (field === 'processResult') {
// 切换到"人员不匹配"时,清空面试相关字段 // 切换到"人员不符合"时,清空面试相关字段
if (value == 1) { if (value == 1) {
formData.interviewTime = '' formData.interviewTime = ''
formData.dipalyTime = '' formData.dipalyTime = ''
......
...@@ -155,7 +155,7 @@ page { ...@@ -155,7 +155,7 @@ page {
background: #52c41a1a; background: #52c41a1a;
} }
// 人员不匹配状态 // 人员不符合状态
&.tag-mismatch { &.tag-mismatch {
color: #ff4d4f; color: #ff4d4f;
background: #ff4d4f1a; background: #ff4d4f1a;
......
<!--packageEquity/pages/recruitManage/recruitDetail/recruitDetail.wxml--> <!--packageEquity/pages/recruitManage/recruitDetail/recruitDetail.wxml-->
<!-- 招聘详情 --> <!-- 招聘详情 -->
<glsx-privacy appletName="招聘详情" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="招聘详情" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view <view class="container_page {{ showPopup || timeShow ? 'page-locked' : '' }}" style="{{ showPopup || timeShow ? 'top: -' + pageScrollTop + 'px;' : '' }}">
class="container_page {{ showPopup || timeShow ? 'page-locked' : '' }}"
style="{{ showPopup || timeShow ? 'top: -' + pageScrollTop + 'px;' : '' }}"
>
<!-- 顶部数据统计 --> <!-- 顶部数据统计 -->
<view class="content_top"> <view class="content_top">
<view class="statistics"> <view class="statistics">
...@@ -104,9 +101,7 @@ ...@@ -104,9 +101,7 @@
<view class="user_info"> <view class="user_info">
<view class="user_top"> <view class="user_top">
<view class="name">{{ item.personName }}</view> <view class="name">{{ item.personName }}</view>
<view <view class="tag tag-{{ item.processResult == null ? 'pending' : (item.processResult == 1 ? 'mismatch' : (item.processResult == 2 && item.interviewResult == null ? 'pending' : (item.interviewResult == 0 ? 'fail' : (item.interviewResult == 1 ? 'pass' : '')))) }}">
class="tag tag-{{ item.processResult == null ? 'pending' : (item.processResult == 1 ? 'mismatch' : (item.processResult == 2 && item.interviewResult == null ? 'pending' : (item.interviewResult == 0 ? 'fail' : (item.interviewResult == 1 ? 'pass' : '')))) }}"
>
{{ item.processResult == null ? '待处理' : (item.processResult == 1 ? '人员不符合' : (item.processResult == 2 && item.interviewResult == null ? '待面试' : (item.interviewResult == 0 ? '面试不通过' : (item.interviewResult == 1 ? '面试通过' : '')))) }} {{ item.processResult == null ? '待处理' : (item.processResult == 1 ? '人员不符合' : (item.processResult == 2 && item.interviewResult == null ? '待面试' : (item.interviewResult == 0 ? '面试不通过' : (item.interviewResult == 1 ? '面试通过' : '')))) }}
</view> </view>
</view> </view>
...@@ -124,12 +119,7 @@ ...@@ -124,12 +119,7 @@
<view class="label">推荐理由:</view> <view class="label">推荐理由:</view>
<view class="value"> <view class="value">
{{item.recommendedReasonTxt}} {{item.recommendedReasonTxt}}
<view <view wx:if="{{ item.recommendedReason && item.recommendedReason.length > reasonMaxLen }}" class="{{ ['tips', item.isShowReasonAll ? 'show' : ''] }}" bind:tap="handleShowReason" data-index="{{ index }}">
wx:if="{{ item.recommendedReason && item.recommendedReason.length > reasonMaxLen }}"
class="{{ ['tips', item.isShowReasonAll ? 'show' : ''] }}"
bind:tap="handleShowReason"
data-index="{{ index }}"
>
<text wx:if="{{ item.isShowReasonAll }}">收起</text> <text wx:if="{{ item.isShowReasonAll }}">收起</text>
<view wx:else class="btn-reason-all">查看全部</view> <view wx:else class="btn-reason-all">查看全部</view>
</view> </view>
...@@ -165,14 +155,7 @@ ...@@ -165,14 +155,7 @@
</view> </view>
<view class="value value_box" wx:elif="{{ infoItem.label === '招聘负责人' || infoItem.label === '技术督导' }}"> <view class="value value_box" wx:elif="{{ infoItem.label === '招聘负责人' || infoItem.label === '技术督导' }}">
<text> {{recruitment[infoItem.field] || '--'}}</text> <text> {{recruitment[infoItem.field] || '--'}}</text>
<image <image class="phone_icon" wx:if="{{ (infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone) }}" src="/packageEquity/pages/image/call-icon.png" mode="widthFix" catchtap="phoneCall" data-phone="{{ infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone }}" />
class="phone_icon"
wx:if="{{ (infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone) }}"
src="/packageEquity/pages/image/call-icon.png"
mode="widthFix"
catchtap="phoneCall"
data-phone="{{ infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone }}"
/>
</view> </view>
<text class="value" wx:else> {{ recruitment[infoItem.field] || '--' }}</text> <text class="value" wx:else> {{ recruitment[infoItem.field] || '--' }}</text>
</view> </view>
...@@ -188,14 +171,7 @@ ...@@ -188,14 +171,7 @@
</view> </view>
</view> </view>
<edit-popup wx:if="{{ handleShowMessagePop }}" formData="{{ formData }}" bindconfirm="updateMentorShip" bindcancel="hidePopup"></edit-popup> <edit-popup wx:if="{{ handleShowMessagePop }}" formData="{{ formData }}" bindconfirm="updateMentorShip" bindcancel="hidePopup"></edit-popup>
<van-popup <van-popup show="{{ showPopup }}" position="bottom" bind:close="hidePopup" lock-scroll="{{ true }}" round catchtouchmove="preventTouchMove">
show="{{ showPopup }}"
position="bottom"
bind:close="hidePopup"
lock-scroll="{{ true }}"
round
catchtouchmove="preventTouchMove"
>
<view class="popup_content"> <view class="popup_content">
<view class="title">简历处理</view> <view class="title">简历处理</view>
<scroll-view scroll-y style="height: var(--fontSize887);" bindtouchmove="stopPropagation"> <scroll-view scroll-y style="height: var(--fontSize887);" bindtouchmove="stopPropagation">
...@@ -206,7 +182,7 @@ ...@@ -206,7 +182,7 @@
<text class="required">*</text> <text class="required">*</text>
</view> </view>
<view class="value"> <view class="value">
<text class="tag {{ formData.processResult == 1 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="1">人员不匹配</text> <text class="tag {{ formData.processResult == 1 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="1">人员不符合</text>
<text class="tag {{ formData.processResult == 2 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="2">已完成面试</text> <text class="tag {{ formData.processResult == 2 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="2">已完成面试</text>
</view> </view>
</view> </view>
...@@ -234,13 +210,7 @@ ...@@ -234,13 +210,7 @@
<view class="label">说明</view> <view class="label">说明</view>
<view class="value"> <view class="value">
<view class="textarea_wrapper"> <view class="textarea_wrapper">
<textarea <textarea placeholder="请输入说明" value="{{ formData.description }}" bindinput="handleTextareaInput" maxlength="200" data-field="description" />
placeholder="请输入说明"
value="{{ formData.description }}"
bindinput="handleTextareaInput"
maxlength="200"
data-field="description"
/>
<view class="char_count">{{ formData.descriptionLength || 0 }}/200</view> <view class="char_count">{{ formData.descriptionLength || 0 }}/200</view>
</view> </view>
</view> </view>
...@@ -254,21 +224,6 @@ ...@@ -254,21 +224,6 @@
</view> </view>
</van-popup> </van-popup>
<!-- 时间选择器 --> <!-- 时间选择器 -->
<van-popup <van-popup show="{{ timeShow }}" position="bottom" bind:close="calcelDate" close-on-click-overlay="{{ true }}" z-index="10000" round catchtouchmove="preventTouchMove">
show="{{ timeShow }}" <van-datetime-picker bind:input="onInput" bind:cancel="calcelDate" value="{{ currentDate }}" formatter="{{ formatter }}" max-date="{{ today }}" bind:confirm="bindDateChange" />
position="bottom"
bind:close="calcelDate"
close-on-click-overlay="{{ true }}"
z-index="10000"
round
catchtouchmove="preventTouchMove"
>
<van-datetime-picker
bind:input="onInput"
bind:cancel="calcelDate"
value="{{ currentDate }}"
formatter="{{ formatter }}"
max-date="{{ today }}"
bind:confirm="bindDateChange"
/>
</van-popup> </van-popup>
\ No newline at end of file \ No newline at end of file
...@@ -44,7 +44,7 @@ const RECRUITMENT_INFO_CONFIG = [ ...@@ -44,7 +44,7 @@ const RECRUITMENT_INFO_CONFIG = [
const RECRUIT_STATUS_CONFIG = { const RECRUIT_STATUS_CONFIG = {
// mixResult状态映射 // mixResult状态映射
0: { text: '待处理', class: 'pending', canProcess: true }, 0: { text: '待处理', class: 'pending', canProcess: true },
1: { text: '人员不匹配', class: 'mismatch', canProcess: false }, 1: { text: '人员不符合', class: 'mismatch', canProcess: false },
2: { text: '面试通过', class: 'pass', canProcess: false }, 2: { text: '面试通过', class: 'pass', canProcess: false },
3: { text: '面试不通过', class: 'fail', canProcess: false } 3: { text: '面试不通过', class: 'fail', canProcess: false }
} }
...@@ -85,7 +85,8 @@ Page({ ...@@ -85,7 +85,8 @@ Page({
handleShowMessagePop: false, // 控制弹窗显示 handleShowMessagePop: false, // 控制弹窗显示
timeShow: false, // 控制时间选择器显示 timeShow: false, // 控制时间选择器显示
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
today: new Date().getTime(), // 当前日期,用于限制日期选择器的最大值 minDate: new Date().getTime(), // 最小日期
maxDate: new Date().getTime(), // 最大日期
formData: {}, // 弹窗表单数据 formData: {}, // 弹窗表单数据
detailLoaded: false, // 标识是否已加载详情 detailLoaded: false, // 标识是否已加载详情
curDataId: '', curDataId: '',
...@@ -127,10 +128,26 @@ Page({ ...@@ -127,10 +128,26 @@ Page({
}) })
} }
const { popupType } = this.data
const now = new Date().getTime()
let minDate, maxDate
if (popupType === 'initial') {
// 预计面试时间:当前及之后
minDate = now
maxDate = now + 10 * 365 * 24 * 60 * 60 * 1000 // 10年后
} else {
// 面试时间:当前及之前
minDate = now - 10 * 365 * 24 * 60 * 60 * 1000 // 10年前
maxDate = now
}
// 重置为当前日期 // 重置为当前日期
this.setData({ this.setData({
timeShow: true, timeShow: true,
currentDate: new Date().getTime() currentDate: now,
minDate,
maxDate
}) })
}, },
...@@ -423,7 +440,7 @@ Page({ ...@@ -423,7 +440,7 @@ Page({
// 当切换"处理结果"标签时,初始化相关表单数据 // 当切换"处理结果"标签时,初始化相关表单数据
if (field === 'processResult') { if (field === 'processResult') {
// 切换到"人员不匹配"时,清空面试相关字段 // 切换到"人员不符合"时,清空面试相关字段
if (value == 1) { if (value == 1) {
formData.interviewTime = '' formData.interviewTime = ''
formData.dipalyTime = '' formData.dipalyTime = ''
......
...@@ -191,7 +191,7 @@ page { ...@@ -191,7 +191,7 @@ page {
background: #52c41a1a; background: #52c41a1a;
} }
// 人员不匹配状态 // 人员不符合状态
&.tag-mismatch { &.tag-mismatch {
color: #ff4d4f; color: #ff4d4f;
background: #ff4d4f1a; background: #ff4d4f1a;
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<view <view
class="tag tag-{{ item.mixResult !== undefined ? (item.mixResult === 0 ? 'pending' : item.mixResult === 1 ? 'mismatch' : item.mixResult === 2 ? 'pass' : 'fail') : 'completed' }}" class="tag tag-{{ item.mixResult !== undefined ? (item.mixResult === 0 ? 'pending' : item.mixResult === 1 ? 'mismatch' : item.mixResult === 2 ? 'pass' : 'fail') : 'completed' }}"
> >
{{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不匹配' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')}} {{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不符合' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')}}
</view> </view>
</view> </view>
<view class="user_bottom"> <view class="user_bottom">
...@@ -293,7 +293,8 @@ ...@@ -293,7 +293,8 @@
type="date" type="date"
value="{{ currentDate }}" value="{{ currentDate }}"
formatter="{{ formatter }}" formatter="{{ formatter }}"
max-date="{{ today }}" min-date="{{ minDate }}"
max-date="{{ maxDate }}"
bind:confirm="bindDateChange" bind:confirm="bindDateChange"
bind:cancel="calcelDate" bind:cancel="calcelDate"
/> />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!