|
@@ -253,6 +253,143 @@ TalentInfo.openCheckTalentInfo = function () {
|
|
|
}
|
|
|
|
|
|
|
|
|
+TalentInfo.commonColumns = function () {
|
|
|
+ return [
|
|
|
+ {field: "selectItem", checkbox: true},
|
|
|
+ {title: '申报年度', field: 'apply_year', visible: true, align: 'center', valign: 'middle', width: "10%"},
|
|
|
+ {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "15%"},
|
|
|
+ {title: '证件号码', field: 'card_number', visible: true, align: 'center', valign: 'middle', width: "15%"},
|
|
|
+ {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', width: "15%"},
|
|
|
+ {title: '医院名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', width: "30%",
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return value + (row.isGeneral == 1 ? "(总院)" : "");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {title: '所属医共体', field: 'medicalCommunityName', visible: true, align: 'center', valign: 'middle', width: "15%"}
|
|
|
+ ];
|
|
|
+}
|
|
|
+
|
|
|
+TalentInfo.openBatchCheckModal = function (type) {
|
|
|
+ var columns = TalentInfo.commonColumns();
|
|
|
+ $('#batchCheckTable').bootstrapTable('destroy');
|
|
|
+ $('#batchCheckTable').bootstrapTable({
|
|
|
+ url: Feng.ctxPath + "/admin/talent/find_fst_list",
|
|
|
+ method: 'POST',
|
|
|
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
+ search: true, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
|
|
|
+ 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) {
|
|
|
+ $(".time").each(function () {
|
|
|
+ laydate.render({
|
|
|
+ elem: "#" + $(this).attr("id")
|
|
|
+ , type: 'date'
|
|
|
+ , format: 'yyyy年MM月dd日'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ $("#batchCheckModal").modal("show");
|
|
|
+ return res.obj.rows;
|
|
|
+ },
|
|
|
+ columns: columns
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 刷新检索
|
|
|
+ */
|
|
|
+TalentInfo.bcSearch = function () {
|
|
|
+ var apply_year = $("#bc_apply_year").val();
|
|
|
+ var name = $("#bc_name").val();
|
|
|
+ var enterprise_id = $("#bc_enterprise_id").val();
|
|
|
+ var medicalCommunityId = $("#medicalCommunityId").val();
|
|
|
+ var talent_arrange = $("#bc_talent_arrange").val();
|
|
|
+ $('#batchCheckTable').bootstrapTable("refresh", {"query": {"name": name, "enterprise_id": enterprise_id, "talent_arrange": talent_arrange, "apply_year": apply_year, "medicalCommunityId": medicalCommunityId}});
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 重置
|
|
|
+ */
|
|
|
+TalentInfo.bcReset = function () {
|
|
|
+ $("#bc_apply_year").val("");
|
|
|
+ $("#bc_name").val("");
|
|
|
+ $("#bc_enterprise_id").val("");
|
|
|
+ $("#medicalCommunityId").val("");
|
|
|
+ $("#bc_talent_arrange").val("");
|
|
|
+}
|
|
|
+
|
|
|
+$('#checkAllBatch').click(function () {
|
|
|
+ $("#batchCheckTable").bootstrapTable('togglePagination').bootstrapTable('checkAll').bootstrapTable('togglePagination');
|
|
|
+})
|
|
|
+$('#uncheckAllBatch').click(function () {
|
|
|
+ $("#batchCheckTable").bootstrapTable('togglePagination').bootstrapTable('uncheckAll').bootstrapTable('togglePagination')
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
+TalentInfo.batchCheck = function () {
|
|
|
+ var selected = $('#batchCheckModal').bootstrapTable('getSelections');
|
|
|
+ if (!selected || selected.length < 1) {
|
|
|
+ Feng.info("请至少选择一行数据!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var ids = "";
|
|
|
+ var count = 0;
|
|
|
+ for (var i = 0; i < selected.length; i++) {
|
|
|
+ count++;
|
|
|
+ ids = ids + selected[i].id + ",";
|
|
|
+ }
|
|
|
+ var operation = function () {
|
|
|
+ var index = layer.open({
|
|
|
+ type: 1,
|
|
|
+ title: '批量审核',
|
|
|
+ area: ['300px', '220px'], //宽高
|
|
|
+ fix: false, //不固定
|
|
|
+ maxmin: true,
|
|
|
+ content: TalentInfo.creatBatchCheckModal(),
|
|
|
+ btn: ['<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
+ btnAlign: 'c',
|
|
|
+ success: function () {
|
|
|
+
|
|
|
+ },
|
|
|
+ yes: function (index, layero) {
|
|
|
+ var allowanceType = $("input[name=batchAllowanceType]:checked").val();
|
|
|
+ if (Feng.isEmptyStr(allowanceType) || typeof allowanceType == "undefined") {
|
|
|
+ Feng.info("请选择补贴类型");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ layer.close(index);
|
|
|
+ var allowanceTypeStr = allowanceType == 1 ? "工作津贴" : "一次性交通补贴";
|
|
|
+ Feng.confirm("已选<span style='color:#ff0000;'>" + count + "</span>人,确定要批量申请<span style='color:#ff0000;'>" + allowanceTypeStr + "</span>吗?<br><span style='color:#ff0000;'>*此方法不能撤销,请谨慎操作</span>", function () {
|
|
|
+ var ajax = new $ax("/admin/talent/fst_batch_check", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
+ Feng.success(data.msg);
|
|
|
+ TalentInfo.table.refresh();
|
|
|
+ $("#batchApplyModal").modal("hide");
|
|
|
+ } else {
|
|
|
+ Feng.error(data.msg);
|
|
|
+ }
|
|
|
+ }, function (data) {
|
|
|
+ Feng.error("公示失败!" + data.responseJSON.message + "!");
|
|
|
+ });
|
|
|
+ ajax.set("ids", ids);
|
|
|
+ ajax.set("allowanceType", allowanceType);
|
|
|
+ ajax.start();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ Feng.confirm("确定进入下一步选择补贴类型吗?", operation);
|
|
|
+}
|
|
|
|
|
|
/**
|
|
|
* 打开查看人才认定-初级审核详情
|
|
@@ -483,6 +620,29 @@ TalentInfo.setNotPass = function () {
|
|
|
|
|
|
}
|
|
|
|
|
|
+TalentInfo.creatBatchCheckModal = function () {
|
|
|
+ return '<form id="firstCheckForm">\n' +
|
|
|
+ ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
+ ' <div >\n' +
|
|
|
+ ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
|
|
|
+ ' <textarea class="form-control" id="checkMsg" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
|
|
|
+ ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
|
|
|
+ ' <div id="field_info">\n' +
|
|
|
+ ' <ul>\n' +
|
|
|
+ ' </ul>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <label for="checkMsg" 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="TalentInfo.checkAll()">全选</button>\n' +
|
|
|
+ ' <button type="button" class="btn btn-success" onclick="TalentInfo.unCheckAll()">反选</button>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </form>';
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
TalentInfo.creatFieldCheckModal = function () {
|
|
|
return '<form id="firstCheckForm">\n' +
|