Commit eba0ed08 by 张立顺 Committed by chenwq

feat bug修复

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