Przeglądaj źródła

卫健津补贴增加总院审核(未完成)

sugangqiang 1 rok temu
rodzic
commit
5d23bb16fe

+ 9 - 0
app/common/state/AllowanceStateEnum.php

@@ -17,7 +17,10 @@ class AllowanceStateEnum {
 
     const NOTPASS = -1;
     const SAVE = 1;
+    const NEED_GENERAL_CHECK = 3;
     const NEED_CHECK = 5;
+    const GENERAL_REJECT = 8;
+    const FIRST_REJECT_BRANCH = 9;
     const FIRST_REJECT = 10;
     const REJECT_TO_FIRST = 13;
     const NEED_VISIT_CHECK = 15;
@@ -32,8 +35,14 @@ class AllowanceStateEnum {
                 return "审核不通过";
             case self::SAVE:
                 return "待提交";
+            case self::NEED_GENERAL_CHECK:
+                return "待总院审核";
             case self::NEED_CHECK:
                 return "待审核";
+            case self::GENERAL_REJECT:
+                return "总院驳回";
+            case self::FIRST_REJECT_BRANCH:
+                return "初审驳回到分院";
             case self::FIRST_REJECT:
                 return "初审驳回";
             case self::REJECT_TO_FIRST:

+ 37 - 1
app/enterprise/controller/TalentAllowance.php

@@ -23,6 +23,7 @@ use app\common\api\Response;
 use app\common\api\UploadApi;
 use app\enterprise\model\TalentTypeChange;
 use app\common\state\AllowanceTypeEnum;
+use app\common\state\AllowanceStateEnum;
 
 /**
  * Description of TalentAllowance
@@ -847,7 +848,11 @@ class TalentAllowance extends EnterpriseController {
             \app\common\model\TalentAllowanceProject::where($where)->update($updProject);
         }
         $data["checkMsg"] = "";
-        $data["checkState"] = 5;
+        $data["checkState"] = AllowanceStateEnum::NEED_CHECK;
+        $ep = \app\common\api\EnterpriseApi::getOne($this->user["uid"]);
+        if ($ep->isGeneral == 2 && \app\common\api\Nhc::hasGeneralHospital($ep->medicalCommunityId)) {
+            $data["checkState"] = AllowanceStateEnum::NEED_GENERAL_CHECK; //分院并且有总院
+        }
         $data["files"] = "";
         $data["projects"] = "";
         $data["concats"] = "";
@@ -1175,10 +1180,38 @@ class TalentAllowance extends EnterpriseController {
         export($columns, $rows, "津补贴申报名单", $settings);
     }
 
+    /**
+     * 审核列表页
+     */
+    public function examineCenter() {
+        $tpl = "";
+        switch ($this->user["type"]) {
+            case CommonConst::ENTERPRISE_WJ:
+                $tpl = "/talent_allowance/examine_center"; //卫健医院
+                break;
+        }
+        return view($tpl);
+    }
+
+    /**
+     * 审核列表页
+     */
+    public function examineList() {
+        $res = TalentAllowanceApi::getHospitalExamineList($this->request);
+        return json($res);
+    }
+
+    public function examinePage() {
+        $id = $this->request->param("id");
+        $info = \app\common\api\VerifyApi::getTalentInfoById($id);
+        return view("/talent/hospital/view", ["row" => $info]);
+    }
+
     private function getCheckStateName($checkState, $publicState, $allowanceType) {
         switch ($checkState) {
             case 1:
                 return "待提交";
+            case 3:
             case 5:
             case 13:
             case 15:
@@ -1186,6 +1219,9 @@ class TalentAllowance extends EnterpriseController {
             case 25:
             case 35:
                 return "审核中";
+            case 8:
+                return "总院驳回";
+            case 9:
             case 10:
                 return "已驳回";
             case - 1:

+ 195 - 0
app/enterprise/view/talent_allowance/examine_center.html

@@ -0,0 +1,195 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .layui-layer-btn .layui-layer-btn1 {
+        border-color: #009688;
+        background-color: #009688;
+        color: #fff;
+    }
+    ul li{
+        list-style: none;
+        display:inline-block;
+        margin-bottom: 5px;
+    }
+    #field ul li input{
+        vertical-align:middle;
+        margin-top:1px;
+    }
+</style>
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-title">
+                <h5>津补贴审核</h5>
+            </div>
+            <div class="ibox-content">
+                <div class="row row-lg">
+                    <div class="col-sm-12">
+                        <input type="hidden" id="process" value="{$process}">
+                        <input type="hidden" id="type" value="{$type}">
+                        <div class="row">
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">年度
+                                        </button>
+                                    </div>
+                                    <input type="text" class="form-control" id="year" placeholder="">
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">医院名称
+                                        </button>
+                                    </div>
+                                    <input type="text" class="form-control" id="enterpriseName" placeholder="">
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">姓名
+                                        </button>
+                                    </div>
+                                    <input type="text" class="form-control" id="name" placeholder="">
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            人才层次
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="talentArrange" onchange="TalentAllowanceInfo.getIdentifyCondition()">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            认定条件
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="identifyCondition">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            所属镇街
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="address">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            引进方式
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="introductionMode">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">首次来晋开始时间
+                                        </button>
+                                    </div>
+                                    <input type="text"  class="form-control time" id="firstJJStartTime" name="firstJJStartTime"/>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm ">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">首次来晋截止时间
+                                        </button>
+                                    </div>
+                                    <input type="text"  class="form-control time" id="firstJJEndTime" name="firstJJEndTime"/>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            审核状态
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="checkState">
+                                        <option value="">请选择</option>
+                                        <option value="-2">待提交</option>
+                                        <option value="1">待审核</option>
+                                        <option value="2">已驳回</option>
+                                        <option value="3">已通过</option>
+                                        <option value="4">上级驳回</option>
+                                        <option value="9">重新提交</option>
+                                        <option value="-1">审核不通过</option>
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            津补贴类型
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="allowanceType">
+                                        <option value="">请选择</option>
+                                        <option value="1">工作津贴</option>
+                                        <option value="2">一次性交通补贴</option>
+                                        <option value="3">不予兑现</option>
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentAllowanceInfo.search()" id="">
+                                    <i class="fa fa-search"></i>&nbsp;搜索
+                                </button>
+                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentAllowanceInfo.reset()" id="">
+                                    <i class="fa fa-trash"></i>&nbsp;重置
+                                </button>
+                            </div>
+                        </div>
+                        <div class="hidden-xs" id="TalentAllowanceInfoTableToolbar" role="group">                 
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentAllowanceInfo.openCheckTalentAllowanceInfo()" id="">
+                                <i class="fa fa-edit"></i>&nbsp;审核
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentAllowanceInfo.updateFieldsAndFiles()" id="">
+                                <i class="fa fa-edit"></i>&nbsp;修改驳回字段
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentAllowanceInfo.exportBasicInfo()" id="">
+                                <i class="fa fa-file-excel-o"></i>&nbsp;导出基础信息
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentAllowanceInfo.select()" id="">
+                                <i class="fa fa-eye"></i>&nbsp;查看
+                            </button>
+                        </div>
+                        <table id="TalentAllowanceInfoTable" class="table-condensed" style="table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                            <thead>
+                                <tr>
+                                    <th data-field="selectItem" data-checkbox="true"></th>
+                                </tr>
+                            </thead>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/talentAllowance/talentAllowanceInfo.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/gate/enterprise/talentAllowance/talentAllowanceInfo_supple.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 391 - 0
public/static/modular/gate/enterprise/talentAllowance/talentAllowanceInfo.js

@@ -0,0 +1,391 @@
+/**
+ * 优秀人才津补贴管理初始化
+ */
+var TalentAllowanceInfo = {
+    id: "TalentAllowanceInfoTable", //表格id
+    seItem: null, //选中的条目
+    table: null,
+    layerIndex: -1
+};
+/**
+ * 检查是否选中
+ */
+TalentAllowanceInfo.check = function () {
+    var selected = $('#' + this.id).bootstrapTable('getSelections');
+    if (selected.length != 1) {
+        Feng.info("请先选中表格中的某一记录!");
+        return false;
+    } else {
+        TalentAllowanceInfo.seItem = selected[0];
+        return true;
+    }
+};
+/**
+ * 点击添加优秀人才津补贴
+ */
+TalentAllowanceInfo.openCheckTalentAllowanceInfo = function () {
+    if (this.check()) {
+        var index = null;
+        var process = $("#process").val();
+        index = layer.open({
+            type: 2,
+            title: '津补贴审核',
+            fix: false, //不固定
+            maxmin: true,
+            content: Feng.ctxPath + '/enterprise/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id,
+            btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-save layui-bg-green"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+            btnAlign: 'c',
+            btn1: function (index, layero) {
+                var obj = layero.find("iframe")[0].contentWindow;
+                obj.TalentAllowanceInfoDlg.showCheckModal();
+            },
+            btn2: function (index, layero) {
+                var obj = layero.find("iframe")[0].contentWindow;
+                obj.TalentAllowanceInfoDlg.submitCheck();
+                return false;
+            },
+            end: function () {
+                layer.closeAll('tips');
+                TalentAllowanceInfo.table.refresh();
+            }
+        });
+        layer.full(index);
+        TalentAllowanceInfo.layerIndex = index;
+    }
+};
+
+/**
+ * 查看
+ */
+TalentAllowanceInfo.select = function () {
+    if (this.check()) {
+        var process = $("#process").val();
+        var url = Feng.ctxPath + '/enterprise/talentAllowance/toSelectPage/id/' + TalentAllowanceInfo.seItem.id;
+        var index = layer.open({
+            type: 2,
+            title: '津补贴查看',
+            fix: false, //不固定
+            maxmin: true,
+            shadeClose: false,
+            content: url,
+            btn: ['<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+            btnAlign: 'c',
+        });
+        layer.full(index);
+        TalentAllowanceInfo.layerIndex = index;
+    }
+}
+
+TalentAllowanceInfo.updateFieldsAndFiles = function () {
+    if (this.check()) {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talentAllowance/findFieldsAndFiles?id=" + TalentAllowanceInfo.seItem.id, function (data) {
+            var obj = data.obj.obj;
+            if (data.code == 200) {
+                layer.open({
+                    type: 1,
+                    id: "neewFieldFormModel",
+                    title: '修改',
+                    area: ['800px', '450px'], //宽高
+                    fix: false, //不固定
+                    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" id="typeChange" class="icheckbox" value="allowanceType"><span>津补贴类型</span></li></ul>\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>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+                    btnAlign: 'c',
+                    zIndex: layer.zIndex,
+                    success: function (layero, index) {
+                        var projectList = data.obj.projects;
+                        var fileList = data.obj.files;
+                        var concatList = data.obj.concats;
+                        var files = data.obj.info.files;
+                        var projects = data.obj.info.projects;
+                        var concats = data.obj.info.concats;
+                        var fields = data.obj.info.fields;
+                        //初始化附件、核查项目、合同
+                        if (projectList != null && projectList.length != 0) {
+                            var html = '<ul>';
+                            for (var key in projectList) {
+                                html = html + '<li style="width: 100%"><input type="checkbox" class="icheckbox" value="' + projectList[key].id + '"><span>' + projectList[key].projectName + '</span></li>';
+                            }
+                            html = html + "</ul>";
+                            $("#field_project").empty().append(html);
+                        }
+                        if (fileList != null && fileList.length != 0) {
+                            var html = '';
+                            for (var key in fileList) {
+                                html = html + '<ul><li style="width: 100%"><input type="checkbox" class="icheckbox" data-type="' + fileList[key].isConditionFile + '" value="' + fileList[key].id + '"><span>' + fileList[key].name + '</span></li></ul>';
+                            }
+                            $("#field_file").empty().append(html);
+                        }
+                        if (concatList != null && concatList.length != 0) {
+                            var html = '';
+                            for (var key in concatList) {
+                                html = html + '<ul><li style="width: 100%"><input type="checkbox" class="icheckbox" value="' + concatList[key].id + '"><span>' + concatList[key].enterpriseName + '</span></li></ul>';
+                            }
+                            $("#field_concat").empty().append(html);
+                        }
+                        TalentAllowanceInfoSupple.initICheck();
+                        if (Feng.isNotEmptyStr(projects)) {
+                            $("#field_project input").each(function () {
+                                if (projects.indexOf($(this).val()) != -1) {
+                                    $(this).iCheck("check");
+                                }
+                            });
+                        }
+                        if (files != null && files != '') {
+                            $("#field_file input").each(function () {
+                                if (files.indexOf($(this).val()) != -1) {
+                                    $(this).iCheck("check");
+                                }
+                            });
+                        }
+                        if (concats != null && concats != '') {
+                            $("#field_concat input").each(function () {
+                                if (concats.indexOf($(this).val()) != -1) {
+                                    $(this).iCheck("check");
+                                }
+                            });
+                        }
+                        if (Feng.isNotEmptyStr(fields)) {
+                            $("#field_field input").each(function () {
+                                if (fields.indexOf($(this).val()) != -1) {
+                                    $(this).iCheck("check");
+                                }
+                            });
+                        }
+                        $("input[type=checkbox][value=allowanceType]").on("ifChanged", function (e) {
+                            var isChecked = $(this).is(":checked") ? "check" : "uncheck";
+                            $("#field_file input").each(function () {
+                                $(this).iCheck(isChecked);
+                            })
+                            $("#field_project input").each(function () {
+                                $(this).iCheck(isChecked);
+                            })
+                        })
+                    },
+                    yes: function (index, layero) {
+                        var projects = '', files = '', concats = '', fields = '';
+                        $("#field_project li input").each(function (index) {
+                            if ($(this).is(":checked")) {
+                                projects = projects + $(this).val() + ",";
+                            }
+                        });
+                        $("#field_file li input").each(function (index) {
+                            if ($(this).is(":checked")) {
+                                files = files + $(this).val() + ",";
+                            }
+                        });
+                        $("#field_concat li input").each(function (index) {
+                            if ($(this).is(":checked")) {
+                                concats = concats + $(this).val() + ",";
+                            }
+                        });
+                        $("#field_field li input").each(function (index) {
+                            if ($(this).is(":checked")) {
+                                fields = fields + $(this).val() + ",";
+                            }
+                        });
+                        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 + "/enterprise/talentAllowance/updateFieldsAndFiles", function (data) {
+                            if (data.code == 200) {
+                                layer.close(index);
+                                Feng.success(data.msg);
+                            } else {
+                                Feng.error(data.msg);
+                            }
+                        }, function (data) {
+                            Feng.error("修改失败!" + data.responseJSON.message + "!");
+                        });
+                        ajax.setData({
+                            "id": TalentAllowanceInfo.seItem.id,
+                            "projects": projects,
+                            "files": files,
+                            "concats": concats,
+                            "fields": fields
+                        })
+                        ajax.start();
+                    }
+                });
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("查询失败!" + data.responseJSON.message + "!");
+        });
+        ajax.start();
+    }
+}
+
+/**
+ * 导出基础信息
+ */
+TalentAllowanceInfo.exportBasicInfo = function () {
+    var process = $("#process").val();
+    var queryData = TalentAllowanceInfo.formParams();
+    queryData['process'] = process;
+    var url = Feng.setUrlParam(Feng.ctxPath + "/enterprise/talentAllowance/exportBasicInfo", queryData);
+    window.hiddenIframe.location.href = url;
+}
+
+/**
+ * 回调
+ */
+TalentAllowanceInfo.callBack = function (data) {
+    if (data.code == 200) {
+        $("#importModal").modal("hide");
+        Feng.success(data.msg);
+    } else {
+        Feng.error(data.msg);
+    }
+}
+/**
+ * 查询表单提交参数对象
+ * @returns {{}}
+ */
+TalentAllowanceInfo.formParams = function () {
+    var queryData = {};
+    queryData['year'] = $("#year").val();
+    queryData['enterpriseName'] = $("#enterpriseName").val();
+    queryData['name'] = $("#name").val();
+    queryData['idCard'] = $("#idCard").val();
+    queryData['talentType'] = $("#talentType").val();
+    queryData['talentArrange'] = $("#talentArrange").val();
+    queryData['address'] = $("#address").val();
+    queryData['identifyCondition'] = $("#identifyCondition").val();
+    queryData['isSupple'] = $("#isSupple").val();
+    queryData['checkState'] = $("#checkState").val();
+    queryData['isPublicCheck'] = $("#isPublicCheck").val();
+    queryData['publicState'] = $("#publicState").val();
+    queryData['allowanceType'] = $("#allowanceType").val();
+    queryData['recommendAllowanceType'] = $("#recommendAllowanceType").val();
+    queryData['companyName'] = $("#companyName").val();
+    queryData['introductionMode'] = $("#introductionMode").val();
+    queryData['firstJJStartTime'] = $("#firstJJStartTime").val();
+    queryData['firstJJEndTime'] = $("#firstJJEndTime").val();
+    return queryData;
+}
+/**
+ * 查询人才认定申报列表
+ */
+TalentAllowanceInfo.search = function () {
+    TalentAllowanceInfo.table.refresh({
+        query: TalentAllowanceInfo.formParams()
+    });
+};
+/**
+ * 重置
+ */
+TalentAllowanceInfo.reset = function () {
+    $("#year").val("");
+    $("#enterpriseName").val("");
+    $("#name").val("");
+    $("#idCard").val("");
+    $("#talentType").val("");
+    $("#talentArrange").val("");
+    $("#address").val("");
+    $("#identifyCondition").val("");
+    $("#isSupple").val("");
+    $("#checkState").val("");
+    $("#isPublicCheck").val("");
+    $("#publicState").val("");
+    $("#recommendAllowanceType").val("");
+    $("#companyName").val("");
+    $("#introductionMode").val("");
+    $("#firstJJStartTime").val("");
+    $("#firstJJEndTime").val("");
+}
+/**
+ * 获取人才认定
+ */
+TalentAllowanceInfo.getIdentifyCondition = function () {
+    var level = $("#talentArrange").val();
+    if (level == null || level == '') {
+        $("#identifyCondition").empty();
+        $("#identifyCondition").trigger('chosen:updated');
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "identifyCondition",
+        "displayCode": "id",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/api/findIdentifyConditionByLevel?level=" + level
+    });
+    $("#identifyCondition").trigger('chosen:updated');
+}
+
+
+$(function () {
+    var process = $("#process").val();
+    var defaultColunms = TalentAllowanceInfoSupple.initColumn(process);
+    var table = new BSTable(TalentAllowanceInfo.id, "/enterprise/talentAllowance/examineList", defaultColunms);
+    table.setPaginationType("server");
+    table.setOnDblClickRow(function () {
+        TalentAllowanceInfo.openCheckTalentAllowanceInfo();
+    });
+    table.setSingleSelect(false);
+    TalentAllowanceInfo.table = table.init();
+    //批量加载字典表数据
+    var arr = [{
+            "name": "address",
+            "code": "street"
+        }, {
+            "name": "talentArrange",
+            "code": "talent_arrange"
+        }, {
+            "name": "nationality",
+            "code": "nationality"
+        }, {
+            "name": "talentType",
+            "code": "talent_type"
+        }, {"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");
+    });
+    $("#identifyCondition").chosen({
+        search_contains: true,
+        //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
+        disable_search: false,
+        width: "100%",
+        enable_split_word_search: true
+    });
+    $('#checkAll').click(function () {
+        $("#dataTable").bootstrapTable('togglePagination').bootstrapTable('checkAll').bootstrapTable('togglePagination');
+    })
+    $('#uncheckAll').click(function () {
+        $("#dataTable").bootstrapTable('togglePagination').bootstrapTable('uncheckAll').bootstrapTable('togglePagination')
+    })
+    $(".time").each(function () {
+        laydate.render({
+            elem: "#" + $(this).attr("id")
+            , type: "date"
+            , trigger: 'click'
+        });
+    });
+});

+ 328 - 0
public/static/modular/gate/enterprise/talentAllowance/talentAllowanceInfo_supple.js

@@ -0,0 +1,328 @@
+var TalentAllowanceInfoSupple = {};
+TalentAllowanceInfoSupple.initColumn = function () {
+    return TalentAllowanceInfoSupple.createColOneAndTwoIC();
+};
+
+TalentAllowanceInfoSupple.createColOneAndTwo = function (process) {
+    return [
+        {field: 'selectItem', radio: true},
+        {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
+        {title: '审核单位', field: 'companyName', visible: (process == 1), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '单位名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
+            formatter(value, row, index) {
+                if (value == 1) {
+                    return "男";
+                }
+                if (value == 2) {
+                    return "女";
+                }
+            }
+        },
+        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"130px"},
+        {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '首次提交时间', field: 'firstSubmitTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
+        {title: '最新提交时间', field: 'newSubmitTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
+        {title: '审核状态', field: 'checkState', visible: (process == 2), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
+            formatter(value, row, index) {
+                if (value == -1) {
+                    return "<span class='label label-warning-light'>审核不通过</span>";
+                }
+                if (process == 1) {
+                    if (value == 1) {
+                        return "<span class='label'>待提交</span>"
+                    }
+                    if (value == 5) {
+                        if (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 1) {
+                            return "<span class='label label-success'>重新提交</span>";
+                        } else {
+                            return "<span class='label label-success'>待审核</span>";
+                        }
+                    }
+                    if (value == 13) {
+                        return "<span class='label label-success'>上级驳回</span>";
+                    }
+                    if (value == 10) {
+                        return "<span class='label label-danger'>已驳回</span>";
+                    }
+                    if (value == 15 || value == 20 || value == 25 || value == 30) {
+                        return "<span class='label label-primary'>已通过</span>";
+                    }
+                } else if (process == 2) {
+                    if (value == 1 || value == 5 || value == 10) {
+                        return "<span class='label label-danger'>已驳回</span>";
+                    }
+                    if (value == 15) {
+                        if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 2) {
+                            return "<span class='label label-success'>重新提交</span>"
+                        } else {
+                            return "<span class='label label-success'>待审核</span>"
+                        }
+                    }
+                    if (value == 20 || value == 30) {
+                        return "<span class='label label-primary'>已通过</span>"
+                    }
+                    if (value == 25) {
+                        return "<span class='label label-success'>上级驳回</span>";
+                    }
+                }
+            }
+        },
+        {title: '审核状态', field: 'depState', visible: (process == 1), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
+            formatter(value, row, index) {
+                if (value == -2) {
+                    return "<span class='label'>待提交</span>";
+                }
+                if (value == -1) {
+                    return "<span class='label label-warning-light'>审核不通过</span>";
+                }
+                if (value == 1) {
+                    return "<span class='label label-success'>待审核</span>";
+                }
+                if (value == 2) {
+                    return "<span class='label label-danger'>已驳回</span>";
+                }
+                if (value == 3) {
+                    return "<span class='label label-primary'>已通过</span>"
+                }
+                if (value == 4) {
+                    return "<span class='label label-success'>上级驳回</span>";
+                }
+                if (value == 9) {
+                    return "<span class='label label-success'>重新提交</span>";
+                }
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
+            }
+        }
+    ];
+}
+
+
+TalentAllowanceInfoSupple.createColThree = function (process) {
+    return [
+        [
+            {field: 'selectItem', radio: true, rowspan: 2, align: 'center', valign: 'middle'},
+            {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2},
+            {title: '单位名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
+            {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "130px", rowspan: 2},
+            {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
+            {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", rowspan: 2},
+            {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
+            {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2,
+                formatter(value, row, index) {
+                    if (value == 1) {
+                        return "男";
+                    }
+                    if (value == 2) {
+                        return "女";
+                    }
+                }
+            },
+            {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
+            {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
+            {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
+            {title: '<span style="color: #682c90">推荐类型</span>', field: 'checkMsg', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
+                cellStyle: function (value, row, index) {
+                    return {
+                        css: {
+                            background: 'blue'
+                        }
+                    }
+                }
+            },
+            {title: '<span style="color: #fe346e;">最终类型</span>', field: 'highProcess', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
+                cellStyle: function (value, row, index) {
+                    return {
+                        css: {
+                            background: '#fe346e'
+                        }
+                    }
+                }
+            },
+            {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2,
+                formatter(value, row, index) {
+                    if (value == -1) {
+                        return "<span class='label label-warning-light'>审核不通过</span>";
+                    }
+                    if (value == 1 || value == 5 || value == 10 || value == 13 || value == 15 || value == 25) {
+                        return "<span class='label label-danger'>已驳回</span>";
+                    }
+                    if (value == 20) {
+                        if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 3) {
+                            return "<span class='label label-success'>重新提交</span>"
+                        } else {
+                            return "<span class='label label-success'>待审核</span>"
+                        }
+                    }
+                    if (value == 30) {
+                        return "<span class='label label-primary'>已通过</span>"
+                    }
+                    if (value == 35) {
+                        return "<span class='label label-success'>公示驳回</span>";
+                    }
+                }
+            },
+            {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px", rowspan: 2,
+                formatter: function (value, row, index) {
+                    return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
+                            "<i class=\"fa fa-book\"></i>日志" +
+                            "</span>";
+                }
+            }
+        ], [
+            // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"150px"},
+            // {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
+            // {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
+            {title: '推荐津补贴类型', field: 'recommendAllowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
+                formatter(value, row, index) {
+                    if (value == null || value == "")
+                        return "<span style='color: black'>未判定</span>";
+                    if (value == 1)
+                        return "<span style='color: green'>工作津贴</span>";
+                    if (value == 2)
+                        return "<span style='color: blue'>一次性交通补贴</span>";
+                    if (value == 3)
+                        return "<span style='color: red'>不予兑现</span>";
+                }
+            },
+            {title: '推荐兑现月份', field: 'recommendMonths', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+            {title: '推荐兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+            {title: '推荐金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+            {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
+                formatter(value, row, index) {
+                    if (value == null || value == "")
+                        return "<span style='color: black'>未判定</span>";
+                    if (value == 1)
+                        return "<span style='color: green'>工作津贴</span>";
+                    if (value == 2)
+                        return "<span style='color: blue'>一次性交通补贴</span>";
+                    if (value == 3)
+                        return "<span style='color: red'>不予兑现</span>";
+                }
+            },
+            {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+            {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+            {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        ]];
+}
+
+TalentAllowanceInfoSupple.createColOneAndTwoIC = function () {
+    return [
+        {field: 'selectItem', radio: true},
+        {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
+        {title: '医院名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
+            formatter(value, row, index) {
+                if (value == 1) {
+                    return "男";
+                }
+                if (value == 2) {
+                    return "女";
+                }
+            }
+        },
+        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle', width: "130px"},
+        {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
+            formatter(value, row, index) {
+                if (value == -1) {
+                    return "<span class='label label-warning-light'>审核不通过</span>";
+                }
+                if (value == 1) {
+                    return "<span class='label'>待提交</span>"
+                }
+                if (value == 5) {
+                    if (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 1) {
+                        return "<span class='label label-success'>重新提交</span>";
+                    } else {
+                        return "<span class='label label-success'>待审核</span>";
+                    }
+                }
+                if (value == 23) {
+                    return "<span class='label label-success'>上级驳回</span>";
+                }
+                if (value == 10) {
+                    return "<span class='label label-danger'>已驳回</span>";
+                }
+                if (value == 13) {
+                    return "<span class='label label-danger'>上级驳回</span>";
+                }
+                if (value == 15 || value == 20 || value == 30) {
+                    return "<span class='label label-primary'>已通过</span>";
+                }
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
+            }
+        }
+    ];
+}
+
+
+/**
+ * 显示审核日志
+ */
+TalentAllowanceInfoSupple.showLog = function (id) {
+    layer.open({
+        type: 1,
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
+        area: ['80%', '80%'],
+        maxmin: true,
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": CONFIG.project_jbt, "mainId": id, "typeFileId": "", "active": 1})
+        }
+    });
+}
+
+//全选
+TalentAllowanceInfoSupple.checkAll = function (id) {
+    $("#" + id + " input").each(function () {
+        $(this).iCheck("check");
+    })
+}
+//反选
+TalentAllowanceInfoSupple.unCheckAll = function (id) {
+    $("#" + id + " input").each(function () {
+        if (this.checked) {
+            $(this).iCheck("uncheck");
+        } else {
+            $(this).iCheck("check");
+        }
+    })
+}
+
+TalentAllowanceInfoSupple.initICheck = function () {
+    $('.icheckbox').iCheck({
+        labelHover: false,
+        cursor: true,
+        checkboxClass: 'icheckbox_square-green',
+        radioClass: 'iradio_square-greene',
+        increaseArea: '20%'
+    });
+}

+ 7 - 0
public/static/modular/gate/talentAllowance/ic/talentAllowanceInfoIC.js

@@ -55,6 +55,9 @@ TalentAllowanceInfo.initColumn = function () {
                     case 1:
                         html = "<span class='label'>待提交</span>"
                         break;
+                    case 3:
+                        html = "<span class='label label-success''>待总院审核</span>"
+                        break;
                     case 5:
                     case 13:
                     case 15:
@@ -63,6 +66,10 @@ TalentAllowanceInfo.initColumn = function () {
                     case 35:
                         html = "<span class='label label-success'>审核中</span>";
                         break;
+                    case 8:
+                        html = "<span class='label label-danger'>总院驳回</span>"
+                        break;
+                    case 9:
                     case 10:
                         html = "<span class='label label-danger'>已驳回</span>"
                         break;