Jelajahi Sumber

Signed-off-by: sugangqiang <sugangqiang@foxmail.com>

sugangqiang 2 tahun lalu
induk
melakukan
2e0dcec52d

+ 1 - 0
app/common/api/MenuApi.php

@@ -77,6 +77,7 @@ class MenuApi {
         $menus[] = ["type" => [1, 2, 3], "code" => "qyzx", "pcode" => "0", "name" => "企业用户中心", "url" => "/enterprise/index/centerPage", "icon" => "fa-user"];
         $menus[] = ["type" => [1, 2], "code" => "yhfk", "pcode" => "0", "name" => "用户反馈", "url" => "", "icon" => "fa-bug"];
         $menus[] = ["type" => [1, 2], "code" => "rcrd", "pcode" => "0", "name" => "人才认定", "url" => "#", "icon" => "fa-thumbs-o-up"];
+        $menus[] = ["type" => [1, 2], "code" => "jctjsb", "pcode" => "rcrd", "name" => "基础条件申报", "url" => "/enterprise/base", "icon" => "fa-thumbs-o-up"];
         $menus[] = ["type" => [1, 2], "code" => "rcrdsb", "pcode" => "rcrd", "name" => "人才认定申报", "url" => "/enterprise/talent", "icon" => "fa-thumbs-up"];
         $menus[] = ["type" => [1, 2], "code" => "yxrck", "pcode" => "rcrd", "name" => "优秀人才库", "url" => "", "icon" => "fa-thumbs-up"];
         $menus[] = ["type" => [1, 2], "code" => "lzsb", "pcode" => "rcrd", "name" => "离职申报", "url" => "", "icon" => "fa-thumbs-up"];

+ 336 - 0
app/enterprise/controller/Base.php

@@ -0,0 +1,336 @@
+<?php
+
+namespace app\enterprise\controller;
+
+use app\enterprise\common\EnterpriseController;
+use app\enterprise\api\TalentApi;
+use app\enterprise\model\Talent as TalentModel;
+use think\facade\Db;
+use app\common\api\TalentLogApi;
+use app\common\api\TalentState;
+
+// 0正在填写 1保存未提交 2已提交未审核 3已审核 4驳回 5保存补充材料未提交 6提交补充材料进入初审 7初审通过 8初审驳回 9部门审核通过 10部门审核驳回 11复核通过 12复核驳回 13复核失败
+
+/**
+ * Description of Base
+ *
+ * @author sgq
+ */
+class Base extends EnterpriseController {
+
+    public function index() {
+        return view();
+    }
+
+    public function list() {
+        $res = TalentApi::getList($this->request);
+        return json($res);
+    }
+
+    public function add() {
+        $request = $this->request;
+        $param = $request->param();
+        $id = isset($param["id"]) ? $param["id"] : 0;
+        $info = self::chkIsOwner($id, $this->user["uid"]);
+        if ($info && in_array($info["checkState"], [TalentState::BASE_VERIFY_PASS, TalentState::SCND_SAVE])) {
+            return $this->second($request);
+            exit();
+        }
+        if ($info && in_array($info["checkState"], [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS, TalentState::REVERIFY_PASS, TalentState::REVERIFY_FAIL])) {
+            return $this->view($request);
+            exit();
+        }
+        if ($request->isPost()) {
+            if ($id) {
+                $data["id"] = $id;
+                if (!$info) {
+                    $res = ["msg" => "没有对应的人才认定申报信息"];
+                    echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                    exit;
+                }
+                if ($info["checkState"] == TalentState::REVERIFY_FAIL) {
+                    $res = ["msg" => "审核失败,不能再修改"];
+                    echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                    exit;
+                }
+                if (!in_array($info["checkState"], [TalentState::FST_SAVE, TalentState::BASE_VERIFY_PASS, TalentState::SCND_SAVE])) {
+                    $res = ["msg" => "审核中,不能修改"];
+                    echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                    exit;
+                }
+            }
+
+            $data["enterprise_id"] = $this->user["uid"];
+            $data["talent_type"] = $param["talent_type"];
+            $data["tax_insurance_month"] = $param["tax_insurance_month"];
+            $data["labor_contract_rangetime"] = $param["labor_contract_rangetime"];
+            $data["name"] = $param["name"];
+            $data["card_type"] = $param["card_type"];
+            $data["card_number"] = $param["card_number"];
+            $data["sex"] = $param["sex"];
+            $data["birthday"] = $param["birthday"];
+            $data["nationality"] = $param["nationality"];
+            $data["province"] = $param["province"];
+            $data["city"] = $param["city"];
+            $data["county"] = $param["county"];
+            $data["nation"] = $param["nation"];
+            $data["politics"] = $param["politics"];
+            if ($request->file()) {
+                $headimg = $request->file("photo");
+                if ($info && $info["headimgurl"]) {
+                    $old_head_url = "storage/" . $info["headimgurl"];
+                    if (file_exists($old_head_url))
+                        unlink($old_head_url);
+                }
+                $upload = new \app\common\api\UploadApi();
+                $result = $upload->uploadOne($headimg, "image", "talent/photo");
+                $data["headimgurl"] = $result->filepath;
+            }
+            if ($id > 0) {
+                TalentModel::update($data);
+            } else {
+                $data["checkState"] = TalentState::FST_SAVE;
+                $id = TalentModel::insertGetId($data);
+                TalentLogApi::write(1, $id, TalentState::FST_SAVE, "添加人才认定申报", 1);
+            }
+            if ($id) {
+                $res = ["code" => 200, "msg" => "保存成功", "obj" => ["id" => $id, "checkState" => TalentState::FST_SAVE]];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+            } else {
+                $res = ["msg" => "保存失败"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+            }
+            exit();
+        }
+        $checkState = $info["checkState"] ?: 0;
+        $enterprise_info = \app\common\model\Enterprise::find($this->user["uid"]);
+        $info["enterprise"] = $enterprise_info;
+        $info["talent_type_list"] = \app\common\api\DictApi::findChildDictByCode("talent_type");
+        return view("first", ["year" => date("Y"), "checkState" => $checkState, "row" => $info]);
+    }
+
+    private function second(\think\Request $request) {
+        $params = $request->param();
+        $id = $params["id"];
+        if ($request->isPost()) {
+            $batch = \app\common\api\BatchApi::getValidBatch(1, $this->user["type"]);
+            if (!$batch) {
+                $res = ["msg" => "不在人才认定申报申请时间内"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+
+            $field_dict = \app\common\api\DictApi::getTalentFields(2);
+            //可以用匹配键的方式,可以少很多代码。。先这样吧。
+            $all_valid_keys = ["applay_year", "fst_work_time", "import_way", "cur_entry_time", "position",
+                "source", "source_batch", "fujian_highcert_pubtime", "fujian_highcert_exptime", "quanzhou_highcert_pubtime", "quanzhou_highcert_exptime", "source_city", "source_county",
+                "talent_arrange", "talent_condition", "highest_degree", "graduate_school", "major", "professional", "bank", "bank_number", "bank_branch_name", "bank_account",
+                "study_abroad", "abroad_school", "abroad_major", "phone", "email"];
+            foreach ($all_valid_keys as $key) {
+                $data[$key] = trim($params[$key]);
+                if (strpos($key, "time") !== false && strtotime($params[$key]) === false) {
+                    unset($data[$key]); //时间格式的验证不通过就清掉,下面判断是否为空如果赫然在列就不能通过
+                }
+            }
+
+            $no_empty = ["talent_arrange", "talent_condition", "highest_degree", "graduate_school", "major", "professional", "bank", "bank_number", "bank_branch_name",
+                "bank_account", "study_abroad", "phone", "email", "import_way", "fst_work_time", "cur_entry_time", "cur_entry_time", "position", "source"];
+
+            if ($data["study_abroad"] == 1) {
+                $no_empty[] = "abroad_school";
+                $no_empty[] = "abroad_major";
+            }
+            if (in_array($data["source"], [1, 3])) {
+                $no_empty[] = "source_batch";
+                $no_empty[] = "fujian_highcert_pubtime";
+                $no_empty[] = "fujian_highcert_exptime";
+                if ($data["source"] == 3) {
+                    $no_empty[] = "source_city";
+                }
+            }
+            if (in_array($data["source"], [2, 4])) {
+                $no_empty[] = "source_batch";
+                $no_empty[] = "quanzhou_highcert_pubtime";
+                $no_empty[] = "quanzhou_highcert_exptime";
+                if ($data["source"] == 4) {
+                    $no_empty[] = "source_county";
+                }
+            }
+            $no_empty = array_filter($no_empty);
+            $return = [];
+            foreach ($no_empty as $key) {
+                if (!$data[$key]) {
+                    $return[] = sprintf("请填写“%s”", $field_dict[$key]);
+                }
+            }
+            if (count($return) > 0) {
+                $res = ["msg" => implode("<br>", $return)];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+            if (!preg_match("/^(13|14|15|17|18|19)[\d]{9}$/", $data["phone"])) {
+                $res = ["msg" => "手机号码格式错误"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+            if (!filter_var($data["email"], FILTER_VALIDATE_EMAIL)) {
+                $res = ["msg" => "电子邮箱格式错误"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+
+            if (!in_array($data["talent_arrange"], [1, 2, 3, 4, 5, 6, 7])) {
+                $res = ["msg" => "人才层次只能在预设范围内选择"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+            if (!in_array($data["source"], [1, 2, 3, 4, 5])) {
+                $res = ["msg" => "来源只能在预设范围内选择"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+
+            $condition_info = Db::table("new_talent_condition")->findOrEmpty($params["talent_condition"]);
+
+            if ($condition_info["bindFileTypes"]) {
+                $whr[] = ["id", "in", $condition_info["bindFileTypes"]];
+                $whr[] = ["must", "=", 1];
+            }
+            $where = [];
+            $where[] = ["step", "=", 2];
+            $where[] = ["project", "=", 1];
+            $where[] = ["type", "=", $this->user["type"]];
+            $where[] = ["must", "=", 1];
+            if ($whr) {
+                $filetypes = Db::table("new_common_filetype")->whereOr([$where, $whr])->select()->toArray();
+            } else {
+                $filetypes = Db::table("new_common_filetype")->where($where)->select()->toArray();
+            }
+            $ft_ids = array_column($filetypes, "id");
+            $whr = [];
+            $whr[] = ["typeId", "in", $ft_ids];
+            $whr[] = ["mainId", "=", $id];
+            $upload_type_counts = Db::table("new_talent_file")->where($whr)->distinct(true)->field("typeId")->count();
+
+            if ($upload_type_counts != count($ft_ids)) {
+                $res = ["msg" => "请留意附件上传栏中带*号的内容均为必传项,请上传完整再提交审核"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+                exit;
+            }
+            $data["apply_year"] = $batch["batch"];
+            $data["id"] = $id;
+            $data["checkState"] = TalentState::SCND_SAVE;
+            if (TalentModel::update($data)) {
+                $res = ["code" => 200, "msg" => "保存成功", "obj" => ["id" => $id, "checkState" => TalentState::SCND_SAVE]];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+            } else {
+                $res = ["code" => 500, "msg" => "保存失败"];
+                echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
+            }
+        }
+        $info = \app\common\api\VerifyApi::getTalentInfoById($id);
+        $enterprise_info = \app\common\model\Enterprise::find($this->user["uid"]);
+        $info["enterprise"] = $enterprise_info;
+        $batch = \app\common\api\BatchApi::getValidBatch(1, $enterprise_info["type"]);
+        return view("second", ["year" => $batch["batch"], "row" => $info]);
+    }
+
+    public function view(\think\Request $request) {
+        $id = $request->param("id");
+        $info = \app\common\api\VerifyApi::getTalentInfoById($id);
+        return view("view", ["row" => $info]);
+    }
+
+    // 1保存未提交 2已提交未审核 3已审核 4驳回 5保存补充材料未提交 6提交补充材料进入初审 7初审通过 8初审驳回 9部门审核通过 10部门审核驳回 11复核通过 12复核驳回 13复核失败
+    public function submit() {
+        $id = $this->request->param("id");
+        if (!$info = self::chkIsOwner($id, $this->user["uid"]))
+            return json(["msg" => "没有对应的人才认定申报信息"]);
+        $checkState = $info["checkState"];
+        if ($checkState == TalentState::BASE_VERIFY_PASS || $checkState == 0) {
+            return json(["msg" => '请先保存资料并上传相应附件后再点击提交审核']);
+        } else if ($checkState == TalentState::FST_SAVE) {
+            $filed_dict = \app\common\api\DictApi::getTalentFields(1);
+            //初次提交材料
+            $change_state = TalentState::FST_SUBMIT; //等待审核
+            if (!$info["headimgurl"])
+                return json(["msg" => "请上传头像"]);
+            $no_empty = ["talent_type", "name", "card_type", "card_number", "sex", "birthday", "nationality", "province", "city", "nation", "politics"];
+
+            if (in_array($info["talent_type"], [1, 2]))
+                $no_empty[] = "tax_insurance_month";
+            if ($info["talent_type"] == 3)
+                $no_empty[] = "labor_contract_rangetime";
+            $return = [];
+            foreach ($no_empty as $key) {
+                if (!$info[$key]) {
+                    $return[] = sprintf("请填写“%s”", $filed_dict[$key]);
+                }
+            }
+            if (count($return) > 0)
+                return json(["msg" => implode("<br>", $return)]);
+            $where = [];
+            $where[] = ["step", "=", 1];
+            $where[] = ["project", "=", 1];
+            $where[] = ["type", "=", $this->user["type"]];
+            $where[] = ["must", "=", 1];
+            $filetypes = Db::table("new_common_filetype")->where($where)->select()->toArray();
+
+            $ft_ids = array_column($filetypes, "id");
+            $whr = [];
+            $whr[] = ["typeId", "in", $ft_ids];
+            $whr[] = ["mainId", "=", $info["id"]];
+            $upload_type_counts = Db::table("new_talent_file")->where($whr)->distinct(true)->field("typeId")->count();
+            if ($upload_type_counts != count($ft_ids))
+                return json(["msg" => "请留意附件上传栏中带*号的内容均为必传项,请上传完整再提交审核"]);
+
+            $data["id"] = $id;
+            $data["checkState"] = $change_state;
+            $data["first_submit_time"] = date("Y-m-d H:i:s");
+            $data["active"] = 1;
+            TalentModel::update($data);
+            TalentLogApi::write(1, $id, $change_state, "提交基础判定材料待审核", 1);
+            return json(["code" => 200, "msg" => "提交成功"]);
+        } else if ($checkState == TalentState::SCND_SAVE) {
+            $change_state = TalentState::SCND_SUBMIT; //等待初审
+            $data["id"] = $id;
+            $data["checkState"] = $change_state;
+            $data["active"] = 1;
+            $data["new_submit_time"] = date("Y-m-d H:i:s");
+            TalentModel::update($data);
+            TalentLogApi::write(1, $id, $change_state, "确认提交审核", 1);
+            return json(["code" => 200, "msg" => "提交成功"]);
+        } else if ($checkState == TalentState::REVERIFY_FAIL) {
+            return ["msg" => "审核失败,不能再提交审核"];
+        }
+        return json(["msg" => "已提交审核,请耐心等待"]);
+    }
+
+    public function delete() {
+        $id = $this->request->param("talentInfoId");
+        $info = Talent::chkIsOwner($id, $this->user["uid"]);
+        if (!$info) {
+            return json(["msg" => "操作失败"]);
+        }
+        $checkState = $info["checkState"];
+        if (in_array($checkState, [0, 1])) {
+            $log = TalentLogApi::getLastLog($id, 1);
+            if ($log["state"] > 1) {
+                //有提交审核记录
+                return json(["msg" => "操作失败"]);
+            }
+        }
+        $data["id"] = $id;
+        $data["delete"] = 1;
+        TalentModel::update($data);
+        return json(["msg" => "删除成功"]);
+    }
+
+    static private function chkIsOwner($id, $uid) {
+        $where[] = ["id", "=", $id];
+        $where[] = ["enterprise_id", "=", $uid];
+        $info = TalentModel::where($where)->findOrEmpty()->toArray();
+        return $info;
+    }
+
+}

+ 325 - 0
app/enterprise/view/base/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}

+ 233 - 0
app/enterprise/view/base/first.html

@@ -0,0 +1,233 @@
+{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">
+                            <form id="talentInfoForm" action="/enterprise/talent/add" method="post" enctype="multipart/form-data" target="hiddenIframe">
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                    <div class="panel-body">
+                                        <div class="row">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <input type="hidden" name="id" id="id" value="{$row.id}">
+                                                <input type="hidden" name="year" id="year" value="{$year}">
+                                                <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}">
+                                                <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}">
+                                                <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="checkState" id="checkState" value="{$checkState}">
+                                                <input type="hidden" name="step" id="step" value="1">                                                
+                                                <input type="hidden" name="files" id="files" value="{$row.modify_files}">
+                                                <input type="hidden" name="fields" id="fields" value="{$row.modify_fields}">
+                                                <div class="col-sm-11">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <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-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                        <select class="form-control" id="card_type" name="card_type" 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-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>证件号码</label>
+                                                        <input class="form-control" id="card_number" name="card_number" value='{$row.card_number}'>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>性别</label>
+                                                        <select class="form-control" id="sex" name="sex" value='{$row.sex}'>
+                                                            <option value="">请选择</option>
+                                                            <option value="1">男</option>
+                                                            <option value="2">女</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control date" id="birthday" name="birthday" value='{$row.birthday}'/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                        <select class="form-control" id="nation" name="nation" value='{$row.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="nationality" name="nationality" value="{$row.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" value='{$row.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" value='{$row.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" value='{$row.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="politics" name="politics" value='{$row.politics}'>
+                                                        </select>
+                                                    </div>   
+                                                </div>
+                                                <div class="col-sm-1">
+                                                    <img id="photoImg" {if condition="$row['headimgurl']"} src="/storage/{$row.headimgurl}" {else/} src="/static/img/photo.png" {/if} onclick="$('#photo').click()" style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                </div>
+                                            </div>
+                                        </div>
+                                        <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                            <ul class="list-unstyled">
+                                                <li style="margin:10px 0;overflow:hidden;">
+                                                    <div style="float:left;margin-left:25px;">身份证或护照上传</div>
+                                                    <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                        <i class="fa fa-upload"></i>上传
+                                                    </button>
+                                                </li>
+                                            </ul>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才基础信息</div>
+                                    <div class="panel-body">
+                                        <div class="row">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <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="{$row.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="{$row.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="{$row.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="{$row.enterprise.industryFieldNew}" name="industry_field" disabled="disabled">
+                                                    </select>
+                                                </div> 
+                                                <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" value="{$row.talent_type}" onchange="TalentInfoInfoDlg.talentTypeChange()">
+                                                        <option value="">请选择</option>  
+                                                        {volist name="row.talent_type_list" id="item"}
+                                                        <option value="{$item.id}">{$item.name}</option>        
+                                                        {/volist}
+                                                    </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" 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" value="{$row.tax_insurance_month}"/>
+                                                </div>
+                                                {/if}                                                        
+                                                {if condition="$row['talent_type'] eq 3"}  
+                                                <div class="rowGroup col-sm-3">
+                                                    <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" value="{$row.labor_contract_rangetime}" />
+                                                </div> 
+                                                {else/}
+                                                <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" value="{$row.labor_contract_rangetime}" />
+                                                </div> 
+                                                {/if}  
+                                            </div>
+                                        </div>
+                                        <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                            <ul class="list-unstyled">
+                                                <li style="margin:10px 0;overflow:hidden;">
+                                                    <div style="float:left;margin-left:25px;">社保或所得税缴费记录</div>
+                                                    <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                        <i class="fa fa-upload"></i>上传
+                                                    </button>
+                                                </li>
+                                            </ul>
+                                        </div>
+                                    </div>
+                                </div>
+                            </form> 
+                            <form id="uploadForm" action="/common/api/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 class="panel panel-default">
+                                <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                                <table id="logTable">
+                                </table>
+                            </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}

+ 143 - 0
app/enterprise/view/base/index.html

@@ -0,0 +1,143 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .layui-layer-btn .layui-layer-btn1 {
+        border-color: #009688;
+        background-color: #009688;
+        color: #fff;
+    }
+</style>
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-title">
+                <h5>人才认定申报</h5>
+            </div>
+            <div class="ibox-content">
+                <div class="row row-lg">
+                    <div class="col-sm-12">
+                        <div class="row">
+                            <input type="hidden" id="type" value="${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>
+                                    <input type="text" class="form-control" id="card_number" 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="sex">
+                                        <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="nation">
+                                    </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="nationality">
+                                    </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="enterprise_tag">
+                                    </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="checkState">
+                                        <option value=""></option>
+                                        <option value="13">审核不通过</option>
+                                        <option value="1">待提交</option>
+                                        <option value="2">已驳回</option>
+                                        <option value="3">审核中</option>
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.search()" id="">
+                                    <i class="fa fa-search"></i>&nbsp;搜索
+                                </button>
+                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.reset()" id="">
+                                    <i class="fa fa-trash"></i>&nbsp;重置
+                                </button>
+                            </div>
+                        </div>
+                        <div class="hidden-xs" id="TalentInfoTableToolbar" role="group">
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.openAddTalentInfo()" id="">
+                                <i class="fa fa-plus"></i>&nbsp;添加
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.openTalentInfoDetail()" id="">
+                                <i class="fa fa-edit"></i>&nbsp;修改
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.openTalentInfoSelect()" id="">
+                                <i class="fa fa-book"></i>&nbsp;查看
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.delete()" id="">
+                                <i class="fa fa-remove"></i>&nbsp;删除
+                            </button>
+                        </div>
+                        <table id="TalentInfoTable" 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="${ctxPath}/static/modular/gate/talentInfo/talentInfo.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/talentBase/talentBase.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 303 - 0
app/enterprise/view/base/second.html

@@ -0,0 +1,303 @@
+{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="{$row.id}">
+                                                <input type="hidden" name="year" id="year" value="{$year}">
+                                                <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}">
+                                                <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}">
+                                                <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" readonly disabled>
+                                                                <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" value="{$row.tax_insurance_month}"  readonly disabled/>
+                                                        </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" value="{$row.labor_contract_rangetime}"  readonly disabled/>
+                                                        </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" value="{$row.enterpriseName}"  readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                                            <input type="text" class="form-control" value="{$row.enterpriseTagName}"  readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
+                                                            <input type="text" class="form-control" value="{$row.streetName}"  readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
+                                                            <input type="text" class="form-control" value="{$row.industryFieldName}" readonly disabled>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                            <input type="text" class="form-control" value="{$row.name}"  readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                            <select class="form-control" value="{$row.card_type}" readonly disabled>
+                                                                <option value="">请选择</option>
+                                                                <option value="1" {eq name="row.card_type" value="1"} selected="" {/eq}>身份证</option>
+                                                                <option value="2" {eq name="row.card_type" value="2"} selected="" {/eq}>通行证</option>
+                                                                <option value="3" {eq name="row.card_type" value="3"} selected="" {/eq}>护照</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
+                                                            <input class="form-control" value="{$row.card_number}" readonly disabled>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
+                                                            <input type="text" class="form-control" value="{eq name='info.sex' value='1'}男{else/}女{/eq}"  readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                            <input type="text" class="form-control" value="{$row.birthday}" readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                            <input class="form-control" value="{$row.nationalityName}" readonly disabled>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
+                                                            <input class="form-control" value="{$row.provinceName}{$row.cityName}{$row.countyName}" readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                            <input class="form-control" value="{$row.nationName}" readonly disabled/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                            <input class="form-control" value="{$row.politicsName}" readonly disabled/>
+                                                        </div>
+                                                    </div>
+                                                    <div class="col-sm-1">
+                                                        <img id="photoImg" src="{$row.headimgurl}"  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}" readonly disabled>
+                                                        </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="position" name="position"/>
+                                                        </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" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()"></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_name" name="bank_branch_name" 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_major" name="abroad_major" 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="/common/api/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}

+ 333 - 0
app/enterprise/view/base/view.html

@@ -0,0 +1,333 @@
+{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}">
+                                                <input type="hidden" name="talent_condition" id="talent_condition" value="{$row.talent_condition}">
+                                                <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">
+                                        <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="{$row.apply_year}" readonly disabled>
+                                                    </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" value="{$row.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="引进方式">
+                                                            <option value="">{$row.importWayName}</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="cur_entry_time" value="{$row.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="position" value="{$row.position}"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>申报来源</label>
+                                                        <select class="form-control" id="source" >
+                                                            <option value="">{$row.sourceName}</option>
+                                                        </select>
+                                                    </div>
+                                                    {if condition="$row['source_city']"}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>入选来源地级市</label>
+                                                        <select class="form-control" id="source_city" name="source_city">
+                                                            <option value="">{$row.sourceCityName}</option>
+                                                        </select>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['source_county']"}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>入选来源县市区</label>
+                                                        <select class="form-control" id="source_county" name="source_county">
+                                                            <option value="">{$row.sourceCountyName}</option>
+                                                        </select>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['source_batch']"}                                                
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing" ><span style="color: red">*</span>入选名单批次</label>
+                                                        <input type="text" class="form-control" id="source_batch" value="{$row.source_batch}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['fujian_highcert_pubtime']"}                                                
+                                                    <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="fujian_highcert_pubtime" value="{$row.fujian_highcert_pubtime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['fujian_highcert_exptime']"}                                                
+                                                    <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="fujian_highcert_exptime" value="{$row.fujian_highcert_exptime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['quanzhou_highcert_pubtime']"}    
+                                                    <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="quanzhou_highcert_pubtime" value="{$row.quanzhou_highcert_pubtime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['quanzhou_highcert_exptime']"}    
+                                                    <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="quanzhou_highcert_exptime" value="{$row.quanzhou_highcert_exptime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    <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">
+                                                            <option value="">{$row.talentArrangeName}</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                                        <select class="form-control" >
+                                                            <option value="">{$row.talentConditionName}</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>最高学历</label>
+                                                        <select class="form-control" >
+                                                            <option value="">{$row.highestDegreeName}</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" id="graduate_school" value="{$row.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" value="{$row.major}"/>
+                                                    </div>
+                                                    {if condition="$row['professional']"}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing">专业技术职称</label>
+                                                        <input type="text" class="form-control" id="professional" value="{$row.professional}"/>
+                                                    </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" onchange="" id="bank" value="{$row.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" value="{$row.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_name" value="{$row.bank_branch_name}" 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" value="{$row.bank_account}" />
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing">是否有留学经历</label>
+                                                        <select class="form-control" id="study_abroad" >
+                                                            <option value="">{eq name="study_abroad" value="2"}否{else/}是{/eq}</option>
+                                                        </select>
+                                                    </div>                                                
+                                                    {if condition="$row['abroad_school']"}   
+                                                    <div class="rowGroup col-sm-3 abroad_need_this">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                                        <input type="text" class="form-control" id="abroad_school" value="{$row.abroad_school}" maxlength="11"/>
+                                                    </div>
+                                                    {/if}                                                
+                                                    {if condition="$row['abroad_major']"}   
+                                                    <div class="rowGroup col-sm-3 abroad_need_this">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                                        <input type="text" class="form-control" id="abroad_major" value="{$row.abroad_major}" maxlength="11"/>
+                                                    </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="phone" value="{$row.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" value="{$row.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> 
+                                </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}

+ 291 - 233
app/enterprise/view/talent/second.html

@@ -38,262 +38,320 @@
                 <div class="col-sm-12" >
                     <div class="tab-content">
                         <div id="tab-1" class="tab-pane active">
-                            <div class="panel-body" >
+                            <form id="talentInfoForm" action="/enterprise/talent/add" method="post" enctype="multipart/form-data" target="hiddenIframe">
                                 <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="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                    <div class="panel-body" style="display:none;">
+                                        <div class="row">
                                             <div class="col-sm-12 form-group-sm">
                                                 <input type="hidden" name="id" id="id" value="{$row.id}">
                                                 <input type="hidden" name="year" id="year" value="{$year}">
                                                 <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}">
                                                 <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}">
                                                 <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" readonly disabled>
-                                                                <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" value="{$row.tax_insurance_month}"  readonly disabled/>
-                                                        </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" value="{$row.labor_contract_rangetime}"  readonly disabled/>
-                                                        </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" value="{$row.enterpriseName}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
-                                                            <input type="text" class="form-control" value="{$row.enterpriseTagName}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
-                                                            <input type="text" class="form-control" value="{$row.streetName}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
-                                                            <input type="text" class="form-control" value="{$row.industryFieldName}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
-                                                            <input type="text" class="form-control" value="{$row.name}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
-                                                            <select class="form-control" value="{$row.card_type}" readonly disabled>
-                                                                <option value="">请选择</option>
-                                                                <option value="1" {eq name="row.card_type" value="1"} selected="" {/eq}>身份证</option>
-                                                                <option value="2" {eq name="row.card_type" value="2"} selected="" {/eq}>通行证</option>
-                                                                <option value="3" {eq name="row.card_type" value="3"} selected="" {/eq}>护照</option>
-                                                            </select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
-                                                            <input class="form-control" value="{$row.card_number}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
-                                                            <input type="text" class="form-control" value="{eq name='info.sex' value='1'}男{else/}女{/eq}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
-                                                            <input type="text" class="form-control" value="{$row.birthday}" readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
-                                                            <input class="form-control" value="{$row.nationalityName}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
-                                                            <input class="form-control" value="{$row.provinceName}{$row.cityName}{$row.countyName}" readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>民族</label>
-                                                            <input class="form-control" value="{$row.nationName}" readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
-                                                            <input class="form-control" value="{$row.politicsName}" readonly disabled/>
-                                                        </div>
+                                                <div class="col-sm-11">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                        <input type="text" class="form-control" value="{$row.name}"  readonly disabled/>
                                                     </div>
-                                                    <div class="col-sm-1">
-                                                        <img id="photoImg" src="{$row.headimgurl}"  style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                        <select class="form-control" value="{$row.card_type}" readonly disabled>
+                                                            <option value="">请选择</option>
+                                                            <option value="1" {eq name="row.card_type" value="1"} selected="" {/eq}>身份证</option>
+                                                            <option value="2" {eq name="row.card_type" value="2"} selected="" {/eq}>通行证</option>
+                                                            <option value="3" {eq name="row.card_type" value="3"} selected="" {/eq}>护照</option>
+                                                        </select>
                                                     </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}" readonly disabled>
-                                                        </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="position" name="position"/>
-                                                        </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" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()"></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_name" name="bank_branch_name" 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_major" name="abroad_major" 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 class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
+                                                        <input class="form-control" value="{$row.card_number}" readonly disabled>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
+                                                        <input type="text" class="form-control" value="{eq name='info.sex' value='1'}男{else/}女{/eq}"  readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control" value="{$row.birthday}" readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                        <input class="form-control" value="{$row.nationName}" readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                        <input class="form-control" value="{$row.nationalityName}" readonly disabled>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
+                                                        <input class="form-control" value="{$row.provinceName}{$row.cityName}{$row.countyName}" readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                        <input class="form-control" value="{$row.politicsName}" readonly disabled/>
                                                     </div>
                                                 </div>
-                                                <div class="row">
-                                                    <label class="col-sm-12 control-label spacing" style="text-align: left"><span style="color: red">声明:本人对输入材料的真实性负全部责任</span></label>
+                                                <div class="col-sm-1">
+                                                    <img id="photoImg" src="{$row.headimgurl}"  style="height: 110px;width: 76px;padding-bottom: 5px;">
                                                 </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="/common/api/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="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                            <ul class="list-unstyled">
+                                                <li style="margin:10px 0;overflow:hidden;">
+                                                    <div style="float:left;margin-left:25px;">身份证或护照上传</div>
+                                                    <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                        <i class="fa fa-upload"></i>上传
+                                                    </button>
+                                                </li>
+                                            </ul>
+                                        </div>
                                     </div>
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
-                                    <table id="logTable">
-                                    </table>
+                                </div>
+                        </div>
+                        <div class="panel panel-default">
+                            <div class="panel-heading" onclick="$(this).next().toggle()">人才基础信息</div>
+                            <div class="panel-body" style="display:none;">
+                                <div class="row">
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
+                                        <input type="text" class="form-control" value="{$row.enterpriseName}"  readonly disabled/>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                        <input type="text" class="form-control" value="{$row.enterpriseTagName}"  readonly disabled/>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
+                                        <input type="text" class="form-control" value="{$row.streetName}"  readonly disabled/>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
+                                        <input type="text" class="form-control" value="{$row.industryFieldName}" readonly disabled>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>人才类型</label>
+                                        <select class="form-control" readonly disabled>
+                                            <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" value="{$row.tax_insurance_month}"  readonly disabled/>
+                                    </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" value="{$row.labor_contract_rangetime}"  readonly disabled/>
+                                    </div>
+                                    {/if}
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">社保或所得税缴费记录</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
                                 </div>
                             </div>
                         </div>
+                        <div class="panel panel-default">
+                            <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
+                            <div class="panel-body">
+                                <div class="row">
+                                    <div class="col-sm-12">                          
+                                        <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}" readonly disabled>
+                                        </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>
+                                            <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 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>
+                                            <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_major" name="abroad_major" maxlength="11"/>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                                <div class="row">
+                                    <div class="col-sm-12">
+                                        <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="position" name="position"/>
+                                        </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>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                                <div class="row">
+                                    <div class="col-sm-12">
+                                        <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>
+                                            <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" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()"></select>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述认定条件佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                                <div class="row">
+                                    <div class="col-sm-12">
+                                        <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_name" name="bank_branch_name" 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>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                            </div>
+                        </div>
+                        </form>
+                        <div class="panel panel-default">
+                            <div class="panel-heading" onclick="$(this).next().toggle()">附件上传</div>
+                        </div>
+                        <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                        <table id="logTable">
+                        </table>
                     </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">

+ 2 - 0
extend/.gitignore

@@ -0,0 +1,2 @@
+*
+!.gitignore

+ 347 - 0
public/static/modular/gate/talentBase/talentBase.js

@@ -0,0 +1,347 @@
+/**
+ * 人才认定申报管理初始化
+ */
+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', radio: true},
+        {title: '人才类别', field: 'type', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (value == 1) {
+                    return '晋江市优秀人才';
+                }
+                if (value == 2) {
+                    return '集成电路优秀人才';
+                }
+            }
+        },
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "100px",
+            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: 'card_number', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '单位名称', field: 'enterpriseName', visible: isShow, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '单位标签', field: 'enterpriseTagName', visible: isShow, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '产业领域', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (row.real_state != row.checkState) {
+                    switch (row.real_state) {
+                        case 4:
+                            return "<span class='label label-danger'>预审驳回</span>";
+                            break;
+                        case 8:
+                            return "<span class='label label-danger'>初审驳回</span>";
+                            break;
+                        case 10:
+                            return "<span class='label label-danger'>部门驳回</span>";
+                            break;
+                        case 12:
+                            return "<span class='label label-danger'>复审驳回</span>";
+                            break;
+
+                    }
+                } else {
+                    switch (value) {
+                        case 1:
+                            return "<span class='label'>保存未提交</span>";
+                            break;
+                        case 2:
+                            return "<span class='label label-success'>待审核</span>";
+                            break;
+                        case 3:
+                            return "<span class='label'>待详细填报</span>";
+                            break;
+                        case 5:
+                            return "<span class='label'>保存未提交(II)</span>";
+                            break;
+                        case 6:
+                            return "<span class='label label-success'>待初审</span>";
+                            break;
+                        case 7:
+                            if (row.companyIds) {
+                                return "<span class='label label-success'>待部门审核</span>";
+                            } else {
+                                return "<span class='label label-success'>待复审</span>";
+                            }
+                            break;
+                        case 9:
+                            return "<span class='label label-success'>待复审</span>";
+                            break;
+                        case 11:
+                            return "<span class='label label-primary'>认定通过</span>";
+                            break;
+                        case 13:
+                            return "<span class='label label-danger'>复审失败</span>";
+                            break;
+                    }
+                }
+            }
+        },
+        {title: '审核意见', field: 'checkMsg', visible: false, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
+            formatter: function (value, row, index) {
+                if (value == 1) {
+                    return ""
+                } else if (value == 10 || value == 5) {
+                    return value;
+                } else {
+                    if (row.isPublic >= 5) {
+                        if (value == -1) {
+                            return value
+                        } else if (value == 35) {
+                            return value;
+                        } else {
+                            return ""
+                        }
+                    } else {
+                        return ""
+                    }
+                }
+            }
+        },
+        {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 == 0) {
+        Feng.info("请先选中表格中的某一记录!");
+        return false;
+    } else {
+        TalentInfo.seItem = selected[0];
+        return true;
+    }
+};
+
+/**
+ * 显示审核日志
+ */
+TalentInfo.showLog = function (id) {
+    layer.open({
+        type: 1,
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
+        area: ['80%', '80%'],
+        maxmin: true,
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": CONFIG.project_rcrd, "mainId": id, "typeFileId": "", "active": 1})
+        }
+    });
+
+}
+
+
+/**
+ * 点击添加人才认定申报
+ */
+TalentInfo.openAddTalentInfo = function () {
+    var ajax = new $ax("/common/batch/checkBatchValid", function (data) {
+        if (data.code == 200) {
+            var index = layer.open({
+                type: 2,
+                title: '添加人才认定申报',
+                fix: false, //不固定
+                maxmin: true,
+                content: '/enterprise/base/add?year=' + data.batch,
+                btn: ['<i class="fa fa-eye control-btn"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check layui-bg-green  control-btn"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser control-btn"></i>&nbsp;&nbsp;取消'],
+                btnAlign: 'c',
+                btn1: function (index, layero) {
+                    var obj = layero.find("iframe")[0].contentWindow;
+                    obj.TalentInfoInfoDlg.addSubmit();
+                }, btn2: function (index, layero) {
+                    var obj = layero.find("iframe")[0].contentWindow;
+                    obj.TalentInfoInfoDlg.submitToCheck();
+                    return false;
+                },
+                success: function (layero, index) {
+                    layer.tips('添加基本信息并上传附件后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
+                },
+                end: function () {
+                    layer.closeAll('tips');
+                }
+            });
+            layer.full(index);
+            TalentInfo.layerIndex = index;
+        } else {
+            Feng.info(data.msg);
+        }
+    }, function (data) {
+        Feng.error("校验失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set("type", CONFIG.project_rcrd);
+    ajax.start();
+};
+
+/**
+ * 打开查看人才认定申报详情
+ */
+TalentInfo.openTalentInfoDetail = function () {
+    if (this.check()) {
+        var ajax = new $ax("/common/batch/checkBatchValid", function (data) {
+            if (data.code == 200) {
+                var index = layer.open({
+                    type: 2,
+                    title: '人才认定申报详情',
+                    area: ['800px', '420px'], //宽高
+                    fix: false, //不固定
+                    maxmin: true,
+                    content: '/enterprise/base/add/id/' + TalentInfo.seItem.id,
+                    btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check layui-bg-green"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+                    btnAlign: 'c',
+                    btn1: function (index, layero) {
+                        var obj = layero.find("iframe")[0].contentWindow;
+                        obj.TalentInfoInfoDlg.addSubmit();
+                    }, btn2: function (index, layero) {
+                        var obj = layero.find("iframe")[0].contentWindow;
+                        obj.TalentInfoInfoDlg.submitToCheck();
+                        return false;
+                    },
+                    success: function (layero, index) {
+                        layer.tips('添加基本信息并上传附件后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
+                    },
+                    end: function () {
+                        layer.closeAll('tips');
+                    }
+                });
+                layer.full(index);
+                TalentInfo.layerIndex = index;
+            } else {
+                Feng.info(data.msg);
+            }
+        }, function (data) {
+            Feng.error("校验失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("type", CONFIG.project_rcrd);
+        ajax.set("year", TalentInfo.seItem.year);
+        ajax.start();
+    }
+};
+
+
+/**
+ * 查看
+ */
+TalentInfo.openTalentInfoSelect = function () {
+    if (this.check()) {
+        var index = layer.open({
+            type: 2,
+            title: '基础条件申报',
+            area: ['800px', '420px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: '/enterprise/base/view/id/' + TalentInfo.seItem.id,
+            btn: ['<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+            btnAlign: 'c',
+        });
+        layer.full(index);
+        TalentInfo.layerIndex = index;
+    }
+}
+
+/**
+ * 删除人才认定申报
+ */
+TalentInfo.delete = function () {
+    if (this.check()) {
+        if (TalentInfo.seItem.checkState > 1) {
+            Feng.error("该申报已提交审核,无法删除");
+            return;
+        }
+        var operation = function () {
+            var ajax = new $ax("/enterprise/base/delete", function (data) {
+                Feng.success("删除成功!");
+                TalentInfo.table.refresh();
+            }, function (data) {
+                Feng.error("删除失败!" + data.responseJSON.message + "!");
+            });
+            ajax.set("talentInfoId", TalentInfo.seItem.id);
+            ajax.start();
+        }
+        Feng.confirm("删除后无法恢复,确认删除吗?", operation);
+    }
+};
+
+/**
+ * 查询表单提交参数对象
+ * @returns {{}}
+ */
+TalentInfo.formParams = function () {
+    var queryData = {};
+    queryData['name'] = $("#name").val();
+    queryData['idCard'] = $("#idCard").val();
+    queryData['sex'] = $("#sex").val();
+    queryData['nation'] = $("#nation").val();
+    queryData['nationality'] = $("#nationality").val();
+    queryData['talentType'] = $("#talentType").val();
+    queryData['talentArrange'] = $("#talentArrange").val();
+    queryData['checkState'] = $("#checkState").val();
+    return queryData;
+}
+
+/**
+ * 查询人才认定申报列表
+ */
+TalentInfo.search = function () {
+    TalentInfo.table.refresh({query: TalentInfo.formParams()});
+};
+
+/**
+ * 重置
+ */
+TalentInfo.reset = function () {
+    $("#name").val("");
+    $("#idCard").val("");
+    $("#sex").val("");
+    $("#nation").val("");
+    $("#nationality").val("");
+    $("#talentType").val("");
+    $("#talentArrange").val("");
+    $("#checkState").val("");
+}
+
+$(function () {
+    var defaultColunms = TalentInfo.initColumn();
+    var table = new BSTable(TalentInfo.id, "/enterprise/base/list/type/1", defaultColunms);
+    table.setPaginationType("server");
+    table.setOnDblClickRow(function () {
+        TalentInfo.openTalentInfoDetail();
+    });
+    TalentInfo.table = table.init();
+    //批量加载字典表数据
+    var arr = [
+        {"name": "nation", "code": "nation"},
+        {"name": "nationality", "code": "nationality"},
+        {"name": "enterprise_tag", "code": "enterprise_tag"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+});
+

+ 673 - 0
public/static/modular/gate/talentBase/talentInfo_ic_info.js

@@ -0,0 +1,673 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var locked = false;
+var TalentInfoInfoDlg = {
+    talentInfoInfoData : {},
+    validateFields: {
+        enterpriseId: {validators: {notEmpty: {message: '所属企业不能为空' }}},
+        companyName :{validators: {notEmpty: {message: '所属企业不能为空' }}},
+        type : {validators: {notEmpty: {message: '人才类别不能为空' }}},
+        name: {validators: {notEmpty: {message: '姓名不能为空'}}},
+        nation: {validators: {notEmpty: {message: '民族不能为空'}}},
+        provinceCode: {validators: {notEmpty: {message: '户籍省份不能为空'}}},
+        cityCode: {validators: {notEmpty: {message: '户籍市不能为空'}}},
+        address: {validators: {notEmpty: {message: '现居地址不能为空'}}},
+        highEducation: {validators: {notEmpty: {message: '最高学历不能为空'}}},
+        major: {validators: {notEmpty: {message: '专业不能为空'}}},
+        phone: {
+            validators: {
+                notEmpty: {
+                    message: '手机号码不能为空'
+                },
+                regexp :{
+                    regexp:/0?(13|14|15|17|18|19)[0-9]{9}/,
+                    message:"手机号码格式不正确"
+                }
+            }
+        },
+        bank: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行不能为空'
+                },
+                regexp :{
+                    regexp: /^[\u4e00-\u9fa5]*银行$/,
+                    message:"开户银行格式不正确"
+                }
+            }
+        },
+        bankAccount: {validators: {notEmpty: {message: '银行账号不能为空'}}},
+        entryTime: {validators: {notEmpty: {message: '入职时间不能为空'}}},
+        endTime: {validators: {notEmpty: {message: '工作合同结束时间不能为空'}}},
+        identifyCondition: {validators: {notEmpty: {message: '认定条件不能为空'}}},
+        identifyConditionName: {validators: {notEmpty: {message: '认定条件名称不能为空'}}},
+        type: {validators: {notEmpty: {message: '人才类别不能为空'}}},
+        cardType:{validators:{notEmpty:{message:'证件类型不能为空'}}},
+        idCard: {validators: {notEmpty: {message: '证件号码不能为空'}}},
+        sex: {validators: {notEmpty: {message: '性别不能为空'}}},
+        nationality: {validators: {notEmpty: {message: '国籍/地区不能为空'}}},
+        birthday: {validators: {notEmpty: {message: '出生日期不能为空'}}},
+        politics: {validators: {notEmpty: {message: '政治面貌不能为空'}}},
+        graduateSchool: {validators: {notEmpty: {message: '毕业学校不能为空'}}},
+        post: {validators: {notEmpty: {message: '职务不能为空'}}},
+        email: {
+
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress:{
+                    message:"电子邮箱格式不正确"
+                }
+            }
+        },
+        bankNetwork:{
+            validators: {
+                notEmpty: {
+                    message: '开户银行网点不能为空'
+                },
+                regexp :{
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*省?[\u4e00-\u9fa5]+市[\u4e00-\u9fa5]*$/,
+                    message:"开户银行格式不正确"
+                }
+            }
+        },
+        introductionMode:{
+            validators: {
+                notEmpty: {
+                    message: '引进方式不能为空'
+                }
+            }
+        },
+        startTime: {validators: {notEmpty: {message: '工作合同开始时间不能为空'}}},
+        talentArrange: {validators: {notEmpty: {message: '人才层次不能为空'}}},
+        identifyGetTime: {validators: {notEmpty: {message: '认定条件证书取得时间不能为空'}}},
+        breakFaith: {validators: {notEmpty: {message: '是否曾被相关主管部门列为失信个人不能为空'}}},
+        mainHonours: {validators: {notEmpty: {message: '主要业绩及取得的荣誉不能为空'}}},
+        educationAndResume: {validators: {notEmpty: {message: '教育背景及工作简历不能为空'}}}
+    }
+};
+
+/**
+ * 清除数据
+ */
+TalentInfoInfoDlg.clearData = function() {
+    this.talentInfoInfoData = {};
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+TalentInfoInfoDlg.set = function(key, val) {
+    this.talentInfoInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
+    return this;
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+TalentInfoInfoDlg.get = function(key) {
+    return $("#" + key).val();
+}
+
+/**
+ * 关闭此对话框
+ */
+TalentInfoInfoDlg.close = function() {
+    parent.layer.close(window.parent.TalentInfo.layerIndex);
+}
+
+/**
+ * 收集数据
+ */
+TalentInfoInfoDlg.collectData = function() {
+    this
+        .set('id')
+        .set('enterpriseId')
+        .set('type')
+        .set('idCard')
+        .set('cardType')
+        .set('name')
+        .set('sex')
+        .set('nation')
+        .set('nationality')
+        .set('provinceCode')
+        .set('cityCode')
+        .set('countyCode')
+        .set('birthday')
+        .set('address')
+        .set('politics')
+        .set('highEducation')
+        .set('graduateSchool')
+        .set('major')
+        .set('post')
+        .set('phone')
+        .set('email')
+        .set('bank')
+        .set('bankNetwork')
+        .set('bankAccount')
+        .set('bankNumber')
+        .set('entryTime')
+        .set('startTime')
+        .set('endTime')
+        .set('talentArrange')
+        .set('identifyCondition')
+        .set('identifyGetTime')
+        .set('identifyConditionName')
+        .set('breakFaith')
+        .set('educationAndResume')
+        .set('mainHonours')
+        .set('industryField')
+        .set('title')
+        .set('professionalQualifications')
+        .set('studyAbroad')
+        .set('studyAbroadCountry')
+        .set('studyAbroadTime')
+        .set('description');
+    this.talentInfoInfoData["provinceName"] = $("#provinceCode").find("option:selected").text();
+    this.talentInfoInfoData["cityName"] = $("#cityCode").find("option:selected").text();
+    this.talentInfoInfoData["countyName"] = $("#countyCode").find("option:selected").text();
+}
+
+/**
+ * 验证数据
+ */
+TalentInfoInfoDlg.validate = function () {
+    $('#talentInfoForm').data("bootstrapValidator").resetForm();
+    $('#talentInfoForm').bootstrapValidator('validate');
+    return $("#talentInfoForm").data('bootstrapValidator').isValid();
+}
+
+
+/**
+ * 提交添加
+ */
+TalentInfoInfoDlg.addSubmit = function() {
+    this.clearData();
+    this.collectData();
+    if(!TalentInfoInfoDlg.validate()){
+        return ;
+    }
+    var id = $('#id').val();
+    $("#provinceName").val($("#provinceCode").find("option:selected").text());
+    $("#cityName").val($("#cityCode").find("option:selected").text());
+    if($("#countyCode").val()!=null && $("#countyCode").val()!=''){
+        $("#countyName").val($("#countyCode").find("option:selected").text());
+    }
+    if(id!=null && id!=''){
+        if(!TalentInfoInfoDlg.validateIsEdit())return;
+    }
+    $("select").each(function () {
+        $(this).removeAttr("disabled");
+    });
+    if(locked){
+        return ;
+    }
+    locked = true;
+    $("#talentInfoForm")[0].submit();
+
+}
+
+//回调
+TalentInfoInfoDlg.infoCallback = function (data){
+    locked = false;
+    TalentInfoInfoDlg.setNoChangeField();
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        window.parent.TalentInfo.table.refresh();
+        $("#id").val(data.obj.id);
+        $("#fileLi").removeAttr("style");
+        $("#checkState").val(data.obj.checkState);
+    }
+}
+
+
+/**
+ * 获取人才认定
+ */
+TalentInfoInfoDlg.getIdentifyCondition = function() {
+    var level = $("#talentArrange").val();
+    var type = $("#type").val();
+    if(level==null||level==''){
+        $("#identifyCondition").empty();
+        $("#identifyCondition").trigger('chosen:updated');
+        return;
+    }
+    if(type==null||type==''){
+        Feng.info("请先选择人才类别");
+        return ;
+    }
+    Feng.addAjaxSelect({
+        "id": "identifyCondition",
+        "displayCode": "id",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/common/findIdentifyConditionByLevel?talentLevel="+level+"&type="+type
+    });
+    $("#identifyCondition").trigger('chosen:updated');
+}
+
+TalentInfoInfoDlg.bankChange = function () {
+    var bank = $("#bank").val();
+    if($.trim(bank)=='中国工商银行'){
+        $("#bankNumber").val('102391050013');
+    }else {
+        $("#bankNumber").val('');
+    }
+}
+
+
+/**
+ * 加载市
+ */
+TalentInfoInfoDlg.afterSelectProvince = function () {
+    var province = $("#provinceCode").val();
+    $("#cityCode").empty();
+    $("#countyCode").empty();
+    if(province==null||province==''){
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "cityCode",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/commonLocation/findCityByProvinceSelect/"+province
+    });
+}
+/**
+ * 加载县
+ */
+TalentInfoInfoDlg.afterSelectCity = function (){
+    var city = $("#cityCode").val();
+    $("#countyCode").empty();
+    if(city==null||city==''){
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "countyCode",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/commonLocation/findCountyByCitySelect/"+city
+    });
+}
+//初始化附件类别表单
+TalentInfoInfoDlg.initFileTable = function (){
+    var queryData = {};
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    $("#fileTable").bootstrapTable({
+        url: Feng.ctxPath + "/api/talentInfo/findUnCommonFileType",
+        method: 'POST',
+        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+        search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false,				// 是否显示刷新按钮
+        clickToSelect: true,			// 是否启用点击选中行
+        singleSelect: true,				// 设置True 将禁止多选
+        striped: true,  				// 是否显示行间隔色
+        escape: true,
+        pagination: false,   			// 设置为 true 会在表格底部显示分页条
+        paginationHAlign: "left",
+        paginationDetailHAlign: "right",
+        sidePagination: "server",   	// 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        showColumns: false,
+        detailView: true,               //是否显示父子表
+        pageList: [10, 30, 50],
+        queryParams: function (params) {
+            return $.extend(queryData,params)
+        },
+        rowStyle: function (row, index) {
+            return {classes:"info"};
+        },
+        columns: TalentInfoInfoDlg.initFileTypeColumn(),
+        onPostBody: function () {
+            $("td.uitd_showTip").bind("mouseover", function () {
+                var htm = $(this).html();
+                $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+            });
+        },
+        onLoadSuccess: function (data) {
+            $("#fileTable").bootstrapTable('expandAllRows');
+        },
+        onExpandRow: function (index, row, $detail) {
+            var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/listTalentFile", function (data) {
+                if(data==null||data.length==0){
+                    return;
+                }
+                var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
+                var files = $("#files").val();
+                var checkState = $("#checkState").val();
+                for(var key in data){
+                    var btn = "";
+                    if(checkState!=10 || (checkState==10 && files.indexOf(row.id)!=-1)){
+                        btn = "<button type=\'button\' onclick=\"TalentInfoInfoDlg.checkFile(this,'"+row.fState+"','"+row.id+"','"+data[key].id+"')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
+                            "<i class=\"fa fa-paste\"></i>修改" +
+                            "</button>" +
+                            "<button type='button' onclick=\"TalentInfoInfoDlg.deleteFile('"+data[key].id+"','"+row.fState+"')\" class=\"btn btn-xs btn-danger\">" +
+                            "<i class=\"fa fa-times\"></i>删除" +
+                            "</button>";
+                    }else{
+                        btn = "";
+                    }
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].url.substring(sn+1,data[key].url.length);
+                    var imgStr = "";
+                    if(suffix=="pdf"||suffix=="PDF"){
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    }else if(suffix == "xlsx" || suffix=="XLSX" || suffix == 'xls' || suffix == 'XLS'){
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    }else{
+                        imgStr = '<img class=\"imgUrl\"  src=\"'+data[key].url+'\" style=\"width:25px;height:25px;\">';
+                    }
+                    html = html + '<li style="display: none">'+data[key].id+'</li>\n'+
+                        '<li style="width: 80%;padding-top: 5px;">'+data[key].orignName+'</li>\n'+
+                        '<li style="width: 10%;">'+imgStr+'</li>\n'+
+                        '<li style="width: 10%;padding-top: 2px;">'+btn+'</li>';
+                }
+                html = html + '</ul>';
+                $detail.html(html);
+                $(".imgs").viewer({ fullscreen:false});
+            }, function (data) {
+                Feng.error("查询失败!" + data.responseJSON.message + "!");
+            });
+            var queryData = {};
+            queryData["mainId"] = $("#id").val();
+            queryData["fileTypeId"] = row.id;
+            ajax.set(queryData);
+            ajax.start();
+        }
+    });
+
+}
+
+//校验是否保存基础信息
+TalentInfoInfoDlg.validId = function (){
+    var id = $("#id").val();
+    if(id!=null && id!=''){
+        $("#fileLi").removeAttr("style");
+    }else{
+        $("#fileLi").attr("style","pointer-events: none");
+    }
+}
+//选择附件并显示附件名
+TalentInfoInfoDlg.checkFile = function (content,state,fileTypeId,fileId){
+    if(!TalentInfoInfoDlg.validateIsEdit())return;
+    $("#upload_file ").unbind("change");
+    $("#upload_file ").change(function () {
+        TalentInfoInfoDlg.upload(fileTypeId,fileId);
+    });
+    $('#upload_file').val("");
+    $('#upload_file').click()
+}
+//上传附件
+TalentInfoInfoDlg.upload = function (fileTypeId,fileId){
+    var id = $("#id").val();
+    if(id==null || id==''){
+        Feng.info("请先添加基本信息并保存后再试");
+        return ;
+    }
+    if(!TalentInfoInfoDlg.validateIsEdit())return;
+    if(fileId!=null&&fileId!='null'){
+        $("#fileId").val(fileId)
+    }else{
+        $("#fileId").val("");
+    }
+    $("#mainId").val(id);
+    $("#fileTypeId").val(fileTypeId);
+    var index = layer.load(0, {shade: false,time:0});
+    $("#index").val(index);
+    $("#uploadForm").submit();
+}
+//删除附件
+TalentInfoInfoDlg.deleteFile = function (id,state){
+    if(!TalentInfoInfoDlg.validateIsEdit())return;
+    var operation = function() {
+        var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/deleteFile", function (data) {
+            if(data.code=200){
+                Feng.success(data.msg);
+                $("#fileTable").bootstrapTable("refresh", {});
+            }else{
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("删除失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id", id);
+        ajax.set("type",1);
+        ajax.start();
+    }
+    Feng.confirm("删除后无法恢复,确认删除吗?", operation);
+}
+
+/**
+ * 提交审核
+ */
+TalentInfoInfoDlg.submitToCheck = function(){
+    var id = $("#id").val();
+    if(id==null || id==""){
+        Feng.info("请先填写基础信息并上传附件");
+        return ;
+    }
+    if(!TalentInfoInfoDlg.validateIsEdit())return;
+    var operation = function() {
+        var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/submitToCheck", function (data) {
+            if(data.code==200){
+                Feng.success(data.msg);
+                // $("#checkState").val(data.obj);
+                window.parent.TalentInfo.table.refresh();
+                TalentInfoInfoDlg.close();
+            }else{
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id", id);
+        ajax.start();
+    }
+    Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
+}
+
+/**
+ * 校验是否可以修改/提交审核
+ */
+TalentInfoInfoDlg.validateIsEdit = function (){
+    var checkState = $("#checkState").val();
+    if(checkState != 1 && checkState != 5 && checkState != 10){
+        if(checkState==-1){
+            Feng.error("您的申报审核不通过,无法再修改");
+            return false;
+        }else if(checkState>=35){
+            Feng.error("您的申报已审核通过,无法再修改");
+            return false;
+        }else{
+            Feng.error("您的申报正在审核中,请耐心等待");
+            return false;
+        }
+    }
+    return true;
+}
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox:false,visible:false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle',width:"30%",'class': 'uitd_showTip',
+            formatter : function(value,row,index){
+                if(row.must==1){
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> '+ value;
+                }if(row.must==2){
+                    return '<i class="fa fa-paste"></i>'+value;
+                }
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle',width:"8%",
+            formatter : function(value,row,index){
+                if(value==null||value==''||value=='null'){
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('"+row.id+"',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                    "<i class=\"fa fa-download\"></i>下载" +
+                    "</button>";
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle',width:"52%",'class': 'uitd_showTip'},
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"10%",
+            formatter : function(value,row,index){
+                var files = $("#files").val();
+                var checkState = $("#checkState").val();
+                if(checkState!=10 || files.indexOf(value)!=-1){
+                    return "<button type='button' onclick=\"TalentInfoInfoDlg.checkFile(this,'"+row.fState+"','"+value+"','"+null+"')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                        "<i class=\"fa fa-upload\"></i>上传" +
+                        "</button>" ;
+                }else{
+                    return "审核通过,无法添加" ;
+                }
+
+            }
+        }
+    ]
+};
+
+//回调
+TalentInfoInfoDlg.callBack = function (data){
+    layer.close(data.obj);
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        $("#fileTable").bootstrapTable("refresh", {});
+    }
+}
+TalentInfoInfoDlg.downloadFile = function (id,type){
+    window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type="+type;
+}
+//设置不可修改的字段
+TalentInfoInfoDlg.setNoChangeField = function () {
+    var checkState = $("#checkState").val();
+    var fields = $("#fields").val();
+    if(checkState==10){
+        $("input,textarea").each(function () {
+            $(this).attr("readonly","readonly");
+        });
+        $("select").each(function () {
+            $(this).attr("disabled","disabled");
+        });
+        if(fields!=null && fields!=''){
+            var arr = fields.split(",");
+            for(var key in arr){
+                var name = $("#" + arr[key]).prop("tagName");
+                if(name=='select' || name=='SELECT'){
+                    $("#" + arr[key]).removeAttr("disabled");
+                }if(name=="input" || name=='textarea' || name=="INPUT" || name=='TEXTAREA'){
+                    $("#" + arr[key]).removeAttr("readonly");
+                }
+            }
+        }
+    }
+}
+
+$(function() {
+    $('#talentInfoForm').bootstrapValidator({
+        feedbackIcons: {
+            valid: 'glyphicon glyphicon-ok',
+            invalid: 'glyphicon glyphicon-remove',
+            validating: 'glyphicon glyphicon-refresh'
+        },
+        container: 'tooltip',
+        group:'.rowGroup',
+        fields: TalentInfoInfoDlg.validateFields,
+        live: 'enabled',
+        message: '该字段不能为空'
+    }).on('error.field.bv', function(e, data) {
+        // Get the tooltip
+        var $parent = data.element.parents('.form-group-sm'),
+            $icon   = $parent.find('.form-control-feedback[data-bv-icon-for="' + data.field + '"]'),
+            title   = $icon.data('bs.tooltip').getTitle();
+        $icon.tooltip('destroy').tooltip({
+            html: true,
+            placement: 'right',
+            title: title,
+            container: 'body'
+        });
+    });
+    //批量加载字典表数据
+    var arr = [
+        {"name":"nation","code":"un_nation"},
+        {"name":"talentArrange","code":"un_talentLevel"},
+        {"name":"nationality","code":"un_nationality"},
+        {"name":"talentType","code":"un_jbt_talentType"},
+        {"name":"politics","code":"un_political"},
+        {"name":"highEducation","code":"un_education"},
+        {"name":"introductionMode","code":"un_introduction_mode"},
+        {"name":"industryField","code":"un_industryField"},
+        {"name":"address","code":"un_street"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "provinceCode",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/commonLocation/getProvinceSelect"
+    });
+    //批量加载时间控件
+    $(".date").each(function(){
+        laydate.render({
+            elem: this
+            ,type: 'date'
+            ,trigger: 'click'
+        });
+    });
+    var id = $("#id").val();
+    if(id!=null && id!=''){
+        $("select").each(function () {
+            $(this).val($(this).attr("value")).trigger("change");
+        });
+        Feng.getCheckLog("logTable",{"type":CONFIG.project_rcrd,"mainId":id,"typeFileId":"","active":1})
+    }
+    $("#address").val($("#address").attr("value"));
+    $("#provinceCode").val($("#provinceCode").attr("value"));
+    TalentInfoInfoDlg.afterSelectProvince();
+    $("#cityCode").val($("#cityCode").attr("value"));
+    TalentInfoInfoDlg.afterSelectCity();
+    $("#countyCode").val($("#countyCode").attr("value"));
+    $("#talentArrange").val($("#talentArrange").attr("value"));
+    TalentInfoInfoDlg.getIdentifyCondition();
+    $("#talentArrange").val($("#talentArrange").attr("value"));
+    $("#identifyCondition").val($("#identifyCondition").attr("value"));
+    TalentInfoInfoDlg.validId();
+    $("#photo").change(function (e) {
+        var tag = e.target;
+        var file = tag.files[0];
+        var imgSrc;
+        var reader = new FileReader();
+        reader.readAsDataURL(file);
+        reader.onload = function() {
+            imgSrc = this.result;
+            $("#photoImg").attr("src", imgSrc);
+        };
+    });
+    TalentInfoInfoDlg.setNoChangeField();
+    $("#identifyCondition").on('chosen:ready', function(e, params) {
+        $(".chosen-container-single .chosen-single").css("padding","4px 0px 0px 4px");
+    });
+    $("#identifyCondition").chosen({
+        no_results_text: "没有找到结果!",
+        width:'100%',
+        search_contains:true,       //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
+        disable_search: false,
+        enable_split_word_search: true,
+        rtl:true
+    });
+});
+
+

+ 247 - 0
public/static/modular/gate/talentBase/talentInfo_ic_select.js

@@ -0,0 +1,247 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var locked = false;
+var TalentInfoInfoDlg = {
+    talentInfoInfoData : {},
+};
+
+
+
+
+/**
+ * 获取人才认定
+ */
+TalentInfoInfoDlg.getIdentifyCondition = function() {
+    var level = $("#talentArrange").val();
+    var type = $("#type").val();
+    if(level==null||level==''){
+        $("#identifyCondition").empty();
+        $("#identifyCondition").trigger('chosen:updated');
+        return;
+    }
+    if(type==null||type==''){
+        Feng.info("请先选择人才类别");
+        return ;
+    }
+    Feng.addAjaxSelect({
+        "id": "identifyCondition",
+        "displayCode": "id",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/common/findIdentifyConditionByLevel?talentLevel="+level+"&type="+type
+    });
+    $("#identifyCondition").trigger('chosen:updated');
+}
+
+TalentInfoInfoDlg.bankChange = function () {
+    var bank = $("#bank").val();
+    if($.trim(bank)=='中国工商银行'){
+        $("#bankNumber").val('102391050013');
+    }else {
+        $("#bankNumber").val('');
+    }
+}
+
+
+/**
+ * 加载市
+ */
+TalentInfoInfoDlg.afterSelectProvince = function () {
+    var province = $("#provinceCode").val();
+    $("#cityCode").empty();
+    $("#countyCode").empty();
+    if(province==null||province==''){
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "cityCode",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/commonLocation/findCityByProvinceSelect/"+province
+    });
+}
+/**
+ * 加载县
+ */
+TalentInfoInfoDlg.afterSelectCity = function (){
+    var city = $("#cityCode").val();
+    $("#countyCode").empty();
+    if(city==null||city==''){
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "countyCode",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/commonLocation/findCountyByCitySelect/"+city
+    });
+}
+//初始化附件类别表单
+TalentInfoInfoDlg.initFileTable = function (){
+    var queryData = {};
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    $("#fileTable").bootstrapTable({
+        url: Feng.ctxPath + "/api/talentInfo/findUnCommonFileType",
+        method: 'POST',
+        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+        search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false,				// 是否显示刷新按钮
+        clickToSelect: true,			// 是否启用点击选中行
+        singleSelect: true,				// 设置True 将禁止多选
+        striped: true,  				// 是否显示行间隔色
+        escape: true,
+        pagination: false,   			// 设置为 true 会在表格底部显示分页条
+        paginationHAlign: "left",
+        paginationDetailHAlign: "right",
+        sidePagination: "server",   	// 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        showColumns: false,
+        detailView: true,               //是否显示父子表
+        pageList: [10, 30, 50],
+        queryParams: function (params) {
+            return $.extend(queryData,params)
+        },
+        rowStyle: function (row, index) {
+            return {classes:"info"};
+        },
+        columns: TalentInfoInfoDlg.initFileTypeColumn(),
+        onPostBody: function () {
+            $("td.uitd_showTip").bind("mouseover", function () {
+                var htm = $(this).html();
+                $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+            });
+        },
+        onLoadSuccess: function (data) {
+            $("#fileTable").bootstrapTable('expandAllRows');
+        },
+        onExpandRow: function (index, row, $detail) {
+            var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/listTalentFile", function (data) {
+                if(data==null||data.length==0){
+                    return;
+                }
+                var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li>';
+                var files = $("#files").val();
+                var checkState = $("#checkState").val();
+                for(var key in data){
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].url.substring(sn+1,data[key].url.length);
+                    var imgStr = "";
+                    if(suffix=="pdf"||suffix=="PDF"){
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    }else if(suffix == "xlsx" || suffix=="XLSX" || suffix == 'xls' || suffix == 'XLS'){
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    }else{
+                        imgStr = '<img class=\"imgUrl\"  src=\"'+data[key].url+'\" style=\"width:25px;height:25px;\">';
+                    }
+                    html = html + '<li style="display: none">'+data[key].id+'</li>\n'+
+                        '<li style="width: 80%;padding-top: 5px;">'+data[key].orignName+'</li>\n'+
+                        '<li style="width: 10%;">'+imgStr+'</li>\n';
+                }
+                html = html + '</ul>';
+                $detail.html(html);
+                $(".imgs").viewer({ fullscreen:false});
+            }, function (data) {
+                Feng.error("查询失败!" + data.responseJSON.message + "!");
+            });
+            var queryData = {};
+            queryData["mainId"] = $("#id").val();
+            queryData["fileTypeId"] = row.id;
+            ajax.set(queryData);
+            ajax.start();
+        }
+    });
+
+}
+
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox:false,visible:false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle',width:"30%",'class': 'uitd_showTip',
+            formatter : function(value,row,index){
+                if(row.must==1){
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> '+ value;
+                }if(row.must==2){
+                    return '<i class="fa fa-paste"></i>'+value;
+                }
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle',width:"8%",
+            formatter : function(value,row,index){
+                if(value==null||value==''||value=='null'){
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('"+row.id+"',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                    "<i class=\"fa fa-download\"></i>下载" +
+                    "</button>";
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle',width:"52%",'class': 'uitd_showTip'},
+    ]
+};
+
+TalentInfoInfoDlg.downloadFile = function (id,type){
+    window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type="+type;
+}
+
+$(function() {
+    //批量加载字典表数据
+    var arr = [
+        {"name":"nation","code":"un_nation"},
+        {"name":"talentArrange","code":"un_talentLevel"},
+        {"name":"nationality","code":"un_nationality"},
+        {"name":"talentType","code":"un_jbt_talentType"},
+        {"name":"politics","code":"un_political"},
+        {"name":"highEducation","code":"un_education"},
+        {"name":"introductionMode","code":"un_introduction_mode"},
+        {"name":"industryField","code":"un_industryField"},
+        {"name":"address","code":"un_street"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "provinceCode",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/api/commonLocation/getProvinceSelect"
+    });
+    var id = $("#id").val();
+    if(id!=null && id!=''){
+        $("select").each(function () {
+            $(this).val($(this).attr("value")).trigger("change");
+        });
+        Feng.getCheckLog("logTable",{"type":CONFIG.project_rcrd,"mainId":id,"typeFileId":"","active":1})
+    }
+    $("#address").val($("#address").attr("value"));
+    $("#provinceCode").val($("#provinceCode").attr("value"));
+    TalentInfoInfoDlg.afterSelectProvince();
+    $("#cityCode").val($("#cityCode").attr("value"));
+    TalentInfoInfoDlg.afterSelectCity();
+    $("#countyCode").val($("#countyCode").attr("value"));
+    $("#talentArrange").val($("#talentArrange").attr("value"));
+    TalentInfoInfoDlg.getIdentifyCondition();
+    $("#talentArrange").val($("#talentArrange").attr("value"));
+    $("#identifyCondition").val($("#identifyCondition").attr("value"));
+    TalentInfoInfoDlg.validId();
+    $("#photo").change(function (e) {
+        var tag = e.target;
+        var file = tag.files[0];
+        var imgSrc;
+        var reader = new FileReader();
+        reader.readAsDataURL(file);
+        reader.onload = function() {
+            imgSrc = this.result;
+            $("#photoImg").attr("src", imgSrc);
+        };
+    });
+    TalentInfoInfoDlg.setNoChangeField();
+    $("input,select,textarea").not("input[type='hidden']").not("input[type='file']").attr("style","pointer-events: none;background-color: #eee;");
+});
+
+

+ 981 - 0
public/static/modular/gate/talentBase/talentInfo_info.js

@@ -0,0 +1,981 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var locked = false;
+var step = $("#step").val();
+var TalentInfoInfoDlg = step == 1 ? {
+    talentInfoInfoData: {},
+    validateFields: {
+        source_county: {validators: {notEmpty: {message: '入选来源县市区不能为空'}}},
+        enterprise_id: {validators: {notEmpty: {message: '所属企业不能为空'}}},
+        talent_type: {validators: {notEmpty: {message: '人才类型不能为空'}}},
+        enterprise_tag: {validators: {notEmpty: {message: '单位标签不能为空'}}},
+        enterprise_name: {validators: {notEmpty: {message: '单位名称不能为空'}}},
+        address: {validators: {notEmpty: {message: '所属街道不能为空'}}},
+        industry_field: {validators: {notEmpty: {message: '产业领域不能为空'}}},
+        name: {validators: {notEmpty: {message: '姓名不能为空'}}},
+        card_type: {validators: {notEmpty: {message: '证件类型不能为空'}}},
+        card_number: {
+            validators: {
+                notEmpty: {message: '证件号码不能为空'},
+                regexp: {
+                    regexp: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
+                    message: "身份证号码格式不正确"
+                }
+            }
+        },
+        sex: {validators: {notEmpty: {message: '性别不能为空'}}},
+        birthday: {validators: {notEmpty: {message: '出生日期不能为空'}}},
+        nationality: {validators: {notEmpty: {message: '国籍/地区不能为空'}}},
+        province: {validators: {notEmpty: {message: '户籍省份不能为空'}}},
+        city: {validators: {notEmpty: {message: '户籍市不能为空'}}},
+        nation: {validators: {notEmpty: {message: '民族不能为空'}}},
+        politics: {validators: {notEmpty: {message: '政治面貌不能为空'}}}
+    }
+} : {
+    talentInfoInfoData: {},
+    validateFields: {
+        apply_year: {validators: {notEmpty: {message: '申报年度不能为空'}}},
+        fst_work_time: {validators: {notEmpty: {message: '首次来晋工作时间不能为空'}}},
+        import_way: {validators: {notEmpty: {message: '引进方式不能为空'}}},
+        cur_entry_time: {validators: {notEmpty: {message: '本单位入职时间不能为空'}}},
+        position: {validators: {notEmpty: {message: '本单位现任职务不能为空'}}},
+        source: {validators: {notEmpty: {message: '申报来源不能为空'}}},
+        talent_arrange: {validators: {notEmpty: {message: '人才层次不能为空'}}},
+        talent_condition: {validators: {notEmpty: {message: '认定条件不能为空'}}},
+        highest_degree: {validators: {notEmpty: {message: '最高学历不能为空'}}},
+        graduate_school: {validators: {notEmpty: {message: '毕业院校不能为空'}}},
+        major: {validators: {notEmpty: {message: '专业不能为空'}}},
+        bank: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+        bank_number: {
+            validators: {
+                notEmpty: {
+                    message: '银行行号不能为空'
+                },
+                regexp: {
+                    regexp: /^\d+$/,
+                    message: "银行行号格式不正确"
+                }
+            }
+        },
+        bank_branch_name: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行网点不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*省?[\u4e00-\u9fa5]+市[\u4e00-\u9fa5]*$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+        bank_account: {
+            validators: {
+                notEmpty: {
+                    message: '银行账号不能为空'
+                },
+                regexp: {
+                    regexp: /^\d+$/,
+                    message: "银行账号格式不正确"
+                }
+            }
+        },
+        phone: {
+            validators: {
+                notEmpty: {
+                    message: '手机号码不能为空'
+                },
+                regexp: {
+                    regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
+                    message: "手机号码格式不正确"
+                }
+            }
+        },
+        email: {
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        }
+    }
+};
+
+/**
+ * 清除数据
+ */
+TalentInfoInfoDlg.clearData = function () {
+    this.talentInfoInfoData = {};
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+TalentInfoInfoDlg.set = function (key, val) {
+    var dis = $("#" + key).attr("disabled");
+    if (dis == "disabled") {
+        $("#" + key).removeAttr("disabled");
+    }
+    this.talentInfoInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
+    if (dis == "disabled") {
+        $("#" + key).prop("disabled", true);
+    }
+    return this;
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+TalentInfoInfoDlg.get = function (key) {
+    return $("#" + key).val();
+}
+
+/**
+ * 关闭此对话框
+ */
+TalentInfoInfoDlg.close = function () {
+    parent.layer.close(window.parent.TalentInfo.layerIndex);
+}
+
+/**
+ * 收集数据
+ */
+TalentInfoInfoDlg.collectData = function () {
+    this
+            .set('id')
+            .set('type')
+            .set('talent_type')
+            .set('tax_insurance_month')
+            .set('labor_contract_rangetime')
+            .set('enterprise_id')
+            .set('name')
+            .set('photo')
+            .set('card_type')
+            .set('card_number')
+            .set('sex')
+            .set('birthday')
+            .set('nationality')
+            .set('province')
+            .set('city')
+            .set('county')
+            .set('nation')
+            .set('politics')
+            .set('talent_arrange')
+            .set('talent_condition')
+            .set('highest_degree')
+            .set('graduate_school')
+            .set('major')
+            .set('professional')
+            .set('bank')
+            .set('bank_number')
+            .set('bank_branch_name')
+            .set('bank_account')
+            .set('study_abroad')
+            .set('abroad_school')
+            .set('abroad_major')
+            .set('phone')
+            .set('email')
+            .set('apply_year')
+            .set('import_way')
+            .set('fst_work_time')
+            .set('cur_entry_time')
+            .set('position')
+            .set('source')
+            .set('fujian_highcert_pubtime')
+            .set('fujian_highcert_exptime')
+            .set('quanzhou_highcert_pubtime')
+            .set('quanzhou_highcert_exptime');
+    if ($("#province").val() != null && $("#province").val() != '') {
+        this.talentInfoInfoData["province_name"] = $("#province").find("option:selected").text();
+    }
+    if ($("#city").val() != null && $("#city").val() != '') {
+        this.talentInfoInfoData["city_name"] = $("#city").find("option:selected").text();
+    }
+    if ($("#county").val() != null && $("#county").val() != '') {
+        this.talentInfoInfoData["county_name"] = $("#county").find("option:selected").text();
+    }
+    if ($("#source_city").val() != null && $("#source_city").val() != '') {
+        this.talentInfoInfoData["source_city_name"] = $("#source_city").find("option:selected").text();
+    }
+    if ($("#source_county").val() != null && $("#source_county").val() != '') {
+        this.talentInfoInfoData["source_county_name"] = $("#source_county").find("option:selected").text();
+    }
+}
+
+/**
+ * 验证数据
+ */
+TalentInfoInfoDlg.validate = function () {
+    $('#talentInfoForm').data("bootstrapValidator").resetForm();
+    $('#talentInfoForm').bootstrapValidator('validate');
+    return $("#talentInfoForm").data('bootstrapValidator').isValid();
+}
+
+
+/**
+ * 提交添加
+ */
+TalentInfoInfoDlg.addSubmit = function () {
+    this.clearData();
+    this.collectData();
+    if (!TalentInfoInfoDlg.validate()) {
+        return;
+    }
+    var id = $('#id').val();
+    $("#province_name").val($("#province").find("option:selected").text());
+    $("#city_name").val($("#city").find("option:selected").text());
+    if ($("#county").val() != null && $("#county").val() != '') {
+        $("#county_name").val($("#county").find("option:selected").text());
+    }
+    if ($("#source_city").val() != null && $("#source_city").val() != '') {
+        $("#source_city_name").val($("#source_city").find("option:selected").text());
+    }
+    if ($("#source_county").val() != null && $("#source_county").val() != '') {
+        $("#source_county_name").val($("#source_county").find("option:selected").text());
+    }
+    if (id != null && id != '') {
+        if (!TalentInfoInfoDlg.validateIsEdit())
+            return;
+    }
+    $("select").each(function () {
+        $(this).removeAttr("disabled");
+    });
+    if (locked) {
+        return;
+    }
+    locked = true;
+    $("#talentInfoForm")[0].submit();
+}
+
+//回调
+TalentInfoInfoDlg.infoCallback = function (data) {
+    locked = false;
+    TalentInfoInfoDlg.setNoChangeField();
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        window.parent.TalentInfo.table.refresh();
+        $("#id").val(data.obj.id);
+        $("#fileLi").removeAttr("style");
+        $("#checkState").val(data.obj.checkState);
+    }
+}
+
+
+/**
+ * 获取人才认定
+ */
+TalentInfoInfoDlg.getIdentifyCondition = function () {
+    var level = $("#talent_arrange").val();
+    var id = $('#id').val();
+    Feng.addAjaxSelect({
+        "id": "talent_condition",
+        "displayCode": "id",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/api/findIdentifyConditionByLevel/level/" + level + "/id/" + id
+    });
+    $("#talent_condition").trigger('chosen:updated');
+}
+
+TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {    
+    var queryData = {};
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    queryData["talent_condition"] = $("#talent_condition").val();
+    queryData['checkState'] = $("#checkState").val();
+    $("#fileTable").bootstrapTable("refresh", {query:queryData});
+}
+
+TalentInfoInfoDlg.bankChange = function () {
+    var bank = $("#bank").val();
+    if ($.trim(bank) == '中国工商银行') {
+        $("#bank_number").val('102391050013');
+    } else {
+        $("#bank_number").val('');
+    }
+}
+
+TalentInfoInfoDlg.changeStudyAbroad = function () {
+    var is_abroad = $("#study_abroad").val();
+    if (is_abroad == 1) {
+        $("#abroad_school").parent().css("display", "block");
+        $("#abroad_major").parent().css("display", "block");
+        $('#talentInfoForm').bootstrapValidator('addField', "abroad_school", {validators: {notEmpty: {message: '毕业院校不能为空(留学)'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "abroad_major", {validators: {notEmpty: {message: '专业不能为空(留学)'}}});
+    } else {
+        $("#abroad_school").val("").parent().css("display", "none");
+        $("#abroad_major").val("").parent().css("display", "none");
+        $('#talentInfoForm').bootstrapValidator('removeField', "abroad_school");
+        $('#talentInfoForm').bootstrapValidator('removeField', "abroad_major");
+    }
+}
+
+
+/**
+ * 加载市
+ */
+TalentInfoInfoDlg.afterSelectProvince = function () {
+    var province = $("#province").val();
+    $("#city").empty();
+    $("#county").empty();
+    if (province == null || province == '') {
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "city",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/findCityByProvinceSelect/code/" + province
+    });
+}
+/**
+ * 加载县
+ */
+TalentInfoInfoDlg.afterSelectCity = function () {
+    var city = $("#city").val();
+    $("#county").empty();
+    if (city == null || city == '') {
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "county",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/findCountyByCitySelect/code/" + city
+    });
+}
+
+
+TalentInfoInfoDlg.talentTypeChange = function () {
+    var talent_type = $("#talent_type").val();
+    $("#tax_insurance_month").val("").parent().css("display", "none");
+    $("#labor_contract_rangetime").val("").parent().css("display", "none");
+    $('#talentInfoForm').bootstrapValidator('removeField', "labor_contract_rangetime");
+    $('#talentInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
+    switch (talent_type) {
+        case "1":
+        case "2":
+            $("#tax_insurance_month").removeAttr("disabled").parent().css("display", "block");
+            $('#talentInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
+                validators: {
+                    notEmpty: {message: '在我市缴交社会保险或个人所得税月份不能为空'},
+                    regexp: {
+                        regexp: /^\d+$/,
+                        message: "在我市缴交社会保险或个人所得税月份格式不正确"
+                    }
+                }
+            });
+            break;
+        case "3":
+            $("#labor_contract_rangetime").removeAttr("disabled").parent().css("display", "block");
+            $('#talentInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
+            break;
+    }
+}
+
+TalentInfoInfoDlg.sourceChange = function () {
+    var source = $("#source").val();
+    $("#source_batch").val("").parent().css("display", "none");
+    $("#fujian_highcert_pubtime").val("").parent().css("display", "none");
+    $("#fujian_highcert_exptime").val("").parent().css("display", "none");
+    $("#quanzhou_highcert_pubtime").val("").parent().css("display", "none");
+    $("#quanzhou_highcert_exptime").val("").parent().css("display", "none");
+    $("#source_city").val("").parent().css("display", "none");
+    $("#source_county").val("").parent().css("display", "none");
+    $('#talentInfoForm').bootstrapValidator('removeField', "source_batch");
+    $('#talentInfoForm').bootstrapValidator('removeField', "fujian_highcert_pubtime");
+    $('#talentInfoForm').bootstrapValidator('removeField', "fujian_highcert_exptime");
+    $('#talentInfoForm').bootstrapValidator('removeField', "quanzhou_highcert_pubtime");
+    $('#talentInfoForm').bootstrapValidator('removeField', "quanzhou_highcert_exptime");
+    $('#talentInfoForm').bootstrapValidator('removeField', "source_city");
+    $('#talentInfoForm').bootstrapValidator('removeField', "source_county");
+    switch (source) {
+        case "1":
+        case "3":
+            $("#source_batch").parent().css("display", "block");
+            $("#fujian_highcert_pubtime").parent().css("display", "block");
+            $("#fujian_highcert_exptime").parent().css("display", "block");
+            $('#talentInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
+            $('#talentInfoForm').bootstrapValidator('addField', "fujian_highcert_pubtime", {validators: {notEmpty: {message: '福建省高层次人才证书发证日期不能为空'}}});
+            $('#talentInfoForm').bootstrapValidator('addField', "fujian_highcert_exptime", {validators: {notEmpty: {message: '福建省高层次人才证书有效期不能为空'}}});
+            break;
+        case "2":
+        case "4":
+            $("#source_batch").parent().css("display", "block");
+            $("#quanzhou_highcert_pubtime").parent().css("display", "block");
+            $("#quanzhou_highcert_exptime").parent().css("display", "block");
+            $('#talentInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
+            $('#talentInfoForm').bootstrapValidator('addField', "quanzhou_highcert_pubtime", {validators: {notEmpty: {message: '泉州高层次人才证书发证日期不能为空'}}});
+            $('#talentInfoForm').bootstrapValidator('addField', "quanzhou_highcert_exptime", {validators: {notEmpty: {message: '泉州高层次人才证书有效期不能为空'}}});
+            break;
+    }
+    if (source == 3) {
+        //显示入选来源地级市除泉
+        $("#source_city").parent().css("display", "block");
+        Feng.addAjaxSelect({
+            "id": "source_city",
+            "displayCode": "code",
+            "displayName": "name",
+            "type": "GET",
+            "url": "/common/tool/findChildAreaByCode/code/35/no/350500"
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "source_city", {validators: {notEmpty: {message: '入选来源地级市不能为空'}}});
+    }
+    if (source == 4) {
+        //显示入选来源县市区除晋
+        $("#source_county").parent().css("display", "block");
+        Feng.addAjaxSelect({
+            "id": "source_county",
+            "displayCode": "code",
+            "displayName": "name",
+            "type": "GET",
+            "url": "/common/tool/findChildAreaByCode/code/3505/no/350582"
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "source_county", {validators: {notEmpty: {message: '入选来源县市区不能为空'}}});
+    }
+}
+
+
+//初始化附件类别表单
+TalentInfoInfoDlg.initFileTable = function () {
+    var queryData = {};
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    queryData["talent_condition"] = $("#talent_condition option:selected").val();
+    queryData['checkState'] = $("#checkState").val();
+    $("#fileTable").bootstrapTable({
+        url: "/common/api/findCommonFileType",
+        method: 'POST',
+        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+        search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false, // 是否显示刷新按钮
+        clickToSelect: true, // 是否启用点击选中行
+        singleSelect: true, // 设置True 将禁止多选
+        striped: true, // 是否显示行间隔色
+        escape: true,
+        pagination: false, // 设置为 true 会在表格底部显示分页条
+        paginationHAlign: "left",
+        paginationDetailHAlign: "right",
+        sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        showColumns: false,
+        detailView: true, //是否显示父子表
+        pageList: [10, 30, 50],
+        queryParams: function (params) {
+            return $.extend(queryData, params)
+        },
+        rowStyle: function (row, index) {
+            return {classes: "info"};
+        },
+        columns: TalentInfoInfoDlg.initFileTypeColumn(),
+        onPostBody: function () {
+            $("td.uitd_showTip").bind("mouseover", function () {
+                var htm = $(this).html();
+                $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+            });
+        },
+        onLoadSuccess: function (data) {
+            $("#fileTable").bootstrapTable('expandAllRows');
+        },
+        onExpandRow: function (index, row, $detail) {
+            var ajax = new $ax("/common/api/listTalentFile", function (data) {
+                if (data == null || data.length == 0) {
+                    return;
+                }
+                var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
+                // var files = $("#files").val();
+                // var checkState = $("#checkState").val();
+                for (var key in data) {
+                    var btn = TalentInfoInfoDlg.validUploadButton(2, row, row.id, data[key].id);
+                    // if(checkState!=10 || (checkState==10 && files.indexOf(row.id)!=-1)){
+                    //     btn = "<button type=\'button\' onclick=\"TalentInfoInfoDlg.checkFile(this,'"+row.fState+"','"+row.id+"','"+data[key].id+"')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
+                    //         "<i class=\"fa fa-paste\"></i>修改" +
+                    //         "</button>" +
+                    //         "<button type='button' onclick=\"TalentInfoInfoDlg.deleteFile('"+data[key].id+"','"+row.fState+"')\" class=\"btn btn-xs btn-danger\">" +
+                    //         "<i class=\"fa fa-times\"></i>删除" +
+                    //         "</button>";
+                    // }else{
+                    //     btn = "审核通过,无法修改删除";
+                    // }
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].url.substring(sn + 1, data[key].url.length);
+                    var imgStr = "";
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
+                    }
+
+                    html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
+                            '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
+                            '<li style="width: 10%;">' + imgStr + '</li>\n' +
+                            '<li style="width: 10%;padding-top: 2px;">' + btn + '</li>';
+                }
+                html = html + '</ul>';
+                $detail.html(html);
+                $(".imgs").viewer({fullscreen: false});
+            }, function (data) {
+                Feng.error("查询失败!" + data.responseJSON.message + "!");
+            });
+            var queryData = {};
+            queryData["mainId"] = $("#id").val();
+            queryData["fileTypeId"] = row.id;
+            ajax.set(queryData);
+            ajax.start();
+        }
+    });
+
+}
+
+//校验是否保存基础信息
+TalentInfoInfoDlg.validId = function () {
+    var id = $("#id").val();
+    if (id != null && id != '') {
+        $("#fileLi").removeAttr("style");
+    } else {
+        $("#fileLi").attr("style", "pointer-events: none");
+    }
+}
+//选择附件并显示附件名
+TalentInfoInfoDlg.checkFile = function (content, state, fileTypeId, fileId) {
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    $("#upload_file ").unbind("change");
+    $("#upload_file ").change(function () {
+        TalentInfoInfoDlg.upload(fileTypeId, fileId);
+    });
+    $('#upload_file').val("");
+    $('#upload_file').click();
+}
+//上传附件
+TalentInfoInfoDlg.upload = function (fileTypeId, fileId) {
+    var id = $("#id").val();
+    if (id == null || id == '') {
+        Feng.info("请先添加基本信息并保存后再试");
+        return;
+    }
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    if (fileId != null && fileId != 'null') {
+        $("#fileId").val(fileId)
+    } else {
+        $("#fileId").val("");
+    }
+    $("#mainId").val(id);
+    $("#fileTypeId").val(fileTypeId);
+    var index = layer.load(0, {shade: false, time: 0});
+    $("#index").val(index);
+    $("#uploadForm").submit();
+}
+//删除附件
+TalentInfoInfoDlg.deleteFile = function (id, state) {
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) {
+            if (data.code = 200) {
+                Feng.success(data.msg);
+                $("#fileTable").bootstrapTable("refresh", {});
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("删除失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id", id);
+        ajax.set("type", 1);
+        ajax.start();
+    }
+    Feng.confirm("删除后无法恢复,确认删除吗?", operation);
+}
+
+/**
+ * 提交审核
+ */
+TalentInfoInfoDlg.submitToCheck = function () {
+    var id = $("#id").val();
+    if (id == null || id == "") {
+        Feng.info("请先填写基础信息并上传附件");
+        return;
+    }
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent/submit", function (data) {
+            if (data.code == 200) {
+                Feng.success(data.msg);
+                // $("#checkState").val(data.obj);
+                window.parent.TalentInfo.table.refresh();
+                TalentInfoInfoDlg.close();
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id", id);
+        ajax.start();
+    }
+    Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
+}
+
+/**
+ * 校验是否可以修改/提交审核
+ */
+TalentInfoInfoDlg.validateIsEdit = function () {
+    var checkState = $("#checkState").val();
+    if (checkState != 0 && checkState != 1 && checkState != 3 && checkState != 5) {
+        if (checkState == 13) {
+            Feng.error("您的申报审核不通过,无法再修改");
+            return false;
+        } else if (checkState == 11) {
+            Feng.error("您的申报已审核通过,无法再修改");
+            return false;
+        } else {
+            Feng.error("您的申报正在审核中,请耐心等待");
+            return false;
+        }
+    }
+    return true;
+}
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (row.must == 1) {
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    return '<i class="fa fa-paste"></i>' + value;
+                }
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "52%", 'class': 'uitd_showTip'},
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                return TalentInfoInfoDlg.validUploadButton(1, row, value);
+            }
+        }
+    ]
+};
+
+/**
+ * 校验是否显示按钮
+ * @param type      类型  1-上传按钮,2-修改删除按钮
+ * @param row
+ * @returns {string}
+ */
+TalentInfoInfoDlg.validUploadButton = function (type, row, fileTypeId, fileId) {
+    var files = $("#files").val();
+    var checkState = $("#checkState").val();
+    if (Feng.isEmptyStr(checkState) || checkState == 0 || checkState == 1 || checkState == 3 || checkState == 5) {
+        if ((checkState == 3 || checkState == 5) && row.step == 1)
+            return "";
+        if (type == 1) {          //上传
+            return "<button type='button' onclick=\"TalentInfoInfoDlg.checkFile(this,'" + row.fState + "','" + fileTypeId + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                    "<i class=\"fa fa-upload\"></i>上传" +
+                    "</button>";
+        } else {
+            return "<button type=\'button\' onclick=\"TalentInfoInfoDlg.checkFile(this,'" + row.fState + "','" + row.id + "','" + fileId + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
+                    "<i class=\"fa fa-paste\"></i>修改" +
+                    "</button>" +
+                    "<button type='button' onclick=\"TalentInfoInfoDlg.deleteFile('" + fileId + "','" + row.fState + "')\" class=\"btn btn-xs btn-danger\">" +
+                    "<i class=\"fa fa-times\"></i>删除" +
+                    "</button>";
+        }
+    } else {
+        return type == 1 ? "" : "";
+    }
+}
+
+
+//回调
+TalentInfoInfoDlg.callBack = function (data) {
+    layer.close(data.obj);
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        $("#fileTable").bootstrapTable("refresh", {});
+    }
+}
+TalentInfoInfoDlg.downloadFile = function (id, type) {
+    window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type=" + type;
+}
+
+//设置不可修改的字段
+TalentInfoInfoDlg.setNoChangeField = function () {
+    var checkState = $("#checkState").val();
+    var fields = $("#fields").val();
+    if (checkState == 8) {
+        $("input,textarea").each(function () {
+            $(this).attr("readonly", "readonly");
+        });
+        $("select").each(function () {
+            $(this).attr("disabled", "disabled");
+        });
+        if (fields != null && fields != '') {
+            var arr = fields.split(",");
+            for (var key in arr) {
+                var name = $("#" + arr[key]).prop("tagName");
+                if (name == 'select' || name == 'SELECT') {
+                    $("#" + arr[key]).removeAttr("disabled");
+                }
+                if (name == "input" || name == 'textarea' || name == "INPUT" || name == 'TEXTAREA') {
+                    $("#" + arr[key]).removeAttr("readonly");
+                }
+            }
+        }
+    }
+}
+TalentInfoInfoDlg.__initValidateCondition = function () {
+    var step = $("#step").val();
+    if (step == 1) {
+        $('#talentInfoForm').bootstrapValidator('addField', "source_county", {validators: {notEmpty: {message: '入选来源县市区不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "enterprise_id", {validators: {notEmpty: {message: '所属企业不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "talent_type", {validators: {notEmpty: {message: '人才类型不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "enterprise_tag", {validators: {notEmpty: {message: '单位标签不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "enterprise_name", {validators: {notEmpty: {message: '单位名称不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "address", {validators: {notEmpty: {message: '所属街道不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "industry_field", {validators: {notEmpty: {message: '产业领域不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "name", {validators: {notEmpty: {message: '姓名不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "card_type", {validators: {notEmpty: {message: '证件类型不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "card_number", {validators: {notEmpty: {message: '证件号码不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "sex", {validators: {notEmpty: {message: '性别不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "birthday", {validators: {notEmpty: {message: '出生日期不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "nationality", {validators: {notEmpty: {message: '国籍/地区不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "province", {validators: {notEmpty: {message: '户籍省份不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "city", {validators: {notEmpty: {message: '户籍市不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "nation", {validators: {notEmpty: {message: '民族不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "politics", {validators: {notEmpty: {message: '政治面貌不能为空'}}});
+    } else {
+        $('#talentInfoForm').bootstrapValidator('addField', "apply_year", {validators: {notEmpty: {message: '申报年度不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "fst_work_time", {validators: {notEmpty: {message: '首次来晋工作时间不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "import_way", {validators: {notEmpty: {message: '引进方式不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "cur_entry_time", {validators: {notEmpty: {message: '本单位入职时间不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "position", {validators: {notEmpty: {message: '本单位现任职务不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "source", {validators: {notEmpty: {message: '申报来源不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "talent_arrange", {validators: {notEmpty: {message: '人才层次不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "talent_condition", {validators: {notEmpty: {message: '认定条件不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "highest_degree", {validators: {notEmpty: {message: '最高学历不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "graduate_school", {validators: {notEmpty: {message: '毕业院校不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "major", {validators: {notEmpty: {message: '专业不能为空'}}});
+        $('#talentInfoForm').bootstrapValidator('addField', "bank", {
+            validators: {
+                notEmpty: {
+                    message: '开户银行不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "bank_number", {
+            validators: {
+                notEmpty: {
+                    message: '银行行号不能为空'
+                },
+                regexp: {
+                    regexp: /^\d+$/,
+                    message: "银行行号格式不正确"
+                }
+            }
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "bank_branch_name", {
+            validators: {
+                notEmpty: {
+                    message: '开户银行网点不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*省?[\u4e00-\u9fa5]+市[\u4e00-\u9fa5]*$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "bank_account", {
+            validators: {
+                notEmpty: {
+                    message: '银行账号不能为空'
+                },
+                regexp: {
+                    regexp: /^\d+$/,
+                    message: "银行账号格式不正确"
+                }
+            }
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "phone", {
+            validators: {
+                notEmpty: {
+                    message: '手机号码不能为空'
+                },
+                regexp: {
+                    regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
+                    message: "手机号码格式不正确"
+                }
+            }
+        });
+        $('#talentInfoForm').bootstrapValidator('addField', "email", {
+
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        });
+
+    }
+}
+$("#card_type").change(function () {
+    async_padding($("#card_number").val().trim(), $(this).val());
+})
+$("#card_number").blur(function () {
+    async_padding($(this).val().trim(), $("#card_type").val());
+})
+function async_padding(card_number, card_type) {
+    if (card_number != "" && card_number.length == 18 && card_type == "1") {
+        var year = card_number.substring(6, 10);
+        var month = card_number.substring(10, 12);
+        var day = card_number.substring(12, 14);
+        var birthday = year + "-" + month + "-" + day;
+        var rule = /\d{4}-\d{2}-\d{2}/;
+        if (rule.test(birthday))
+            $("#birthday").val(birthday);
+        var num = card_number.substring(17, 1);
+        if (num % 2 == 0) {
+            $("#sex").val(2);
+        } else {
+            $("#sex").val(1);
+        }
+    }
+}
+$(function () {
+    Feng.initValidatorTip("talentInfoForm", TalentInfoInfoDlg.validateFields);
+    var id = $("#id").val();
+    var checkState = $("#checkState").val();
+    //批量加载字典表数据
+    var arr = [
+        {"name": "enterprise_tag", "code": "enterprise_tag"},
+        {"name": "nation", "code": "nation"},
+        {"name": "talent_arrange", "code": "talent_arrange"},
+        {"name": "nationality", "code": "nationality"},
+        {"name": "politics", "code": "politics"},
+        {"name": "highest_degree", "code": "highest_degree"},
+        {"name": "industry_field", "code": "industry_field"},
+        {"name": "source", "code": "source"},
+        {"name": "import_way", "code": "import_way"},
+        {"name": "address", "code": "street"}];
+    Feng.findChildDictBatch(JSON.stringify(arr))
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "province",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": "/common/tool/getProvinceSelect"
+    });
+    //批量加载时间控件
+    $(".date").each(function () {
+        laydate.render({
+            elem: this
+            , type: 'date'
+            , trigger: 'click'
+        });
+    });
+    $(".rangedate").each(function () {
+        laydate.render({
+            elem: this,
+            type: "date",
+            range: true,
+            trigger: "click"
+        })
+    })
+    if (id != null && id != '') {
+        //select初始化
+        $("select").each(function () {
+            $(this).val($(this).attr("value")).trigger("change");
+        });
+        Feng.getCheckLog("logTable", {"type": CONFIG.project_rcrd, "mainId": id, "typeFileId": "", "active": 1})
+    }
+    $("#talent_type").val($("#talent_type").attr("value"));
+    $("#card_type").val($("#card_type").attr("value"));
+    $("#sex").val($("#sex").attr("value"));
+    $("#enterprise_tag").val($("#enterprise_tag").attr("value"));
+    $("#address").val($("#address").attr("value"));
+    $("#nation").val($("#nation").attr("value"));
+    $("#nationality").val($("#nationality").attr("value"));
+    $("#industry_field").val($("#industry_field").attr("value"));
+    $("#province").val($("#province").attr("value"));
+    TalentInfoInfoDlg.afterSelectProvince();
+    $("#city").val($("#city").attr("value"));
+    TalentInfoInfoDlg.afterSelectCity();
+    $("#county").val($("#county").attr("value"));
+    TalentInfoInfoDlg.getIdentifyCondition();
+    $("#politics").val($("#politics").attr("value"));
+    $("#talent_arrange").val($("#talent_arrange").attr("value"));
+    $("#talent_condition").val($("#talent_condition").attr("value"));
+    TalentInfoInfoDlg.validId();
+    $("#photo").change(function (e) {
+        var tag = e.target;
+        var file = tag.files[0];
+        var imgSrc;
+        var reader = new FileReader();
+        reader.readAsDataURL(file);
+        reader.onload = function () {
+            imgSrc = this.result;
+            $("#photoImg").attr("src", imgSrc);
+        };
+    });
+    TalentInfoInfoDlg.setNoChangeField();
+    $("#talent_condition").on('chosen:ready', function (e, params) {
+        $(".chosen-container-single .chosen-single").css("padding", "4px 0px 0px 4px");
+    });
+    $("#talent_condition").chosen({
+        search_contains: true,       //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
+        disable_search: false,
+        width: "100%",
+        enable_split_word_search: true,
+        rtl: true
+    });
+    TalentInfoInfoDlg.initFileTable();
+});
+
+

+ 312 - 0
public/static/modular/gate/talentBase/talentInfo_library.js

@@ -0,0 +1,312 @@
+/**
+ * 人才认定申报管理初始化
+ */
+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', radio: true},
+        {title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle',width:'80px'},
+        {title: '离职状态', field: 'active', visible: true, align: 'center', valign: 'middle',width:'80px',
+            formatter : function (value,row,index) {
+                if(value==1){
+                    return '<span style="color:#6495ED">在职</span>';
+                }if(value==2){
+                    return '<span style="color:#FF82AB">离职</span>';
+                }
+            }
+        },
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:"100px",
+            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: 'type', visible: true, align: 'center', valign: 'middle',width:"100px",
+            formatter : function (value,row,index){
+                if(value==1){
+                    return '晋江市优秀人才';
+                }if(value==2){
+                    return '集成电路优秀人才';
+                }
+            }
+        },
+        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
+        {title: '人才标签', field: 'talentTypeName', visible: isShow, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
+        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
+        {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
+        {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
+        {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
+        {title: '人才证书有效期', field: 'identifyGetTime', visible: isShow, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'150px',
+            formatter:function (value,row,index) {
+                return row.certificateStartTime + "至" + row.qzgccrcActiveTime ;
+            }
+        },
+        {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
+        {title: '人才编号', field: 'certificateNO', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
+        {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 == 0){
+        Feng.info("请先选中表格中的某一记录!");
+        return false;
+    }else{
+        TalentInfo.seItem = selected[0];
+        return true;
+    }
+};
+
+/**
+ * 显示审核日志
+ */
+TalentInfo.showLog = function (id){
+    layer.open({
+        type: 1,
+        title:"日志",
+        fixed:false,
+        content: '<table id="'+id+'"></table>',
+        area: ['80%', '80%'],
+        maxmin: true,
+        success :function (layero, index) {
+            Feng.getCheckLog(id,{"type":CONFIG.project_rcrd,"mainId":id,"typeFileId":"","active":1})
+        }
+    });
+
+}
+
+/**
+ * 打开查看人才认定申报详情
+ */
+TalentInfo.openTalentInfoDetail = function () {
+    if (this.check()) {
+        var index = layer.open({
+            type: 2,
+            title: '人才认定申报详情',
+            fix: false, //不固定
+            maxmin: true,
+            content: Feng.ctxPath + '/api/talentInfo/talentInfo_update/' + TalentInfo.seItem.id+"/select",
+        });
+        layer.full(index);
+        TalentInfo.layerIndex = index;
+    }
+};
+
+/**
+ * 查询表单提交参数对象
+ * @returns {{}}
+ */
+TalentInfo.formParams = function() {
+    var queryData = {};
+    queryData['name'] = $("#name").val();
+    queryData['idCard'] = $("#idCard").val();
+    queryData['sex'] = $("#sex").val();
+    queryData['nation'] = $("#nation").val();
+    queryData['nationality'] = $("#nationality").val();
+    queryData['talentType'] = $("#talentType").val();
+    queryData['talentArrange'] = $("#talentArrange").val();
+    return queryData;
+}
+
+/**
+ * 查询人才认定申报列表
+ */
+TalentInfo.search = function () {
+    TalentInfo.table.refresh({query: TalentInfo.formParams()});
+};
+
+/**
+ * 重置
+ */
+TalentInfo.reset = function (){
+    $("#name").val("");
+    $("#idCard").val("");
+    $("#sex").val("");
+    $("#nation").val("");
+    $("#nationality").val("");
+    $("#talentType").val("");
+    $("#talentArrange").val("");
+}
+
+//显示修改手机号码模态框
+TalentInfo.updatePhoneModal = function(){
+    if(this.check()){
+        $("#phoneForm")[0].reset();
+        $("#updateModal").modal("show");
+    }
+}
+
+//修改手机号码提交
+TalentInfo.updatePhone = function(){
+    var oldPhone = $("#oldPhone").val();
+    var newPhone = $("#newPhone").val();
+    if($.trim(oldPhone)!=TalentInfo.seItem.phone){
+        Feng.info("原手机号码不正确");
+        return ;
+    }
+    if(newPhone==null || newPhone==''){
+        Feng.info("新手机号码不能为空");
+        return;
+    }
+    var operation = function() {
+        var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/updatePhone", function (data) {
+            if(data.code==200){
+                Feng.success(data.msg);
+                TalentInfo.table.refresh();
+                $("#updateModal").modal("hide");
+            }else{
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("修改手机号码失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id",TalentInfo.seItem.id);
+        ajax.set("oldPhone", oldPhone);
+        ajax.set("newPhone", newPhone);
+        ajax.start();
+    };
+    Feng.confirm("确定修改手机号码吗?", operation);
+}
+
+TalentInfo.updatePhoto = function(){
+    if(this.check()){
+        if (TalentInfo.seItem.isCertification == 2){
+            Feng.info("已制证,无法修改");
+            return ;
+        }
+        var index = layer.open({
+            type: 1,
+            title: '修改头像',
+            area: ['800px', '420px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: "<form id=\"commonFileForm\" action=\""+Feng.ctxPath+"/api/talentInfo/updatePhoto\" method=\"post\" enctype=\"multipart/form-data\" target=\"hiddenIframe\">\n" +
+                "                    <div  class=\"panel panel-default\">\n" +
+                "                        <div class=\"panel-heading\" style=\"font-weight: bold\">头像</div>\n" +
+                "                        <div class=\"panel-body\">\n" +
+                "                            <input type=\"text\" style=\"display: none\" id=\"libId\" name=\"libId\" >\n" +
+                "                            <input type=\"text\" style=\"display: none\" id=\"index\" name=\"index\" >\n" +
+                "                            <input type=\"file\" style=\"display: none\" id=\"fileUrl\" name=\"fileUrl\" onchange=\"TalentInfo.fileChange(this)\">\n" +
+                "                            <input class=\"form-control\" placeholder=\"请上传头像\" id=\"fileInput\" onclick=\"$('#fileUrl').click()\">\n" +
+                "                        </div>\n" +
+                "                    </div>\n" +
+                "                </form>",
+            btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;提交' ,'<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+            btnAlign: 'c',
+            yes: function (index, layero) {
+                $("#index").val(index);
+                $("#libId").val(TalentInfo.seItem.id);
+                $("#commonFileForm")[0].submit();
+            }
+        });
+    }
+}
+
+TalentInfo.fileChange = function(context){
+    var file  = $(context).val();
+    var pos = file.lastIndexOf("\\");
+    $("#fileInput").val(file.substring(pos+1));
+}
+
+TalentInfo.callback = function(data){
+    if(data.code == 200){
+        Feng.success(data.msg);
+        layer.close(data.obj);
+    }else{
+        Feng.info(data.msg);
+    }
+}
+
+
+//显示导出模态框
+TalentInfo.showExportModal = function(){
+    $("#exportForm")[0].reset();
+    $("#exportModal").modal("show");
+}
+
+
+//导出
+TalentInfo.export = function(){
+    var operation = function() {
+        var names = '';
+        var fieldCodes = '';
+        $("#field_info li input").each(function(index){
+            if($(this).is(":checked")){
+                fieldCodes = fieldCodes + $(this).val() + ",";
+                names = names + $(this).next().text() + ",";
+            }
+        });
+        var arr = { "names":names,"fieldCodes":fieldCodes,"name":$("#name").val(), "idCard":$("#idCard").val(), "sex":$("#sex").val(), "nation":$("#nation").val(),
+            "nationality":$("#nationality").val(),"talentType":$("#talentType").val(), "talentArrange":$("#talentArrange").val()};
+        window.location.href = Feng.setUrlParam(Feng.ctxPath + "/api/talentInfoExport/export", arr);
+        // window.location.href = Feng.ctxPath + "/api/talentInfoExport/export?names=" + names + "&fieldCodes=" + fieldCodes + "&name=" + $("#name").val() + "&idCard=" + $("#idCard").val()
+        //     + "&sex=" + $("#sex").val()+ "&nation=" + $("#nation").val()+ "&nationality=" + $("#nationality").val()+ "&talentType=" + $("#talentType").val()+ "&talentArrange=" + $("#talentArrange").val();
+    };
+    Feng.confirm("确定要导出数据吗?", operation);
+}
+
+/**
+ * 全选
+ */
+TalentInfo.checkAll = function(){
+    $("#field_info input").each(function () {
+        this.checked = true;
+    })
+}
+/**
+ * 反选
+ */
+TalentInfo.unCheckAll = function(){
+    $("#field_info input").each(function () {
+        if(this.checked){
+            this.checked = false;
+        }else{
+            this.checked = true;
+        }
+    })
+}
+
+$(function () {
+    var defaultColunms = TalentInfo.initColumn();
+    var table = new BSTable(TalentInfo.id, "/api/talentInfo/list/2", defaultColunms);
+    table.setPaginationType("server");
+    table.setOnDblClickRow(function () {
+        TalentInfo.openTalentInfoDetail();
+    });
+    TalentInfo.table = table.init();
+    //批量加载字典表数据
+    var arr = [
+        {"name":"nation","code":"un_nation"},
+        {"name":"talentArrange","code":"un_talentLevel"},
+        {"name":"nationality","code":"un_nationality"},
+        {"name":"talentType","code":"un_jbt_talentType"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+});
+

+ 138 - 0
public/static/modular/gate/talentBase/talentInfo_select.js

@@ -0,0 +1,138 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var TalentInfoInfoDlg = {
+    talentInfoInfoData: {},
+};
+
+
+//初始化附件类别表单
+TalentInfoInfoDlg.initFileTable = function () {
+    var queryData = {};
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    queryData["talent_condition"] = $("#talent_condition").val();
+    queryData['checkState'] = $("#checkState").val();
+    $("#fileTable").bootstrapTable({
+        url: "/common/api/findCommonFileType",
+        method: 'POST',
+        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+        search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false, // 是否显示刷新按钮
+        clickToSelect: true, // 是否启用点击选中行
+        singleSelect: true, // 设置True 将禁止多选
+        striped: true, // 是否显示行间隔色
+        escape: true,
+        pagination: false, // 设置为 true 会在表格底部显示分页条
+        paginationHAlign: "left",
+        paginationDetailHAlign: "right",
+        sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        showColumns: false,
+        detailView: true, //是否显示父子表
+        pageList: [10, 30, 50],
+        queryParams: function (params) {
+            return $.extend(queryData, params)
+        },
+        rowStyle: function (row, index) {
+            return {classes: "info"};
+        },
+        columns: TalentInfoInfoDlg.initFileTypeColumn(),
+        onPostBody: function () {
+            $("td.uitd_showTip").bind("mouseover", function () {
+                var htm = $(this).html();
+                $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+            });
+        },
+        onLoadSuccess: function (data) {
+            $("#fileTable").bootstrapTable('expandAllRows');
+        },
+        onExpandRow: function (index, row, $detail) {
+            var ajax = new $ax("/common/api/listTalentFile", function (data) {
+                loadFiles = true;
+                if (data == null || data.length == 0) {
+                    return;
+                }
+                var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li>';
+                for (var key in data) {
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].url.substring(sn + 1, data[key].url.length);
+                    var imgStr = "";
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
+                    }
+
+                    html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
+                            '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
+                            '<li style="width: 10%;">' + imgStr + '</li>\n';
+                }
+                html = html + '</ul>';
+                $detail.html(html);
+                $(".imgs").viewer({fullscreen: false});
+            }, function (data) {
+                Feng.error("查询失败!" + data.responseJSON.message + "!");
+            });
+            var queryData = {};
+            queryData["mainId"] = $("#id").val();
+            queryData["fileTypeId"] = row.id;
+            ajax.set(queryData);
+            ajax.start();
+        }
+    });
+
+}
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (row.must == 1) {
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    return '<i class="fa fa-paste"></i>' + value;
+                }
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "52%", 'class': 'uitd_showTip'},
+    ]
+};
+
+TalentInfoInfoDlg.downloadFile = function (id, type) {
+    window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type=" + type;
+}
+
+
+$(function () {
+    $(":input").prop("disabled", true);
+    $("#talent_type option").eq(0).prop("selected", true);
+    var id = $("#id").val();
+    var checkState = $("#checkState").val();
+    TalentInfoInfoDlg.initFileTable();
+    if (id != null && id != '') {
+        //select初始化
+        $("select").each(function () {
+            $(this).val($(this).attr("value")).trigger("change");
+        });
+        Feng.getCheckLog("logTable", {"type": CONFIG.project_rcrd, "mainId": id, "typeFileId": "", "active": 1})
+    }
+});
+
+

TEMPAT SAMPAH
public/storage/talent_files/20220902/6e85ba6a6d7a904364e38e40b21df128.jpg


TEMPAT SAMPAH
public/storage/talent_files/20220902/db8170bf4d9d5556c7fa78ba5824bec2.jpg