Browse Source

增加一些提交

sandm 2 years ago
parent
commit
2b933460f8

+ 78 - 0
app/admin/controller/Company.php

@@ -0,0 +1,78 @@
+<?php
+
+namespace app\admin\controller;
+
+use app\admin\common\AdminController;
+use app\common\api\CompanyApi;
+
+/**
+ * Description of Company
+ *
+ * @author sgq
+ */
+class Company extends AdminController {
+
+    /**
+     * @auth {{/company}}
+     * @return type
+     */
+    function index() {
+        return view();
+    }
+
+    /**
+     * @auth {{/company/list}}
+     * @return type
+     */
+    function list() {
+        $result = CompanyApi::getList($this->request->param());
+        return json($result);
+    }
+
+    /**
+     * @auth {{/company/add}}
+     * @return type
+     */
+    function add() {
+        if ($this->request->isPost()) {
+            CompanyApi::edit($this->request->param());
+            return json(["code" => 200, "msg" => "添加单位成功"]);
+        }
+        return view();
+    }
+
+    /**
+     * @auth {{/company/update}}
+     * @return type
+     */
+    function edit() {
+        if ($this->request->isPost()) {
+            CompanyApi::edit($this->request->param());
+            return json(["code" => 200, "msg" => "编辑单位成功"]);
+        }
+        $id = $this->request->param("id");
+        $info = CompanyApi::getOne($id);
+        return view("", ["info" => $info]);
+    }
+
+    /**
+     * @auth {{/company/delete}}
+     * @return type
+     */
+    function delete() {
+        $id = $this->request->param("id");
+        CompanyApi::delete($id);
+        return json(["code" => 200, "msg" => "删除成功"]);
+    }
+
+    /**
+     * @auth {{/company/select}}
+     * @return type
+     */
+    function view() {
+        $id = $this->request->param("id");
+        $info = CompanyApi::getOne($id);
+        return view("", ["info" => $info]);
+    }
+
+}

+ 116 - 0
app/admin/controller/TalentCondition.php

@@ -0,0 +1,116 @@
+<?php
+
+namespace app\admin\controller;
+
+use app\admin\common\AdminController;
+use app\common\api\TalentConditionApi;
+use think\facade\Db;
+
+/**
+ * Description of TalentCondition
+ *
+ * @author sgq
+ */
+class TalentCondition extends AdminController {
+
+    /**
+     * @auth {{/identifyCondition}}
+     * @return type
+     */
+    function index() {
+        return view();
+    }
+
+    /**
+     * @auth {{/identifyCondition/list}}
+     * @return type
+     */
+    function list() {
+        $result = TalentConditionApi::getListByCondition($this->request->param());
+        return json($result);
+    }
+
+    /**
+     * @auth {{/identifyCondition/add}}
+     * @return type
+     */
+    function add() {
+        if ($this->request->isPost()) {
+            TalentConditionApi::edit($this->request->param());
+            return json(["code" => 200, "msg" => "添加认定条件成功"]);
+        }
+        return view();
+    }
+
+    /**
+     * @auth {{/identifyCondition/update}}
+     * @return type
+     */
+    function edit() {
+        if ($this->request->isPost()) {
+            TalentConditionApi::edit($this->request->param());
+            return json(["code" => 200, "msg" => "编辑认定条件成功"]);
+        }
+        $id = $this->request->param("id");
+        $info = TalentConditionApi::getOne($id);
+        return view("", ["info" => $info]);
+    }
+
+    /**
+     * @auth {{/identifyCondition/delete}}
+     * @return type
+     */
+    function delete() {
+        $id = $this->request->param("id");
+        TalentConditionApi::delete($id);
+        return json(["code" => 200, "msg" => "删除成功"]);
+    }
+
+    /**
+     * @auth {{/identifyCondition/import}}
+     */
+    function import() {
+        ignore_user_abort(true);
+        set_time_limit(0);
+        if (!$this->request->file())
+            return json(["msg" => "没有选择文件"]);
+        $excel = $this->request->file("file");
+
+        if (!isExcelFile($excel->getMime()))
+            return json(["msg" => "不是正确的Excel文件"]);
+        $mapping = [
+            0 => "type",
+            1 => "talentLevel",
+            2 => "name",
+            3 => "activeYear",
+            4 => "description"
+        ];
+
+        $path = $excel->getRealPath();
+        $datas = getExcelDatas($path);
+        $datas = array_slice($datas, 1); //去标题
+        $inserts = [];
+        while ($row = array_shift($datas)) {
+            $cols = count($row);
+            $companyIds = [];
+            $new = [];
+            for ($i = 0; $i < $cols; $i++) {
+                if ($i < count($mapping)) {
+                    $new[$mapping[$i]] = $row[$i];
+                } else {
+                    $companyIds[] = $row[$i];
+                }
+            }
+            $new["companyIds"] = $companyIds ? implode(",", $companyIds) : null;
+            $new["createTime"] = date("Y-m-d H:i:s");
+            $inserts[] = $new;
+        }
+        $chunks = array_chunk($inserts, 200);
+        foreach ($chunks as $chunk) {
+            Db::table("new_talent_condition")->insertAll($chunk);
+        }
+        $data = ["code" => 200, "msg" => "导入成功"];
+        echo sprintf('<script>parent.IdentifyCondition.callBack(%s);</script>', json_encode($data));
+    }
+
+}

+ 63 - 0
app/admin/view/company/add.html

@@ -0,0 +1,63 @@
+{extend name="layout/content"}
+{block name="content"}
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <form id="companyInfoForm">
+            <div class="form-horizontal">
+                <input type="hidden" id="id" name="id"/>
+                <div class="row">
+                    <div class="col-sm-6 ">
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">单位全称</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="name" name="name" type="text" data-bv-field="name"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="name"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="name" data-bv-result="NOT_VALIDATED">单位名称不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">社会信用代码</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="code" name="code" type="text" data-bv-field="code"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="code"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="code" data-bv-result="NOT_VALIDATED">社会信用代码不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group">
+                            <label class="col-sm-3 control-label">备注</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="description" name="description" type="text">
+                            </div>
+                        </div>
+                    </div>
+                    <div class="col-sm-6">
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">单位简称</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="shortName" name="shortName" type="text" data-bv-field="shortName"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="shortName"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="shortName" data-bv-result="NOT_VALIDATED">单位简称不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">排序</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="sn" name="sn" type="text" data-bv-field="sn"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="sn"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="sn" data-bv-result="NOT_VALIDATED">排序不能为空</small>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="row btn-group-m-t">
+                    <div class="col-sm-12" style="text-align: center">
+                        <button type="button" class="btn btn-sm btn-info " onclick="CompanyInfoDlg.addSubmit()" id="ensure">
+                            <i class="fa fa-check"></i>&nbsp;提交
+                        </button>
+                        <button type="button" class="btn btn-sm btn-danger " onclick="CompanyInfoDlg.close()" id="cancel">
+                            <i class="fa fa-eraser"></i>&nbsp;取消
+                        </button>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<script src="/static/modular/system/company/company_info.js"></script>
+{/block}

+ 63 - 0
app/admin/view/company/edit.html

@@ -0,0 +1,63 @@
+{extend name="layout/content"}
+{block name="content"}
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <form id="companyInfoForm">
+            <div class="form-horizontal">
+                <div class="row">
+                    <div class="col-sm-6 ">
+                        <input type="hidden" id="id" name="id" value="{$info.id}">
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">单位全称</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="name" name="name" value="{$info.name}" type="text" data-bv-field="name"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="name"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="name" data-bv-result="NOT_VALIDATED">单位名称不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">社会信用代码</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="code" name="code" value="{$info.code}" type="text" data-bv-field="code"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="code"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="code" data-bv-result="NOT_VALIDATED">社会信用代码不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group">
+                            <label class="col-sm-3 control-label">备注</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="description" name="description" value="{$info.description}" type="text">
+                            </div>
+                        </div>
+                    </div>
+                    <div class="col-sm-6">
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">单位简称</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="shortName" name="shortName" value="{$info.shortName}" type="text" data-bv-field="shortName"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="shortName"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="shortName" data-bv-result="NOT_VALIDATED">单位简称不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">排序</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="sn" name="sn" value="{$info.sn}" type="text" data-bv-field="sn"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="sn"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="sn" data-bv-result="NOT_VALIDATED">排序不能为空</small>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="row btn-group-m-t">
+                    <div class="col-sm-12" style="text-align: center">
+                        <button type="button" class="btn btn-sm btn-info " onclick="CompanyInfoDlg.editSubmit()" id="ensure">
+                            <i class="fa fa-check"></i>&nbsp;提交
+                        </button>
+                        <button type="button" class="btn btn-sm btn-danger " onclick="CompanyInfoDlg.close()" id="cancel">
+                            <i class="fa fa-eraser"></i>&nbsp;取消
+                        </button>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<script src="/static/modular/system/company/company_info.js"></script>
+{/block}

+ 74 - 0
app/admin/view/company/index.html

@@ -0,0 +1,74 @@
+{extend name="layout/content"}
+{block name="content"}
+<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">
+                        <div class="row">
+                            <div class="col-sm-4">
+                                <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-4">
+                                <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="code" placeholder="">
+                                </div>
+                            </div>
+                            <div class="col-sm-4">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Company.search()">
+                                    <i class="fa fa-search"></i>&nbsp;搜索
+                                </button>
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Company.reset()">
+                                    <i class="fa fa-trash"></i>&nbsp;重置
+                                </button>
+                            </div>
+                        </div>
+                        <div class="hidden-xs" id="CompanyTableToolbar" role="group">
+                            <if condition="chkCommission('/admin/company/add','/company/add')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Company.openAddCompany()">
+                                    <i class="fa fa-plus"></i>&nbsp;添加
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/company/edit','/company/update')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Company.openCompanyDetail()">
+                                    <i class="fa fa-edit"></i>&nbsp;修改
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/company/view','/company/select')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Company.select()">
+                                    <i class="fa fa-book"></i>&nbsp;查看
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/company/delete','/company/delete')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Company.delete()">
+                                    <i class="fa fa-remove"></i>&nbsp;删除
+                                </button>
+                            </if>
+                        </div>
+                        <table id="CompanyTable" class="table-condensed" style="font-size: 10px;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>
+<script src="/static/modular/system/company/company.js"></script>
+{/block}

+ 60 - 0
app/admin/view/company/view.html

@@ -0,0 +1,60 @@
+{extend name="layout/content"}
+{block name="content"}
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <form id="companyInfoForm">
+            <div class="form-horizontal">
+                <div class="row">
+                    <div class="col-sm-6 ">
+                        <input type="hidden" id="id" name="id" value="{$info.id}">
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">单位全称</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="name" name="name" value="{$info.name}" type="text" data-bv-field="name"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="name"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="name" data-bv-result="NOT_VALIDATED">单位名称不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">社会信用代码</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="code" name="code" value="{$info.code}" type="text" data-bv-field="code"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="code"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="code" data-bv-result="NOT_VALIDATED">社会信用代码不能为空</small></div>
+                        </div>
+                        <div class="form-group">
+                            <label class="col-sm-3 control-label">备注</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="description" name="description" value="{$info.description}" type="text">
+
+                            </div>
+                        </div>
+                    </div>
+                    <div class="col-sm-6">
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">单位简称</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="shortName" name="shortName" value="{$info.shortName}" type="text" data-bv-field="shortName"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="shortName"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="shortName" data-bv-result="NOT_VALIDATED">单位简称不能为空</small>
+                            </div>
+                        </div>
+                        <div class="form-group has-feedback">
+                            <label class="col-sm-3 control-label">排序</label>
+                            <div class="col-sm-9">
+                                <input class="form-control" id="sn" name="sn" value="{$info.sn}" type="text" data-bv-field="sn"><i style="display: none;" class="form-control-feedback" data-bv-icon-for="sn"></i>
+                                <small style="display: none;" class="help-block" data-bv-validator="notEmpty" data-bv-for="sn" data-bv-result="NOT_VALIDATED">排序不能为空</small>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="row btn-group-m-t">
+                    <div class="col-sm-12" style="text-align: center">
+                        <button type="button" class="btn btn-sm btn-danger " onclick="CompanyInfoDlg.close()" id="cancel">
+                            <i class="fa fa-eraser"></i>&nbsp;取消
+                        </button>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<script src="/static/modular/system/company/company_info.js"></script>
+{/block}

+ 76 - 0
app/admin/view/talent_condition/add.html

@@ -0,0 +1,76 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <form id="identifyConditionInfoForm">
+                    <div class="col-sm-12 ">
+                        <input id="id" name="id" type="hidden"/>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">人才类别</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="type" name="type">
+                                    <option value="">请选择</option>
+                                    <option value="1">晋江市优秀人才</option>
+                                    <option value="2">集成电路优秀人才</option>
+                                </select>
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">人才层次</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="talentLevel" name="talentLevel">
+                                </select>
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">名称</label>
+                            <div class="col-sm-4 spacing">
+                                <input class="form-control" id="name" name="name">
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">审核单位</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="companyIds" name="companyIds" data-placeholder="请选择审核单位" multiple>
+                                </select>
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">启用状态</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="active" name="active">
+                                    <option value="1">启用</option>
+                                    <option value="2">停用</option>
+                                </select>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="row btn-group-m-t">
+                <div class="col-sm-12" style="text-align: center;">
+                    <button type="button" class="btn btn-sm btn-info " onclick="IdentifyConditionInfoDlg.addSubmit()" id="ensure">
+                        <i class="fa fa-check"></i>&nbsp;提交
+                    </button>
+                    <button type="button" class="btn btn-sm btn-danger " onclick="IdentifyConditionInfoDlg.close()" id="cancel">
+                        <i class="fa fa-eraser"></i>&nbsp;取消
+                    </button>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!--<script src="${ctxPath}/static/modular/talentIdentify/identifyCondition/identifyCondition_info.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/talentIdentify/identifyCondition/identifyCondition_info.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 78 - 0
app/admin/view/talent_condition/edit.html

@@ -0,0 +1,78 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <form id="identifyConditionInfoForm">
+                    <div class="col-sm-12 ">
+                        <input id="id" name="id" value="{$info.id}" type="hidden"/>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">人才类别</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="type" name="type" selectVal="{$info.type}">
+                                    <option value="">请选择</option>
+                                    <option value="1">晋江市优秀人才</option>
+                                    <option value="2">集成电路优秀人才</option>
+                                </select>
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">人才层次</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="talentLevel" name="talentLevel" selectVal="{$info.talentLevel}">
+                                </select>
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">名称</label>
+                            <div class="col-sm-4 spacing">
+                                <input class="form-control" id="name" name="name" value="{$info.name}">
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">审核单位</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="companyIds" name="companyIds" selectVal="{$info.companyIds}" data-placeholder="请选择审核单位" multiple>
+                                </select>
+                            </div>
+                        </div>
+                        <div class="rowGroup">
+                            <label class="col-sm-2 control-label spacing">启用状态</label>
+                            <div class="col-sm-4 spacing">
+                                <select class="form-control" id="active" name="active" selectVal="{$info.active}">
+                                    <option value="1">启用</option>
+                                    <option value="2">停用</option>
+                                </select>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="row btn-group-m-t">
+                <div class="col-sm-12" style="text-align: center;">
+                    <div class="col-sm-12" style="text-align: center;">
+                        <button type="button" class="btn btn-sm btn-info " onclick="IdentifyConditionInfoDlg.editSubmit()" id="ensure">
+                            <i class="fa fa-check"></i>&nbsp;提交
+                        </button>
+                        <button type="button" class="btn btn-sm btn-danger " onclick="IdentifyConditionInfoDlg.close()" id="cancel">
+                            <i class="fa fa-eraser"></i>&nbsp;取消
+                        </button>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!--<script src="${ctxPath}/static/modular/talentIdentify/identifyCondition/identifyCondition_info.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/talentIdentify/identifyCondition/identifyCondition_info.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 151 - 0
app/admin/view/talent_condition/index.html

@@ -0,0 +1,151 @@
+{extend name="layout/content"}
+{block name="content"}
+<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">
+                        <div class="row">
+                            <input type="hidden" id="userType" value="${user.type}">
+                            <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="type">
+                                        <option value=""></option>
+                                        <option value="1">晋江市优秀人才</option>
+                                        <option value="2">集成电路优秀人才</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="talentLevel">
+                                    </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="active">
+                                        <option value=""></option>
+                                        <option value="1">启用</option>
+                                        <option value="2">停用</option>
+
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.search()">
+                                    <i class="fa fa-search"></i>&nbsp;搜索
+                                </button>
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.reset()">
+                                    <i class="fa fa-trash"></i>&nbsp;重置
+                                </button>
+
+                            </div>
+                        </div>
+                        <div class="hidden-xs" id="IdentifyConditionTableToolbar" role="group">
+                            <if condition="chkCommission('/admin/talent_condition/add','/identifyCondition/add')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.openAddIdentifyCondition()">
+                                    <i class="fa fa-plus"></i>&nbsp;添加
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/talent_condition/add','/identifyCondition/update')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.openIdentifyConditionDetail()">
+                                    <i class="fa fa-edit"></i>&nbsp;修改
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/talent_condition/delete','/identifyCondition/delete')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.delete()">
+                                    <i class="fa fa-remove"></i>&nbsp;删除
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/talent_condition/exportTemplate','/identifyCondition/importTemplate')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.download()">
+                                    <i class="fa fa-file-excel-o"></i>&nbsp;导入模板
+                                </button>
+                            </if>
+                            <if condition="chkCommission('/admin/talent_condition/import','/identifyCondition/import')">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="IdentifyCondition.import()">
+                                    <i class="fa fa-external-link"></i>&nbsp;导入
+                                </button>
+                            </if>
+                        </div>
+                        <table id="IdentifyConditionTable" class="table-condensed" style="font-size: 10px;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>
+<!--核查征信导入模态框-->
+<div class="modal fade " id="importModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
+    <div class="modal-dialog" role="document">
+        <div class="modal-content animated flipInY">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+                <h4 class="modal-title" id="importModalLabel">认定条件导入</h4>
+            </div>
+            <div class="modal-body">
+                <form id="import-form" action="/admin/talent_condition/import" method="post" enctype="multipart/form-data" target="hiddenIframe">
+                    <input type="file" id="file" name="file" onchange="$('#fileName').val($('#file').val());" class="hidden">
+                    <div class="form-group row">
+                        <div class="col-sm-1"></div>
+                        <div class="col-sm-11">
+                            <div class="input-group">
+                                <input type="text" class="form-control" id="fileName" name="fileName" placeholder="请选择需要上传的附件" readonly="readonly" >
+                                <span class="input-group-btn">
+                                    <button class="btn btn-secondary" type="button" onclick="$('#file').click()"><i class="fa fa-search"></i>选择文件</button>
+                                </span>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-primary" onclick="IdentifyCondition.importSubmit()">提交</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<!--<script src="${ctxPath}/static/modular/talentIdentify/identifyCondition/identifyCondition.js"></script>-->
+
+<script type="text/javascript">
+    document.write('<script src="/static/modular/talentIdentify/identifyCondition/identifyCondition.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 59 - 0
app/common/api/CompanyApi.php

@@ -0,0 +1,59 @@
+<?php
+
+namespace app\common\api;
+
+use app\common\model\Company;
+
+/**
+ * Description of CompanyApi
+ *
+ * @author sgq
+ */
+class CompanyApi {
+
+    public static function getOne($id) {
+        return Company::findOrEmpty($id)->toArray();
+    }
+
+    public static function getList($params) {
+        $order = $params["order"] ?: "desc";
+        $offset = $params["offset"] ?: 0;
+        $limit = $params["limit"] ?: 10;
+        $where[] = ["delete", "=", 0];
+        if ($params["name"]) {
+            $where[] = ["name", "like", "%" . $params["name"] . "%"];
+        }
+        if ($params["code"]) {
+            $where[] = ["code", "=", $params["code"]];
+        }
+        $count = Company::where($where)->count();
+        $list = Company::where($where)->limit($offset, $limit)->order("sn " . $order)->select()->toArray();
+        return ["total" => $count, "rows" => $list];
+    }
+
+    public static function edit($params) {
+        if ($params["id"]) {
+            $data["id"] = $params["id"];
+            $data["updateTime"] = date("Y-m-d H:i:s");
+            $data["updateUser"] = session("user")["uid"];
+        } else {
+            $data["createTime"] = date("Y-m-d H:i:s");
+            $data["createUser"] = session("user")["uid"];
+        }
+        $data["name"] = $params["name"];
+        $data["shortName"] = $params["shortName"];
+        $data["code"] = $params["code"];
+        $data["sn"] = $params["sn"];
+        $data["description"] = $params["description"];
+        return Company::update($data);
+    }
+
+    public static function delete($id) {
+        $data["id"] = $id;
+        $data["delete"] = 1;
+        $data["updateUser"] = session("user")["uid"];
+        $data["updateTime"] = date("Y-m-d H:i:s");
+        return Company::update($data);
+    }
+
+}

+ 79 - 0
app/common/api/TalentConditionApi.php

@@ -0,0 +1,79 @@
+<?php
+
+namespace app\common\api;
+
+use app\common\model\TalentCondition;
+
+/**
+ * Description of TalentConditionApi
+ *
+ * @author sgq
+ */
+class TalentConditionApi {
+
+    public static function getList($lv, $type) {
+        $where[] = ["talentLevel", "=", $lv];
+        $where[] = ["type", "=", $type];
+        $where[] = ["active", "=", 1];
+        $where[] = ["delete", "=", 0];
+        return TalentCondition::where($where)->select()->toArray();
+    }
+
+    public static function getOne($id) {
+        return TalentCondition::findOrEmpty($id)->toArray();
+    }
+
+    public static function edit($params) {
+        if ($params["id"]) {
+            $data["id"] = $params["id"];
+        }
+        $data["type"] = $params["type"];
+        $data["talentLevel"] = $params["talentLevel"];
+        $data["companyIds"] = $params["companyIds"];
+        $data["name"] = $params["name"];
+        $data["active"] = $params["active"];
+        return TalentCondition::update($data);
+    }
+
+    public static function delete($id) {
+        $data["id"] = $id;
+        $data["delete"] = 1;
+        $data["updateUser"] = session("user")["uid"];
+        $data["updateTime"] = date("Y-m-d H:i:s");
+        return TalentCondition::update($data);
+    }
+
+    public static function getListByCondition($params) {
+        $order = $params["order"] ?: "desc";
+        $offset = $params["offset"] ?: 0;
+        $limit = $params["limit"] ?: 10;
+        $talent_arrange_kvs = DictApi::selectByParentCode("talent_arrange");
+        $companys = \app\common\model\Company::column("name", "id");
+        $where[] = ["delete", "=", 0];
+        if ($params["name"]) {
+            $where[] = ["name", "like", "%" . $params["name"] . "%"];
+        }
+        if ($params["type"]) {
+            $where[] = ["type", "=", $params["type"]];
+        }
+        if ($params["talentLevel"]) {
+            $where[] = ["talentLevel", "=", $params["talentLevel"]];
+        }
+        if ($params["active"]) {
+            $where[] = ["active", "=", $params["active"]];
+        }
+        $count = TalentCondition::where($where)->count();
+        $list = TalentCondition::where($where)->limit($offset, $limit)->order("createTime " . $order)->select()->toArray();
+        foreach ($list as &$item) {
+            $item["talentLevel"] = $talent_arrange_kvs[$item["talentLevel"]];
+            $company_ids = array_filter(explode(",", $item["companyIds"]));
+            $tmp_companys = [];
+            for ($i = 0; $i < count($company_ids); $i++) {
+                $tmp_companys[] = $companys[$company_ids[$i]];
+            }
+            $item["companyNames"] = implode(",", $tmp_companys);
+        }unset($item);
+        return ["total" => $count, "rows" => $list];
+    }
+
+}

+ 89 - 0
app/common/api/TalentLogApi.php

@@ -0,0 +1,89 @@
+<?php
+
+namespace app\common\api;
+
+use app\common\model\TalentLog;
+
+/**
+ * Description of TalentLogApi
+ *
+ * @author sgq
+ */
+class TalentLogApi {
+
+    public static function getList($type, $mainId, $active = 1) {
+        $where[] = ["type", "=", $type];
+        $where[] = ["mainId", "=", $mainId];
+        $where[] = ["active", "=", $active];
+        return $list = TalentLog::where($where)->order("createTime desc")->select()->toArray();
+    }
+
+    public static function getLastLog($mainId, $type, $companyId = 0) {
+        $where = [];
+        $where[] = ["mainId", "=", $mainId];
+        $where[] = ["type", "=", $type];
+        $where[] = ["typeFileId", "null"];
+        if ($companyId) {
+            $where[] = ["companyId", "=", $companyId];
+        }
+        $last_log = TalentLog::where($where)->order("createTime desc")->findOrEmpty()->toArray();
+        return $last_log;
+    }
+
+    public static function getListLogByTime($id, $time) {
+        $where = [];
+        $where[] = ["mainId", "=", $id];
+        $where[] = ["createTime", ">=", $time];
+        $list = TalentLog::where($where)->order("createTime desc")->select()->toArray();
+        return $list;
+    }
+
+    public static function write($type, $mainId, $state = [], $description = "", $active = 0, $fileType = null) {
+        $user = session("user");
+        $last_log = self::getLastLog($mainId, $type);
+        $log["last_state"] = $last_log["state"] ?: 0;
+        $log["id"] = getStringId();
+        if (is_array($state)) {
+            $log["state"] = $state[0];
+            $log["new_state"] = $state[1];
+        } else {
+            $log["state"] = $log["new_state"] = $state;
+        }
+        $log["type"] = $type;
+        $log["mainId"] = $mainId;
+        $log["typeFileId"] = $fileType;
+        $log["companyId"] = $user["companyId"];
+        $log["active"] = $active;
+        $log["description"] = $description;
+        $log["createUser"] = sprintf("%s(%s)", $user["account"], $user["companyName"] ?: $user["rolename"]);
+        $log["createTime"] = date("Y-m-d H:i:s");
+        return TalentLog::create($log);
+    }
+
+    public static function rewrite($id, $state = [], $description = "", $active = 0) {
+        $user = session("user");
+        if (is_array($state)) {
+            $log["state"] = $state[0];
+            $log["new_state"] = $state[1];
+        } else {
+            $log["state"] = $log["new_state"] = $state;
+        }
+        $log["id"] = $id;
+        $log["companyId"] = $user["companyId"];
+        $log["active"] = $active;
+        $log["description"] = $description;
+        $log["updateUser"] = sprintf("%s(%s)", $user["account"], $user["companyName"] ?: $user["rolename"]);
+        $log["updateTime"] = date("Y-m-d H:i:s");
+        return TalentLog::update($log);
+    }
+
+    public static function setActive($id, $value) {
+        $user = session("user");
+        $data["id"] = $id;
+        $data["active"] = $value;
+        $data["updateUser"] = sprintf("%s(%s)", $user["account"], $user["rolename"]);
+        $data["updateTime"] = date("Y-m-d H:i:s");
+        return TalentLog::update($data);
+    }
+
+}

+ 28 - 0
app/common/api/TalentState.php

@@ -0,0 +1,28 @@
+<?php
+
+namespace app\common\api;
+
+/**
+ * 人才申报状态
+ *
+ * @author sgq
+ */
+class TalentState {
+
+    public const FST_SAVE = 1; //保存未提交
+    public const FST_SUBMIT = 2; //已提交未审核
+    public const BASE_VERIFY_PASS = 3; //已审核
+    public const BASE_REJECT = 4; //驳回
+    public const SCND_SAVE = 5; //保存补充材料未提交
+    public const SCND_SUBMIT = 6; //提交补充材料进入初审
+    public const FST_VERIFY_PASS = 7; //初审通过
+    public const FST_VERIFY_REJECT = 8; //初审驳回
+    public const DEPT_VERIFY_PASS = 9; //部门审核通过
+    public const DEPT_VERIFY_REJECT = 10; //部门审核驳回
+    public const REVERIFY_PASS = 11; //复核通过
+    public const REVERIFY_REJECT = 12; //复核驳回
+    public const REVERIFY_FAIL = 13; //复核失败
+    public const BASE_VERIFY_FAIL = -1; //条件验证失败
+    public const FST_VERIFY_FAIL = -2; //初审失败
+
+}

+ 115 - 0
app/common/api/VerifyApi.php

@@ -0,0 +1,115 @@
+<?php
+
+namespace app\common\api;
+
+use app\enterprise\model\Talent;
+use app\common\api\DictApi;
+use app\admin\model\Enterprise;
+use think\facade\Db;
+
+/**
+ * Description of VerifyApi
+ *
+ * @author sgq
+ */
+class VerifyApi {
+
+    public static function getTalentInfoById($id) {
+        $where = [];
+        $where[] = ["id", "=", $id];
+        $info = Talent::findOrEmpty($id)->toArray();
+        if ($info) {
+            if ($info["talent_type"]) {
+                $info["talentTypeName"] = DictApi::selectByParentCode("talent_type")[$info["talent_type"]];
+            }
+            if ($info["nationality"]) {
+                $info["nationalityName"] = DictApi::selectByParentCode("nationality")[$info["nationality"]];
+            }
+            if ($info["nation"]) {
+                $info["nationName"] = DictApi::selectByParentCode("nation")[$info["nation"]];
+            }
+            if ($info["politics"]) {
+                $info["politicsName"] = DictApi::selectByParentCode("politics")[$info["politics"]];
+            }
+            if ($info["province"]) {
+                $info["provinceName"] = Db::table("un_common_location")->where("code", "=", $info["province"])->findOrEmpty()["name"];
+            }
+            if ($info["city"]) {
+                $info["cityName"] = Db::table("un_common_location")->where("code", "=", $info["city"])->findOrEmpty()["name"];
+            }
+            if ($info["county"]) {
+                $info["countyName"] = Db::table("un_common_location")->where("code", "=", $info["county"])->findOrEmpty()["name"];
+            }
+            $enterprise = Enterprise::findOrEmpty($info["enterprise_id"])->toArray();
+            $info["enterpriseName"] = $enterprise["name"];
+            if ($enterprise["street"]) {
+                $info["street"] = $enterprise["street"];
+                $info["streetName"] = DictApi::selectByParentCode("street")[$enterprise["street"]];
+            }
+            if ($enterprise["industryFieldNew"]) {
+                $info["industryFieldName"] = DictApi::selectByParentCode("industry_field")[$enterprise["industryFieldNew"]];
+            }
+            if ($enterprise["enterpriseTag"]) {
+                $info["enterpriseTagName"] = DictApi::selectByParentCode("enterprise_tag")[$enterprise["enterpriseTag"]];
+            }
+            if ($info["headimgurl"]) {
+                $info["headimgurl"] = "/storage/" . $info["headimgurl"];
+            }
+
+            if ($info["talent_arrange"]) {
+                $info["talentArrangeName"] = DictApi::selectByParentCode("talent_arrange")[$info["talent_arrange"]];
+            }
+            if ($info["import_way"]) {
+                $info["importWayName"] = DictApi::selectByParentCode("import_way")[$info["import_way"]];
+            }
+            if ($info["source"]) {
+                $info["sourceName"] = DictApi::selectByParentCode("source")[$info["source"]];
+            }
+            if ($info["highest_degree"]) {
+                $info["highestDegreeName"] = DictApi::selectByParentCode("highest_degree")[$info["highest_degree"]];
+            }
+            if ($info["talent_condition"]) {
+                $info["talentConditionName"] = \app\common\model\TalentCondition::findOrEmpty($info["talent_condition"])["name"];
+            }
+        }
+        return $info;
+    }
+
+    public static function getOne($id) {
+        return Talent::findOrEmpty($id);
+    }
+
+    public static function getList($request) {
+        $where = [];
+        $order = trim($request->param("order")) ?: "desc";
+        $offset = trim($request->param("offset")) ?: 0;
+        $limit = trim($request->param("limit")) ?: 10;
+
+        $process = $request->param("process");
+        switch ($process) {
+            case 1:
+                $where[] = ["ti.checkState", "=", 3];
+                break;
+            case 2:
+                $where[] = ["ti.checkState", "=", 6];
+                break;
+            case 3:
+                $where[] = ["ti.checkState", "=", 7];
+                break;
+            case 4:
+                $where[] = ["ti.checkState", "=", 6];
+                break;
+        }
+        $enterprise_tag_kvs = DictApi::selectByParentCode("enterprise_tag");
+        $count = Talent::alias("ti")->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")->where($where)->count();
+        $list = Talent::alias("ti")->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
+                ->where($where)->limit($offset, $limit)->order("ti.createTime " . $order)->select()->toArray();
+        foreach ($list as &$item) {
+            $item["enterprise_name"] = $item["agentName"];
+            $item["talent_type"] = $item["type"] == 1 ? "晋江优秀人才" : "集成电路优秀人才";
+            $item["enterprise_tag"] = $enterprise_tag_kvs[$item["enterpriseTag"]];
+        }unset($item);
+        return ["total" => $count, "rows" => $list];
+    }
+
+}

+ 16 - 0
app/common/model/Company.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+/**
+ * Description of Company
+ *
+ * @author sgq
+ */
+class Company extends Model {
+
+    protected $table = "sys_company";
+
+}

+ 16 - 0
app/common/model/TalentCondition.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+/**
+ * Description of TalentCondition
+ *
+ * @author sgq
+ */
+class TalentCondition extends Model {
+
+    protected $table = "new_talent_condition";
+
+}

+ 16 - 0
app/common/model/TalentLog.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace app\common\model;
+
+use think\model;
+
+/**
+ * Description of TalentLog
+ *
+ * @author sgq
+ */
+class TalentLog extends model {
+
+    protected $table = "new_talent_checklog";
+
+}

+ 325 - 0
app/enterprise/view/talent/add.html

@@ -0,0 +1,325 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    #talentInfoForm label {
+        font-size: xx-small;
+    }
+    .has-feedback .form-control {
+        padding-right: 5px;
+    }
+    .control-label{
+        color: #337ab7;
+    }
+    .rowGroup{
+        padding-bottom: 5px;
+    }
+    .imgs li{
+        list-style: none;
+        float: left;
+        border: 1px solid #d8d1d1;
+        text-align: center;
+        height: 30px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12" >
+                    <div class="tab-content">
+                        <div id="tab-1" class="tab-pane active">
+                            <div class="panel-body" >
+                                <div class="panel panel-default">
+                                    <form id="talentInfoForm" action="/enterprise/talent/add" method="post" enctype="multipart/form-data" target="hiddenIframe">
+                                        <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                        <div class="panel-body">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <input type="hidden" name="id" id="id" value="">
+                                                <input type="hidden" name="year" id="year" value="{$year}">
+                                                <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$enterprise.id}">
+                                                <input type="hidden" name="enterprise_type" id="type" value="{$enterprise.type}">
+                                                <input type="hidden" name="checkState" id="checkState" value="">
+                                                <input type="file" name="photo" id="photo" style="display: none">
+                                                <input type="hidden" name="province_name" id="province_name" value="">
+                                                <input type="hidden" name="city_name" id="city_name" value="">
+                                                <input type="hidden" name="county_name" id="county_name" value="">
+                                                <input type="hidden" name="source_city_name" id="source_city_name" value="">
+                                                <input type="hidden" name="source_county_name" id="source_county_name" value="">
+                                                <input type="hidden" name="hand" id="hand" value="">
+                                                <div class="row">
+                                                    <div class="col-sm-11">
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>人才类型</label>
+                                                            <select class="form-control" id="talent_type" name="talent_type" onchange="TalentInfoInfoDlg.talentTypeChange()">
+                                                                <option value="">请选择</option>                                                               
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
+                                                            <input type="text" class="form-control" id="tax_insurance_month" name="tax_insurance_month" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
+                                                            <input type="text" class="form-control rangedate" id="labor_contract_rangetime" name="labor_contract_rangetime" />
+                                                        </div>                                                        
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                                            <select class="form-control" id="enterprise_tag"  value="{$enterprise.talentType}" disabled="disabled">
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
+                                                            <input type="text" class="form-control" id="enterprise_name"  name="enterprise_name" readonly="readonly" value="{$enterprise.name}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>所属镇街</label>
+                                                            <select class="form-control" id="address" name="address" value="{$enterprise.street}" disabled="disabled"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>产业领域</label>
+                                                            <select type="text" class="form-control" id="industry_field" value="{$enterprise.industry_field}" name="industry_field" disabled="disabled">
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                            <input type="text" class="form-control" id="name" name="name" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                            <select class="form-control" id="card_type" name="card_type">
+                                                                <option value="">请选择</option>
+                                                                <option value="1">身份证</option>
+                                                                <option value="2">通行证</option>
+                                                                <option value="3">护照</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件号码</label>
+                                                            <input class="form-control" id="card_number" name="card_number">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>性别</label>
+                                                            <select class="form-control" id="sex" name="sex">
+                                                                <option value="">请选择</option>
+                                                                <option value="1">男</option>
+                                                                <option value="2">女</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                            <input type="text" class="form-control date" id="birthday" name="birthday"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                            <select class="form-control" id="nationality" name="nationality">
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>籍贯省</label>
+                                                            <select class="form-control " onchange="TalentInfoInfoDlg.afterSelectProvince()" id="province" name="province">
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>籍贯市</label>
+                                                            <select class="form-control" onchange="TalentInfoInfoDlg.afterSelectCity()" id="city" name="city"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>籍贯县</label>
+                                                            <select class="form-control" id="county" name="county"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                            <select class="form-control" id="nation" name="nation">
+                                                            </select>
+                                                        </div>       
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                            <select class="form-control" id="politics" name="politics">
+                                                            </select>
+                                                        </div>  
+                                                    </div>
+                                                    <div class="col-sm-1">
+                                                        <img id="photoImg" src="/static/img/photo.png" onclick="$('#photo').click()" style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                    </div>
+                                                </div>
+                                            </div>
+                                        </div>
+                                        <div class="panel-heading" onclick="$(this).next().toggle()">个人信息填报及人才认定申请</div>
+                                        <div class="panel-body">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <div class="row">
+                                                    <div class="col-sm-11">                          
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>申报年度</label>
+                                                            <input type="text" class="form-control" name="apply_year" id="apply_year" value="{$year}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>首次来晋工作时间</label>
+                                                            <input type="text" class="form-control date" id="fst_work_time" name="fst_work_time"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>引进方式</label>
+                                                            <select class="form-control" id="import_way" name="import_way" data-placeholder="引进方式">
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>本单位入职时间</label>
+                                                            <input type="text" class="form-control date" id="cur_entry_time" name="cur_entry_time"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>本单位现任职务</label>
+                                                            <input type="text" class="form-control" id="postion" name="postion"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>申报来源</label>
+                                                            <select class="form-control" id="source" name="source" onchange="TalentInfoInfoDlg.sourceChange()">
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>入选来源地级市</label>
+                                                            <select class="form-control" id="source_city" name="source_city"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>入选来源县市区</label>
+                                                            <select class="form-control" id="source_county" name="source_county"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing" ><span style="color: red">*</span>入选名单批次</label>
+                                                            <input type="text" class="form-control" id="source_batch" name="source_batch"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书发证日期</label>
+                                                            <input type="text" class="form-control date" id="fujian_highcert_pubtime" name="fujian_highcert_pubtime"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书有效期</label>
+                                                            <input type="text" class="form-control date" id="fujian_highcert_exptime" name="fujian_highcert_exptime"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书发证日期</label>
+                                                            <input type="text" class="form-control date" id="quanzhou_highcert_pubtime" name="quanzhou_highcert_pubtime"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                                            <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书有效期</label>
+                                                            <input type="text" class="form-control date" id="quanzhou_highcert_exptime" name="quanzhou_highcert_exptime"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>
+                                                            <select class="form-control" id="talent_arrange" name="talent_arrange" onchange="TalentInfoInfoDlg.getIdentifyCondition()"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                                            <select class="chosen" id="talent_condition" name="talent_condition"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>最高学历</label>
+                                                            <select class="form-control" id="highest_degree" name="highest_degree"></select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                                            <input type="text" class="form-control" id="graduate_school" name="graduate_school">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                                            <input type="text" class="form-control" id="major" name="major"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing">专业技术职称</label>
+                                                            <input type="text" class="form-control" id="professional" name="professional"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>开户银行</label>
+                                                            <input type="text" class="form-control" onchange="TalentInfoInfoDlg.bankChange()" id="bank" name="bank" placeholder="XX银行"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
+                                                            <input type="text" class="form-control" id="bank_number" name="bank_number"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>开户银行网点</label>
+                                                            <input type="text" class="form-control" id="bank_branch_house" name="bank_branch_house" placeholder="XX银行XX省XX市XX支行/分行/分理处"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>银行账号</label>
+                                                            <input type="text" class="form-control" id="bank_account" name="bank_account" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing">是否有留学经历</label>
+                                                            <select class="form-control" id="study_abroad" name="study_abroad" onchange="TalentInfoInfoDlg.changeStudyAbroad()">
+                                                                <option value="2">否</option>
+                                                                <option value="1">是</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3 abroad_need_this" style="display:none;">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                                            <input type="text" class="form-control" id="abroad_school" name="abroad_school" maxlength="11"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3 abroad_need_this" style="display:none;">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                                            <input type="text" class="form-control" id="abroad_profession" name="abroad_profession" maxlength="11"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>手机号码</label>
+                                                            <input type="text" class="form-control" id="phone" name="phone" maxlength="11"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>电子邮箱</label>
+                                                            <input type="text" class="form-control" id="email" name="email"/>
+                                                        </div>
+                                                    </div>
+                                                </div>
+                                                <div class="row">
+                                                    <label class="col-sm-12 control-label spacing" style="text-align: left"><span style="color: red">声明:本人对输入材料的真实性负全部责任</span></label>
+                                                </div>
+                                            </div>
+                                        </div>     
+                                    </form>                               
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">附件上传</div>
+                                    <div class="panel-body">
+                                        <table id="fileTable" class="table-condensed" style="font-size: 10px;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>
+                                        <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
+                                        <form id="uploadForm" action="/api/talentInfo/addTalentFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
+                                            <input type='hidden' id="fileId" name="fileId" >
+                                            <input type='file' id="upload_file" name="fileUrl" style='display: none'>
+                                            <input type='hidden' id="mainId" name="mainId" >
+                                            <input type='hidden' id="fileTypeId" name="fileTypeId" >
+                                            <input type='hidden' id="index" name="index" >
+                                            <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack">
+                                            <input type="type" name="type" value="1">
+                                        </form>
+                                    </div>
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                                    <table id="logTable">
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo_info.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/talentInfo/talentInfo_info.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 171 - 0
app/enterprise/view/talent/view.html

@@ -0,0 +1,171 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    #talentInfoForm label {
+        font-size: xx-small;
+    }
+    .has-feedback .form-control {
+        padding-right: 5px;
+    }
+    .control-label{
+        color: #337ab7;
+    }
+    .rowGroup{
+        padding-bottom: 5px;
+    }
+    .imgs li{
+        list-style: none;
+        float: left;
+        border: 1px solid #d8d1d1;
+        text-align: center;
+        height: 30px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12" >
+                    <div class="tab-content">
+                        
+                        <div id="tab-1" class="tab-pane active">
+                            <div class="panel-body" >
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">申报信息</div>
+                                    <div class="panel-body">
+                                        <form id="talentInfoForm" class="form-horizontal" autocomplete="off">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <input type="hidden" name="id" id="id" value="{$row.id}">
+                                                <input type="hidden" name="type" id="type" value="1">
+                                                <input type="hidden" name="checkState" id="checkState" value="{$row.checkState}">
+                                                <div class="row">
+                                                    <div class="col-sm-11">
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>人才类型</label>
+                                                            <select class="form-control" id="talent_type" name="talent_type" >
+                                                                <option value="" selected="true">{$row.talentTypeName}</option>
+                                                            </select>
+                                                        </div>
+                                                        {if condition="in_array($row['talent_type'],[1,2])"}
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
+                                                            <input type="text" class="form-control" id="tax_insurance_month" name="tax_insurance_month" value="{$row.tax_insurance_month}" />
+                                                        </div>
+                                                        {else/}
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
+                                                            <input type="text" class="form-control" id="labor_contract_rangetime" name="labor_contract_rangetime" value="{$row.labor_contract_rangetime}" />
+                                                        </div>
+                                                        {/if}
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
+                                                            <input type="text" class="form-control" id="enterprise_name" name="enterprise_name" value="{$row.enterpriseName}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                                            <input type="text" class="form-control" id="enterprise_tag" name="enterprise_tag" value="{$row.enterpriseTagName}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
+                                                            <input type="text" class="form-control" id="street" name="street" value="{$row.streetName}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
+                                                            <input type="text" class="form-control" id="industry_field" name="industry_field" value="{$row.industryFieldName}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                            <input type="text" class="form-control" id="name" name="name" value="{$row.name}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                            <select class="form-control" id="cardType" name="cardType" value="{$row.card_type}">
+                                                                <option value="">请选择</option>
+                                                                <option value="1">身份证</option>
+                                                                <option value="2">通行证</option>
+                                                                <option value="3">护照</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
+                                                            <input class="form-control" id="card_type" name="card_type" value="{$row.card_number}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
+                                                            <input type="text" class="form-control" id="sex" name="sex" value="{eq name='info.sex' value='1'}男{else/}女{/eq}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                            <input type="text" class="form-control" id="birthday" name="birthday" value="{$row.birthday}"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                            <input class="form-control" id="nationality" name="nationality" value="{$row.nationalityName}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
+                                                            <input class="form-control" id="province" name="province" value="{$row.provinceName}{$row.cityName}{$row.countyName}"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                            <input class="form-control" id="nation" name="nation" value="{$row.nationName}"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                            <input class="form-control" id="politics" name="politics" value="{$row.politicsName}"/>
+                                                        </div>
+                                                    </div>
+                                                    <div class="col-sm-1">
+                                                        <img id="photoImg" src="{$row.headimgurl}"  style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                    </div>
+                                                </div>
+                                                <div class="row">
+                                                    <label class="col-sm-12 control-label spacing" style="text-align: left"><span style="color: red">声明:本人对输入材料的真实性负全部责任</span></label>
+                                                </div>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">附件</div>
+                                    <div class="panel-body">
+                                        <table id="fileTable" class="table-condensed" style="font-size: 10px;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 class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                                    <table id="logTable">
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                        <div id="tab-2" class="tab-pane ">
+                            <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/talentInfo/talentInfo_select.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 455 - 0
public/static/modular/talentIdentify/talentInfo/talentInfo_base.js

@@ -0,0 +1,455 @@
+/**
+ * 人才认定申报管理初始化
+ */
+var TalentInfo = {
+    id: "TalentInfoTable", //表格id
+    seItem: null, //选中的条目
+    table: null,
+    layerIndex: -1
+};
+
+/**
+ * 初始化表格的列
+ */
+TalentInfo.initColumn = function () {
+    var type = $("#type").val();
+    var isShow = true;
+    if (type == 2) {
+        isShow = false;
+    }
+    ;
+    return [
+        {field: 'selectItem', checkbox: true},
+        {title: '企业名称', field: 'enterprise_name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
+            formatter: function (value, row, index) {
+                if (row.sex == 1) {
+                    return value + '<span style="color:#6495ED">【男】</span>';
+                }
+                if (row.sex == 2) {
+                    return value + '<span style="color:#FF82AB">【女】</span>';
+                }
+            }
+        },
+        {title: '人才类型', field: 'talent_type', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '单位标签', field: 'enterprise_tag', visible: isShow, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
+        {title: '证件号码', field: 'card_number', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "150px"},
+        {title: '首次提交时间', field: 'first_submit_time', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '最新提交时间', field: 'new_submit_time', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (value == 2 || value == 7) {
+                    return "<span class='label label-success'>待审核</span>"
+                }
+                if (value == 6) {
+                    if (row.highProcess != null && 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-danger'>审核不通过</span>"
+                }
+                if (value == 4) {
+                    if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 1) {
+                        return "<span class='label label-success'>上级驳回</span>"
+                    } else {
+                        return "<span class='label label-success'>待审核</span>"
+                    }
+                }
+                if (value == 8) {
+                    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 == 10) {
+                    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 == 12) {
+                    if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 4) {
+                        return "<span class='label label-success'>上级驳回</span>"
+                    } else {
+                        return "<span class='label label-success'>待审核</span>"
+                    }
+                }
+                if (value == 10) {
+                    return "<span class='label label-danger'>已驳回</span>"
+                }
+                if (value == 11) {
+                    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=\"TalentInfo.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
+            }
+        }
+    ];
+};
+/**
+ * 检查是否选中
+ */
+TalentInfo.check = function () {
+    var selected = $('#' + this.id).bootstrapTable('getSelections');
+    if (selected.length != 1) {
+        Feng.info("请先选中表格中的某一记录!");
+        return false;
+    } else {
+        TalentInfo.seItem = selected[0];
+        return true;
+    }
+};
+
+
+TalentInfo.openCheckTalentInfo = function () {
+    var title = $("#title").val();
+    if (this.check()) {
+        var index = layer.open({
+            type: 2,
+            title: '人才认定' + " - " + title,
+            area: ['800px', '420px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: '/admin/talent/common_check/id/' + TalentInfo.seItem.id + '/1',
+            btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-save"></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.TalentInfoInfoDlg.showFirstCheckModal();
+            }, btn2: function (index, layero) {
+                var obj = layero.find("iframe")[0].contentWindow;
+                obj.TalentInfoInfoDlg.submitCheck();
+                return false;
+            }
+        });
+        layer.full(index);
+        TalentInfo.layerIndex = index;
+    }
+}
+
+
+
+/**
+ * 打开查看人才认定-初级审核详情
+ */
+TalentInfo.openTalentInfoDetail = function () {
+    if (this.check()) {
+        var index = layer.open({
+            type: 2,
+            title: '人才认定申报详情',
+            area: ['800px', '420px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: Feng.ctxPath + '/talentInfo/talentInfo_toDetail/' + TalentInfo.seItem.id + '/1'
+        });
+        layer.full(index);
+        TalentInfo.layerIndex = index;
+    }
+};
+
+/**
+ * 修改驳回的字段及附件
+ */
+TalentInfo.updateFieldsAndFiles = function () {
+    if (this.check()) {
+        var ajax = new $ax(Feng.ctxPath + "/talentInfo/findFieldsAndFiles?id=" + TalentInfo.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: TalentInfo.creatFieldCheckModal(),
+                    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 fileList = data.obj.fileList;
+                        var html = '';
+                        for (var key in fileList) {
+                            html = html + '<ul><li style="width: 100%"><input type="checkbox" value="' + fileList[key].id + '"><span>' + fileList[key].name + '</span></li></ul>';
+                        }
+                        $("#field_file").empty().append(html);
+                        if (obj.fields != null && obj.fields != '') {
+                            $("#field_info input").each(function () {
+                                var arr = obj.fields.split(",");
+                                for (var key in arr) {
+                                    if ($(this).val() == arr[key]) {
+                                        this.checked = true;
+                                    }
+                                }
+                            });
+                        }
+                        if (obj.files != null && obj.files != '') {
+                            $("#field_file input").each(function () {
+                                if (obj.files.indexOf($(this).val()) != -1) {
+                                    this.checked = true;
+                                }
+                            });
+                        }
+                    },
+                    yes: function (index, layero) {
+                        TalentInfo.submitFieldsAndFiles(index, obj.id);
+                    }
+                });
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("查询失败!" + data.responseJSON.message + "!");
+        });
+        ajax.start();
+    }
+}
+
+/**
+ * 修改提交
+ * @param index
+ * @param id
+ */
+TalentInfo.submitFieldsAndFiles = function (index, id) {
+    var fields = '';
+    var files = '';
+    $("#field_info li input").each(function (index) {
+        if ($(this).is(":checked")) {
+            fields = fields + $(this).val() + ",";
+        }
+    });
+    $("#field_file li input").each(function (index) {
+        if ($(this).is(":checked")) {
+            files = files + $(this).val() + ",";
+        }
+    });
+    if (fields == '' && files == '') {
+        Feng.info("请选择可修改的字段或附件!");
+        return;
+    }
+    var ajax = new $ax(Feng.ctxPath + "/talentInfo/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": id, "fields": fields, "files": files})
+    ajax.start();
+}
+
+/**
+ * 审核不通过
+ */
+TalentInfo.setNotPass = function () {
+    var selecteds = $('#' + this.id).bootstrapTable('getSelections');
+    if (selecteds.length == 0) {
+        Feng.info("请选择需要设置审核不通过的行");
+        return;
+    }
+    var ids = "";
+    for (var key in selecteds) {
+        ids = ids + selecteds[key].id + ",";
+    }
+    ids = ids.substring(0, ids.length - 1);
+    layer.open({
+        type: 1,
+        id: "notPassModal",
+        title: '修改',
+        area: ['800px', '450px'], //宽高
+        fix: false, //不固定
+        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>',
+
+        btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+        btnAlign: 'c',
+        zIndex: layer.zIndex,
+        yes: function (index, layero) {
+            var checkMsg = $("#checkMsgNotPass").val();
+            if (Feng.isEmptyStr(checkMsg)) {
+                Feng.info("请填写审核不通过原因");
+                return;
+            }
+            var operation = function () {
+                var ajax = new $ax("/admin/talent/cancel_verify", function (data) {
+                    if (data.code == 200) {
+                        Feng.success(data.msg);
+                        TalentInfo.table.refresh();
+                        layer.close(index);
+                    } else {
+                        Feng.error(data.msg);
+                    }
+                }, function (data) {
+                    Feng.error("设置审核不通过失败!" + data.responseJSON.message + "!");
+                });
+                ajax.set("ids", ids);
+                ajax.set("msg", checkMsg);
+                ajax.start();
+            }
+            Feng.confirm("一旦提交无法修改,确定设置所选数据为审核不通过?", operation);
+        }
+    });
+
+}
+
+
+TalentInfo.creatFieldCheckModal = function () {
+    return '<form id="firstCheckForm">\n' +
+            '                    <div class="form-group" style="margin: 10px;">\n' +
+            '                        <div >\n' +
+            '                            <label for="checkMsg" class="control-label">可修改字段</label>\n' +
+            '                            <div id="field_info">\n' +
+            '                                <ul>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="name"><span>姓名</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="sex"><span>性别</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="birthday"><span>出生日期</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="nationality"><span>国籍/地区</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="provinceCode" onchange="TalentInfo.fieldCheckd(this)"><span>籍贯省</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="cityCode" onchange="TalentInfo.fieldCheckd(this)"><span>籍贯市</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="countyCode"><span>籍贯县</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="nation"><span>民族</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="politics"><span>政治面貌</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="cardType"><span>证件类型</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="idCard"><span>证件号码</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="firstInJJTime"><span>首次来晋工作时间</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="source" onchange="TalentInfo.sourceCheckd(this)"><span>申报来源</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="ourCitySource"><span>公布入选来源</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="fromCity"><span>入选来源县市</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="qzBatch"><span>入选名单批次</span></li>\n' +
+            '                                    <li style="width:31%"><input type="checkbox" value="certificateStartTime"><span>泉州高层次人才证书发证日期</span></li>\n' +
+            '                                    <li style="width:31%"><input type="checkbox" value="qzgccrcActiveTime"><span>泉州高层次人才证书的有效期</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" id="talentArrangeCheckBox" value="talentArrange" onchange="TalentInfo.fieldCheckd(this)"><span>人才层次</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="identifyCondition"><span>认定条件</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="talentType"><span>人才标签</span></li>\n' +
+            '                                    <li style="width:31%"><input type="checkbox" value="letterTime"><span>首次来晋行政介绍信时间</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="introductionMode"><span>引进方式</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="post"><span>职务</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="lastYearWages"><span>上一年度年薪</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="highEducation"><span>最高学历</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="graduateSchool"><span>毕业院校</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="major"><span>专业</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="title"><span>职称</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="studyAbroad"><span>是否有留学经历</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="phone"><span>手机号码</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="email"><span>电子邮箱</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="bank"><span>开户银行</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>\n' +
+            '                                    <li style="width:10%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>\n' +
+            '                                    <li style="width:31%"><input type="checkbox" value="breakFaith"><span>曾被相关主管部门列为失信个人</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="educationAndResume"><span>教育背景及工作简历</span></li>\n' +
+            '                                    <li style="width:20.5%"><input type="checkbox" value="mainHonours"><span>主要业绩及取得的荣誉</span></li>\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.fieldCheckd = function (context) {
+    if ($(context).get(0).checked) {
+        $(context).parent().next().children()[0].checked = true;
+        $(context).parent().next().children().eq(0).trigger("change");
+    }
+}
+
+TalentInfo.sourceCheckd = function (context) {
+    if ($(context).get(0).checked) {
+        $("#talentArrangeCheckBox").attr("checked", true);
+        $("#talentArrangeCheckBox").trigger("change");
+    }
+}
+
+TalentInfo.getPhones = function () {
+    var ajax = new $ax(Feng.ctxPath + "/talentInfo/getPhones", function (data) {
+        if (data.code == 200) {
+            layer.open({
+                type: 1,
+                title: "手机号码",
+                area: ['830px', '300px'], //宽高
+                fix: false, //不固定
+                maxmin: true,
+                content: "<span style='word-break:break-all'>" + data.obj + "</span>"
+            });
+        } else {
+            Feng.info(data.msg);
+        }
+    }, function (data) {
+        Feng.error("操作失败!");
+    });
+    ajax.setData(TalentInfo.formParams());
+    ajax.start();
+}
+
+
+TalentInfo.getEnterprisePhones = function () {
+    var ajax = new $ax(Feng.ctxPath + "/talentInfo/getEnterprisePhones", function (data) {
+        if (data.code == 200) {
+            layer.open({
+                type: 1,
+                title: "手机号码",
+                area: ['830px', '300px'], //宽高
+                fix: false, //不固定
+                maxmin: true,
+                content: "<span style='word-break:break-all'>" + data.obj + "</span>"
+            });
+        } else {
+            Feng.info(data.msg);
+        }
+    }, function (data) {
+        Feng.error("操作失败!");
+    });
+    ajax.setData(TalentInfo.formParams());
+    ajax.start();
+}
+
+$(function () {
+    var defaultColunms = TalentInfo.initColumn();
+    var process = $("#process").val();
+    var table = new BSTable(TalentInfo.id, "/admin/talent/base_verify_list/process/" + process, defaultColunms);
+    table.setPaginationType("server");
+    table.setSingleSelect(false);
+    table.setOnDblClickRow(function () {
+        TalentInfo.openCheckTalentInfo();
+    });
+    TalentInfo.table = table.init();
+    TalentInfo.init();
+
+    // var defaultColunms = TalentInfo.initColumn();
+    // var table = new KDTable(TalentInfo.id, "/talentInfo/list/1", defaultColunms);
+    // table.setPaginationType("server");
+    // TalentInfo.table = table.init();
+});