|
@ -105,7 +105,8 @@ |
|
|
</uv-cell> |
|
|
</uv-cell> |
|
|
<uv-cell title="手机号"> |
|
|
<uv-cell title="手机号"> |
|
|
<template #value> |
|
|
<template #value> |
|
|
<uv-input placeholder="请输入手机号" v-model="form.phone" inputAlign="right"></uv-input> |
|
|
|
|
|
|
|
|
<uv-input placeholder="请输入手机号" v-model="form.phone" inputAlign="right" |
|
|
|
|
|
maxlength="11"></uv-input> |
|
|
</template> |
|
|
</template> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<text class="text-red">*</text> |
|
|
<text class="text-red">*</text> |
|
@ -350,8 +351,13 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uv-popup> |
|
|
</uv-popup> |
|
|
<uv-picker ref="picker" :columns="[workTypeList]" @confirm="confirmWorkType" keyName="title" title="选择工种"/> |
|
|
|
|
|
<uv-picker ref="reqWorkTypePicker" :columns="[workTypeListOrigin]" @confirm="confirmReqWorkType" keyName="title" |
|
|
|
|
|
|
|
|
<uv-picker ref="picker" :columns="[workTypeList, workTypeList[workTypeIndex].children]" @change="changeWorkType" |
|
|
|
|
|
@confirm="confirmWorkType" |
|
|
|
|
|
keyName="title" title="选择工种"/> |
|
|
|
|
|
<uv-picker ref="reqWorkTypePicker" v-if="workTypeListOrigin.length" |
|
|
|
|
|
:columns="[workTypeListOrigin, workTypeListOrigin[reqWorkTypeIndex].children]" |
|
|
|
|
|
@change="changeReqWorkType" |
|
|
|
|
|
@confirm="confirmReqWorkType" keyName="title" |
|
|
title="选择工种"/> |
|
|
title="选择工种"/> |
|
|
<uv-picker ref="jobPicker" :columns="[jobList]" @confirm="confirmJob" keyName="position" |
|
|
<uv-picker ref="jobPicker" :columns="[jobList]" @confirm="confirmJob" keyName="position" |
|
|
title="选择岗位"/> |
|
|
title="选择岗位"/> |
|
@ -385,11 +391,12 @@ |
|
|
<uv-picker ref="houseTypePicker" :columns="[houseTypeColumns]" @confirm="confirmHouseType"></uv-picker> |
|
|
<uv-picker ref="houseTypePicker" :columns="[houseTypeColumns]" @confirm="confirmHouseType"></uv-picker> |
|
|
<uv-popup ref="workExpPicker" mode="bottom" round="15" closeable> |
|
|
<uv-popup ref="workExpPicker" mode="bottom" round="15" closeable> |
|
|
<view class="p-50"> |
|
|
<view class="p-50"> |
|
|
|
|
|
<view class="text-25 text-gray my-15">温馨提示:请按实填写,并填写工作单位全称,否则可能影响材料制作</view> |
|
|
<uv-form labelPosition="left" labelWidth="120"> |
|
|
<uv-form labelPosition="left" labelWidth="120"> |
|
|
<uv-form-item label="工作单位" borderBottom> |
|
|
<uv-form-item label="工作单位" borderBottom> |
|
|
<uv-input |
|
|
<uv-input |
|
|
font-size="28rpx" |
|
|
font-size="28rpx" |
|
|
placeholder="请输入工作单位" |
|
|
|
|
|
|
|
|
placeholder="请输入工作单位全称" |
|
|
v-model="currentWorkExp.company" |
|
|
v-model="currentWorkExp.company" |
|
|
border="none" |
|
|
border="none" |
|
|
inputAlign="right" |
|
|
inputAlign="right" |
|
@ -581,9 +588,23 @@ const picker = ref(null) |
|
|
const openPicker = () => { |
|
|
const openPicker = () => { |
|
|
picker.value.open() |
|
|
picker.value.open() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const workTypeIndex = ref(0) |
|
|
const confirmWorkType = ({value}) => { |
|
|
const confirmWorkType = ({value}) => { |
|
|
form.value.workTypeId = value[0].id |
|
|
|
|
|
form.value.workTypeName = value[0].title |
|
|
|
|
|
|
|
|
form.value.workTypeId = value[1].id |
|
|
|
|
|
form.value.workTypeName = value[1].title |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const changeWorkType = ({columnIndex, index}) => { |
|
|
|
|
|
if (columnIndex === 0) { |
|
|
|
|
|
workTypeIndex.value = index |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const changeReqWorkType = ({columnIndex, index}) => { |
|
|
|
|
|
if (columnIndex === 0) { |
|
|
|
|
|
reqWorkTypeIndex.value = index |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const reqLevelStr = ref() |
|
|
const reqLevelStr = ref() |
|
@ -600,9 +621,11 @@ const reqWorkTypePicker = ref(null) |
|
|
const openReqWorkTypePicker = () => { |
|
|
const openReqWorkTypePicker = () => { |
|
|
reqWorkTypePicker.value.open() |
|
|
reqWorkTypePicker.value.open() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const reqWorkTypeIndex = ref(0) |
|
|
const confirmReqWorkType = ({value}) => { |
|
|
const confirmReqWorkType = ({value}) => { |
|
|
form.value.reqWorkTypeId = value[0].id |
|
|
|
|
|
form.value.reqWorkTypeName = value[0].title |
|
|
|
|
|
|
|
|
form.value.reqWorkTypeId = value[1].id |
|
|
|
|
|
form.value.reqWorkTypeName = value[1].title |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -620,7 +643,21 @@ const openJobPicker = () => { |
|
|
const confirmJob = ({value}) => { |
|
|
const confirmJob = ({value}) => { |
|
|
if (value[0]) { |
|
|
if (value[0]) { |
|
|
form.value.job = value[0].position |
|
|
form.value.job = value[0].position |
|
|
workTypeListOrigin.value = workTypeListOrigin.value.filter(item => item.id === value[0].workTypeId) |
|
|
|
|
|
|
|
|
const children = workTypeListOriginTmp.value.filter(item => item.id === value[0].workTypeId) |
|
|
|
|
|
const parent = workTypeListOriginTmp.value.find(item => item.id === children[0].parentId) |
|
|
|
|
|
workTypeListOrigin.value = [ |
|
|
|
|
|
{ |
|
|
|
|
|
title: parent.title, |
|
|
|
|
|
id: parent.id, |
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
title: children[0].title, |
|
|
|
|
|
id: children[0].id, |
|
|
|
|
|
children: children[0].children |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -656,13 +693,24 @@ const showPopup = () => { |
|
|
|
|
|
|
|
|
const workTypeList = ref([]) |
|
|
const workTypeList = ref([]) |
|
|
const workTypeListOrigin = ref([]) |
|
|
const workTypeListOrigin = ref([]) |
|
|
|
|
|
const workTypeListOriginTmp = ref([]) |
|
|
|
|
|
|
|
|
const getWorkTypeList = async () => { |
|
|
const getWorkTypeList = async () => { |
|
|
const {data} = await workTypeListReq() |
|
|
const {data} = await workTypeListReq() |
|
|
workTypeList.value = data |
|
|
|
|
|
workTypeListOrigin.value = JSON.parse(JSON.stringify(data)) |
|
|
|
|
|
|
|
|
workTypeList.value = data.filter(item => !item.parentId) |
|
|
|
|
|
workTypeListOriginTmp.value = JSON.parse(JSON.stringify(data)) |
|
|
|
|
|
|
|
|
|
|
|
workTypeList.value = workTypeList.value.map(item => { |
|
|
|
|
|
item.children = workTypeListOriginTmp.value.filter(origin => origin.parentId === item.id) |
|
|
|
|
|
return item |
|
|
|
|
|
}) |
|
|
workTypeList.value.unshift({ |
|
|
workTypeList.value.unshift({ |
|
|
title: '无', |
|
|
title: '无', |
|
|
id: 0, |
|
|
id: 0, |
|
|
|
|
|
children: [{ |
|
|
|
|
|
title: '无', |
|
|
|
|
|
id: 0, |
|
|
|
|
|
}] |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -844,6 +892,10 @@ const join = async () => { |
|
|
if (hasPaper.value && !form.value.schoolPaper) { |
|
|
if (hasPaper.value && !form.value.schoolPaper) { |
|
|
return $toast('请上传毕业证') |
|
|
return $toast('请上传毕业证') |
|
|
} |
|
|
} |
|
|
|
|
|
if (!['初中', '职业高中', '技工学校', '中等专科', '普通高中', '其他'].includes(form.value.education) && !form.value.school) |
|
|
|
|
|
return $toast('请输入毕业院校') |
|
|
|
|
|
if (!['初中', '普通高中', '其他'].includes(form.value.education) && !form.value.school) |
|
|
|
|
|
return $toast('请输入所学专业') |
|
|
if (!backPass.value) return $toast('请上传身份证反面') |
|
|
if (!backPass.value) return $toast('请上传身份证反面') |
|
|
if (!workDateEndJudge.value) form.value.workDateEnd = '无' |
|
|
if (!workDateEndJudge.value) form.value.workDateEnd = '无' |
|
|
if (info.value.needContact === 1) { |
|
|
if (info.value.needContact === 1) { |
|
|