|
@@ -2,8 +2,8 @@
|
|
|
* 硕博人才生活补贴申报管理初始化
|
|
|
*/
|
|
|
var LivingAllowanceInfo = {
|
|
|
- id: "LivingAllowanceInfoTable", //表格id
|
|
|
- seItem: null, //选中的条目
|
|
|
+ id: "LivingAllowanceInfoTable", //表格id
|
|
|
+ seItem: null, //选中的条目
|
|
|
table: null,
|
|
|
layerIndex: -1
|
|
|
};
|
|
@@ -17,13 +17,13 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
{title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle', width: '80px'},
|
|
|
{title: '申报补贴年次', field: 'applyCount', visible: true, align: 'center', valign: 'middle', width: '100px',
|
|
|
formatter: function (value, row, index) {
|
|
|
- if(value == 1){
|
|
|
+ if (value == 1) {
|
|
|
return "首年";
|
|
|
}
|
|
|
- if(value == 2){
|
|
|
+ if (value == 2) {
|
|
|
return "第二年";
|
|
|
}
|
|
|
- if(value == 3){
|
|
|
+ if (value == 3) {
|
|
|
return "第三年";
|
|
|
}
|
|
|
}
|
|
@@ -31,16 +31,16 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
{title: '申报类型', field: 'declareTypeName', visible: true, align: 'center', valign: 'middle', width: '80px'},
|
|
|
{title: '引进方式', field: 'introductionMethod', visible: true, align: 'center', valign: 'middle', width: '80px',
|
|
|
formatter: function (value, row, index) {
|
|
|
- if(value == 1){
|
|
|
+ if (value == 1) {
|
|
|
return "新引进";
|
|
|
}
|
|
|
- if(value == 2){
|
|
|
+ if (value == 2) {
|
|
|
return "其他";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "100px",'class': 'uitd_showTip',
|
|
|
+ title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip',
|
|
|
formatter: function (value, row, index) {
|
|
|
return row.sex == 1 ? value + '<span style="color:#6495ED">【男】</span>' : value + '<span style="color:#FF82AB">【女】</span>';
|
|
|
}
|
|
@@ -121,17 +121,17 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
valign: 'middle',
|
|
|
'class': 'uitd_showTip',
|
|
|
width: "100px",
|
|
|
- formatter : function (value,row,index) {
|
|
|
- if(value == -1){
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (value == -1) {
|
|
|
return "<span style='color: red'>不予兑现</span>"
|
|
|
}
|
|
|
- if(value == 0){
|
|
|
+ if (value == 0) {
|
|
|
return "<span style='color: #2401fd'>未知</span>"
|
|
|
}
|
|
|
- if(value == 1){
|
|
|
+ if (value == 1) {
|
|
|
return "<span style='color: green'>待兑现</span>"
|
|
|
}
|
|
|
- if(value == 2){
|
|
|
+ if (value == 2) {
|
|
|
return "<span style='color: #6d008b'>已兑现</span>"
|
|
|
}
|
|
|
}
|
|
@@ -179,17 +179,17 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
valign: 'middle',
|
|
|
'class': 'uitd_showTip',
|
|
|
width: "100px",
|
|
|
- formatter : function (value,row,index) {
|
|
|
- if(value == -1){
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (value == -1) {
|
|
|
return "<span style='color: red'>不予兑现</span>"
|
|
|
}
|
|
|
- if(value == 0){
|
|
|
+ if (value == 0) {
|
|
|
return "<span style='color: #2401fd'>未知</span>"
|
|
|
}
|
|
|
- if(value == 1){
|
|
|
+ if (value == 1) {
|
|
|
return "<span style='color: green'>待兑现</span>"
|
|
|
}
|
|
|
- if(value == 2){
|
|
|
+ if (value == 2) {
|
|
|
return "<span style='color: #6d008b'>已兑现</span>"
|
|
|
}
|
|
|
}
|
|
@@ -199,8 +199,8 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
},
|
|
|
{
|
|
|
title: '实际判定描述', field: 'judgmentDetails', visible: $("#process").val() == 4, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
|
|
|
- formatter: function (value,row,index) {
|
|
|
- if(Feng.isNotEmptyStr(value)){
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (Feng.isNotEmptyStr(value)) {
|
|
|
var arr = value.split(";");
|
|
|
return arr.join("</br>")
|
|
|
}
|
|
@@ -209,8 +209,8 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
},
|
|
|
{
|
|
|
title: '实际计算描述', field: 'amountDesc', visible: $("#process").val() == 4, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
|
|
|
- formatter: function (value,row,index) {
|
|
|
- if(Feng.isNotEmptyStr(value)){
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (Feng.isNotEmptyStr(value)) {
|
|
|
var arr = value.split(";");
|
|
|
return arr.join("</br>")
|
|
|
}
|
|
@@ -265,13 +265,13 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
return "<span class='label label-danger'>审核不通过</span>"
|
|
|
} else if (value <= 10 || value == 20) {
|
|
|
return "<span class='label label-danger'>已驳回</span>"
|
|
|
- } else if(value == 15){
|
|
|
- if(row.highProcess != null && row.highProcess != '' && row.highProcess >= 2){
|
|
|
+ } else if (value == 15) {
|
|
|
+ if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 2) {
|
|
|
return "<span class='label label-success'>重新提交</span>"
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return "<span class='label label-success'>待审核</span>"
|
|
|
}
|
|
|
- }else if(value >= 25){
|
|
|
+ } else if (value >= 25) {
|
|
|
return "<span class='label label-primary'>已通过</span>"
|
|
|
}
|
|
|
|
|
@@ -352,8 +352,8 @@ LivingAllowanceInfo.initColumn = function () {
|
|
|
title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: '80px',
|
|
|
formatter: function (value, row, index) {
|
|
|
return "<span class='label label-success' onclick=\"LivingAllowanceInfo.showLog('" + value + "')\" >" +
|
|
|
- "<i class=\"fa fa-book\"></i>日志" +
|
|
|
- "</span>";
|
|
|
+ "<i class=\"fa fa-book\"></i>日志" +
|
|
|
+ "</span>";
|
|
|
}
|
|
|
}
|
|
|
];
|
|
@@ -385,7 +385,7 @@ LivingAllowanceInfo.openCheckLivingAllowanceInfo = function (process) {
|
|
|
area: ['800px', '420px'], //宽高
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
- content: Feng.ctxPath + '/livingAllowanceInfo/livingAllowanceInfo_check?id=' + LivingAllowanceInfo.seItem.id+"&process="+process,
|
|
|
+ content: Feng.ctxPath + '/admin/living_allowance/detail?id=' + LivingAllowanceInfo.seItem.id + "&process=" + process,
|
|
|
btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-save"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
btn1: function (index, layero) {
|
|
@@ -507,49 +507,49 @@ LivingAllowanceInfo.showDataCheckModal = function (type) {
|
|
|
url: Feng.ctxPath + "/livingAllowanceInfo/selectNeedCheckData?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: 'name', visible: true, align: 'center', valign: 'middle', width: "20%"},
|
|
|
- {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', width: "30%"},
|
|
|
- {
|
|
|
- title: '企业名称',
|
|
|
- field: 'enterpriseName',
|
|
|
- visible: true,
|
|
|
- align: 'center',
|
|
|
- valign: 'middle',
|
|
|
- width: "40%"
|
|
|
- },
|
|
|
- {
|
|
|
- title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "10%",
|
|
|
- formatter: function (value, row, index) {
|
|
|
- if (value == -1) {
|
|
|
- return "<span style='color: #ed5565;'>审核不通过</span>";
|
|
|
- }
|
|
|
- if (value == 35) {
|
|
|
- return "<span style='color: #1ab394;'>审核通过</span>";
|
|
|
+ [
|
|
|
+ {field: "selectItem", checkbox: true},
|
|
|
+ {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "20%"},
|
|
|
+ {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', width: "30%"},
|
|
|
+ {
|
|
|
+ title: '企业名称',
|
|
|
+ field: 'enterpriseName',
|
|
|
+ visible: true,
|
|
|
+ align: 'center',
|
|
|
+ valign: 'middle',
|
|
|
+ width: "40%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "10%",
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (value == -1) {
|
|
|
+ return "<span style='color: #ed5565;'>审核不通过</span>";
|
|
|
+ }
|
|
|
+ if (value == 35) {
|
|
|
+ return "<span style='color: #1ab394;'>审核通过</span>";
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- ]
|
|
|
+ },
|
|
|
+ ]
|
|
|
|
|
|
});
|
|
|
}
|
|
@@ -571,7 +571,7 @@ LivingAllowanceInfo.checkExport = function () {
|
|
|
window.location.href = Feng.ctxPath + "/livingAllowanceInfoExport/exportHczx?ids=" + ids;
|
|
|
}
|
|
|
|
|
|
-LivingAllowanceInfo.actalUpload = function (){
|
|
|
+LivingAllowanceInfo.actalUpload = function () {
|
|
|
$("#file,#fileName").val("");
|
|
|
$("#importModal").modal("show");
|
|
|
}
|
|
@@ -580,7 +580,7 @@ LivingAllowanceInfo.actalUpload = function (){
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
-LivingAllowanceInfo.importSubmit = function (){
|
|
|
+LivingAllowanceInfo.importSubmit = function () {
|
|
|
$("#import-form")[0].submit();
|
|
|
// layer.confirm('您需要导入数据并提交吗?', {
|
|
|
// btn: ['仅导入','导入并提交','取消'] //按钮
|
|
@@ -608,61 +608,61 @@ LivingAllowanceInfo.importCallBack = function (data) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-LivingAllowanceInfo.initCheckFileTable = function (){
|
|
|
+LivingAllowanceInfo.initCheckFileTable = function () {
|
|
|
$('#checkFileTable').bootstrapTable('destroy');
|
|
|
$('#checkFileTable').bootstrapTable({
|
|
|
- url: Feng.ctxPath + "/talentCommonFile/listTalentFile",
|
|
|
+ url: Feng.ctxPath + "/common/api/listTalentFile",
|
|
|
method: 'POST',
|
|
|
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
- search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
|
|
|
- showRefresh: false, // 是否显示刷新按钮
|
|
|
- clickToSelect: true, // 是否启用点击选中行
|
|
|
- singleSelect: true, // 设置True 将禁止多选
|
|
|
- striped: true, // 是否显示行间隔色
|
|
|
- pagination: false, // 设置为 true 会在表格底部显示分页条
|
|
|
+ search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
|
|
|
+ showRefresh: false, // 是否显示刷新按钮
|
|
|
+ clickToSelect: true, // 是否启用点击选中行
|
|
|
+ singleSelect: true, // 设置True 将禁止多选
|
|
|
+ striped: true, // 是否显示行间隔色
|
|
|
+ pagination: false, // 设置为 true 会在表格底部显示分页条
|
|
|
paginationHAlign: "left",
|
|
|
paginationDetailHAlign: "right",
|
|
|
- sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
|
|
|
+ sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
|
|
|
showColumns: false,
|
|
|
queryParams: function (params) {
|
|
|
- return {"mainId":$("#batch").val(),"fileTypeId":"master_living_allowance"};
|
|
|
+ return {"mainId": $("#batch").val(), "fileTypeId": "master_living_allowance"};
|
|
|
},
|
|
|
- rowStyle : function(row,index){
|
|
|
+ rowStyle: function (row, index) {
|
|
|
return {css: {"word-break": "break-word", "white-space": "inherit"}}
|
|
|
},
|
|
|
columns:
|
|
|
- [
|
|
|
- {title: '附件原名', field: 'orignName', visible: true, align: 'center', valign: 'middle',width:'120px'},
|
|
|
- {title: '预览', field: 'url', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px",
|
|
|
- formatter:function (value,row ,index){
|
|
|
- var sn = value.lastIndexOf(".");
|
|
|
- var suffix = value.substring(sn+1,value.length);
|
|
|
- var imgStr = "";
|
|
|
- if(suffix=="pdf"||suffix=="PDF"){
|
|
|
- imgStr = "<button type='button' onclick=\"Feng.showPdf('"+value+"','"+row.id+"','"+row.orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
|
|
|
- }else if(suffix == "xlsx" || suffix=="XLSX" || suffix == 'xls' || suffix == 'XLS'){
|
|
|
- imgStr = "<button type='button' onclick=\"Feng.showExcel('"+value+"','"+row.id+"','"+row.orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
|
|
|
- }else{
|
|
|
- imgStr = '<img class=\"imgUrl\" src=\"'+value+'\" style=\"width:25px;height:25px;\">';
|
|
|
- }
|
|
|
- return imgStr;
|
|
|
- }
|
|
|
- },
|
|
|
- {title: '操作', field: 'url', visible: true, align: 'center', valign: 'middle',width:'80px',
|
|
|
- formatter:function (value,row ,index){
|
|
|
- return "<button type='button' onclick=\"downloadFile('"+row.id+"',1)\" class=\"btn btn-xs btn-success\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i>下载</button>"+
|
|
|
- "<button type='button' onclick=\"LivingAllowanceInfo.deleteCheckFile('"+row.id+"','"+CONFIG.project_master_living_allowance+"')\" class=\"btn btn-xs btn-danger\">" +
|
|
|
- "<i class=\"fa fa-times\"></i>删除" +
|
|
|
- "</button>";
|
|
|
- }
|
|
|
- },
|
|
|
- ],
|
|
|
+ [
|
|
|
+ {title: '附件原名', field: 'orignName', visible: true, align: 'center', valign: 'middle', width: '120px'},
|
|
|
+ {title: '预览', field: 'url', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px",
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ var sn = value.lastIndexOf(".");
|
|
|
+ var suffix = value.substring(sn + 1, value.length);
|
|
|
+ var imgStr = "";
|
|
|
+ if (suffix == "pdf" || suffix == "PDF") {
|
|
|
+ imgStr = "<button type='button' onclick=\"Feng.showPdf('" + value + "','" + row.id + "','" + row.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
|
|
|
+ } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
|
|
|
+ imgStr = "<button type='button' onclick=\"Feng.showExcel('" + value + "','" + row.id + "','" + row.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
|
|
|
+ } else {
|
|
|
+ imgStr = '<img class=\"imgUrl\" src=\"' + value + '\" style=\"width:25px;height:25px;\">';
|
|
|
+ }
|
|
|
+ return imgStr;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {title: '操作', field: 'url', visible: true, align: 'center', valign: 'middle', width: '80px',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return "<button type='button' onclick=\"downloadFile('" + row.id + "','" + row.type + "')\" class=\"btn btn-xs btn-success\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i>下载</button>" +
|
|
|
+ "<button type='button' onclick=\"LivingAllowanceInfo.deleteCheckFile('" + row.id + "','" + CONFIG.project_master_living_allowance + "')\" class=\"btn btn-xs btn-danger\">" +
|
|
|
+ "<i class=\"fa fa-times\"></i>删除" +
|
|
|
+ "</button>";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ],
|
|
|
onPostBody: function () {
|
|
|
- $('#checkFileTable'+"td.uitd_showTip").bind("mouseover", function () {
|
|
|
+ $('#checkFileTable' + "td.uitd_showTip").bind("mouseover", function () {
|
|
|
var htm = $(this).html();
|
|
|
$(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
|
|
|
});
|
|
|
- $(".imgUrl").viewer({ fullscreen:false});
|
|
|
+ $(".imgUrl").viewer({fullscreen: false});
|
|
|
},
|
|
|
});
|
|
|
}
|
|
@@ -671,7 +671,7 @@ LivingAllowanceInfo.initCheckFileTable = function (){
|
|
|
/**
|
|
|
* 核查材料留存上传
|
|
|
*/
|
|
|
-LivingAllowanceInfo.showCheckFileModal = function (){
|
|
|
+LivingAllowanceInfo.showCheckFileModal = function () {
|
|
|
Feng.addAjaxSelect({
|
|
|
"id": "batch",
|
|
|
"displayCode": "id",
|
|
@@ -683,18 +683,19 @@ LivingAllowanceInfo.showCheckFileModal = function (){
|
|
|
$("#checkFileModal").modal("show");
|
|
|
}
|
|
|
|
|
|
-LivingAllowanceInfo.checkFileUpload = function (){
|
|
|
+LivingAllowanceInfo.checkFileUpload = function () {
|
|
|
var batch = $("#batch").val();
|
|
|
- if(Feng.isEmptyStr(batch)){
|
|
|
- Feng.info("请选择申报批次后再上传!");return;
|
|
|
+ if (Feng.isEmptyStr(batch)) {
|
|
|
+ Feng.info("请选择申报批次后再上传!");
|
|
|
+ return;
|
|
|
}
|
|
|
$("#upload_file ").unbind("change");
|
|
|
$("#upload_file ").change(function () {
|
|
|
var formData = new FormData();
|
|
|
- formData.append("fileTypeId","master_living_allowance");
|
|
|
- formData.append("mainId",batch);
|
|
|
- formData.append("fileId","");
|
|
|
- for(var i=0; i<$('#upload_file')[0].files.length;i++){
|
|
|
+ formData.append("fileTypeId", "master_living_allowance");
|
|
|
+ formData.append("mainId", batch);
|
|
|
+ formData.append("fileId", "");
|
|
|
+ for (var i = 0; i < $('#upload_file')[0].files.length; i++) {
|
|
|
formData.append('file', $('#upload_file')[0].files[i]);
|
|
|
}
|
|
|
$.ajax({
|
|
@@ -703,10 +704,10 @@ LivingAllowanceInfo.checkFileUpload = function (){
|
|
|
processData: false,
|
|
|
contentType: false,
|
|
|
data: formData,
|
|
|
- success: function(data){
|
|
|
+ success: function (data) {
|
|
|
$("#checkFileTable").bootstrapTable("refresh", {});
|
|
|
Feng.info(data.msg);
|
|
|
- },error: function(data) {
|
|
|
+ }, error: function (data) {
|
|
|
Feng.error("上传失败!" + data.responseJSON.message + "!");
|
|
|
}
|
|
|
});
|
|
@@ -715,20 +716,20 @@ LivingAllowanceInfo.checkFileUpload = function (){
|
|
|
$('#upload_file').click();
|
|
|
}
|
|
|
|
|
|
-LivingAllowanceInfo.deleteCheckFile = function (id,type){
|
|
|
- var operation = function() {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentCommonFile/deleteFile", function (data) {
|
|
|
- if(data.code=200){
|
|
|
+LivingAllowanceInfo.deleteCheckFile = function (id, type) {
|
|
|
+ var operation = function () {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) {
|
|
|
+ if (data.code = 200) {
|
|
|
Feng.success(data.msg);
|
|
|
$("#checkFileTable").bootstrapTable("refresh", {});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
Feng.error("删除失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
ajax.set("id", id);
|
|
|
- ajax.set("type",type);
|
|
|
+ ajax.set("type", type);
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("删除后无法恢复,确认删除吗?", operation);
|
|
@@ -738,17 +739,17 @@ LivingAllowanceInfo.deleteCheckFile = function (id,type){
|
|
|
/**
|
|
|
* 审核不通过
|
|
|
*/
|
|
|
-LivingAllowanceInfo.setNotPass = function(){
|
|
|
+LivingAllowanceInfo.setNotPass = function () {
|
|
|
var selecteds = $('#' + this.id).bootstrapTable('getSelections');
|
|
|
- if(selecteds.length == 0){
|
|
|
+ if (selecteds.length == 0) {
|
|
|
Feng.info("请选择需要设置审核不通过的行");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
var ids = "";
|
|
|
- for(var key in selecteds){
|
|
|
+ for (var key in selecteds) {
|
|
|
ids = ids + selecteds[key].id + ",";
|
|
|
}
|
|
|
- ids = ids.substring(0,ids.length-1);
|
|
|
+ ids = ids.substring(0, ids.length - 1);
|
|
|
layer.open({
|
|
|
type: 1,
|
|
|
id: "notPassModal",
|
|
@@ -758,35 +759,35 @@ LivingAllowanceInfo.setNotPass = function(){
|
|
|
shade: 0,
|
|
|
maxmin: true,
|
|
|
content: '<form id="checkNotPass">\n' +
|
|
|
- ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
- ' <label for="checkMsgNotPass" class="control-label" >审核不通过原因</label>\n' +
|
|
|
- ' <textarea class="form-control" id="checkMsgNotPass" placeholder="此功能适用于未在申报提交截止时间内提交的数据" rows="6"></textarea>\n' +
|
|
|
- ' </div>\n' +
|
|
|
- ' </form>',
|
|
|
+ ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
+ ' <label for="checkMsgNotPass" class="control-label" >审核不通过原因</label>\n' +
|
|
|
+ ' <textarea class="form-control" id="checkMsgNotPass" placeholder="此功能适用于未在申报提交截止时间内提交的数据" rows="6"></textarea>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </form>',
|
|
|
|
|
|
btn: ['<i class="fa fa-save"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
zIndex: layer.zIndex,
|
|
|
yes: function (index, layero) {
|
|
|
var checkMsg = $("#checkMsgNotPass").val();
|
|
|
- if(Feng.isEmptyStr(checkMsg)){
|
|
|
+ if (Feng.isEmptyStr(checkMsg)) {
|
|
|
Feng.info("请填写审核不通过原因");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
- var operation = function(){
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/livingAllowanceInfo/setNotPass", function (data) {
|
|
|
- if(data.code==200){
|
|
|
+ var operation = function () {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/living_allowance/setNotPass", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
LivingAllowanceInfo.table.refresh();
|
|
|
layer.close(index);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
Feng.error("设置审核不通过失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.set("ids",ids);
|
|
|
- ajax.set("msg",checkMsg);
|
|
|
+ ajax.set("ids", ids);
|
|
|
+ ajax.set("msg", checkMsg);
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("一旦提交无法修改,确定设置所选数据为审核不通过?", operation);
|
|
@@ -810,7 +811,7 @@ LivingAllowanceInfo.hczxPass = function () {
|
|
|
ids = ids + selected[i].id + ",";
|
|
|
}
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/livingAllowanceInfo/hczxPass", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/living_allowance/hczxPass", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
LivingAllowanceInfo.table.refresh();
|
|
@@ -919,7 +920,7 @@ LivingAllowanceInfo.public = function () {
|
|
|
return;
|
|
|
}
|
|
|
layer.close(index);
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/livingAllowanceInfo/publicBatch", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/living_allowance/publicBatch", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
LivingAllowanceInfo.table.refresh();
|
|
@@ -966,19 +967,19 @@ LivingAllowanceInfo.publicExport = function (type) {
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
content: "<form id=\"publicExportForm\" action=\"" + url + "\" target=\"hiddenIframe\" class=\"form-horizontal \" style='padding-top: 10px;'>\n" +
|
|
|
- " <div class=\"form-group col-sm-12\">\n" +
|
|
|
- " <div class=\"row\">\n" +
|
|
|
- " <label class=\"col-sm-2 control-label\">开始时间</label>\n" +
|
|
|
- " <div class=\"col-sm-4\">\n" +
|
|
|
- " <input type=\"text\" id=\"startTime\" name=\"startTime\" time=\"time\" format=\"month\" class=\"form-control\">\n" +
|
|
|
- " </div>\n" +
|
|
|
- " <label class=\"col-sm-2 control-label\">截止时间</label>\n" +
|
|
|
- " <div class=\"col-sm-4\">\n" +
|
|
|
- " <input type=\"text\" id=\"endTime\" name=\"endTime\" time=\"time\" format=\"month\" class=\"form-control\">\n" +
|
|
|
- " </div>\n" +
|
|
|
- " </div>\n" +
|
|
|
- " </div>\n" +
|
|
|
- " </form>",
|
|
|
+ " <div class=\"form-group col-sm-12\">\n" +
|
|
|
+ " <div class=\"row\">\n" +
|
|
|
+ " <label class=\"col-sm-2 control-label\">开始时间</label>\n" +
|
|
|
+ " <div class=\"col-sm-4\">\n" +
|
|
|
+ " <input type=\"text\" id=\"startTime\" name=\"startTime\" time=\"time\" format=\"month\" class=\"form-control\">\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ " <label class=\"col-sm-2 control-label\">截止时间</label>\n" +
|
|
|
+ " <div class=\"col-sm-4\">\n" +
|
|
|
+ " <input type=\"text\" id=\"endTime\" name=\"endTime\" time=\"time\" format=\"month\" class=\"form-control\">\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ " </form>",
|
|
|
btn: ['<i class="fa fa-save layui-bg-green"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
success: function (index, layero) {
|
|
@@ -1023,13 +1024,13 @@ LivingAllowanceInfo.afterCheck = function () {
|
|
|
}
|
|
|
if (LivingAllowanceInfo.seItem.checkState == -1) {
|
|
|
var html = '<option value="">请选择</option>\n' +
|
|
|
- ' <option value="2">驳回/恢复</option>';
|
|
|
+ ' <option value="2">驳回/恢复</option>';
|
|
|
$("#checkStateAfter").empty().append(html);
|
|
|
}
|
|
|
if (LivingAllowanceInfo.seItem.checkState == 35) {
|
|
|
var html = '<option value="">请选择</option>\n' +
|
|
|
- ' <option value="-1">审核不通过</option>' +
|
|
|
- ' <option value="2">驳回</option>';
|
|
|
+ ' <option value="-1">审核不通过</option>' +
|
|
|
+ ' <option value="2">驳回</option>';
|
|
|
$("#checkStateAfter").empty().append(html);
|
|
|
}
|
|
|
$("#checkForm")[0].reset();
|
|
@@ -1133,16 +1134,16 @@ LivingAllowanceInfo.issue = function () {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LivingAllowanceInfo.showExportModal = function (){
|
|
|
+LivingAllowanceInfo.showExportModal = function () {
|
|
|
$("#exportForm")[0].reset();
|
|
|
$("#commonExportModal").modal("show");
|
|
|
}
|
|
|
-LivingAllowanceInfo.export = function (process){
|
|
|
- var operation = function() {
|
|
|
+LivingAllowanceInfo.export = function (process) {
|
|
|
+ var operation = function () {
|
|
|
var names = '';
|
|
|
var fieldCodes = '';
|
|
|
- $("#field_info li input").each(function(index){
|
|
|
- if($(this).is(":checked")){
|
|
|
+ $("#field_info li input").each(function (index) {
|
|
|
+ if ($(this).is(":checked")) {
|
|
|
fieldCodes = fieldCodes + $(this).val() + ",";
|
|
|
names = names + $(this).next().text() + ",";
|
|
|
}
|
|
@@ -1194,7 +1195,7 @@ LivingAllowanceInfo.callBack = function (data) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-LivingAllowanceInfo.checkAll = function(){
|
|
|
+LivingAllowanceInfo.checkAll = function () {
|
|
|
$("#field_info input").each(function () {
|
|
|
this.checked = true;
|
|
|
})
|
|
@@ -1202,11 +1203,11 @@ LivingAllowanceInfo.checkAll = function(){
|
|
|
/**
|
|
|
* 反选
|
|
|
*/
|
|
|
-LivingAllowanceInfo.unCheckAll = function(){
|
|
|
+LivingAllowanceInfo.unCheckAll = function () {
|
|
|
$("#field_info input").each(function () {
|
|
|
- if(this.checked){
|
|
|
+ if (this.checked) {
|
|
|
this.checked = false;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.checked = true;
|
|
|
}
|
|
|
})
|