|
@@ -2,7 +2,7 @@
|
|
|
* 初始化人才认定申报详情对话框
|
|
|
*/
|
|
|
var locked = false;
|
|
|
-var TalentInfoInfoDlg = {
|
|
|
+var IntegralInfoDlg = {
|
|
|
talentInfoInfoData: {},
|
|
|
validateFields: {
|
|
|
source_county: {validators: {notEmpty: {message: '入选来源县市区不能为空'}}},
|
|
@@ -104,11 +104,10 @@ var TalentInfoInfoDlg = {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
/**
|
|
|
* 清除数据
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.clearData = function () {
|
|
|
+IntegralInfoDlg.clearData = function () {
|
|
|
this.talentInfoInfoData = {};
|
|
|
}
|
|
|
|
|
@@ -118,7 +117,7 @@ TalentInfoInfoDlg.clearData = function () {
|
|
|
* @param key 数据的名称
|
|
|
* @param val 数据的具体值
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.set = function (key, val) {
|
|
|
+IntegralInfoDlg.set = function (key, val) {
|
|
|
var dis = $("#" + key).attr("disabled");
|
|
|
if (dis == "disabled") {
|
|
|
$("#" + key).removeAttr("disabled");
|
|
@@ -136,21 +135,21 @@ TalentInfoInfoDlg.set = function (key, val) {
|
|
|
* @param key 数据的名称
|
|
|
* @param val 数据的具体值
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.get = function (key) {
|
|
|
+IntegralInfoDlg.get = function (key) {
|
|
|
return $("#" + key).val();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 关闭此对话框
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.close = function () {
|
|
|
+IntegralInfoDlg.close = function () {
|
|
|
parent.layer.close(window.parent.TalentInfo.layerIndex);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 收集数据
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.collectData = function () {
|
|
|
+IntegralInfoDlg.collectData = function () {
|
|
|
this
|
|
|
.set('id')
|
|
|
.set('type')
|
|
@@ -218,7 +217,7 @@ TalentInfoInfoDlg.collectData = function () {
|
|
|
/**
|
|
|
* 验证数据
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.validate = function () {
|
|
|
+IntegralInfoDlg.validate = function () {
|
|
|
$('#integralInfoForm').data("bootstrapValidator").resetForm();
|
|
|
$('#integralInfoForm').bootstrapValidator('validate');
|
|
|
return $("#integralInfoForm").data('bootstrapValidator').isValid();
|
|
@@ -226,7 +225,7 @@ TalentInfoInfoDlg.validate = function () {
|
|
|
/**
|
|
|
* 初始化表格的列
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.initFileTypeColumn = function () {
|
|
|
+IntegralInfoDlg.initFileTypeColumn = function () {
|
|
|
return [
|
|
|
{field: 'selectItem', checkbox: false, visible: false},
|
|
|
{title: '名称', field: 'name', visible: true, align: 'left', valign: 'middle', width: "82%", 'class': 'uitd_showTip',
|
|
@@ -247,27 +246,26 @@ TalentInfoInfoDlg.initFileTypeColumn = function () {
|
|
|
if (value == null || value == '' || value == 'null') {
|
|
|
return '无';
|
|
|
}
|
|
|
- return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
|
|
|
+ return "<button type='button' onclick=\"IntegralInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
|
|
|
"<i class=\"fa fa-download\"></i>下载" +
|
|
|
"</button>";
|
|
|
}
|
|
|
},
|
|
|
{title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
|
|
|
formatter: function (value, row, index) {
|
|
|
- return TalentInfoInfoDlg.validUploadButton(1, value, '', row.tableIndex, row.trIndex);
|
|
|
+ return IntegralInfoDlg.validUploadButton(1, value, '', row.tableIndex, row.trIndex);
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
-
|
|
|
-TalentInfoInfoDlg.initFileTable = function () {
|
|
|
+IntegralInfoDlg.initFileTable = function () {
|
|
|
var ajax = new $ax("/common/api/findCommonFileType", function (data) {
|
|
|
if (data == null || data.length == 0) {
|
|
|
return;
|
|
|
}
|
|
|
var datas = new Array();
|
|
|
for (var i = 0; i < $(".fileTable").length; i++) {
|
|
|
- datas.push([]);//创建空的多维数组,等下用来存每个附件表的各自的列
|
|
|
+ datas.push([]); //创建空的多维数组,等下用来存每个附件表的各自的列
|
|
|
}
|
|
|
var enterpriseTag = $("#enterprise_tag").val();
|
|
|
for (var k in data["rows"]) {
|
|
@@ -311,19 +309,19 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
}
|
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
|
- datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
|
|
|
+ datas[tableIndex].push(data["rows"][k]); //放入人才条件后面的附件表
|
|
|
} else {
|
|
|
var tableIndex = $(".fileTable").length - 1;
|
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
|
- datas[$(".fileTable").length - 1].push(data["rows"][k]);//没有归属,放入最后一个附件表
|
|
|
+ datas[$(".fileTable").length - 1].push(data["rows"][k]); //没有归属,放入最后一个附件表
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
for (var i = 0; i < $(".fileTable").length; i++) {
|
|
|
var that = $(".fileTable").eq(i);
|
|
|
that.bootstrapTable({
|
|
|
- columns: TalentInfoInfoDlg.initFileTypeColumn(),
|
|
|
+ columns: IntegralInfoDlg.initFileTypeColumn(),
|
|
|
data: datas[i],
|
|
|
showHeader: false,
|
|
|
rowStyle: function (row, index) {
|
|
@@ -335,9 +333,9 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
var html = '<ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
|
|
|
for (var key in files) {
|
|
|
var btn = "";
|
|
|
- btn = TalentInfoInfoDlg.validUploadButton(2, data[k].id, files[key].id, i, k);
|
|
|
+ btn = IntegralInfoDlg.validUploadButton(2, data[k].id, files[key].id, i, k);
|
|
|
var sn = files[key].url.lastIndexOf(".");
|
|
|
- var suffix = files[key].ext;//files[key].url.substring(sn + 1, files[key].url.length);
|
|
|
+ var suffix = files[key].ext; //files[key].url.substring(sn + 1, files[key].url.length);
|
|
|
var imgStr = "";
|
|
|
if (suffix == "pdf" || suffix == "PDF") {
|
|
|
imgStr = "<button type='button' onclick=\"Feng.showPdf('" + files[key].url + "','" + files[key].id + "','" + files[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
|
|
@@ -384,19 +382,109 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
ajax.set(queryData);
|
|
|
ajax.start();
|
|
|
}
|
|
|
+IntegralInfoDlg.addItem = function () {
|
|
|
+ var html = '<table style="width:100%;border-collapse: collapse;" class="table table-bordered">' +
|
|
|
+ ' <tr>' +
|
|
|
+ ' <td style="width:40px;">' +
|
|
|
+ ' <div class="rowGroup">' +
|
|
|
+ ' <label class="control-label spacing td-label">选择</label>' +
|
|
|
+ ' <input type="checkbox" name="chk[]" class="form-control"/>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' <td>' +
|
|
|
+ ' <div class="rowGroup">' +
|
|
|
+ ' <label class=" control-label spacing td-label"><span style="color: red">*</span>项目类别</label>' +
|
|
|
+ ' <select class="form-control" name="projectType[]" value="" onchange="IntegralInfoDlg.onProjectTypeChange(this);">' +
|
|
|
+ ' <option value="">请选择</option>' +
|
|
|
+ ' <option value="1">基础分</option>' +
|
|
|
+ ' <option value="2">贡献分</option>' +
|
|
|
+ ' <option value="3">资历分</option>' +
|
|
|
+ ' </select>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' <td>' +
|
|
|
+ ' <div class="rowGroup">' +
|
|
|
+ ' <label class=" control-label spacing td-label"><span style="color: red">*</span>积分项目</label>' +
|
|
|
+ ' <select class="form-control" name="projectId[]" value="" onchange="IntegralInfoDlg.onProjectChange(this);">' +
|
|
|
+ ' <option value="">请选择</option>' +
|
|
|
+ ' </select>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' <td>' +
|
|
|
+ ' <div class="rowGroup">' +
|
|
|
+ ' <label class=" control-label spacing td-label"><span style="color: red">*</span>积分标准</label>' +
|
|
|
+ ' <select class="form-control" name="item_id[]" value="" onchange="IntegralInfoDlg.onItemChange(this);">' +
|
|
|
+ ' <option value="">请选择</option>' +
|
|
|
+ ' </select>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' <td>' +
|
|
|
+ ' <div class="rowGroup">' +
|
|
|
+ ' <label class="control-label spacing td-label"><span style="color: red">*</span>数额<span class="unit"></span></label>' +
|
|
|
+ ' <input type="text" class="form-control" name="amount[]" value=""/>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' </tr>' +
|
|
|
+ ' <tr>' +
|
|
|
+ ' <td colspan="5">' +
|
|
|
+ ' <table class="fileTable"></table>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' </tr>' +
|
|
|
+ ' </table>';
|
|
|
+ $("#toolbar").before(html);
|
|
|
+}
|
|
|
+IntegralInfoDlg.deleteItem = function () {
|
|
|
+ var len = $("input[name='chk[]']:checked").length;
|
|
|
+ if (len == 0) {
|
|
|
+ Feng.info("请选择要移除的项目");
|
|
|
+ }
|
|
|
+ for (var i = 0; i < len; i++) {
|
|
|
+ $("input[name='chk[]']:checked").eq(i).parents("table").remove();
|
|
|
+ }
|
|
|
+}
|
|
|
+IntegralInfoDlg.onProjectTypeChange = function (obj) {
|
|
|
+ var type = $(obj).val();
|
|
|
+ var projectObj = $(obj).parents("table").find("select[name='projectId[]']")
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "obj": projectObj,
|
|
|
+ "displayCode": "id",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": "/common/api/getIntegralProjectsByType/type/" + type
|
|
|
+ });
|
|
|
+}
|
|
|
+IntegralInfoDlg.onProjectChange = function (obj) {
|
|
|
+ var projectId = $(obj).val();
|
|
|
+ var itemObj = $(obj).parents("table").find("select[name='item_id[]']")
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "obj": itemObj,
|
|
|
+ "displayCode": "id",
|
|
|
+ "displayName": "name",
|
|
|
+ "bindData": "unit",
|
|
|
+ "type": "GET",
|
|
|
+ "url": "/common/api/getIntegralItemsByProject/projectId/" + projectId
|
|
|
+ });
|
|
|
+}
|
|
|
+IntegralInfoDlg.onItemChange = function (obj) {
|
|
|
+ var unit = $(obj).find("option:selected").data("unit");
|
|
|
+ if (typeof unit != "undefined" && unit) {
|
|
|
+ $(obj).parents("table").find(".unit").html("(" + unit + ")");
|
|
|
+ } else {
|
|
|
+ $(obj).parents("table").find(".unit").html("");
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
/**
|
|
|
* 提交添加
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.addSubmit = function () {
|
|
|
+IntegralInfoDlg.addSubmit = function () {
|
|
|
this.clearData();
|
|
|
this.collectData();
|
|
|
- /*if (!TalentInfoInfoDlg.validate()) {
|
|
|
+ /*if (!IntegralInfoDlg.validate()) {
|
|
|
return;
|
|
|
}*/
|
|
|
var id = $('#id').val();
|
|
|
if (id != null && id != '') {
|
|
|
- if (!TalentInfoInfoDlg.validateIsEdit())
|
|
|
+ if (!IntegralInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
}
|
|
|
$("select").each(function () {
|
|
@@ -411,9 +499,9 @@ TalentInfoInfoDlg.addSubmit = function () {
|
|
|
}
|
|
|
|
|
|
//回调
|
|
|
-TalentInfoInfoDlg.infoCallback = function (data) {
|
|
|
+IntegralInfoDlg.infoCallback = function (data) {
|
|
|
locked = false;
|
|
|
- TalentInfoInfoDlg.setNoChangeField();
|
|
|
+ IntegralInfoDlg.setNoChangeField();
|
|
|
Feng.info(data.msg);
|
|
|
if (data.code == 200) {
|
|
|
window.parent.TalentInfo.table.refresh();
|
|
@@ -424,12 +512,11 @@ TalentInfoInfoDlg.infoCallback = function (data) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
|
+IntegralInfoDlg.getLayerCatdByLayer = function () {
|
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
|
$("#talent_condition").html("<option>---请选择---</option>");
|
|
|
$("#annual_salary").parents("td").css("display", "none");
|
|
|
$('#integralInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
|
-
|
|
|
var level = $("#talent_arrange").val();
|
|
|
Feng.addAjaxSelect({
|
|
|
"id": "talent_arrange_category",
|
|
@@ -444,7 +531,7 @@ TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
|
/**
|
|
|
* 获取人才认定
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
|
+IntegralInfoDlg.getIdentifyCondition = function () {
|
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
|
$("#annual_salary").parents("td").css("display", "none");
|
|
|
$('#integralInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
@@ -461,11 +548,10 @@ TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
|
$("#talent_condition").trigger('chosen:updated');
|
|
|
}
|
|
|
|
|
|
-TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
|
+IntegralInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
|
$("#annual_salary").parents("td").css("display", "none");
|
|
|
$('#integralInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
|
-
|
|
|
var source = $("#source").val();
|
|
|
if (source == "" || typeof source == "undefined") {
|
|
|
layer.alert("请先选择申报来源");
|
|
@@ -473,9 +559,9 @@ TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
|
$("#talent_condition").trigger('chosen:updated');
|
|
|
return;
|
|
|
}
|
|
|
- TalentInfoInfoDlg.ajaxGetConditionFile(source);
|
|
|
+ IntegralInfoDlg.ajaxGetConditionFile(source);
|
|
|
}
|
|
|
-TalentInfoInfoDlg.ajaxGetConditionFile = function (source) {
|
|
|
+IntegralInfoDlg.ajaxGetConditionFile = function (source) {
|
|
|
var condition = $("#talent_condition option:selected").val();
|
|
|
if (condition != "") {
|
|
|
var ajax = new $ax("/common/api/getTalentCondtionUploadFile", function (data) {
|
|
@@ -514,8 +600,8 @@ TalentInfoInfoDlg.ajaxGetConditionFile = function (source) {
|
|
|
if (filetype.must == 2) {
|
|
|
name = '<i class="fa fa-paste"></i>' + filetype.name;
|
|
|
}
|
|
|
- var uploadbtn = TalentInfoInfoDlg.validUploadButton(1, filetype.id, '', tableIndex, key);
|
|
|
- var templateUrl = '<button type="button" onclick="TalentInfoInfoDlg.downloadFile("' + filetype.id + '",3)" style="margin-right: 10px" class="btn btn-xs btn-primary">\n\
|
|
|
+ var uploadbtn = IntegralInfoDlg.validUploadButton(1, filetype.id, '', tableIndex, key);
|
|
|
+ var templateUrl = '<button type="button" onclick="IntegralInfoDlg.downloadFile("' + filetype.id + '",3)" style="margin-right: 10px" class="btn btn-xs btn-primary">\n\
|
|
|
<i class=\"fa fa-download\"></i>下载""</button>"';
|
|
|
html += '<tr data-index="' + key + '">\n\
|
|
|
<td class="uitd_showTip" style="text-align: center; vertical-align: middle; width: 30%; ">' + name + '</td> \n\
|
|
@@ -523,12 +609,11 @@ TalentInfoInfoDlg.ajaxGetConditionFile = function (source) {
|
|
|
<td class="uitd_showTip" style="text-align: center; vertical-align: middle; width: 52%; ">' + filetype.description + '</td> \n\
|
|
|
<td style="text-align: center; vertical-align: middle; width: 10%; ">' + uploadbtn + '</td> </tr></tr>';
|
|
|
html += '<tr class="detail-view"><td colspan="5"><ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
|
|
|
-
|
|
|
for (var k in filetype.files) {
|
|
|
var file = filetype.files[k];
|
|
|
- var btn = TalentInfoInfoDlg.validUploadButton(2, filetype.id, file.id, tableIndex, key);
|
|
|
+ var btn = IntegralInfoDlg.validUploadButton(2, filetype.id, file.id, tableIndex, key);
|
|
|
var sn = file.url.lastIndexOf(".");
|
|
|
- var suffix = file.ext;//file.url.substring(sn + 1, file.url.length);
|
|
|
+ var suffix = file.ext; //file.url.substring(sn + 1, file.url.length);
|
|
|
var imgStr = "";
|
|
|
if (suffix == "pdf" || suffix == "PDF") {
|
|
|
imgStr = "<button type='button' onclick=\"Feng.showPdf('" + file.url + "','" + file.id + "','" + file.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
|
|
@@ -562,7 +647,7 @@ TalentInfoInfoDlg.ajaxGetConditionFile = function (source) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-TalentInfoInfoDlg.bankChange = function () {
|
|
|
+IntegralInfoDlg.bankChange = function () {
|
|
|
var bank = $("#bank").val();
|
|
|
if ($.trim(bank) == '中国工商银行') {
|
|
|
$("#bank_number").val('102391050013');
|
|
@@ -571,7 +656,7 @@ TalentInfoInfoDlg.bankChange = function () {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-TalentInfoInfoDlg.changeStudyAbroad = function () {
|
|
|
+IntegralInfoDlg.changeStudyAbroad = function () {
|
|
|
var is_abroad = $("#study_abroad").val();
|
|
|
if (is_abroad == 1) {
|
|
|
$("#abroad_school").parent().css("display", "block");
|
|
@@ -590,7 +675,7 @@ TalentInfoInfoDlg.changeStudyAbroad = function () {
|
|
|
/**
|
|
|
* 加载市
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.afterSelectProvince = function () {
|
|
|
+IntegralInfoDlg.afterSelectProvince = function () {
|
|
|
var province = $("#province").val();
|
|
|
$("#city").empty();
|
|
|
$("#county").empty();
|
|
@@ -608,7 +693,7 @@ TalentInfoInfoDlg.afterSelectProvince = function () {
|
|
|
/**
|
|
|
* 加载县
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.afterSelectCity = function () {
|
|
|
+IntegralInfoDlg.afterSelectCity = function () {
|
|
|
var city = $("#city").val();
|
|
|
$("#county").empty();
|
|
|
if (city == null || city == '') {
|
|
@@ -623,203 +708,8 @@ TalentInfoInfoDlg.afterSelectCity = function () {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-TalentInfoInfoDlg.isAgeChecked = false;
|
|
|
-TalentInfoInfoDlg.birthdayChange = function () {
|
|
|
- let birthday = parseInt($("#birthday").val().substring(0, 4));
|
|
|
- let currentYear = parseInt(new Date().getFullYear());
|
|
|
- let age = currentYear - (isNaN(birthday) ? 0 : birthday);
|
|
|
- let option = $("[data-rel=birthday]");
|
|
|
- let limitAge = option.data("option");
|
|
|
- if (age >= limitAge) {
|
|
|
- option.css("display", "table-row");
|
|
|
- option.next("tr.detail-view").css("display", "table-row");
|
|
|
- if (!TalentInfoInfoDlg.isAgeChecked) {
|
|
|
- layer.alert("由于您的年龄大于70岁(含),要求提供人社局的允许申报的批文,请线下前往人社局办理。如已办理,请将该批文作为附件上传至对应附件栏中。");
|
|
|
- TalentInfoInfoDlg.isAgeChecked = true;
|
|
|
- return false;
|
|
|
- }
|
|
|
- } else {
|
|
|
- TalentInfoInfoDlg.isAgeChecked = false;
|
|
|
- option.css("display", "none");
|
|
|
- option.next("tr.detail-view").css("display", "none");
|
|
|
- }
|
|
|
- return true;
|
|
|
-}
|
|
|
-TalentInfoInfoDlg.initBirthday = function () {
|
|
|
- let birthday = parseInt($("#birthday").val().substring(0, 4));
|
|
|
- let currentYear = parseInt(new Date().getFullYear());
|
|
|
- let age = currentYear - (isNaN(birthday) ? 0 : birthday);
|
|
|
- let option = $("[data-rel=birthday]");
|
|
|
- let isFileExists = option.next("tr.detail-view").find("ul.imgs").find("li").length > 3 ? true : false;
|
|
|
- let limitAge = option.data("option");
|
|
|
- if (!isNaN(birthday)) {
|
|
|
- if (age >= limitAge && isFileExists) {
|
|
|
- TalentInfoInfoDlg.isAgeChecked = true;
|
|
|
- }
|
|
|
- TalentInfoInfoDlg.birthdayChange();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-TalentInfoInfoDlg.talentTypeChange = function () {
|
|
|
- var talent_type = $("#talent_type").val();
|
|
|
- //$("#tax_insurance_month").val("").parent().css("display", "none");
|
|
|
- //$("#labor_contract_rangetime").val("").parent().css("display", "none");
|
|
|
- $(".talentType1-2").css("display", "none");
|
|
|
- $(".talentType3").css("display", "none");
|
|
|
- var text = "";
|
|
|
- switch (talent_type) {
|
|
|
- case "1":
|
|
|
- TalentInfoInfoDlg.talentTypeOneTwo = true;
|
|
|
- $("#tipsBlock").css('display', 'block');
|
|
|
- $("#typeTips").html("含经晋江市认定且还在晋江市就业创业的人才,或在晋江市就业创业但未曾申报过晋江市现代产业体系人才的人才。");
|
|
|
- //$("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料");
|
|
|
- $(".talentType1-2").css("display", "table-row");
|
|
|
- $("#talentType_first").css('display', "none");
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
|
|
|
- validators: {
|
|
|
- notEmpty: {message: '在我市缴交社会保险或个人所得税月份不能为空'}
|
|
|
- }
|
|
|
- });
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_way", {validators: {notEmpty: {message: '请选择工资发放渠道'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_month", {validators: {notEmpty: {message: '请选择工资发放月份'}}});
|
|
|
- if (TalentInfoInfoDlg.talentTypeFlag) {
|
|
|
- TalentInfoInfoDlg.talentTypeFlag = false;
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
|
- }
|
|
|
- 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') : "";
|
|
|
- break;
|
|
|
- case "2":
|
|
|
- TalentInfoInfoDlg.talentTypeOneTwo = true;
|
|
|
- $("#tipsBlock").css('display', 'block');
|
|
|
- $("#typeTips").html("含本办法出台后首次从晋江市以外引进认定的人才,或者流出晋江市满3年后又返回晋江市就业创业(不含企业集团内部人员调动)的人才。")
|
|
|
- //$("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料与来我市前工作情况证明,例如原工作单位出具的工作证明、离职证明或原创(领)办企业的营业执照复印件、经市场监管部门备案的公司章程复印件等证明材料");
|
|
|
- $(".talentType1-2").css("display", "table-row");
|
|
|
- $("#talentType_first").css('display', "inline");
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
|
|
|
- validators: {
|
|
|
- notEmpty: {message: '在我市缴交社会保险或个人所得税月份不能为空'}
|
|
|
- }
|
|
|
- });
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_way", {validators: {notEmpty: {message: '请选择工资发放渠道'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_month", {validators: {notEmpty: {message: '请选择工资发放月份'}}});
|
|
|
- if (TalentInfoInfoDlg.talentTypeFlag) {
|
|
|
- TalentInfoInfoDlg.talentTypeFlag = false;
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
|
- }
|
|
|
- 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') : "";
|
|
|
- break;
|
|
|
- case "3":
|
|
|
- TalentInfoInfoDlg.talentTypeFlag = true;
|
|
|
- $("#tipsBlock").css('display', 'block');
|
|
|
- $("#typeTips").html("含已经与晋江市用人单位达成就业意向且签订预引进意向合作协议(合同)的人才,或拟来我市创业且提交企业名称预先核准的人才。")
|
|
|
- //$("#desc_talent_type").html("请先提供意向合作协议(合同)或企业名称预先核准材料,落地我市后再补齐上述材料");
|
|
|
- $(".talentType3").css("display", "table-row");
|
|
|
- $("#talentType_first").css('display', "none");
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "pre_import_type", {validators: {notEmpty: {message: '请选择预引进类型'}}});
|
|
|
- if (TalentInfoInfoDlg.talentTypeOneTwo) {
|
|
|
- TalentInfoInfoDlg.talentTypeOneTwo = false;
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "labor_contract_rangetime");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "salary_pay_way");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "salary_pay_month");
|
|
|
- }
|
|
|
- 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') : "";
|
|
|
- break;
|
|
|
- default:
|
|
|
- $("#tipsBlock").css('display', 'none');
|
|
|
- text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
|
- break;
|
|
|
- }
|
|
|
- $("#fst_work_time").prev("label").html(text);
|
|
|
- for (var i = 0; i < $("[data-rel=talent_type]").length; i++) {
|
|
|
- let option = $("[data-rel=talent_type]").eq(i);
|
|
|
- let options = option.data("option").toString().split(",");
|
|
|
- if (options.indexOf(talent_type) > -1) {
|
|
|
- option.css("display", "table-row");
|
|
|
- option.next("tr.detail-view").css("display", "table-row");
|
|
|
- } else {
|
|
|
- option.css("display", "none");
|
|
|
- option.next("tr.detail-view").css("display", "none");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-TalentInfoInfoDlg.sourceChange = function () {
|
|
|
- var source = $("#source").val();
|
|
|
- $("#source_batch").val("").parent().css("display", "none");
|
|
|
- $(".fujian_highcert").css("display", "none");
|
|
|
- $(".quanzhou_highcert").css("display", "none");
|
|
|
- $("#source_city").val("").parent().css("display", "none");
|
|
|
- $("#source_county").val("").parent().css("display", "none");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "source_batch");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "fujian_highcert_pubtime");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "fujian_highcert_exptime");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "quanzhou_highcert_pubtime");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "quanzhou_highcert_exptime");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "source_city");
|
|
|
- $('#integralInfoForm').bootstrapValidator('removeField', "source_county");
|
|
|
- switch (source) {
|
|
|
- case "1":
|
|
|
- case "3":
|
|
|
- $("#source_batch").parent().css("display", "block");
|
|
|
- $(".fujian_highcert").css("display", "block");
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "fujian_highcert_pubtime", {validators: {notEmpty: {message: '福建省高层次人才证书发证日期不能为空'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "fujian_highcert_exptime", {validators: {notEmpty: {message: '福建省高层次人才证书有效期不能为空'}}});
|
|
|
- break;
|
|
|
- case "2":
|
|
|
- case "4":
|
|
|
- $("#source_batch").parent().css("display", "block");
|
|
|
- $(".quanzhou_highcert").css("display", "block");
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "quanzhou_highcert_pubtime", {validators: {notEmpty: {message: '泉州高层次人才证书发证日期不能为空'}}});
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "quanzhou_highcert_exptime", {validators: {notEmpty: {message: '泉州高层次人才证书有效期不能为空'}}});
|
|
|
- break;
|
|
|
- }
|
|
|
- if (source == 3) {
|
|
|
- //显示入选来源地级市除泉
|
|
|
- $("#source_city").parent().css("display", "block");
|
|
|
- Feng.addAjaxSelect({
|
|
|
- "id": "source_city",
|
|
|
- "displayCode": "code",
|
|
|
- "displayName": "name",
|
|
|
- "type": "GET",
|
|
|
- "url": "/common/tool/findChildAreaByCode/code/35/no/350500"
|
|
|
- });
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "source_city", {validators: {notEmpty: {message: '入选来源地级市不能为空'}}});
|
|
|
- }
|
|
|
- if (source == 4) {
|
|
|
- //显示入选来源县市区除晋
|
|
|
- $("#source_county").parent().css("display", "block");
|
|
|
- Feng.addAjaxSelect({
|
|
|
- "id": "source_county",
|
|
|
- "displayCode": "code",
|
|
|
- "displayName": "name",
|
|
|
- "type": "GET",
|
|
|
- "url": "/common/tool/findChildAreaByCode/code/3505/no/350582"
|
|
|
- });
|
|
|
- $('#integralInfoForm').bootstrapValidator('addField', "source_county", {validators: {notEmpty: {message: '入选来源县市区不能为空'}}});
|
|
|
- }
|
|
|
- if (source != 5) {
|
|
|
- $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
|
- } else {
|
|
|
- TalentInfoInfoDlg.ajaxGetConditionFile(source);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//校验是否保存基础信息
|
|
|
-TalentInfoInfoDlg.validId = function () {
|
|
|
+IntegralInfoDlg.validId = function () {
|
|
|
var id = $("#id").val();
|
|
|
if (id != null && id != '') {
|
|
|
$("#fileLi").removeAttr("style");
|
|
@@ -828,22 +718,22 @@ TalentInfoInfoDlg.validId = function () {
|
|
|
}
|
|
|
}
|
|
|
//选择附件并显示附件名
|
|
|
-TalentInfoInfoDlg.checkFile = function (content, fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
- if (!TalentInfoInfoDlg.validateIsEdit())
|
|
|
+IntegralInfoDlg.checkFile = function (content, fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
+ if (!IntegralInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
$("#upload_file").unbind("change");
|
|
|
$("#upload_file").change(function () {
|
|
|
if (!Feng.chkFileInvalid(this.files[0], 5, 10))
|
|
|
return;
|
|
|
- TalentInfoInfoDlg.upload(fileTypeId, fileId, tableIndex, trIndex);
|
|
|
+ IntegralInfoDlg.upload(fileTypeId, fileId, tableIndex, trIndex);
|
|
|
});
|
|
|
$('#upload_file').val("");
|
|
|
$('#upload_file').click();
|
|
|
}
|
|
|
//上传附件
|
|
|
-TalentInfoInfoDlg.upload = function (fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
+IntegralInfoDlg.upload = function (fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
var id = $("#id").val();
|
|
|
- if (!TalentInfoInfoDlg.validateIsEdit())
|
|
|
+ if (!IntegralInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
if (fileId != null && fileId != 'null') {
|
|
|
$("#fileId").val(fileId)
|
|
@@ -859,8 +749,8 @@ TalentInfoInfoDlg.upload = function (fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
$("#uploadForm").submit();
|
|
|
}
|
|
|
//删除附件
|
|
|
-TalentInfoInfoDlg.deleteFile = function (id, state) {
|
|
|
- if (!TalentInfoInfoDlg.validateIsEdit())
|
|
|
+IntegralInfoDlg.deleteFile = function (id, state) {
|
|
|
+ if (!IntegralInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
var operation = function () {
|
|
|
var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) {
|
|
@@ -884,8 +774,8 @@ TalentInfoInfoDlg.deleteFile = function (id, state) {
|
|
|
/**
|
|
|
* 提交审核
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.submitToCheck = function () {
|
|
|
- /*if (!TalentInfoInfoDlg.validate()) {
|
|
|
+IntegralInfoDlg.submitToCheck = function () {
|
|
|
+ /*if (!IntegralInfoDlg.validate()) {
|
|
|
return;
|
|
|
}*/
|
|
|
var id = $("#id").val();
|
|
@@ -893,17 +783,17 @@ TalentInfoInfoDlg.submitToCheck = function () {
|
|
|
Feng.info("请先填写基础信息并上传附件");
|
|
|
return;
|
|
|
}*/
|
|
|
- if (!TalentInfoInfoDlg.validateIsEdit())
|
|
|
+ if (!IntegralInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
var operation = function () {
|
|
|
- TalentInfoInfoDlg.clearData();
|
|
|
- TalentInfoInfoDlg.collectData();
|
|
|
- /*if (!TalentInfoInfoDlg.validate()) {
|
|
|
+ IntegralInfoDlg.clearData();
|
|
|
+ IntegralInfoDlg.collectData();
|
|
|
+ /*if (!IntegralInfoDlg.validate()) {
|
|
|
return;
|
|
|
}*/
|
|
|
var id = $('#id').val();
|
|
|
if (id != null && id != '') {
|
|
|
- if (!TalentInfoInfoDlg.validateIsEdit())
|
|
|
+ if (!IntegralInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
}
|
|
|
$("select").each(function () {
|
|
@@ -915,15 +805,13 @@ TalentInfoInfoDlg.submitToCheck = function () {
|
|
|
locked = true;
|
|
|
$("#integralInfoForm").attr("action", "/enterprise/talent/submitToCheck");
|
|
|
$("#integralInfoForm")[0].submit();
|
|
|
-
|
|
|
-
|
|
|
return;
|
|
|
var ajax = new $ax(Feng.ctxPath + "/enterprise/talent/submit", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
// $("#checkState").val(data.obj);
|
|
|
window.parent.TalentInfo.table.refresh();
|
|
|
- TalentInfoInfoDlg.close();
|
|
|
+ IntegralInfoDlg.close();
|
|
|
} else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
@@ -936,14 +824,14 @@ TalentInfoInfoDlg.submitToCheck = function () {
|
|
|
Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
|
|
|
}
|
|
|
//回调
|
|
|
-TalentInfoInfoDlg.submitCallback = function (data) {
|
|
|
+IntegralInfoDlg.submitCallback = function (data) {
|
|
|
locked = false;
|
|
|
- TalentInfoInfoDlg.setNoChangeField();
|
|
|
+ IntegralInfoDlg.setNoChangeField();
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
// $("#checkState").val(data.obj);
|
|
|
window.parent.TalentInfo.table.refresh();
|
|
|
- TalentInfoInfoDlg.close();
|
|
|
+ IntegralInfoDlg.close();
|
|
|
} else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
@@ -952,7 +840,7 @@ TalentInfoInfoDlg.submitCallback = function (data) {
|
|
|
/**
|
|
|
* 校验是否可以修改/提交审核
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.validateIsEdit = function () {
|
|
|
+IntegralInfoDlg.validateIsEdit = function () {
|
|
|
var checkState = $("#checkState").val();
|
|
|
if (checkState != 0 && checkState != 8) {
|
|
|
if (checkState == 16 || checkState == -1 || checkState == -2 || checkState == 7) {
|
|
@@ -981,7 +869,7 @@ TalentInfoInfoDlg.validateIsEdit = function () {
|
|
|
* @param row
|
|
|
* @returns {string}
|
|
|
*/
|
|
|
-TalentInfoInfoDlg.validUploadButton = function (type, fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
+IntegralInfoDlg.validUploadButton = function (type, fileTypeId, fileId, tableIndex, trIndex) {
|
|
|
var files = $("#files").val();
|
|
|
files = files.split(",");
|
|
|
var checkState = $("#checkState").val();
|
|
@@ -989,14 +877,14 @@ TalentInfoInfoDlg.validUploadButton = function (type, fileTypeId, fileId, tableI
|
|
|
//console.log(checkState, realState);
|
|
|
if (Feng.isEmptyStr(checkState) || checkState == 0 || (checkState == 8 && realState == 8) || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(fileTypeId.toString()) != -1)) {
|
|
|
if (type == 1) { //上传
|
|
|
- return "<button type='button' onclick=\"TalentInfoInfoDlg.checkFile(this," + fileTypeId + "," + null + "," + tableIndex + "," + trIndex + ")\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
|
|
|
+ return "<button type='button' onclick=\"IntegralInfoDlg.checkFile(this," + fileTypeId + "," + null + "," + tableIndex + "," + trIndex + ")\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
|
|
|
"<i class=\"fa fa-upload\"></i>上传" +
|
|
|
"</button>";
|
|
|
} else {
|
|
|
- return "<button type=\'button\' onclick=\"TalentInfoInfoDlg.checkFile(this," + fileTypeId + "," + fileId + "," + tableIndex + "," + trIndex + ")\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
|
|
|
+ return "<button type=\'button\' onclick=\"IntegralInfoDlg.checkFile(this," + fileTypeId + "," + fileId + "," + tableIndex + "," + trIndex + ")\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
|
|
|
"<i class=\"fa fa-paste\"></i>修改" +
|
|
|
"</button>" +
|
|
|
- "<button type='button' onclick=\"TalentInfoInfoDlg.deleteFile(" + fileId + ")\" class=\"btn btn-xs btn-danger\">" +
|
|
|
+ "<button type='button' onclick=\"IntegralInfoDlg.deleteFile(" + fileId + ")\" class=\"btn btn-xs btn-danger\">" +
|
|
|
"<i class=\"fa fa-times\"></i>删除" +
|
|
|
"</button>";
|
|
|
}
|
|
@@ -1007,14 +895,14 @@ TalentInfoInfoDlg.validUploadButton = function (type, fileTypeId, fileId, tableI
|
|
|
|
|
|
|
|
|
//回调
|
|
|
-TalentInfoInfoDlg.callBack = function (data) {
|
|
|
+IntegralInfoDlg.callBack = function (data) {
|
|
|
layer.close(data.obj);
|
|
|
Feng.info(data.msg);
|
|
|
if (data.code == 200) {
|
|
|
var tableIndex = $("#tableIndex").val();
|
|
|
var trIndex = $("#trIndex").val();
|
|
|
var sn = data.info.lastIndexOf(".");
|
|
|
- var suffix = data.ext;//data.info.substring(sn + 1, data.info.length);
|
|
|
+ var suffix = data.ext; //data.info.substring(sn + 1, data.info.length);
|
|
|
var imgStr = "";
|
|
|
if (suffix == "pdf" || suffix == "PDF") {
|
|
|
imgStr = "<button type='button' onclick=\"Feng.showPdf('" + data.info + "','" + data.id + "','" + data.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
|
|
@@ -1033,19 +921,19 @@ TalentInfoInfoDlg.callBack = function (data) {
|
|
|
<div style="width: 70%;">' + data.orignName + '</div>\n\
|
|
|
<div style="width: 10%;">' + imgStr + '</div>\n\
|
|
|
<div style="width: 20%;">\n\
|
|
|
-<button type="button" onclick="TalentInfoInfoDlg.checkFile(this,' + data.typeId + ',' + data.id + ',' + tableIndex + ',' + trIndex + ')" style="margin-right: 10px" class="btn btn-xs btn-info"><i class="fa fa-paste"></i>修改</button>\n\
|
|
|
-<button type="button" onclick="TalentInfoInfoDlg.deleteFile(' + data.id + ')" class="btn btn-xs btn-danger"><i class="fa fa-times"></i>删除</button>\n\
|
|
|
+<button type="button" onclick="IntegralInfoDlg.checkFile(this,' + data.typeId + ',' + data.id + ',' + tableIndex + ',' + trIndex + ')" style="margin-right: 10px" class="btn btn-xs btn-info"><i class="fa fa-paste"></i>修改</button>\n\
|
|
|
+<button type="button" onclick="IntegralInfoDlg.deleteFile(' + data.id + ')" class="btn btn-xs btn-danger"><i class="fa fa-times"></i>删除</button>\n\
|
|
|
</div></li></ul>';
|
|
|
$(".fileTable").eq(tableIndex).find("tr[data-index='" + trIndex + "']").next("tr.detail-view").find(".imgs").append(html);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-TalentInfoInfoDlg.downloadFile = function (id, type) {
|
|
|
+IntegralInfoDlg.downloadFile = function (id, type) {
|
|
|
window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type=" + type;
|
|
|
}
|
|
|
|
|
|
//设置不可修改的字段
|
|
|
-TalentInfoInfoDlg.setNoChangeField = function () {
|
|
|
+IntegralInfoDlg.setNoChangeField = function () {
|
|
|
var checkState = $("#checkState").val();
|
|
|
var fields = $("#fields").val();
|
|
|
var realState = $("#realState").val();
|
|
@@ -1097,7 +985,7 @@ function async_padding(card_number, card_type) {
|
|
|
}
|
|
|
}
|
|
|
$(function () {
|
|
|
- //Feng.initValidatorTip("integralInfoForm", TalentInfoInfoDlg.validateFields);
|
|
|
+//Feng.initValidatorTip("integralInfoForm", IntegralInfoDlg.validateFields);
|
|
|
var id = $("#id").val();
|
|
|
var checkState = $("#checkState").val();
|
|
|
//批量加载字典表数据
|
|
@@ -1143,7 +1031,7 @@ $(function () {
|
|
|
})
|
|
|
})
|
|
|
if (id != null && id != '') {
|
|
|
- //select初始化
|
|
|
+//select初始化
|
|
|
$("select").each(function () {
|
|
|
$(this).val($(this).attr("value")).trigger("change");
|
|
|
});
|
|
@@ -1158,11 +1046,11 @@ $(function () {
|
|
|
$("#nationality").val($("#nationality").attr("value"));
|
|
|
$("#industry_field").val($("#industry_field").attr("value"));
|
|
|
$("#province").val($("#province").attr("value"));
|
|
|
- TalentInfoInfoDlg.afterSelectProvince();
|
|
|
+ IntegralInfoDlg.afterSelectProvince();
|
|
|
$("#city").val($("#city").attr("value"));
|
|
|
- TalentInfoInfoDlg.afterSelectCity();
|
|
|
+ IntegralInfoDlg.afterSelectCity();
|
|
|
$("#county").val($("#county").attr("value"));
|
|
|
- TalentInfoInfoDlg.getIdentifyCondition();
|
|
|
+ IntegralInfoDlg.getIdentifyCondition();
|
|
|
$("#politics").val($("#politics").attr("value"));
|
|
|
$("#tax_insurance_month").val($("#tax_insurance_month").attr("value"));
|
|
|
$("#labor_contract_rangetime").val($("#labor_contract_rangetime").attr("value"));
|
|
@@ -1174,10 +1062,10 @@ $(function () {
|
|
|
$("#fujian_highcert_pubtime").val($("#fujian_highcert_pubtime").attr("value"));
|
|
|
$("#fujian_highcert_exptime").val($("#fujian_highcert_exptime").attr("value"));
|
|
|
$("#talent_arrange").val($("#talent_arrange").attr("value"));
|
|
|
- TalentInfoInfoDlg.getLayerCatdByLayer();
|
|
|
+ IntegralInfoDlg.getLayerCatdByLayer();
|
|
|
$("#talent_arrange_category").val($("#talent_arrange_category").attr("value"));
|
|
|
- TalentInfoInfoDlg.getIdentifyCondition();
|
|
|
- TalentInfoInfoDlg.validId();
|
|
|
+ IntegralInfoDlg.getIdentifyCondition();
|
|
|
+ IntegralInfoDlg.validId();
|
|
|
$("#photo").change(function (e) {
|
|
|
var tag = e.target;
|
|
|
var file = tag.files[0];
|
|
@@ -1189,7 +1077,7 @@ $(function () {
|
|
|
$("#photoImg").attr("src", imgSrc);
|
|
|
};
|
|
|
});
|
|
|
- TalentInfoInfoDlg.setNoChangeField();
|
|
|
+ IntegralInfoDlg.setNoChangeField();
|
|
|
$("#talent_condition").on('chosen:ready', function (e, params) {
|
|
|
$(".chosen-container-single .chosen-single").css("padding", "4px 0px 0px 4px");
|
|
|
});
|
|
@@ -1217,12 +1105,7 @@ $(function () {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- TalentInfoInfoDlg.initFileTable();
|
|
|
- var is_abroad = $("#study_abroad").val();
|
|
|
- if (is_abroad == "1") {
|
|
|
- TalentInfoInfoDlg.changeStudyAbroad();
|
|
|
- }
|
|
|
- TalentInfoInfoDlg.initBirthday();
|
|
|
+ IntegralInfoDlg.initFileTable();
|
|
|
});
|
|
|
|
|
|
|