Commit eba0ed08 by 张立顺 Committed by chenwq

feat bug修复

1 parent bc1c4b9c
...@@ -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 }
} }
...@@ -79,6 +79,8 @@ Page({ ...@@ -79,6 +79,8 @@ Page({
timeShow: false, // 控制时间选择器显示 timeShow: false, // 控制时间选择器显示
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
today: new Date().getTime(), // 当前日期,用于限制日期选择器的最大值 today: new Date().getTime(), // 当前日期,用于限制日期选择器的最大值
minDate: new Date().getTime(),
maxDate: new Date().getTime(),
formData: {}, // 弹窗表单数据 formData: {}, // 弹窗表单数据
detailLoaded: false, // 标识是否已加载详情 detailLoaded: false, // 标识是否已加载详情
curDataId: '', curDataId: '',
...@@ -122,9 +124,29 @@ Page({ ...@@ -122,9 +124,29 @@ Page({
} }
// 重置为当前日期 // 重置为当前日期
const now = new Date().getTime()
const { popupType } = this.data
let minDate, maxDate
if (popupType === 'initial') {
// 预计面试时间:当前及之后
minDate = now
maxDate = new Date(
new Date().setFullYear(new Date().getFullYear() + 10)
).getTime()
} else {
// 面试时间:当前及之前
minDate = new Date(
new Date().setFullYear(new Date().getFullYear() - 10)
).getTime()
maxDate = now
}
this.setData({ this.setData({
timeShow: true, timeShow: true,
currentDate: new Date().getTime() currentDate: now,
minDate,
maxDate
}) })
}, },
...@@ -421,7 +443,7 @@ Page({ ...@@ -421,7 +443,7 @@ Page({
// 当切换"处理结果"标签时,初始化相关表单数据 // 当切换"处理结果"标签时,初始化相关表单数据
if (field === 'processResult') { if (field === 'processResult') {
// 切换到"人员不匹配"时,清空预计面试时间 // 切换到"人员不符合"时,清空预计面试时间
if (value == 1) { if (value == 1) {
formData.expectedInterviewTime = '' formData.expectedInterviewTime = ''
formData.dipalyTime = '' formData.dipalyTime = ''
...@@ -566,11 +588,11 @@ Page({ ...@@ -566,11 +588,11 @@ Page({
let requestParams = { let requestParams = {
id: formData.id, id: formData.id,
technicalSupervisorName: recruitment.technicalSupervisorName, technicalSupervisorName: recruitment.technicalSupervisorName,
technicalSupervisorPhone: recruitment.technicalSupervisorPhone, technicalSupervisorPhone: recruitment.technicalSupervisorPhone
} }
if (popupType === 'initial') { if (popupType === 'initial') {
requestParams.processResult=formData?.processResult requestParams.processResult = formData?.processResult
if (formData.processResult == 2) { if (formData.processResult == 2) {
requestParams.expectedInterviewTime = formData.expectedInterviewTime requestParams.expectedInterviewTime = formData.expectedInterviewTime
} }
......
...@@ -289,7 +289,8 @@ ...@@ -289,7 +289,8 @@
bind:cancel="calcelDate" bind:cancel="calcelDate"
value="{{ currentDate }}" value="{{ currentDate }}"
formatter="{{ formatter }}" formatter="{{ formatter }}"
max-date="{{ today }}" min-date="{{ minDate }}"
max-date="{{ maxDate }}"
bind:confirm="bindDateChange" bind:confirm="bindDateChange"
/> />
</van-popup> </van-popup>
\ No newline at end of file \ No newline at end of file
...@@ -33,8 +33,6 @@ Page({ ...@@ -33,8 +33,6 @@ Page({
onLoad(options) { onLoad(options) {
let { mentorshipFormData } = this.data let { mentorshipFormData } = this.data
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
this.getWaitstaffstate()
this.search()
// 非区域运营登录,打回到首页 // 非区域运营登录,打回到首页
//ll if (userInfo?.loginRole != 3) wx.reLaunch({ url: "/pages/loading/loading" }) //ll if (userInfo?.loginRole != 3) wx.reLaunch({ url: "/pages/loading/loading" })
if (userInfo?.isSuper) { if (userInfo?.isSuper) {
...@@ -81,12 +79,14 @@ Page({ ...@@ -81,12 +79,14 @@ Page({
// 标签切换 // 标签切换
tabClick(e) { tabClick(e) {
if (this.data.tabIndex === e.detail) return
this.setData( this.setData(
{ {
tabIndex: e.detail, tabIndex: e.detail,
list: [] list: []
}, },
() => { () => {
console.log('tabClick')
this.search() this.search()
this.getWaitstaffstate() this.getWaitstaffstate()
} }
...@@ -166,8 +166,8 @@ Page({ ...@@ -166,8 +166,8 @@ Page({
confiremStaffFlagAPI({ id: item.id }).then(res => { confiremStaffFlagAPI({ id: item.id }).then(res => {
let { code } = res let { code } = res
if (code == 0) { if (code == 0) {
this.getWaitstaffstate() // this.getWaitstaffstate()
this.search() // this.search()
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!