|
@@ -2,8 +2,8 @@
|
|
|
* 人才认定申报管理初始化
|
|
|
*/
|
|
|
var TalentInfo = {
|
|
|
- id: "TalentInfoTable", //表格id
|
|
|
- seItem: null, //选中的条目
|
|
|
+ id: "TalentInfoTable", //表格id
|
|
|
+ seItem: null, //选中的条目
|
|
|
table: null,
|
|
|
layerIndex: -1
|
|
|
};
|
|
@@ -14,59 +14,60 @@ var TalentInfo = {
|
|
|
TalentInfo.initColumn = function () {
|
|
|
var type = $("#usertype").val();
|
|
|
var isShow = true;
|
|
|
- if(type==2){
|
|
|
+ if (type == 2) {
|
|
|
isShow = false;
|
|
|
- };
|
|
|
+ }
|
|
|
+ ;
|
|
|
return [
|
|
|
{field: 'selectItem', radio: true},
|
|
|
- {title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle',width:'80px'},
|
|
|
- {title: '离职状态', field: 'active', visible: true, align: 'center', valign: 'middle',width:'80px',
|
|
|
- formatter : function (value,row,index) {
|
|
|
- if(value==1){
|
|
|
+ {title: '申报年度', field: 'apply_year', visible: true, align: 'center', valign: 'middle', width: '80px'},
|
|
|
+ {title: '离职状态', field: 'active', visible: true, align: 'center', valign: 'middle', width: '80px',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (value == 1) {
|
|
|
return '<span style="color:#6495ED">在职</span>';
|
|
|
- }if(value==2){
|
|
|
+ }
|
|
|
+ if (value == 2) {
|
|
|
return '<span style="color:#FF82AB">离职</span>';
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle',width:'150px'},
|
|
|
- {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:'120px',
|
|
|
- formatter : function(value,row,index){
|
|
|
- if(row.sex==1){
|
|
|
- return value+'<span style="color:#6495ED">【男】</span>';
|
|
|
- }if(row.sex==2){
|
|
|
- return value+'<span style="color:#FF82AB">【女】</span>';
|
|
|
+ {title: '企业名称', field: 'enterprise_name', visible: true, align: 'center', valign: 'middle', width: '150px'},
|
|
|
+ {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: '120px',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (row.sex == 1) {
|
|
|
+ return value + '<span style="color:#6495ED">【男】</span>';
|
|
|
+ }
|
|
|
+ if (row.sex == 2) {
|
|
|
+ return value + '<span style="color:#FF82AB">【女】</span>';
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle',width:'100px'},
|
|
|
- {title: '人才标签', field: 'talentTypeName', visible: isShow, align: 'center', valign: 'middle',width:'100px'},
|
|
|
- {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle',width:'150px','class': 'uitd_showTip'},
|
|
|
- {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'150px'},
|
|
|
- {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'100px'},
|
|
|
- {title: '人才证书有效期', field: 'identifyGetTime', visible: isShow, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'150px',
|
|
|
- formatter:function (value,row,index) {
|
|
|
- return row.certificateStartTime + "至" + row.qzgccrcActiveTime ;
|
|
|
+ {title: '证件号码', field: 'card_number', visible: true, align: 'center', valign: 'middle', width: '150px', 'class': 'uitd_showTip'},
|
|
|
+ {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', width: '100px'},
|
|
|
+ {title: '认定条件', field: 'talentConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: '150px'},
|
|
|
+ {title: '人才证书有效期', field: 'identifyGetTime', visible: isShow, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: '150px',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return row.certificateGetTime + "至" + row.certificateExpireTime;
|
|
|
}
|
|
|
},
|
|
|
- {title: '公布入选月份',field: 'identifyMonth',visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'100px'},
|
|
|
- {title: '人才编号', field: 'certificateNO', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'100px'},
|
|
|
- {title: '是否过期', field: 'isEffect', visible: isShow, align: 'center', valign: 'middle',width:'120px',
|
|
|
- formatter : function (value,row,index){
|
|
|
- if(value==1){
|
|
|
+ {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: '100px'},
|
|
|
+ {title: '人才编号', field: 'certificateNo', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: '100px'},
|
|
|
+ {title: '是否过期', field: 'isEffect', visible: isShow, align: 'center', valign: 'middle', width: '120px',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (value == 1) {
|
|
|
return '有效';
|
|
|
- }else if(value == 4){
|
|
|
+ } else if (value == 4) {
|
|
|
return "失效";
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
return "已过期";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:'80px',
|
|
|
- formatter : function (value,row,index){
|
|
|
- return "<span class='label label-success' onclick=\"TalentInfo.showLog('"+value+"')\" >" +
|
|
|
- "<i class=\"fa fa-book\"></i>日志" +
|
|
|
- "</span>";
|
|
|
+ {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: '80px',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return "<span class='label label-success' onclick=\"TalentInfo.showLog('" + value + "')\" >" +
|
|
|
+ "<i class=\"fa fa-book\"></i>日志" +
|
|
|
+ "</span>";
|
|
|
}
|
|
|
}
|
|
|
];
|
|
@@ -76,10 +77,10 @@ TalentInfo.initColumn = function () {
|
|
|
*/
|
|
|
TalentInfo.check = function () {
|
|
|
var selected = $('#' + this.id).bootstrapTable('getSelections');
|
|
|
- if(selected.length == 0){
|
|
|
+ if (selected.length == 0) {
|
|
|
Feng.info("请先选中表格中的某一记录!");
|
|
|
return false;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
TalentInfo.seItem = selected[0];
|
|
|
return true;
|
|
|
}
|
|
@@ -97,7 +98,7 @@ TalentInfo.openTalentInfoDetail = function () {
|
|
|
area: ['800px', '420px'], //宽高
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
- content: Feng.ctxPath + '/talentInfo/talentInfo_toCommonCheck/' + TalentInfo.seItem.id+'/5'
|
|
|
+ content: Feng.ctxPath + '/talentInfo/talentInfo_toCommonCheck/' + TalentInfo.seItem.id + '/5'
|
|
|
});
|
|
|
layer.full(index);
|
|
|
TalentInfo.layerIndex = index;
|
|
@@ -106,24 +107,24 @@ TalentInfo.openTalentInfoDetail = function () {
|
|
|
|
|
|
|
|
|
//取消优秀人才
|
|
|
-TalentInfo.cancle = function(){
|
|
|
- if(this.check()){
|
|
|
- if(TalentInfo.seItem.isEffect == 4){
|
|
|
+TalentInfo.cancle = function () {
|
|
|
+ if (this.check()) {
|
|
|
+ if (TalentInfo.seItem.isEffect == 4) {
|
|
|
Feng.info("无法重复取消");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
- var operation = function(){
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentInfo/removeFromLibrary", function (data) {
|
|
|
- if(data.code==200){
|
|
|
+ var operation = function () {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talent/removeFromLibrary", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentInfo.table.refresh();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
Feng.error("取消优秀人才失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.setData({"id":TalentInfo.seItem.id});
|
|
|
+ ajax.setData({"id": TalentInfo.seItem.id});
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("一旦取消将无法恢复,确认取消吗?", operation);
|
|
@@ -133,24 +134,24 @@ TalentInfo.cancle = function(){
|
|
|
/**
|
|
|
* 恢复优秀人才
|
|
|
*/
|
|
|
-TalentInfo.recovery = function(){
|
|
|
- if(this.check()){
|
|
|
- if(TalentInfo.seItem.isEffect != 4){
|
|
|
+TalentInfo.recovery = function () {
|
|
|
+ if (this.check()) {
|
|
|
+ if (TalentInfo.seItem.isEffect != 4) {
|
|
|
Feng.info("无法恢复有效数据");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
- var operation = function(){
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentInfo/recovery", function (data) {
|
|
|
- if(data.code==200){
|
|
|
+ var operation = function () {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talent/recovery", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentInfo.table.refresh();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
Feng.error("恢复优秀人才失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.setData({"id":TalentInfo.seItem.id});
|
|
|
+ ajax.setData({"id": TalentInfo.seItem.id});
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("确认恢复吗?", operation);
|
|
@@ -158,16 +159,16 @@ TalentInfo.recovery = function(){
|
|
|
}
|
|
|
|
|
|
//公示导出
|
|
|
-TalentInfo.showExportModal = function(){
|
|
|
+TalentInfo.showExportModal = function () {
|
|
|
$("#exportForm")[0].reset();
|
|
|
$("#exportModal").modal("show");
|
|
|
}
|
|
|
//公示导出提交
|
|
|
-TalentInfo.export = function(){
|
|
|
+TalentInfo.export = function () {
|
|
|
var names = '';
|
|
|
var values = '';
|
|
|
- $("#field_info li input").each(function(index){
|
|
|
- if($(this).is(":checked")){
|
|
|
+ $("#field_info li input").each(function (index) {
|
|
|
+ if ($(this).is(":checked")) {
|
|
|
values = values + $(this).val() + ",";
|
|
|
names = names + $(this).next().text() + ",";
|
|
|
}
|
|
@@ -181,63 +182,64 @@ TalentInfo.export = function(){
|
|
|
var talentArrange = $("#talentArrange").val();
|
|
|
var active = $("#active").val();
|
|
|
$("#exportModal").modal('hide');
|
|
|
- var url = Feng.ctxPath + "/talentInfoExport/libraryExport?name="+name+"&names="+names+"&values="+values
|
|
|
- +"&sex="+sex+"&idCard="+idCard+"&nation="+nation+"&nationality="+nationality
|
|
|
- +"&talentType="+talentType+"&talentArrange="+talentArrange+"&active="+active;
|
|
|
+ var url = Feng.ctxPath + "/talentInfoExport/libraryExport?name=" + name + "&names=" + names + "&values=" + values
|
|
|
+ + "&sex=" + sex + "&idCard=" + idCard + "&nation=" + nation + "&nationality=" + nationality
|
|
|
+ + "&talentType=" + talentType + "&talentArrange=" + talentArrange + "&active=" + active;
|
|
|
window.location.href = encodeURI(encodeURI(url));
|
|
|
}
|
|
|
|
|
|
-TalentInfo.editBasicInfo = function(){
|
|
|
- if(this.check()){
|
|
|
+TalentInfo.editBasicInfo = function () {
|
|
|
+ if (this.check()) {
|
|
|
layer.open({
|
|
|
type: 1,
|
|
|
- id:"neewFieldFormModel",
|
|
|
+ id: "neewFieldFormModel",
|
|
|
title: '审核',
|
|
|
area: ['800px', '450px'], //宽高
|
|
|
fix: false, //不固定
|
|
|
- shade:0,
|
|
|
+ shade: 0,
|
|
|
maxmin: true,
|
|
|
- content:'<form id="editBaiscInfo">' +
|
|
|
- ' <div class="form-group" style="margin: 10px;">' +
|
|
|
- ' <label for="checkMsgNotPass" class="control-label" >引进方式</label>' +
|
|
|
- ' <select class="form-control" id="introduceMode"></select>' +
|
|
|
- ' </div>' +
|
|
|
- ' <div class="form-group" style="margin: 10px;">' +
|
|
|
- ' <label for="checkMsgNotPass" class="control-label" >是否同步至津补贴申报</label>' +
|
|
|
- ' <select class="form-control" id="isSync">' +
|
|
|
- ' <option value="2">否</option> '+
|
|
|
- ' <option value="1">是</option> '+
|
|
|
- ' </select>' +
|
|
|
- ' </div>' +
|
|
|
- ' </form>',
|
|
|
- btn: ['<i class="fa fa-save"></i> 提交' ,'<i class="fa fa-eraser"></i> 关闭'],
|
|
|
+ content: '<form id="editBaiscInfo">' +
|
|
|
+ ' <div class="form-group" style="margin: 10px;">' +
|
|
|
+ ' <label for="checkMsgNotPass" class="control-label" >引进方式</label>' +
|
|
|
+ ' <select class="form-control" id="introduceMode"></select>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' <div class="form-group" style="margin: 10px;">' +
|
|
|
+ ' <label for="checkMsgNotPass" class="control-label" >是否同步至津补贴申报</label>' +
|
|
|
+ ' <select class="form-control" id="isSync">' +
|
|
|
+ ' <option value="2">否</option> ' +
|
|
|
+ ' <option value="1">是</option> ' +
|
|
|
+ ' </select>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </form>',
|
|
|
+ btn: ['<i class="fa fa-save"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
zIndex: layer.zIndex,
|
|
|
- success:function(layero, index){
|
|
|
- var arr = [{"name":"introduceMode","code":"un_introduction_mode"}];
|
|
|
+ success: function (layero, index) {
|
|
|
+ var arr = [{"name": "introduceMode", "code": "un_introduction_mode"}];
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
},
|
|
|
yes: function (index, layero) {
|
|
|
var introduceMode = $("#introduceMode").val();
|
|
|
var isSync = $("#isSync").val();
|
|
|
- if(Feng.isEmptyStr(introduceMode)){
|
|
|
- Feng.info("请选择引进方式");return ;
|
|
|
+ if (Feng.isEmptyStr(introduceMode)) {
|
|
|
+ Feng.info("请选择引进方式");
|
|
|
+ return;
|
|
|
}
|
|
|
- var operation = function(){
|
|
|
+ var operation = function () {
|
|
|
var ajax = new $ax(Feng.ctxPath + "/talentInfo/editBasicInfo", function (data) {
|
|
|
- if(data.code==200){
|
|
|
+ if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentInfo.table.refresh();
|
|
|
layer.close(index);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
Feng.error("修改失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.set("id",TalentInfo.seItem.id);
|
|
|
- ajax.set("introductionMode",introduceMode);
|
|
|
- ajax.set("isSync",isSync);
|
|
|
+ ajax.set("id", TalentInfo.seItem.id);
|
|
|
+ ajax.set("introductionMode", introduceMode);
|
|
|
+ ajax.set("isSync", isSync);
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("确认修改吗?", operation);
|
|
@@ -247,14 +249,14 @@ TalentInfo.editBasicInfo = function(){
|
|
|
}
|
|
|
|
|
|
//回调
|
|
|
-TalentInfo.callBack = function (data){
|
|
|
+TalentInfo.callBack = function (data) {
|
|
|
Feng.info(data.msg);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查看首次申报基础信息
|
|
|
*/
|
|
|
-TalentInfo.selectFirstInfo = function(){
|
|
|
+TalentInfo.selectFirstInfo = function () {
|
|
|
if (this.check()) {
|
|
|
var index = layer.open({
|
|
|
type: 2,
|
|
@@ -262,7 +264,7 @@ TalentInfo.selectFirstInfo = function(){
|
|
|
area: ['800px', '420px'], //宽高
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
- content: Feng.ctxPath + '/talentInfo/talentInfo_toCommonCheck/' + TalentInfo.seItem.id+'/6'
|
|
|
+ content: Feng.ctxPath + '/talentInfo/talentInfo_toCommonCheck/' + TalentInfo.seItem.id + '/6'
|
|
|
});
|
|
|
layer.full(index);
|
|
|
TalentInfo.layerIndex = index;
|
|
@@ -273,33 +275,34 @@ TalentInfo.selectFirstInfo = function(){
|
|
|
|
|
|
$(function () {
|
|
|
var defaultColunms = TalentInfo.initColumn();
|
|
|
- var table = new BSTable(TalentInfo.id, "/talentInfo/list/5", defaultColunms);
|
|
|
+ var process = $("#process").val();
|
|
|
+ var table = new BSTable(TalentInfo.id, "/admin/talent/base_verify_list/process/" + process, defaultColunms);
|
|
|
table.setPaginationType("server");
|
|
|
table.setOnDblClickRow(function () {
|
|
|
TalentInfo.openTalentInfoDetail();
|
|
|
});
|
|
|
- table.setRowStyle(function (row,index) {
|
|
|
- if(row.isEffect==1){
|
|
|
+ table.setRowStyle(function (row, index) {
|
|
|
+ if (row.isEffect == 1) {
|
|
|
return {};
|
|
|
}
|
|
|
- if(row.isEffect==2){
|
|
|
- return {classes:'warning'};
|
|
|
+ if (row.isEffect == 2) {
|
|
|
+ return {classes: 'warning'};
|
|
|
}
|
|
|
- if(row.isEffect==3){
|
|
|
- return {classes:'danger'};
|
|
|
+ if (row.isEffect == 3) {
|
|
|
+ return {classes: 'danger'};
|
|
|
}
|
|
|
- if(row.isEffect == 4){
|
|
|
+ if (row.isEffect == 4) {
|
|
|
return {classes: 'info'}
|
|
|
}
|
|
|
});
|
|
|
var t = TalentInfo.table = table.init();
|
|
|
TalentInfo.init();
|
|
|
//批量加载时间控件
|
|
|
- $(".time").each(function(){
|
|
|
+ $(".time").each(function () {
|
|
|
laydate.render({
|
|
|
- elem: "#"+$(this).attr("id")
|
|
|
- ,type: "date"
|
|
|
- ,trigger: 'click'
|
|
|
+ elem: "#" + $(this).attr("id")
|
|
|
+ , type: "date"
|
|
|
+ , trigger: 'click'
|
|
|
});
|
|
|
});
|
|
|
});
|