|
@@ -8,6 +8,7 @@ import {logicStatus, studentTypes} from "../../model/enum";
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
|
+ isCommunityWorker: false,
|
|
|
plusImageUrl: '/images/plus2.png',
|
|
|
iCanUseAvatarButton: wx.canIUse('button.open-type.chooseAvatar'),
|
|
|
isPC: false,
|
|
@@ -169,6 +170,7 @@ Page({
|
|
|
teamId,
|
|
|
id: eduStuId,
|
|
|
},
|
|
|
+ isCommunityWorker: perType == studentTypes.COMMUNITY_WORKER,
|
|
|
sexData,
|
|
|
eduExpData,
|
|
|
nationData,
|
|
@@ -236,6 +238,7 @@ Page({
|
|
|
'formData.jobId': -1,
|
|
|
'formData.code': '',
|
|
|
parentIds:'',
|
|
|
+ isCommunityWorker: eventParam['formData.perType'] == studentTypes.COMMUNITY_WORKER
|
|
|
})
|
|
|
}
|
|
|
this.setData({
|
|
@@ -270,82 +273,152 @@ Page({
|
|
|
toast('请选择性别')
|
|
|
return;
|
|
|
}
|
|
|
- if (this.checkEmpty('education')) {
|
|
|
- toast('请选择文化程度')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkEmpty('graduate')) {
|
|
|
- toast('请输入毕业院校')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkUNChoose('isEmphasis')) {
|
|
|
- toast('请选择是否211、985')
|
|
|
- return;
|
|
|
- }
|
|
|
if (this.checkEmpty('nation')) {
|
|
|
toast('请选择民族')
|
|
|
return;
|
|
|
}
|
|
|
- if (this.checkUNChoose('specialtyId')) {
|
|
|
- toast('请选择专业')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkUNChoose('isFullTime')) {
|
|
|
- toast('请选择是否全日制')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkEmpty('advantage')) {
|
|
|
- toast('请选择特长优势')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkUNChoose('isParty')) {
|
|
|
- toast('请选择是否中共党员')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkUNChoose('isReceiveHonor')) {
|
|
|
- toast('请选择是否有区级以上荣誉')
|
|
|
- return;
|
|
|
- }
|
|
|
if (this.checkUNChoose('perType')) {
|
|
|
toast('请选择学员类别')
|
|
|
return;
|
|
|
}
|
|
|
- //社区工作者相关内容 start
|
|
|
- if (this.checkEmpty('code')) {
|
|
|
- let unitChooseTipContent = isCommunityWorker? '吉林省社区工作者必须选择到社区一级,非吉林省社区工作者必须选择到市一级!' : '请选择单位所在的行政区域!';
|
|
|
- wx.showModal({
|
|
|
- title: "单位所在的行政区域提示",
|
|
|
- content: unitChooseTipContent,
|
|
|
- showCancel: false
|
|
|
- })
|
|
|
- return;
|
|
|
- }
|
|
|
- if (isCommunityWorker && this.checkUNChoose('socialWorkLevel')) {
|
|
|
- toast('请选择社工证等级')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (isCommunityWorker && this.checkEmpty('socialWorkYear')) {
|
|
|
- toast('请选择社区工作年限')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (isCommunityWorker && this.checkUNChoose('isPromote')) {
|
|
|
- toast('请选择是否在本年度提任社区书记')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (isCommunityWorker && this.data.formData.isPromote == logicStatus.YES && this.checkEmpty('formerPost')) {
|
|
|
- toast('请输入原职务')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.checkUNChoose('jobId')) {
|
|
|
- toast('请选择现任职务')
|
|
|
- return;
|
|
|
- }
|
|
|
|
|
|
- if (this.checkEmpty('jobTime')) {
|
|
|
- toast('请选择任职时间')
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.checkEmpty('education')) {
|
|
|
+ // toast('请选择文化程度')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkEmpty('graduate')) {
|
|
|
+ // toast('请输入毕业院校')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkUNChoose('isEmphasis')) {
|
|
|
+ // toast('请选择是否211、985')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (this.checkUNChoose('specialtyId')) {
|
|
|
+ // toast('请选择专业')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkUNChoose('isFullTime')) {
|
|
|
+ // toast('请选择是否全日制')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkEmpty('advantage')) {
|
|
|
+ // toast('请选择特长优势')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkUNChoose('isParty')) {
|
|
|
+ // toast('请选择是否中共党员')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkUNChoose('isReceiveHonor')) {
|
|
|
+ // toast('请选择是否有区级以上荣誉')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // //社区工作者相关内容 start
|
|
|
+ // if (this.checkEmpty('code')) {
|
|
|
+ // let unitChooseTipContent = isCommunityWorker? '吉林省社区工作者必须选择到社区一级,非吉林省社区工作者必须选择到市一级!' : '请选择单位所在的行政区域!';
|
|
|
+ // wx.showModal({
|
|
|
+ // title: "单位所在的行政区域提示",
|
|
|
+ // content: unitChooseTipContent,
|
|
|
+ // showCancel: false
|
|
|
+ // })
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (isCommunityWorker && this.checkUNChoose('socialWorkLevel')) {
|
|
|
+ // toast('请选择社工证等级')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (isCommunityWorker && this.checkEmpty('socialWorkYear')) {
|
|
|
+ // toast('请选择社区工作年限')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (isCommunityWorker && this.checkUNChoose('isPromote')) {
|
|
|
+ // toast('请选择是否在本年度提任社区书记')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (isCommunityWorker && this.data.formData.isPromote == logicStatus.YES && this.checkEmpty('formerPost')) {
|
|
|
+ // toast('请输入原职务')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.checkUNChoose('jobId')) {
|
|
|
+ // toast('请选择现任职务')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (this.checkEmpty('jobTime')) {
|
|
|
+ // toast('请选择任职时间')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (isCommunityWorker) {
|
|
|
+ if (this.checkEmpty('education')) {
|
|
|
+ toast('请选择文化程度')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkEmpty('graduate')) {
|
|
|
+ toast('请输入毕业院校')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkUNChoose('isEmphasis')) {
|
|
|
+ toast('请选择是否211、985')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkUNChoose('specialtyId')) {
|
|
|
+ toast('请选择专业')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkUNChoose('isFullTime')) {
|
|
|
+ toast('请选择是否全日制')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkEmpty('advantage')) {
|
|
|
+ toast('请选择特长优势')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkUNChoose('isParty')) {
|
|
|
+ toast('请选择是否中共党员')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkUNChoose('isReceiveHonor')) {
|
|
|
+ toast('请选择是否有区级以上荣誉')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //社区工作者相关内容 start
|
|
|
+ if (this.checkEmpty('code')) {
|
|
|
+ let unitChooseTipContent = isCommunityWorker? '吉林省社区工作者必须选择到社区一级,非吉林省社区工作者必须选择到市一级!' : '请选择单位所在的行政区域!';
|
|
|
+ wx.showModal({
|
|
|
+ title: "单位所在的行政区域提示",
|
|
|
+ content: unitChooseTipContent,
|
|
|
+ showCancel: false
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isCommunityWorker && this.checkUNChoose('socialWorkLevel')) {
|
|
|
+ toast('请选择社工证等级')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isCommunityWorker && this.checkEmpty('socialWorkYear')) {
|
|
|
+ toast('请选择社区工作年限')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isCommunityWorker && this.checkUNChoose('isPromote')) {
|
|
|
+ toast('请选择是否在本年度提任社区书记')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isCommunityWorker && this.data.formData.isPromote == logicStatus.YES && this.checkEmpty('formerPost')) {
|
|
|
+ toast('请输入原职务')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkUNChoose('jobId')) {
|
|
|
+ toast('请选择现任职务')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.checkEmpty('jobTime')) {
|
|
|
+ toast('请选择任职时间')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (this.checkUNChoose('isGridLeader')) {
|
|
|
toast('请选择是否网格长')
|
|
|
return;
|