|
@@ -7,12 +7,7 @@ var TalentInfoInfoDlg = step == 1 ? {
|
|
talentInfoInfoData: {},
|
|
talentInfoInfoData: {},
|
|
validateFields: {
|
|
validateFields: {
|
|
source_county: {validators: {notEmpty: {message: '入选来源县市区不能为空'}}},
|
|
source_county: {validators: {notEmpty: {message: '入选来源县市区不能为空'}}},
|
|
- enterprise_id: {validators: {notEmpty: {message: '所属企业不能为空'}}},
|
|
|
|
talent_type: {validators: {notEmpty: {message: '人才类型不能为空'}}},
|
|
talent_type: {validators: {notEmpty: {message: '人才类型不能为空'}}},
|
|
- enterprise_tag: {validators: {notEmpty: {message: '单位标签不能为空'}}},
|
|
|
|
- enterprise_name: {validators: {notEmpty: {message: '单位名称不能为空'}}},
|
|
|
|
- address: {validators: {notEmpty: {message: '所属街道不能为空'}}},
|
|
|
|
- industry_field: {validators: {notEmpty: {message: '产业领域不能为空'}}},
|
|
|
|
name: {validators: {notEmpty: {message: '姓名不能为空'}}},
|
|
name: {validators: {notEmpty: {message: '姓名不能为空'}}},
|
|
card_type: {validators: {notEmpty: {message: '证件类型不能为空'}}},
|
|
card_type: {validators: {notEmpty: {message: '证件类型不能为空'}}},
|
|
card_number: {
|
|
card_number: {
|
|
@@ -38,7 +33,6 @@ var TalentInfoInfoDlg = step == 1 ? {
|
|
talentInfoInfoData: {},
|
|
talentInfoInfoData: {},
|
|
validateFields: {
|
|
validateFields: {
|
|
apply_year: {validators: {notEmpty: {message: '申报年度不能为空'}}},
|
|
apply_year: {validators: {notEmpty: {message: '申报年度不能为空'}}},
|
|
- fst_work_time: {validators: {notEmpty: {message: '首次来晋工作时间不能为空'}}},
|
|
|
|
import_way: {validators: {notEmpty: {message: '引进方式不能为空'}}},
|
|
import_way: {validators: {notEmpty: {message: '引进方式不能为空'}}},
|
|
cur_entry_time: {validators: {notEmpty: {message: '本单位入职时间不能为空'}}},
|
|
cur_entry_time: {validators: {notEmpty: {message: '本单位入职时间不能为空'}}},
|
|
position: {validators: {notEmpty: {message: '本单位现任职务不能为空'}}},
|
|
position: {validators: {notEmpty: {message: '本单位现任职务不能为空'}}},
|
|
@@ -395,8 +389,8 @@ TalentInfoInfoDlg.talentTypeChange = function () {
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
}
|
|
}
|
|
text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/首次/, "近三年") : "";
|
|
text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/首次/, "近三年") : "";
|
|
- $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display','table-row') : "";
|
|
|
|
- $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display','table-cell') : "";
|
|
|
|
|
|
+ $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display', 'table-row') : "";
|
|
|
|
+ $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display', 'table-cell') : "";
|
|
break;
|
|
break;
|
|
case "2":
|
|
case "2":
|
|
TalentInfoInfoDlg.talentTypeOneTwo = true;
|
|
TalentInfoInfoDlg.talentTypeOneTwo = true;
|
|
@@ -416,8 +410,8 @@ TalentInfoInfoDlg.talentTypeChange = function () {
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
}
|
|
}
|
|
text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
- $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display','table-row') : "";
|
|
|
|
- $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display','none') : "";
|
|
|
|
|
|
+ $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display', 'table-row') : "";
|
|
|
|
+ $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display', 'none') : "";
|
|
break;
|
|
break;
|
|
case "3":
|
|
case "3":
|
|
TalentInfoInfoDlg.talentTypeFlag = true;
|
|
TalentInfoInfoDlg.talentTypeFlag = true;
|
|
@@ -433,8 +427,8 @@ TalentInfoInfoDlg.talentTypeChange = function () {
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
|
|
}
|
|
}
|
|
text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
- $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display','none') : "";
|
|
|
|
- $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display','none') : "";
|
|
|
|
|
|
+ $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display', 'none') : "";
|
|
|
|
+ $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display', 'none') : "";
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
$("#tipsBlock").css('display', 'none');
|
|
$("#tipsBlock").css('display', 'none');
|
|
@@ -564,7 +558,11 @@ TalentInfoInfoDlg.initFile = function () {
|
|
for (var i = 0; i < $(".fileTable").length; i++) {
|
|
for (var i = 0; i < $(".fileTable").length; i++) {
|
|
datas.push([]);//创建空的多维数组,等下用来存每个附件表的各自的列
|
|
datas.push([]);//创建空的多维数组,等下用来存每个附件表的各自的列
|
|
}
|
|
}
|
|
|
|
+ var enterpriseTag = $("#enterprise_tag").val();
|
|
for (var k in data["rows"]) {
|
|
for (var k in data["rows"]) {
|
|
|
|
+ if (data["rows"][k].enterprise_tag != "" && data["rows"][k].enterprise_tag != null && data["rows"][k].enterprise_tag.indexOf(enterpriseTag) == -1) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
var rel = data["rows"][k].rel;
|
|
var rel = data["rows"][k].rel;
|
|
if ($("#" + rel).length > 0) {
|
|
if ($("#" + rel).length > 0) {
|
|
var tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
|
|
var tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
|
|
@@ -872,12 +870,7 @@ TalentInfoInfoDlg.__initValidateCondition = function () {
|
|
var step = $("#step").val();
|
|
var step = $("#step").val();
|
|
if (step == 1) {
|
|
if (step == 1) {
|
|
$('#talentInfoForm').bootstrapValidator('addField', "source_county", {validators: {notEmpty: {message: '入选来源县市区不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "source_county", {validators: {notEmpty: {message: '入选来源县市区不能为空'}}});
|
|
- $('#talentInfoForm').bootstrapValidator('addField', "enterprise_id", {validators: {notEmpty: {message: '所属企业不能为空'}}});
|
|
|
|
$('#talentInfoForm').bootstrapValidator('addField', "talent_type", {validators: {notEmpty: {message: '人才类型不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "talent_type", {validators: {notEmpty: {message: '人才类型不能为空'}}});
|
|
- $('#talentInfoForm').bootstrapValidator('addField', "enterprise_tag", {validators: {notEmpty: {message: '单位标签不能为空'}}});
|
|
|
|
- $('#talentInfoForm').bootstrapValidator('addField', "enterprise_name", {validators: {notEmpty: {message: '单位名称不能为空'}}});
|
|
|
|
- $('#talentInfoForm').bootstrapValidator('addField', "address", {validators: {notEmpty: {message: '所属街道不能为空'}}});
|
|
|
|
- $('#talentInfoForm').bootstrapValidator('addField', "industry_field", {validators: {notEmpty: {message: '产业领域不能为空'}}});
|
|
|
|
$('#talentInfoForm').bootstrapValidator('addField', "name", {validators: {notEmpty: {message: '姓名不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "name", {validators: {notEmpty: {message: '姓名不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "card_type", {validators: {notEmpty: {message: '证件类型不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "card_type", {validators: {notEmpty: {message: '证件类型不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "card_number", {validators: {notEmpty: {message: '证件号码不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "card_number", {validators: {notEmpty: {message: '证件号码不能为空'}}});
|
|
@@ -890,7 +883,6 @@ TalentInfoInfoDlg.__initValidateCondition = function () {
|
|
$('#talentInfoForm').bootstrapValidator('addField', "politics", {validators: {notEmpty: {message: '政治面貌不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "politics", {validators: {notEmpty: {message: '政治面貌不能为空'}}});
|
|
} else {
|
|
} else {
|
|
$('#talentInfoForm').bootstrapValidator('addField', "apply_year", {validators: {notEmpty: {message: '申报年度不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "apply_year", {validators: {notEmpty: {message: '申报年度不能为空'}}});
|
|
- $('#talentInfoForm').bootstrapValidator('addField', "fst_work_time", {validators: {notEmpty: {message: '首次来晋工作时间不能为空'}}});
|
|
|
|
$('#talentInfoForm').bootstrapValidator('addField', "import_way", {validators: {notEmpty: {message: '引进方式不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "import_way", {validators: {notEmpty: {message: '引进方式不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "cur_entry_time", {validators: {notEmpty: {message: '本单位入职时间不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "cur_entry_time", {validators: {notEmpty: {message: '本单位入职时间不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "position", {validators: {notEmpty: {message: '本单位现任职务不能为空'}}});
|
|
$('#talentInfoForm').bootstrapValidator('addField', "position", {validators: {notEmpty: {message: '本单位现任职务不能为空'}}});
|
|
@@ -1000,16 +992,13 @@ $(function () {
|
|
var checkState = $("#checkState").val();
|
|
var checkState = $("#checkState").val();
|
|
//批量加载字典表数据
|
|
//批量加载字典表数据
|
|
var arr = [
|
|
var arr = [
|
|
- {"name": "enterprise_tag", "code": "enterprise_tag"},
|
|
|
|
{"name": "nation", "code": "nation"},
|
|
{"name": "nation", "code": "nation"},
|
|
{"name": "talent_arrange", "code": "talent_arrange"},
|
|
{"name": "talent_arrange", "code": "talent_arrange"},
|
|
{"name": "nationality", "code": "nationality"},
|
|
{"name": "nationality", "code": "nationality"},
|
|
{"name": "politics", "code": "politics"},
|
|
{"name": "politics", "code": "politics"},
|
|
{"name": "highest_degree", "code": "highest_degree"},
|
|
{"name": "highest_degree", "code": "highest_degree"},
|
|
- {"name": "industry_field", "code": "industry_field"},
|
|
|
|
{"name": "source", "code": "source"},
|
|
{"name": "source", "code": "source"},
|
|
- {"name": "import_way", "code": "import_way"},
|
|
|
|
- {"name": "address", "code": "street"}];
|
|
|
|
|
|
+ {"name": "import_way", "code": "import_way"}];
|
|
Feng.findChildDictBatch(JSON.stringify(arr))
|
|
Feng.findChildDictBatch(JSON.stringify(arr))
|
|
//加载省份
|
|
//加载省份
|
|
Feng.addAjaxSelect({
|
|
Feng.addAjaxSelect({
|