|
@@ -33,7 +33,7 @@ TalentAllowanceInfo.openCheckTalentAllowanceInfo = function () {
|
|
|
title: '津补贴初级审核',
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
- content: Feng.ctxPath + '/talentAllowanceInfo/toCheckPage/' + TalentAllowanceInfo.seItem.id + "/" + $("#process").val() + "/" + TalentAllowanceInfo.seItem.companyId,
|
|
|
+ content: Feng.ctxPath + '/admin/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/companyId/" + TalentAllowanceInfo.seItem.companyId,
|
|
|
btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
btn1: function (index, layero) {
|
|
@@ -56,7 +56,7 @@ TalentAllowanceInfo.openCheckTalentAllowanceInfo = function () {
|
|
|
title: '津补贴走访核查',
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
- content: Feng.ctxPath + '/talentAllowanceInfo/toCheckPage/' + TalentAllowanceInfo.seItem.id + "/" + $("#process").val() + "/null",
|
|
|
+ content: Feng.ctxPath + '/admin/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/null",
|
|
|
btn: ['<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
btn1: function (index, layero) {
|
|
@@ -76,7 +76,7 @@ TalentAllowanceInfo.openCheckTalentAllowanceInfo = function () {
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
shadeClose: false,
|
|
|
- content: Feng.ctxPath + '/talentAllowanceInfo/toCheckPage/' + TalentAllowanceInfo.seItem.id + "/" + $("#process").val() + "/null",
|
|
|
+ content: Feng.ctxPath + '/admin/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/null",
|
|
|
btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
btn1: function (index, layero) {
|
|
@@ -105,9 +105,9 @@ TalentAllowanceInfo.openCheckTalentAllowanceInfo = function () {
|
|
|
TalentAllowanceInfo.select = function () {
|
|
|
if (this.check()) {
|
|
|
var process = $("#process").val();
|
|
|
- var url = Feng.ctxPath + '/talentAllowanceInfo/toSelectPage/' + TalentAllowanceInfo.seItem.id + "/" + $("#process").val() + "/null";
|
|
|
+ var url = Feng.ctxPath + '/admin/talentAllowance/toSelectPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/null";
|
|
|
if (process == 1) {
|
|
|
- url = Feng.ctxPath + '/talentAllowanceInfo/toSelectPage/' + TalentAllowanceInfo.seItem.id + "/" + $("#process").val() + "/" + TalentAllowanceInfo.seItem.companyId;
|
|
|
+ url = Feng.ctxPath + '/admin/talentAllowance/toSelectPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/companyId/" + TalentAllowanceInfo.seItem.companyId;
|
|
|
}
|
|
|
var index = layer.open({
|
|
|
type: 2,
|
|
@@ -165,125 +165,125 @@ TalentAllowanceInfo.showDataModal = function (type) {
|
|
|
}
|
|
|
$('#dataTable').bootstrapTable('destroy');
|
|
|
$('#dataTable').bootstrapTable({
|
|
|
- url: Feng.ctxPath + "/talentAllowanceInfo/selectNeedData?type=" + type,
|
|
|
+ url: Feng.ctxPath + "/admin/talentAllowance/selectNeedData?type=" + type,
|
|
|
method: 'POST',
|
|
|
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
- search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
|
|
|
- showRefresh: false, // 是否显示刷新按钮
|
|
|
- clickToSelect: true, // 是否启用点击选中行
|
|
|
- singleSelect: false, // 设置True 将禁止多选
|
|
|
- striped: true, // 是否显示行间隔色
|
|
|
- pagination: true, // 设置为 true 会在表格底部显示分页条
|
|
|
+ search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
|
|
|
+ showRefresh: false, // 是否显示刷新按钮
|
|
|
+ clickToSelect: true, // 是否启用点击选中行
|
|
|
+ singleSelect: false, // 设置True 将禁止多选
|
|
|
+ striped: true, // 是否显示行间隔色
|
|
|
+ pagination: true, // 设置为 true 会在表格底部显示分页条
|
|
|
paginationHAlign: "left",
|
|
|
paginationDetailHAlign: "right",
|
|
|
- sidePagination: "client", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
|
|
|
- pageNumber: 1, //初始化加载第一页,默认第一页
|
|
|
- pageSize: 10, //每页的记录行数(*)
|
|
|
- pageList: [10, 25, 50, 100, 500, 1000, 1500], //可供选择的每页的行数(*)
|
|
|
- maintainSelected: true, //全表全选需要开启
|
|
|
+ sidePagination: "client", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
|
|
|
+ pageNumber: 1, //初始化加载第一页,默认第一页
|
|
|
+ pageSize: 10, //每页的记录行数(*)
|
|
|
+ pageList: [10, 25, 50, 100, 500, 1000, 1500], //可供选择的每页的行数(*)
|
|
|
+ maintainSelected: true, //全表全选需要开启
|
|
|
showColumns: false,
|
|
|
responseHandler: function (res) {
|
|
|
$("#exportCommonModal").modal("show");
|
|
|
return res.obj.rows;
|
|
|
},
|
|
|
columns:
|
|
|
- [
|
|
|
- {field: "selectItem", checkbox: true},
|
|
|
- {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', width: "10%"},
|
|
|
- {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "10%"},
|
|
|
- {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', width: "30%"},
|
|
|
- {
|
|
|
- title: '企业名称',
|
|
|
- field: 'enterpriseName',
|
|
|
- visible: true,
|
|
|
- align: 'center',
|
|
|
- valign: 'middle',
|
|
|
- width: "35%"
|
|
|
- },
|
|
|
- {
|
|
|
- title: '审核状态',
|
|
|
- field: 'checkState',
|
|
|
- visible: true,
|
|
|
- align: 'center',
|
|
|
- valign: 'middle',
|
|
|
- 'class': 'uitd_showTip',
|
|
|
- width: "15%",
|
|
|
- formatter(value, row, index) {
|
|
|
- switch (type) {
|
|
|
- case 1: //批量提交审核(社保局)
|
|
|
- case 2: //导出社保录入模板
|
|
|
- case 3: //导出社保核查结果
|
|
|
- if (value == -2) {
|
|
|
- return "<span class='label'>待提交</span>";
|
|
|
- } else if (value == -1) {
|
|
|
- return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
- } else if (value == 1) {
|
|
|
- return "<span class='label label-success'>待审核</span>";
|
|
|
- } else if (value == 2) {
|
|
|
- return "<span class='label label-danger'>已驳回</span>";
|
|
|
- } else if (value == 3) {
|
|
|
- return "<span class='label label-primary'>已通过</span>"
|
|
|
- } else if (value == 4) {
|
|
|
- return "<span class='label label-success'>上级驳回</span>";
|
|
|
- } else if (value == 9) {
|
|
|
- return "<span class='label label-success'>重新提交</span>";
|
|
|
- }
|
|
|
- break;
|
|
|
- case 4: //导出项目核查结果(初审)
|
|
|
- if (value == -1) {
|
|
|
- return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
- } else if (value == 1) {
|
|
|
- return "<span class='label'>待提交</span>"
|
|
|
- } else if (value == 5) {
|
|
|
- return (Feng.isNotEmptyStr(row.highProcess) && row.highProcess > 1) ? "<span class='label label-success'>重新提交</span>" : "<span class='label label-success'>待审核</span>";
|
|
|
- } else if (value == 13) {
|
|
|
- return "<span class='label label-success'>上级驳回</span>";
|
|
|
- } else if (value == 10) {
|
|
|
- return "<span class='label label-danger'>已驳回</span>";
|
|
|
- } else if (value == 15 || value == 20 || value == 25 || value == 30) {
|
|
|
- return "<span class='label label-primary'>已通过</span>";
|
|
|
- }
|
|
|
- break;
|
|
|
- case 5: //批量提交审核(走访核查)
|
|
|
- case 6: //导出项目录入模板(走访核查)
|
|
|
- case 7: //导出项目核查结果(走访核查)
|
|
|
- if (value == -1) {
|
|
|
- return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
- } else if (value == 1 || value == 5 || value == 10) {
|
|
|
- return "<span class='label label-danger'>已驳回</span>";
|
|
|
- } else if (value == 15) {
|
|
|
- return (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 2) ? "<span class='label label-success'>重新提交</span>" : "<span class='label label-success'>待审核</span>";
|
|
|
- } else if (value == 20 || value == 30) {
|
|
|
- return "<span class='label label-primary'>已通过</span>"
|
|
|
- } else if (value == 25) {
|
|
|
- return "<span class='label label-success'>上级驳回</span>";
|
|
|
- }
|
|
|
- break;
|
|
|
- case 8: //导出项目核查结果(复核)
|
|
|
- if (value == -1) {
|
|
|
- return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
- } else if (value == 1 || value == 5 || value == 10 || value == 13 || value == 15 || value == 25) {
|
|
|
- return "<span class='label label-danger'>已驳回</span>";
|
|
|
- } else if (value == 20) {
|
|
|
- return (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 3) ? "<span class='label label-success'>重新提交</span>" : "<span class='label label-success'>待审核</span>";
|
|
|
- } else if (value == 30) {
|
|
|
- return "<span class='label label-primary'>已通过</span>"
|
|
|
- } else if (value == 35) {
|
|
|
- return "<span class='label label-success'>公示驳回</span>";
|
|
|
- }
|
|
|
- break;
|
|
|
- case 9: //导出项目核查结果(预备库)
|
|
|
- if (value == -1) {
|
|
|
- return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
- }
|
|
|
- if (value == 30) {
|
|
|
- return "<span class='label label-primary'>已通过</span>"
|
|
|
- }
|
|
|
- break;
|
|
|
+ [
|
|
|
+ {field: "selectItem", checkbox: true},
|
|
|
+ {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', width: "10%"},
|
|
|
+ {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "10%"},
|
|
|
+ {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', width: "30%"},
|
|
|
+ {
|
|
|
+ title: '企业名称',
|
|
|
+ field: 'enterpriseName',
|
|
|
+ visible: true,
|
|
|
+ align: 'center',
|
|
|
+ valign: 'middle',
|
|
|
+ width: "35%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核状态',
|
|
|
+ field: 'checkState',
|
|
|
+ visible: true,
|
|
|
+ align: 'center',
|
|
|
+ valign: 'middle',
|
|
|
+ 'class': 'uitd_showTip',
|
|
|
+ width: "15%",
|
|
|
+ formatter(value, row, index) {
|
|
|
+ switch (type) {
|
|
|
+ case 1: //批量提交审核(社保局)
|
|
|
+ case 2: //导出社保录入模板
|
|
|
+ case 3: //导出社保核查结果
|
|
|
+ if (value == -2) {
|
|
|
+ return "<span class='label'>待提交</span>";
|
|
|
+ } else if (value == -1) {
|
|
|
+ return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
+ } else if (value == 1) {
|
|
|
+ return "<span class='label label-success'>待审核</span>";
|
|
|
+ } else if (value == 2) {
|
|
|
+ return "<span class='label label-danger'>已驳回</span>";
|
|
|
+ } else if (value == 3) {
|
|
|
+ return "<span class='label label-primary'>已通过</span>"
|
|
|
+ } else if (value == 4) {
|
|
|
+ return "<span class='label label-success'>上级驳回</span>";
|
|
|
+ } else if (value == 9) {
|
|
|
+ return "<span class='label label-success'>重新提交</span>";
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 4: //导出项目核查结果(初审)
|
|
|
+ if (value == -1) {
|
|
|
+ return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
+ } else if (value == 1) {
|
|
|
+ return "<span class='label'>待提交</span>"
|
|
|
+ } else if (value == 5) {
|
|
|
+ return (Feng.isNotEmptyStr(row.highProcess) && row.highProcess > 1) ? "<span class='label label-success'>重新提交</span>" : "<span class='label label-success'>待审核</span>";
|
|
|
+ } else if (value == 13) {
|
|
|
+ return "<span class='label label-success'>上级驳回</span>";
|
|
|
+ } else if (value == 10) {
|
|
|
+ return "<span class='label label-danger'>已驳回</span>";
|
|
|
+ } else if (value == 15 || value == 20 || value == 25 || value == 30) {
|
|
|
+ return "<span class='label label-primary'>已通过</span>";
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 5: //批量提交审核(走访核查)
|
|
|
+ case 6: //导出项目录入模板(走访核查)
|
|
|
+ case 7: //导出项目核查结果(走访核查)
|
|
|
+ if (value == -1) {
|
|
|
+ return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
+ } else if (value == 1 || value == 5 || value == 10) {
|
|
|
+ return "<span class='label label-danger'>已驳回</span>";
|
|
|
+ } else if (value == 15) {
|
|
|
+ return (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 2) ? "<span class='label label-success'>重新提交</span>" : "<span class='label label-success'>待审核</span>";
|
|
|
+ } else if (value == 20 || value == 30) {
|
|
|
+ return "<span class='label label-primary'>已通过</span>"
|
|
|
+ } else if (value == 25) {
|
|
|
+ return "<span class='label label-success'>上级驳回</span>";
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 8: //导出项目核查结果(复核)
|
|
|
+ if (value == -1) {
|
|
|
+ return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
+ } else if (value == 1 || value == 5 || value == 10 || value == 13 || value == 15 || value == 25) {
|
|
|
+ return "<span class='label label-danger'>已驳回</span>";
|
|
|
+ } else if (value == 20) {
|
|
|
+ return (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 3) ? "<span class='label label-success'>重新提交</span>" : "<span class='label label-success'>待审核</span>";
|
|
|
+ } else if (value == 30) {
|
|
|
+ return "<span class='label label-primary'>已通过</span>"
|
|
|
+ } else if (value == 35) {
|
|
|
+ return "<span class='label label-success'>公示驳回</span>";
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 9: //导出项目核查结果(预备库)
|
|
|
+ if (value == -1) {
|
|
|
+ return "<span class='label label-warning-light'>审核不通过</span>";
|
|
|
+ }
|
|
|
+ if (value == 30) {
|
|
|
+ return "<span class='label label-primary'>已通过</span>"
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- ]
|
|
|
+ },
|
|
|
+ ]
|
|
|
|
|
|
});
|
|
|
}
|
|
@@ -295,7 +295,7 @@ TalentAllowanceInfo.commonSearch = function () {
|
|
|
var name = $("#commonName").val();
|
|
|
var idCard = $("#commonIdCard").val();
|
|
|
var year = $("#commonYear").val();
|
|
|
- $('#dataTable').bootstrapTable("refresh", {"query": {"name": name, "idCard": idCard,"year":year}});
|
|
|
+ $('#dataTable').bootstrapTable("refresh", {"query": {"name": name, "idCard": idCard, "year": year}});
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -321,7 +321,7 @@ TalentAllowanceInfo.submitBatch = function () {
|
|
|
ids = ids + selected[i].id + ",";
|
|
|
}
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/submitCheckBatch", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/submitCheckBatch", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentAllowanceInfo.table.refresh();
|
|
@@ -356,7 +356,7 @@ TalentAllowanceInfo.submitBatchVisit = function () {
|
|
|
icon: 16
|
|
|
, shade: 0.3
|
|
|
});
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/submitBatchVisit", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/submitBatchVisit", function (data) {
|
|
|
layer.close(i);
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
@@ -377,7 +377,7 @@ TalentAllowanceInfo.submitBatchVisit = function () {
|
|
|
|
|
|
TalentAllowanceInfo.updateFieldsAndFiles = function () {
|
|
|
if (this.check()) {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/findFieldsAndFiles?id=" + TalentAllowanceInfo.seItem.id, function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/findFieldsAndFiles?id=" + TalentAllowanceInfo.seItem.id, function (data) {
|
|
|
var obj = data.obj.obj;
|
|
|
if (data.code == 200) {
|
|
|
layer.open({
|
|
@@ -389,26 +389,26 @@ TalentAllowanceInfo.updateFieldsAndFiles = function () {
|
|
|
shade: 0,
|
|
|
maxmin: true,
|
|
|
content: '<form id="checkForm">\n' +
|
|
|
- ' <div class="form-group" id="field" style="margin: 10px">\n' +
|
|
|
- ' <label for="field_concat" class="control-label">可修改合同时间</label>\n' +
|
|
|
- ' <div id="field_concat">\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' <label for="field_project" class="control-label">可修改字段</label>\n' +
|
|
|
- ' <div id="field_field">\n' +
|
|
|
- ' <ul><li style="width: 100%"><input type="checkbox" value="wage"><span>上一年度年薪(元)</span></li></ul>'+
|
|
|
- ' </div>\n'+
|
|
|
- ' <label for="field_project" class="control-label">可修改项目</label>\n' +
|
|
|
- ' <div id="field_project">\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' <label for="field_file" class="control-label">可修改附件</label>\n' +
|
|
|
- ' <div id="field_file">\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' <div class="form-group" style="text-align: center">\n' +
|
|
|
- ' <button type="button" class="btn btn-primary" onclick="TalentAllowanceInfoSupple.checkAll(\'field\')">全选</button>\n' +
|
|
|
- ' <button type="button" class="btn btn-success" onclick="TalentAllowanceInfoSupple.unCheckAll(\'field\')">反选</button>\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' </form>',
|
|
|
+ ' <div class="form-group" id="field" style="margin: 10px">\n' +
|
|
|
+ ' <label for="field_concat" class="control-label">可修改合同时间</label>\n' +
|
|
|
+ ' <div id="field_concat">\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <label for="field_project" class="control-label">可修改字段</label>\n' +
|
|
|
+ ' <div id="field_field">\n' +
|
|
|
+ ' <ul><li style="width: 100%"><input type="checkbox" value="wage"><span>上一年度年薪(元)</span></li></ul>' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <label for="field_project" class="control-label">可修改项目</label>\n' +
|
|
|
+ ' <div id="field_project">\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <label for="field_file" class="control-label">可修改附件</label>\n' +
|
|
|
+ ' <div id="field_file">\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <div class="form-group" style="text-align: center">\n' +
|
|
|
+ ' <button type="button" class="btn btn-primary" onclick="TalentAllowanceInfoSupple.checkAll(\'field\')">全选</button>\n' +
|
|
|
+ ' <button type="button" class="btn btn-success" onclick="TalentAllowanceInfoSupple.unCheckAll(\'field\')">反选</button>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </form>',
|
|
|
btn: ['<i class="fa fa-save"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
zIndex: layer.zIndex,
|
|
@@ -465,12 +465,12 @@ TalentAllowanceInfo.updateFieldsAndFiles = function () {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if(Feng.isNotEmptyStr(fields) && fields == "wage"){
|
|
|
+ if (Feng.isNotEmptyStr(fields) && fields == "wage") {
|
|
|
$("#field_field ul input[value='wage']").iCheck("check");
|
|
|
}
|
|
|
},
|
|
|
yes: function (index, layero) {
|
|
|
- var projects = '', files = '', concats = '' ,fields = '';
|
|
|
+ var projects = '', files = '', concats = '', fields = '';
|
|
|
$("#field_project li input").each(function (index) {
|
|
|
if ($(this).is(":checked")) {
|
|
|
projects = projects + $(this).val() + ",";
|
|
@@ -486,17 +486,17 @@ TalentAllowanceInfo.updateFieldsAndFiles = function () {
|
|
|
concats = concats + $(this).val() + ",";
|
|
|
}
|
|
|
});
|
|
|
- $("#field_field li input").each(function(index){
|
|
|
- if($(this).is(":checked")){
|
|
|
+ $("#field_field li input").each(function (index) {
|
|
|
+ if ($(this).is(":checked")) {
|
|
|
fields = fields + $(this).val() + ",";
|
|
|
}
|
|
|
});
|
|
|
- fields = fields.substring(0,fields.length-1);
|
|
|
+ fields = fields.substring(0, fields.length - 1);
|
|
|
if (Feng.isEmptyStr(projects) && Feng.isEmptyStr(files) && Feng.isEmptyStr(concats) && Feng.isEmptyStr(fields)) {
|
|
|
Feng.info("请选择可修改的字段、附件或合同!");
|
|
|
return;
|
|
|
}
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/updateFieldsAndFiles", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/updateFieldsAndFiles", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
layer.close(index);
|
|
|
Feng.success(data.msg);
|
|
@@ -511,7 +511,7 @@ TalentAllowanceInfo.updateFieldsAndFiles = function () {
|
|
|
"projects": projects,
|
|
|
"files": files,
|
|
|
"concats": concats,
|
|
|
- "fields" : fields
|
|
|
+ "fields": fields
|
|
|
})
|
|
|
ajax.start();
|
|
|
}
|
|
@@ -538,11 +538,11 @@ TalentAllowanceInfo.firstCancleCheck = function () {
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
content: '<form >\n' +
|
|
|
- ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
- ' <label for="checkMsg" class="control-label">撤销原因</label>\n' +
|
|
|
- ' <textarea class="form-control" id="cancleMsg" rows="6"></textarea>\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' </form>',
|
|
|
+ ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
+ ' <label for="checkMsg" class="control-label">撤销原因</label>\n' +
|
|
|
+ ' <textarea class="form-control" id="cancleMsg" rows="6"></textarea>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </form>',
|
|
|
btn: ['<i class="fa fa-save layui-bg-green"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
yes: function (index, layero) {
|
|
|
var cancleMsg = $("#cancleMsg").val();
|
|
@@ -551,7 +551,7 @@ TalentAllowanceInfo.firstCancleCheck = function () {
|
|
|
return;
|
|
|
}
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/cancleFirstCheck", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/cancleFirstCheck", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentAllowanceInfo.table.refresh();
|
|
@@ -589,11 +589,11 @@ TalentAllowanceInfo.reviewCancleCheck = function () {
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
content: '<form >\n' +
|
|
|
- ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
- ' <label for="checkMsg" class="control-label">撤销原因</label>\n' +
|
|
|
- ' <textarea class="form-control" id="cancleMsg" rows="6"></textarea>\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' </form>',
|
|
|
+ ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
+ ' <label for="checkMsg" class="control-label">撤销原因</label>\n' +
|
|
|
+ ' <textarea class="form-control" id="cancleMsg" rows="6"></textarea>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </form>',
|
|
|
btn: ['<i class="fa fa-save layui-bg-green"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
yes: function (index, layero) {
|
|
|
var cancleMsg = $("#cancleMsg").val();
|
|
@@ -602,7 +602,7 @@ TalentAllowanceInfo.reviewCancleCheck = function () {
|
|
|
return;
|
|
|
}
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/reviewCancleCheck", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/reviewCancleCheck", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentAllowanceInfo.table.refresh();
|
|
@@ -624,9 +624,9 @@ TalentAllowanceInfo.reviewCancleCheck = function () {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-TalentAllowanceInfo.repair = function (){
|
|
|
+TalentAllowanceInfo.repair = function () {
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/repairTalentType", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/repairTalentType", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
TalentAllowanceInfo.table.refresh();
|
|
@@ -685,31 +685,31 @@ TalentAllowanceInfo.export = function (type) {
|
|
|
switch (type) {
|
|
|
case 1: //导出社保录入模板
|
|
|
var operation = function () {
|
|
|
- window.hiddenIframe.location.href = Feng.ctxPath + "/talentAllowanceInfoExportProject/exportProject?type=1&projectType=1&ids=" + ids + "&process=" + $("#process").val();
|
|
|
+ window.hiddenIframe.location.href = Feng.ctxPath + "/admin/talentAllowance/exportProject?type=1&projectType=1&ids=" + ids + "&process=" + $("#process").val();
|
|
|
}
|
|
|
Feng.confirm("请确认所选数据为未录入社保的数据,确认导出吗?", operation);
|
|
|
break;
|
|
|
case 2: //导出项目录入模板(走访核查)
|
|
|
var operation = function () {
|
|
|
- window.hiddenIframe.location.href = Feng.ctxPath + "/talentAllowanceInfoExportProject/exportProject?type=1&projectType=2&ids=" + ids + "&process=" + $("#process").val();
|
|
|
+ window.hiddenIframe.location.href = Feng.ctxPath + "/admin/talentAllowance/exportProject?type=1&projectType=2&ids=" + ids + "&process=" + $("#process").val();
|
|
|
}
|
|
|
Feng.confirm("请确认所选数据为未录入走访核查项目的数据,确认导出吗?", operation);
|
|
|
break;
|
|
|
case 3: //导出社保核查结果
|
|
|
var operation = function () {
|
|
|
- window.hiddenIframe.location.href = Feng.ctxPath + "/talentAllowanceInfoExportProject/exportProject?type=2&projectType=1&ids=" + ids + "&process=" + $("#process").val();
|
|
|
+ window.hiddenIframe.location.href = Feng.ctxPath + "/admin/talentAllowance/exportProject?type=2&projectType=1&ids=" + ids + "&process=" + $("#process").val();
|
|
|
}
|
|
|
Feng.confirm("确认导出吗?", operation);
|
|
|
break;
|
|
|
case 4: //导出项目核查结果(走访核查)
|
|
|
var operation = function () {
|
|
|
- window.hiddenIframe.location.href = Feng.ctxPath + "/talentAllowanceInfoExportProject/exportProject?type=2&projectType=2&ids=" + ids + "&process=" + $("#process").val();
|
|
|
+ window.hiddenIframe.location.href = Feng.ctxPath + "/admin/talentAllowance/exportProject?type=2&projectType=2&ids=" + ids + "&process=" + $("#process").val();
|
|
|
}
|
|
|
Feng.confirm("确认导出吗?", operation);
|
|
|
break;
|
|
|
case 5: //导出项目核查结果(所有)
|
|
|
var operation = function () {
|
|
|
- window.hiddenIframe.location.href = Feng.ctxPath + "/talentAllowanceInfoExportProject/exportProject?type=2&projectType=3&ids=" + ids + "&process=" + $("#process").val();
|
|
|
+ window.hiddenIframe.location.href = Feng.ctxPath + "/admin/talentAllowance/exportProject?type=2&projectType=3&ids=" + ids + "&process=" + $("#process").val();
|
|
|
}
|
|
|
Feng.confirm("确认导出吗?", operation);
|
|
|
break;
|
|
@@ -820,7 +820,7 @@ TalentAllowanceInfo.getIdentifyCondition = function () {
|
|
|
"displayCode": "id",
|
|
|
"displayName": "name",
|
|
|
"type": "GET",
|
|
|
- "url": Feng.ctxPath + "/api/common/findIdentifyConditionByLevel?talentLevel=" + level + "&type=1"
|
|
|
+ "url": Feng.ctxPath + "/common/api/findIdentifyConditionByLevel?level=" + level
|
|
|
});
|
|
|
$("#identifyCondition").trigger('chosen:updated');
|
|
|
}
|
|
@@ -829,7 +829,7 @@ TalentAllowanceInfo.getIdentifyCondition = function () {
|
|
|
$(function () {
|
|
|
var process = $("#process").val();
|
|
|
var defaultColunms = TalentAllowanceInfoSupple.initColumn(process);
|
|
|
- var table = new BSTable(TalentAllowanceInfo.id, "/talentAllowanceInfo/list/" + process, defaultColunms);
|
|
|
+ var table = new BSTable(TalentAllowanceInfo.id, "/admin/talentAllowance/list/" + process, defaultColunms);
|
|
|
table.setPaginationType("server");
|
|
|
table.setOnDblClickRow(function () {
|
|
|
TalentAllowanceInfo.openCheckTalentAllowanceInfo();
|
|
@@ -845,18 +845,18 @@ $(function () {
|
|
|
TalentAllowanceInfo.table = table.init();
|
|
|
//批量加载字典表数据
|
|
|
var arr = [{
|
|
|
- "name": "address",
|
|
|
- "code": "un_street"
|
|
|
- }, {
|
|
|
- "name": "talentArrange",
|
|
|
- "code": "un_talentLevel"
|
|
|
- }, {
|
|
|
- "name": "nationality",
|
|
|
- "code": "un_nationality"
|
|
|
- }, {
|
|
|
- "name": "talentType",
|
|
|
- "code": "un_jbt_talentType"
|
|
|
- }, {"name": "introductionMode", "code": "un_introduction_mode"}];
|
|
|
+ "name": "address",
|
|
|
+ "code": "un_street"
|
|
|
+ }, {
|
|
|
+ "name": "talentArrange",
|
|
|
+ "code": "un_talentLevel"
|
|
|
+ }, {
|
|
|
+ "name": "nationality",
|
|
|
+ "code": "un_nationality"
|
|
|
+ }, {
|
|
|
+ "name": "talentType",
|
|
|
+ "code": "un_jbt_talentType"
|
|
|
+ }, {"name": "introductionMode", "code": "un_introduction_mode"}];
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
$("#identifyCondition").on('chosen:ready', function (e, params) {
|
|
|
$(".chosen-container-single .chosen-single").css("padding", "4px 0px 0px 4px");
|
|
@@ -880,11 +880,11 @@ $(function () {
|
|
|
$('#uncheckAllPrepare').click(function () {
|
|
|
$("#prepareTable").bootstrapTable('togglePagination').bootstrapTable('uncheckAll').bootstrapTable('togglePagination')
|
|
|
})
|
|
|
- $(".time").each(function(){
|
|
|
+ $(".time").each(function () {
|
|
|
laydate.render({
|
|
|
- elem: "#"+$(this).attr("id")
|
|
|
- ,type: "date"
|
|
|
- ,trigger: 'click'
|
|
|
+ elem: "#" + $(this).attr("id")
|
|
|
+ , type: "date"
|
|
|
+ , trigger: 'click'
|
|
|
});
|
|
|
});
|
|
|
});
|