|
@@ -56,6 +56,11 @@ IntegralInfo.initColumn = function () {
|
|
|
}
|
|
|
];
|
|
|
};
|
|
|
+IntegralInfo.openIntegralLog = function () {
|
|
|
+ if (this.check()) {
|
|
|
+ IntegralInfo.showIntegralLog(IntegralInfo.seItem.card_type, IntegralInfo.seItem.card_number);
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
/**
|
|
|
* 显示积分记录
|
|
@@ -72,6 +77,7 @@ IntegralInfo.showIntegralLog = function (card_type, card_number) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 检查是否选中
|
|
|
*/
|
|
@@ -105,674 +111,145 @@ IntegralInfo.openIntegralInfoDetail = function () {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-IntegralInfo.prepareSearch = function () {
|
|
|
- var sex = $("#pub_sex").val();
|
|
|
- var checkState = $("#pub_checkState").val();
|
|
|
- var name = $("#pub_name").val();
|
|
|
- $('#dataTable').bootstrapTable("refresh", {"query": {"sex": sex, "checkState": checkState, "name": name}});
|
|
|
-}
|
|
|
-
|
|
|
-IntegralInfo.prepareReset = function () {
|
|
|
- $("#pub_sex").val("");
|
|
|
- $("#pub_checkState").val("");
|
|
|
- $("#pub_name").val("");
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * 查询需要处理的数据
|
|
|
- * @param type
|
|
|
- */
|
|
|
-IntegralInfo.showDataCheckModal = function (type) {
|
|
|
- $("#hczxForm").css("display", "none");
|
|
|
- switch (type) {
|
|
|
- case 1: //待核查征信名单-导出
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.checkExport()").text("导出");
|
|
|
- $("#exportCommonModalLabel").text("待核查征信名单");
|
|
|
- break;
|
|
|
- case 2: //待核查征信名单-核查征信通过
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.hczxPass()").text("提交");
|
|
|
- $("#exportCommonModalLabel").text("待核查征信名单");
|
|
|
- break;
|
|
|
- case 3: //公示(批量)
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.public()").text("公示");
|
|
|
- $("#exportCommonModalLabel").text("待公示名单");
|
|
|
- $("#hczxForm").css("display", "block");
|
|
|
- $(".time").each(function () {
|
|
|
- laydate.render({
|
|
|
- elem: "#" + $(this).attr("id")
|
|
|
- , type: 'date'
|
|
|
- , format: 'yyyy年MM月dd日'
|
|
|
- });
|
|
|
- });
|
|
|
- break;
|
|
|
- case 4: //公示通过(批量)
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.publicPass()").text("提交");
|
|
|
- $("#exportCommonModalLabel").text("公示通过名单");
|
|
|
- break;
|
|
|
- case 5: //待公布名单
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.publish()").text("公布");
|
|
|
- $("#exportCommonModalLabel").text("待公布名单");
|
|
|
- break;
|
|
|
- case 6: //待发放人才码名单
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.sendCard()").text("提交");
|
|
|
- $("#exportCommonModalLabel").text("待发放积分名单");
|
|
|
- break;
|
|
|
- case 7: //公示名单预览
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.needPublicExport()").text("导出");
|
|
|
- $("#exportCommonModalLabel").text("待公示名单");
|
|
|
- break;
|
|
|
- case 8: //公布预览
|
|
|
- $("#hczxButton").attr("onclick", "IntegralInfo.publishExportBefore()").text("导出");
|
|
|
- $("#exportCommonModalLabel").text("待公布名单");
|
|
|
- break;
|
|
|
- }
|
|
|
- $('#dataTable').bootstrapTable('destroy');
|
|
|
- $('#dataTable').bootstrapTable({
|
|
|
- url: "/admin/integralVerify/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 会在表格底部显示分页条
|
|
|
- paginationHAlign: "left",
|
|
|
- paginationDetailHAlign: "right",
|
|
|
- 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: 'card_number', 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 == 8 || value == 22 || value == 25 || value == 27) {
|
|
|
- return "<span style='color: #ed5565;'>审核不通过</span>";
|
|
|
- }
|
|
|
- if (value == 6 || value == 21 || value == 23 || value == 24 || value == 26 || value == 28) {
|
|
|
- return "<span style='color: #1ab394;'>审核通过</span>";
|
|
|
+IntegralInfo.openCheckModal = function (type) {
|
|
|
+ if ((type == 2 && this.check()) || type == 1) {
|
|
|
+ var selected = $('#' + this.id).bootstrapTable('getSelections');
|
|
|
+ selected = selected.length > 0 ? selected[0] : [];
|
|
|
+ var subtitle = type == 2 ? "个人" : "企业";
|
|
|
+ var enterprise_id = selected.enterprise_id;
|
|
|
+ var card_type = selected.card_type;
|
|
|
+ var card_number = selected.card_number;
|
|
|
+ var ajax = new $ax("/admin/integralVerify/veto", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
+ layer.open({
|
|
|
+ type: 1,
|
|
|
+ id: "newVetoModalForm",
|
|
|
+ title: '一票否决(' + subtitle + ")",
|
|
|
+ area: ['800px', '350px'], //宽高
|
|
|
+ fix: false, //不固定
|
|
|
+ shade: 0,
|
|
|
+ maxmin: true,
|
|
|
+ content: IntegralInfo.createVetoFormModal(),
|
|
|
+ btn: ['<i class="fa fa-save"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
+ btnAlign: 'c',
|
|
|
+ zIndex: layer.zIndex,
|
|
|
+ success: function (layero, index) {
|
|
|
+ $("#vetoForm")[0].reset();
|
|
|
+ $("#vetoType").html('<option value="' + type + '">' + subtitle + '</option>');
|
|
|
+ var veto = data.veto;
|
|
|
+ var list = "";
|
|
|
+ if (type == 1) {
|
|
|
+ for (var i in data.enterprises) {
|
|
|
+ list += '<option value="' + data.enterprises[i].id + '" ' + (typeof veto.enterprise_id != "undefined" && veto.enterprise_id == data.enterprises[i].id ? "selected" : "") + '>' + data.enterprises[i].name + '</option>';
|
|
|
}
|
|
|
+ } else {
|
|
|
+ list += '<option>' + veto.name + '</option>';
|
|
|
}
|
|
|
+ $("#vetoObj").html(list);
|
|
|
+ $("#vetoCheckState").val(veto.active == 1 || typeof veto.active == "undefined" ? 1 : 2);
|
|
|
+ $("#vetoMsg").html(veto.description);
|
|
|
},
|
|
|
- ]
|
|
|
-
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 选择导出提交
|
|
|
- */
|
|
|
-IntegralInfo.checkExport = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
- return;
|
|
|
- }
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- window.location.href = Feng.ctxPath + "/admin/integralVerify/prepareHczx?ids=" + ids;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 核查征信批量通过提交
|
|
|
- */
|
|
|
-IntegralInfo.hczxPass = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
- return;
|
|
|
- }
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax("/admin/integralVerify/hczxPass", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("核查征信失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.set("ids", ids);
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- Feng.confirm("一旦提交无法修改,确定提交吗?", operation);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 显示核查征信驳回模态框
|
|
|
- */
|
|
|
-IntegralInfo.showHczxRejectModal = function () {
|
|
|
- if (this.check()) {
|
|
|
- if (IntegralInfo.seItem.checkState != 6) {
|
|
|
- Feng.info("当前记录不是待核查征信状态,无法核查");
|
|
|
- return;
|
|
|
- }
|
|
|
- $("#hczxId").val(IntegralInfo.seItem.id);
|
|
|
- $("#hczxMsg").val("");
|
|
|
- $("#hczxRejectModal").modal("show");
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 核查征信驳回提交
|
|
|
- */
|
|
|
-IntegralInfo.hczxReject = function () {
|
|
|
- var id = $("#hczxId").val();
|
|
|
- var msg = $("#hczxMsg").val();
|
|
|
- if (msg == null || msg == '') {
|
|
|
- Feng.info("请填写失信原因");
|
|
|
- return;
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax("/admin/integralVerify/hczxReject", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#hczxRejectModal").modal("hide");
|
|
|
+ yes: function (index, layero) {
|
|
|
+ IntegralInfo.submitVeto(index, type);
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
- Feng.error("核查征信失败!" + data.responseJSON.message + "!");
|
|
|
+ Feng.error("校验失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.setData({"id": id, "outMsg": msg});
|
|
|
+ ajax.setData({type: type, card_type: card_type, card_number: card_number, enterprise_id: enterprise_id})
|
|
|
ajax.start();
|
|
|
}
|
|
|
- Feng.confirm("一旦提交无法修改,确定提交吗?", operation);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 导入核查征信名单
|
|
|
-// * @param type
|
|
|
-// */
|
|
|
-// IntegralInfo.importHczx = function(){
|
|
|
-// $("#importHczx-form")[0].reset();
|
|
|
-// $("#hczxModal").modal("show");
|
|
|
-// }
|
|
|
-// /**
|
|
|
-// * 导入提交
|
|
|
-// */
|
|
|
-// IntegralInfo.importHczxSubmit = function(){
|
|
|
-// $("#importHczx-form")[0].submit();
|
|
|
-// }
|
|
|
-
|
|
|
-/**
|
|
|
- * 是否发送短信
|
|
|
- */
|
|
|
-IntegralInfo.toggleMessage = function () {
|
|
|
- var isMessage = $("input[name='isSend']:checked").val();
|
|
|
- if (isMessage == 1) {
|
|
|
- $("#messageEdit").css("display", "block");
|
|
|
- } else if (isMessage == 2) {
|
|
|
- $("#messageEdit").css("display", "none");
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
+var locked = false;
|
|
|
/**
|
|
|
- * 公示预览
|
|
|
+ * 提交一票否决
|
|
|
*/
|
|
|
-IntegralInfo.needPublicExport = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
- return;
|
|
|
- }
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- window.location.href = encodeURI(encodeURI("/admin/integralVerify/publicExportBefore?ids=" + ids));
|
|
|
- }
|
|
|
- Feng.confirm("确定要公示预览吗?", operation);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 公示
|
|
|
- */
|
|
|
-IntegralInfo.public = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
- return;
|
|
|
- }
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- var isMessage = $("input[name='isSend']:checked").val();
|
|
|
- var typeName = $("#typeName").val();
|
|
|
- var address = $("#web").val();
|
|
|
- var publicStartTime = $("#publicStartTime").val();
|
|
|
- var publicEndTime = $("#publicEndTime").val();
|
|
|
- var dep = $("#dep").val();
|
|
|
- var phone = $("#fyphone").val();
|
|
|
- var email = $("#fyemail").val();
|
|
|
- if (isMessage == 1) {
|
|
|
- if (typeName == null || typeName == '') {
|
|
|
- Feng.info("请填写公示类型");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (address == null || address == '') {
|
|
|
- Feng.info("请填写公示平台");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (publicStartTime == null || publicStartTime == '') {
|
|
|
- Feng.info("请填写公示开始时间");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (publicEndTime == null || publicEndTime == '') {
|
|
|
- Feng.info("请填写公示截止时间");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (dep == null || dep == '') {
|
|
|
- Feng.info("请填写反映单位");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (phone == null || phone == '') {
|
|
|
- Feng.info("请填写联系电话");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (email == null || email == '') {
|
|
|
- Feng.info("请填写联系邮箱");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- var index = layer.open({
|
|
|
- type: 1,
|
|
|
- title: '公示',
|
|
|
- area: ['300px', '220px'], //宽高
|
|
|
- fix: false, //不固定
|
|
|
- maxmin: true,
|
|
|
- content: "<input class='form-control' id='publicBatchId' style='width:90%;margin: 10px' placeholder='请输入公示批次'>",
|
|
|
- btn: ['<i class="fa fa-save layui-bg-green"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
- btnAlign: 'c',
|
|
|
- success: function () {
|
|
|
- laydate.render({elem: "#publicBatchId", type: 'month', trigger: 'click', format: "yyyyMM"});
|
|
|
- },
|
|
|
- yes: function (index, layero) {
|
|
|
- var month = $("#publicBatchId").val();
|
|
|
- if (Feng.isEmptyStr(month)) {
|
|
|
- Feng.info("请填写公示批次");
|
|
|
- return;
|
|
|
- }
|
|
|
- layer.close(index);
|
|
|
- var ajax = new $ax("/admin/integralVerify/preparePublic", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("公示失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.set("ids", ids);
|
|
|
- ajax.set("typeName", typeName);
|
|
|
- ajax.set("address", address);
|
|
|
- ajax.set("publicStartTime", publicStartTime);
|
|
|
- ajax.set("publicEndTime", publicEndTime);
|
|
|
- ajax.set("dep", dep);
|
|
|
- ajax.set("phone", phone);
|
|
|
- ajax.set("email", email);
|
|
|
- ajax.set("isMessage", isMessage);
|
|
|
- ajax.set("batch", month);
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- Feng.confirm("确定要公示吗?", operation);
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//已公示的数据根据公示批次公示导出
|
|
|
-IntegralInfo.publicExport = function (type) {
|
|
|
- var url = "", dateType = '', format = '';
|
|
|
- if (type == 1) { //公示导出
|
|
|
- url = "/admin/integralVerify/publicExport";
|
|
|
- dateType = 'month';
|
|
|
- format = "yyyyMM";
|
|
|
- } else if (type == 2) { //公布导出
|
|
|
- url = Feng.ctxPath + "/admin/integralVerify/publishExport";
|
|
|
- dateType = 'date';
|
|
|
- format = "yyyy-MM-dd";
|
|
|
- }
|
|
|
- layer.open({
|
|
|
- type: 1,
|
|
|
- title: type == 1 ? '公示导出' : "公布导出",
|
|
|
- area: ['800px', '300px'], //宽高
|
|
|
- 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>",
|
|
|
- btn: ['<i class="fa fa-save layui-bg-green"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
- btnAlign: 'c',
|
|
|
- success: function (index, layero) {
|
|
|
- $("#publicExportForm")[0].reset();
|
|
|
- $("input[time='time']").each(function () {
|
|
|
- laydate.render({
|
|
|
- elem: "#" + $(this).attr("id")
|
|
|
- , type: dateType
|
|
|
- , format: format
|
|
|
- , trigger: 'click'
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- yes: function (index) {
|
|
|
- var startTime = $("#startTime").val();
|
|
|
- var endTime = $("#endTime").val();
|
|
|
- if (startTime == null || startTime == '') {
|
|
|
- Feng.info("请选择开始时间");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (endTime == null || endTime == '') {
|
|
|
- Feng.info("请选择结束时间");
|
|
|
- return;
|
|
|
- }
|
|
|
- $("#publicExportForm")[0].submit();
|
|
|
- layer.close(index)
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-/**
|
|
|
- * 公示再审核
|
|
|
- */
|
|
|
-IntegralInfo.afterCheck = function () {
|
|
|
- if (this.check()) {
|
|
|
- if (IntegralInfo.seItem.checkState != 23) {
|
|
|
- Feng.info("当前记录不是公示中状态,无法审核");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (IntegralInfo.seItem.outMsg != null && IntegralInfo.seItem.outMsg != '') {
|
|
|
- Feng.info("当前申请人核查征信不通过,请谨慎选择审核状态!");
|
|
|
- }
|
|
|
- if (IntegralInfo.seItem.checkState == 16) {
|
|
|
- var html = '<option value="">请选择</option>\n' +
|
|
|
- ' <option value="2">驳回/恢复</option>';
|
|
|
- $("#checkStateAfter").empty().append(html);
|
|
|
- }
|
|
|
- if (IntegralInfo.seItem.checkState == 14) {
|
|
|
- var html = '<option value="">请选择</option>\n' +
|
|
|
- ' <option value="-1">审核不通过</option>' +
|
|
|
- ' <option value="2">驳回</option>';
|
|
|
- $("#checkStateAfter").empty().append(html);
|
|
|
- }
|
|
|
- $("#checkForm")[0].reset();
|
|
|
- $("#mainId").val(IntegralInfo.seItem.id);
|
|
|
- $("#checkModal").modal("show");
|
|
|
- }
|
|
|
-}
|
|
|
-/**
|
|
|
- * 公示后审核提交
|
|
|
- */
|
|
|
-IntegralInfo.afterCheckSubmit = function () {
|
|
|
- var checkState = $("#checkStateAfter").val();
|
|
|
- var msg = $("#msg").val();
|
|
|
+IntegralInfo.submitVeto = function (i, type) {
|
|
|
+ var checkState = $("#vetoCheckState").val();
|
|
|
+ var checkMsg = $("#vetoMsg").val();
|
|
|
+ var vetoObj = $("#vetoObj").val();
|
|
|
if (checkState == null || checkState == '') {
|
|
|
- Feng.info("请选择审核状态");
|
|
|
+ Feng.info("请选择否决状态");
|
|
|
return;
|
|
|
}
|
|
|
- if (msg == null || msg == '') {
|
|
|
- Feng.info("请填写审核意见");
|
|
|
+ if (checkMsg == null || checkMsg == '') {
|
|
|
+ Feng.info("请填写意见");
|
|
|
return;
|
|
|
}
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/admin/integralVerify/prepareCheck", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#checkModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("审核失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.setData({"id": $("#mainId").val(), "checkState": $("#checkStateAfter").val(), "checkMsg": msg});
|
|
|
- ajax.start();
|
|
|
+ var card_type = "";
|
|
|
+ var card_number = "";
|
|
|
+ if (type == 2 && this.check()) {
|
|
|
+ card_type = IntegralInfo.seItem.card_type;
|
|
|
+ card_number = IntegralInfo.seItem.card_number;
|
|
|
}
|
|
|
- Feng.confirm("一旦提交无法修改,确定提交吗?", operation);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 批量公示通过
|
|
|
- * @param type
|
|
|
- */
|
|
|
-IntegralInfo.publicPass = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
+ if (type == 1 && !vetoObj) {
|
|
|
+ Feng.info("请选择企业");
|
|
|
return;
|
|
|
}
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax("/admin/integralVerify/publicPass", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("公示通过失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.set("ids", ids);
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- Feng.confirm("一旦提交无法修改,确定公示通过吗?", operation);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 公布预览
|
|
|
- */
|
|
|
-IntegralInfo.publishExportBefore = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
+ if (locked)
|
|
|
return;
|
|
|
- }
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- window.location.href = "/admin/integralVerify/publishExportBefore?ids=" + ids;
|
|
|
- }
|
|
|
- Feng.confirm("确定要导出吗?", operation);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 公布审核
|
|
|
- */
|
|
|
-IntegralInfo.singlePublish = function () {
|
|
|
- if (this.check()) {
|
|
|
- if (IntegralInfo.seItem.checkState != 24) {
|
|
|
- Feng.info("当前记录不是公示再审核通过状态,无法审核");
|
|
|
- return;
|
|
|
+ locked = true;
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/integralVerify/submitVeto", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
+ Feng.success(data.msg);
|
|
|
+ window.parent.IntegralInfo.table.refresh();
|
|
|
+ layer.close(i);
|
|
|
+ } else {
|
|
|
+ Feng.error(data.msg);
|
|
|
}
|
|
|
- /*if (IntegralInfo.seItem.checkState == 13) {
|
|
|
- var html = '<option value="">请选择</option>\n' +
|
|
|
- ' <option value="2">驳回/恢复</option>';
|
|
|
- $("#checkStateAfter").empty().append(html);
|
|
|
- }
|
|
|
- if (IntegralInfo.seItem.checkState == 11) {
|
|
|
- var html = '<option value="">请选择</option>\n' +
|
|
|
- ' <option value="-1">审核不通过</option>' +
|
|
|
- ' <option value="2">驳回</option>';
|
|
|
- $("#checkStateAfter").empty().append(html);
|
|
|
- }*/
|
|
|
- $("#checkForm")[0].reset();
|
|
|
- $("#mainId").val(IntegralInfo.seItem.id);
|
|
|
- $("#publishModal").modal("show");
|
|
|
- laydate.render({elem: "#publishBatch", type: 'date', trigger: 'click', format: "yyyy-MM-dd"});
|
|
|
- }
|
|
|
-}
|
|
|
-IntegralInfo.publishStateChange = function () {
|
|
|
- var state = $("#checkStatePublish").val();
|
|
|
- if (state == 1) {
|
|
|
- $("#checkStatePublish").parents(".row").next(".row").css("display", "block");
|
|
|
- } else {
|
|
|
- $("#checkStatePublish").parents(".row").next(".row").css("display", "none");
|
|
|
- }
|
|
|
+ locked = false;
|
|
|
+ }, function (data) {
|
|
|
+ Feng.error("提交失败!" + data.responseJSON.message + "!");
|
|
|
+ locked = false;
|
|
|
+ });
|
|
|
+ ajax.setData({"checkState": checkState, "checkMsg": checkMsg, type: type, card_type: card_type, card_number: card_number, enterprise_id: vetoObj});
|
|
|
+ ajax.start();
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 公示后审核提交
|
|
|
- */
|
|
|
-IntegralInfo.singlePublishSubmit = function () {
|
|
|
- var checkState = $("#checkStatePublish").val();
|
|
|
- var msg = $("#publishMsg").val();
|
|
|
- var month = $("#publishBatch").val();
|
|
|
- if (checkState == null || checkState == '') {
|
|
|
- Feng.info("请选择审核状态");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (Feng.isEmptyStr(month)) {
|
|
|
- Feng.info("请填写公布批次");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (msg == null || msg == '') {
|
|
|
- Feng.info("请填写审核意见");
|
|
|
- return;
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax("/admin/integralVerify/publish", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#publishModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("审核失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.setData({"id": $("#mainId").val(), "checkState": checkState, "checkMsg": msg, batch: month});
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- Feng.confirm("一旦提交无法修改,确定提交吗?", operation);
|
|
|
+IntegralInfo.createVetoFormModal = function () {
|
|
|
+ return '<form id="vetoForm">\n' +
|
|
|
+ ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
+ ' <div class="row" style="margin-bottom: 10px;">\n' +
|
|
|
+ ' <label class="col-sm-2 control-label">类型</label>\n' +
|
|
|
+ ' <div class="col-sm-10">\n' +
|
|
|
+ ' <select id="vetoType" name="vetoType" class="form-control">\n' +
|
|
|
+ ' </select>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <div class="row" style="margin-bottom: 10px;">\n' +
|
|
|
+ ' <label class="col-sm-2 control-label">名称</label>\n' +
|
|
|
+ ' <div class="col-sm-10">\n' +
|
|
|
+ ' <select id="vetoObj" name="vetoObj" class="form-control">\n' +
|
|
|
+ ' </select>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <div class="row" style="margin-bottom: 10px;">\n' +
|
|
|
+ ' <label class="col-sm-2 control-label">状态</label>\n' +
|
|
|
+ ' <div class="col-sm-10">\n' +
|
|
|
+ ' <select id="vetoCheckState" name="vetoCheckState" class="form-control">\n' +
|
|
|
+ ' <option value="1">一票否决</option>\n' +
|
|
|
+ ' <option value="2">恢复</option>\n' +
|
|
|
+ ' </select>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <div class="row">\n' +
|
|
|
+ ' <label class="col-sm-2 control-label">意见</label>\n' +
|
|
|
+ ' <div class="col-sm-10">\n' +
|
|
|
+ ' <textarea id="vetoMsg" name="vetoMsg" class="form-control"></textarea>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ '</form>';
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 批量公布
|
|
|
- */
|
|
|
-IntegralInfo.publish = function () {
|
|
|
- var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
- if (!selected || selected.length < 1) {
|
|
|
- Feng.info("请至少选择一行数据!");
|
|
|
- return;
|
|
|
- }
|
|
|
- var ids = "";
|
|
|
- for (var i = 0; i < selected.length; i++) {
|
|
|
- ids = ids + selected[i].id + ",";
|
|
|
- }
|
|
|
- var operation = function () {
|
|
|
- var index = layer.open({
|
|
|
- type: 1,
|
|
|
- title: '公布',
|
|
|
- area: ['300px', '220px'], //宽高
|
|
|
- fix: false, //不固定
|
|
|
- maxmin: true,
|
|
|
- content: "<input class='form-control' id='publicBatchId' style='width:90%;margin: 10px' placeholder='请输入公布日期(公布入选月份)'>",
|
|
|
- btn: ['<i class="fa fa-save layui-bg-green"></i> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
- btnAlign: 'c',
|
|
|
- success: function () {
|
|
|
- laydate.render({elem: "#publicBatchId", type: 'date', trigger: 'click', format: "yyyy-MM-dd"});
|
|
|
- },
|
|
|
- yes: function (index, layero) {
|
|
|
- var month = $("#publicBatchId").val();
|
|
|
- if (Feng.isEmptyStr(month)) {
|
|
|
- Feng.info("请填写公布批次");
|
|
|
- return;
|
|
|
- }
|
|
|
- layer.close(index);
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/admin/integralVerify/preparePublish", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("公布失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.set("ids", ids);
|
|
|
- ajax.set("batch", month);
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- Feng.confirm("一旦确认无法修改,确定要公布吗?", operation);
|
|
|
-}
|
|
|
-/**
|
|
|
- * 撤销公布
|
|
|
+ * 选择导出提交
|
|
|
*/
|
|
|
-IntegralInfo.canclePublish = function () {
|
|
|
- if (this.check()) {
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/talentInfo/canclePublish", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("撤销公布失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.set("id", IntegralInfo.seItem.id);
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- Feng.confirm("一旦撤销无法修改,确定要撤销公布吗?", operation);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-//发放积分
|
|
|
-IntegralInfo.sendCard = function () {
|
|
|
+IntegralInfo.checkExport = function () {
|
|
|
var selected = $('#dataTable').bootstrapTable('getSelections');
|
|
|
if (!selected || selected.length < 1) {
|
|
|
Feng.info("请至少选择一行数据!");
|
|
@@ -782,22 +259,7 @@ IntegralInfo.sendCard = function () {
|
|
|
for (var i = 0; i < selected.length; i++) {
|
|
|
ids = ids + selected[i].id + ",";
|
|
|
}
|
|
|
- var operation = function () {
|
|
|
- var ajax = new $ax("/admin/integralVerify/prepareCertification", function (data) {
|
|
|
- if (data.code == 200) {
|
|
|
- Feng.success(data.msg);
|
|
|
- IntegralInfo.table.refresh();
|
|
|
- $("#exportCommonModal").modal("hide");
|
|
|
- } else {
|
|
|
- Feng.error(data.msg);
|
|
|
- }
|
|
|
- }, function (data) {
|
|
|
- Feng.error("发放积分失败!" + data.responseJSON.message + "!");
|
|
|
- });
|
|
|
- ajax.set("ids", ids);
|
|
|
- ajax.start();
|
|
|
- }
|
|
|
- Feng.confirm("积分发放后无法修改,确定要发放积分吗?", operation);
|
|
|
+ window.location.href = Feng.ctxPath + "/admin/integralVerify/prepareHczx?ids=" + ids;
|
|
|
}
|
|
|
|
|
|
//回调
|
|
@@ -816,7 +278,7 @@ $(function () {
|
|
|
table.setPaginationType("server");
|
|
|
table.setSingleSelect(false);
|
|
|
table.setOnDblClickRow(function () {
|
|
|
- IntegralInfo.openIntegralInfoDetail();
|
|
|
+ //IntegralInfo.openIntegralInfoDetail();
|
|
|
});
|
|
|
var t = IntegralInfo.table = table.init();
|
|
|
IntegralInfo.init();
|