|
@@ -11,7 +11,7 @@ var TalentTypeChangeInfoDlg = {
|
|
|
newIdentifyConditionName: {
|
|
|
validators: {
|
|
|
notEmpty: {
|
|
|
- message: '新人才认得条件名称不能为空'
|
|
|
+ message: '新人才认定条件名称不能为空'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -99,6 +99,9 @@ TalentTypeChangeInfoDlg.collectData = function () {
|
|
|
if ($("#newFromCity").val() != null && $("#newFromCity").val() != '') {
|
|
|
this.talentTypeChangeInfoData["newFromCityName"] = $("#newFromCity").find("option:selected").text();
|
|
|
}
|
|
|
+ if ($("#newFromCounty").val() != null && $("#newFromCounty").val() != '') {
|
|
|
+ this.talentTypeChangeInfoData["newFromCountyName"] = $("#newFromCounty").find("option:selected").text();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -195,12 +198,14 @@ TalentTypeChangeInfoDlg.talentInfoDetail = function () {
|
|
|
$("#oldFromCity").val(data.sourceCityName);
|
|
|
$("#oldFromCounty").val(data.sourceCountyName);
|
|
|
$("#oldFromCityName").val(data.fromCityName);
|
|
|
+ $("#oldFromCountyName").val(data.fromCityName);
|
|
|
//$("#oldQzBath").val(data.qzBatch);
|
|
|
$("#oldTalentType").val(data.talent_type);
|
|
|
$("#oldTalentArrange").val(data.talent_arrange);
|
|
|
$("#oldTalentArrangeCategory").val(data.talentArrangeCatName);
|
|
|
- $("#oldIdentifyCondition").val(data.talent_condition);
|
|
|
+ $("#oldIdentifyCondition").val(data.talentConditionName);
|
|
|
$("#oldIdentifyConditionName").val(data.identifyConditionName);
|
|
|
+ $("#oldAnnualSalary").val(data.annual_salary);
|
|
|
$("#oldIdentifyGetTime").val(data.identifyGetTime);
|
|
|
$("#oldIdentifyOutTime").val(data.identifyExpireTime);
|
|
|
$("#oldCertificateNO").val(data.certificateNo);
|
|
@@ -209,34 +214,15 @@ TalentTypeChangeInfoDlg.talentInfoDetail = function () {
|
|
|
$("#oldIdentifyMonth").val(data.identifyMonth);
|
|
|
$("#oldIntroductionMode").val(data.import_way);
|
|
|
$("#oldYear").val(data.apply_year);
|
|
|
- if (data.type == 1) {
|
|
|
- var show = [1, 2];
|
|
|
- if (data.isMatchZhiren != 1) {
|
|
|
- show = [3, 4, 5];
|
|
|
- }
|
|
|
- for (var i in show) {
|
|
|
- $("#newSource option[value=" + show[i] + "]").css("display", "block");
|
|
|
+ if (data.enterpriseType == 1) {
|
|
|
+ var hide = [1, 2];
|
|
|
+ if (data.isMatchZhiren == 1) {
|
|
|
+ hide = [3, 4, 5];
|
|
|
}
|
|
|
- toastr.success("符合晋江市现代产业体系人才补充认定标准的无需填写‘新泉州高层次人才证书发证日期’及‘新泉州高层次人才证书的有效期’。");
|
|
|
- if (data.source == 3) {
|
|
|
- $("#oldCertificateStartTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldCertificateOutTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldFromCity").parent().parent().attr("style", "display:none");
|
|
|
- $("#oldQzBath").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldOurCitySource").parent().parent().attr("style", "display:block");
|
|
|
- } else if (data.source == 4) {
|
|
|
- $("#oldCertificateStartTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldCertificateOutTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldFromCity").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldQzBath").parent().parent().attr("style", "display:block");
|
|
|
- $("#oldOurCitySource").parent().parent().attr("style", "display:none");
|
|
|
- } else if (data.source == 5) {
|
|
|
- $("#oldCertificateStartTime").parent().parent().attr("style", "display:none");
|
|
|
- $("#oldCertificateOutTime").parent().parent().attr("style", "display:none");
|
|
|
- $("#oldFromCity").parent().parent().attr("style", "display:none");
|
|
|
- $("#oldQzBath").parent().parent().attr("style", "display:none");
|
|
|
- $("#oldOurCitySource").parent().parent().attr("style", "display:none");
|
|
|
+ for (var i in hide) {
|
|
|
+ $("#newSource option[value=" + hide[i] + "]").css("display", "none");
|
|
|
}
|
|
|
+ //toastr.success("符合晋江市现代产业体系人才补充认定标准的无需填写‘新泉州高层次人才证书发证日期’及‘新泉州高层次人才证书的有效期’。");
|
|
|
}
|
|
|
}, function (data) {
|
|
|
|
|
@@ -282,36 +268,153 @@ TalentTypeChangeInfoDlg.talentArrangeChange = function (now, next, source) {
|
|
|
|
|
|
TalentTypeChangeInfoDlg.sourceChange = function () {
|
|
|
var source = $("#newSource").val();
|
|
|
- if (source == 1) {
|
|
|
- $("#newFromCity").parent().parent().attr("style", "display:none");
|
|
|
- $("#newQzBath").parent().parent().attr("style", "display:block");
|
|
|
- $("#newCertificateStartTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#newCertificateOutTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#newOurCitySource").parent().parent().attr("style", "display:block");
|
|
|
- $("#newFromCity").val("");
|
|
|
- }
|
|
|
- if (source == 2) {
|
|
|
- $("#newCertificateStartTime").parent().parent().attr("style", "display:block");
|
|
|
- $("#newCertificateOutTime").parent().parent().attr("style", "display:block");
|
|
|
+ $("#newFromCity").parent().parent().attr("style", "display:none");
|
|
|
+ $("#newFromCounty").parent().parent().attr("style", "display:none");
|
|
|
+ if (source == 3) {
|
|
|
$("#newFromCity").parent().parent().attr("style", "display:block");
|
|
|
- $("#newQzBath").parent().parent().attr("style", "display:block");
|
|
|
- $("#newOurCitySource").parent().parent().attr("style", "display:none");
|
|
|
- $("#newOurCitySource").val("");
|
|
|
+ $("#newFromCounty").val("");
|
|
|
+ }
|
|
|
+ if (source == 4) {
|
|
|
+ $("#newFromCounty").parent().parent().attr("style", "display:block");
|
|
|
+ $("#newFromCity").val("");
|
|
|
}
|
|
|
- if (source == 3 || source == null || source == '') {
|
|
|
- $("#newCertificateStartTime").parent().parent().attr("style", "display:none");
|
|
|
- $("#newCertificateOutTime").parent().parent().attr("style", "display:none");
|
|
|
- $("#newFromCity").parent().parent().attr("style", "display:none");
|
|
|
- $("#newQzBath").parent().parent().attr("style", "display:none");
|
|
|
- $("#newOurCitySource").parent().parent().attr("style", "display:none");
|
|
|
- $("#newOurCitySource").val("");
|
|
|
- $("#newCertificateStartTime").val('');
|
|
|
- $("#newCertificateOutTime").val('');
|
|
|
+ if (source == 5) {
|
|
|
$("#newFromCity").val("");
|
|
|
- $("#newQzBath").val("");
|
|
|
+ $("#newFromCounty").val("");
|
|
|
+ }
|
|
|
+ $("#newTalentArrange").val("");
|
|
|
+ $("#newTalentArrangeCategory").html("<option value=''>---请选择---</option>");
|
|
|
+ $("#newIdentifyCondition").html("<option value=''>---请选择---</option>");
|
|
|
+ $("#newIdentifyCondition").trigger('chosen:updated');
|
|
|
+ TalentTypeChangeInfoDlg.isSalary = false;
|
|
|
+ $("#newAnnualSalary").parent().parent().css("display", "none");
|
|
|
+ //$("#newTalentArrange").val("").trigger("change");
|
|
|
+}
|
|
|
+
|
|
|
+TalentTypeChangeInfoDlg.isSalary = false;
|
|
|
+TalentTypeChangeInfoDlg.getLayerCatdByLayer = function () {
|
|
|
+ var type = $("#type").val();
|
|
|
+ var source = $("#newSource").val();
|
|
|
+ if (type == 1) {
|
|
|
+ if (source == "" || typeof source == "undefined") {
|
|
|
+ $("#newTalentArrange").val("");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $("#newIdentifyCondition").html("<option value=''>---请选择---</option>");
|
|
|
+ var level = $("#newTalentArrange").val();
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "newTalentArrangeCategory",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/api/getLayerCatsByLayer/level/" + level
|
|
|
+ });
|
|
|
+ var layerFilter = function () {
|
|
|
+ let allowedCats = [];
|
|
|
+ switch (source) {
|
|
|
+ case "1":
|
|
|
+ case "3":
|
|
|
+ allowedCats = ["A+", "A", "B", "C"];
|
|
|
+ break;
|
|
|
+ case "2":
|
|
|
+ case "4":
|
|
|
+ allowedCats = ["A1", "B1", "C1", "D1", "E1"];
|
|
|
+ break;
|
|
|
+ case "5":
|
|
|
+ allowedCats = ["A+", "A1", "A2", "B", "B1", "B2", "C", "C1", "C2", "D", "D1", "D2", "E", "E1", "E2", "F", "G"];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ for (var i = 0; i < $("#newTalentArrangeCategory option").length; i++) {
|
|
|
+ if (allowedCats.indexOf($("#newTalentArrangeCategory option").eq(i).val()) == -1) {
|
|
|
+ $("#newTalentArrangeCategory option").eq(i).css("display", "none");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }();
|
|
|
+ } else if (type == 5 || type == 6) {
|
|
|
+ $("#newIdentifyCondition").html("<option value=''>---请选择---</option>");
|
|
|
+ var level = $("#newTalentArrange").val();
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "newTalentArrangeCategory",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/api/getLayerCatsByLayer/level/" + level
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ var level = $("#newTalentArrange").val();
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "newIdentifyCondition",
|
|
|
+ "displayCode": "id",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/api/findIdentifyConditionByLevel/level/" + level
|
|
|
+ });
|
|
|
+ }
|
|
|
+ $("#newIdentifyCondition").trigger("chosen:updated");
|
|
|
+
|
|
|
+ TalentTypeChangeInfoDlg.displaySalary();
|
|
|
+}
|
|
|
+TalentTypeChangeInfoDlg.displaySalary = function () {
|
|
|
+ if (!TalentTypeChangeInfoDlg.isSalary || $("#newIdentifyCondition").val() == "" || $("#newIdentifyCondition").val() == "---请选择---") {
|
|
|
+ $("#newAnnualSalary").parent().parent().css("display", "none");
|
|
|
+ } else {
|
|
|
+ $("#newAnnualSalary").parent().parent().css("display", "block");
|
|
|
+ }
|
|
|
+}
|
|
|
+/**
|
|
|
+ * 获取人才认定
|
|
|
+ */
|
|
|
+TalentTypeChangeInfoDlg.getIdentifyCondition = function () {
|
|
|
+ var level = $("#newTalentArrange").val();
|
|
|
+ var cat = $("#newTalentArrangeCategory").val();
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "newIdentifyCondition",
|
|
|
+ "displayCode": "id",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/api/findIdentifyConditionByLevel/level/" + level + "/cat/" + cat
|
|
|
+ });
|
|
|
+ $("#newIdentifyCondition").trigger('chosen:updated');
|
|
|
+
|
|
|
+ TalentTypeChangeInfoDlg.displaySalary();
|
|
|
+}
|
|
|
+
|
|
|
+TalentTypeChangeInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
|
+ var type = $("#type").val();
|
|
|
+ var source = $("#newSource").val();
|
|
|
+ if (type == 1 && (source == "" || typeof source == "undefined")) {
|
|
|
+ //layer.alert("请先选择申报来源");
|
|
|
+ $("#newIdentifyCondition").val("");
|
|
|
+ $("#newIdentifyCondition").trigger('chosen:updated');
|
|
|
+ return;
|
|
|
}
|
|
|
- $("#newTalentArrange").val("").trigger("change");
|
|
|
+ TalentTypeChangeInfoDlg.ajaxGetConditionFile(source);
|
|
|
+
|
|
|
+ TalentTypeChangeInfoDlg.displaySalary();
|
|
|
}
|
|
|
+TalentTypeChangeInfoDlg.ajaxGetConditionFile = function (source) {
|
|
|
+ var condition = $("#newIdentifyCondition option:selected").val();
|
|
|
+ if (condition != "") {
|
|
|
+ var ajax = new $ax("/common/api/getTalentCondtionUploadFile", function (data) {
|
|
|
+ if (data == null || data.length == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (typeof data.info != "undefined" && data.info.isSalary == 1) {
|
|
|
+ TalentTypeChangeInfoDlg.isSalary = true;
|
|
|
+ $("#newAnnualSalary").parent().parent().css("display", "block");
|
|
|
+ } else {
|
|
|
+ TalentTypeChangeInfoDlg.isSalary = false;
|
|
|
+ }
|
|
|
+ }, function (data) {
|
|
|
+ Feng.error("查询失败!" + data.responseJSON.message + "!");
|
|
|
+ });
|
|
|
+ var queryData = {};
|
|
|
+ queryData["talent_condition"] = condition;
|
|
|
+ ajax.set(queryData);
|
|
|
+ ajax.start();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
|
|
|
//初始化附件类别表单
|
|
@@ -454,7 +557,7 @@ TalentTypeChangeInfoDlg.deleteFile = function (id, state) {
|
|
|
return;
|
|
|
}
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax("/api/talentInfo/deleteFile", function (data) {
|
|
|
+ var ajax = new $ax("/common/api/deleteFile", function (data) {
|
|
|
if (data.code = 200) {
|
|
|
Feng.success(data.msg);
|
|
|
$("#fileTable").bootstrapTable("refresh", {});
|
|
@@ -483,7 +586,7 @@ TalentTypeChangeInfoDlg.submitToCheck = function () {
|
|
|
if (!TalentTypeChangeInfoDlg.validateIsEdit())
|
|
|
return;
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax("/talent/talentTypeChange/submitToCheck", function (data) {
|
|
|
+ var ajax = new $ax("/enterprise/talentTypeChange/submitToCheck", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
window.parent.TalentTypeChange.table.refresh();
|
|
@@ -568,7 +671,7 @@ TalentTypeChangeInfoDlg.callBack = function (data) {
|
|
|
}
|
|
|
}
|
|
|
TalentTypeChangeInfoDlg.downloadFile = function (id, type) {
|
|
|
- window.location.href = "/api/common/downloadFile?id=" + id + "&type=" + type;
|
|
|
+ window.location.href = "/common/api/downloadFile?id=" + id + "&type=" + type;
|
|
|
}
|
|
|
|
|
|
//设置不可修改的字段
|
|
@@ -632,13 +735,21 @@ $(function () {
|
|
|
{"name": "newSource", "code": "source"}];
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
var id = $("#id").val();
|
|
|
- //加载福建省泉州的县
|
|
|
+ //加载福建省泉州的地级市
|
|
|
Feng.addAjaxSelect({
|
|
|
"id": "oldFromCity",
|
|
|
"displayCode": "code",
|
|
|
"displayName": "name",
|
|
|
"type": "GET",
|
|
|
- "url": "/common/tool/findCountyByCitySelect/code/350500"
|
|
|
+ "url": "/common/tool/findChildAreaByCode/code/35/no/350500"
|
|
|
+ });
|
|
|
+ //加载福建省泉州的县市区
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "oldFromCounty",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": "/common/tool/findChildAreaByCode/code/3505/no/350582"
|
|
|
});
|
|
|
//加载福建省泉州的县
|
|
|
Feng.addAjaxSelect({
|
|
@@ -646,14 +757,22 @@ $(function () {
|
|
|
"displayCode": "code",
|
|
|
"displayName": "name",
|
|
|
"type": "GET",
|
|
|
- "url": "/common/tool/findCountyByCitySelect/code/350500"
|
|
|
+ "url": "/common/tool/findChildAreaByCode/code/35/no/350500"
|
|
|
});
|
|
|
- var batchHtml = "<option value=''>请选择</option>";
|
|
|
- for (var i = 1; i < 101; i++) {
|
|
|
- batchHtml = batchHtml + "<option value='" + i + "'>" + i + "</option>";
|
|
|
- }
|
|
|
- $("#oldQzBath").append(batchHtml);
|
|
|
- $("#newQzBath").append(batchHtml);
|
|
|
+ //加载福建省泉州的县
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "newFromCounty",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": "/common/tool/findChildAreaByCode/code/3505/no/350582"
|
|
|
+ });
|
|
|
+ /*var batchHtml = "<option value=''>请选择</option>";
|
|
|
+ for (var i = 1; i < 101; i++) {
|
|
|
+ batchHtml = batchHtml + "<option value='" + i + "'>" + i + "</option>";
|
|
|
+ }
|
|
|
+ $("#oldQzBath").append(batchHtml);
|
|
|
+ $("#newQzBath").append(batchHtml);*/
|
|
|
var url = (id == null || id == '') ? "/enterprise/talent/findTalentInfoInLibrary/type/" + CONFIG.project_levelchange : "/api/talentInfo/findTalentInfoByChangeId/type/" + CONFIG.project_levelchange + "/id/" + id;
|
|
|
Feng.addAjaxSelect({
|
|
|
"id": 'talentId',
|