Parcourir la source

卫健申报换改界面

sugangqiang il y a 1 an
Parent
commit
573dd13824

+ 1 - 1
app/admin/controller/Talent.php

@@ -141,7 +141,7 @@ class Talent extends AdminController {
                 case CommonConst::ENTERPRISE_JC:
                     return view("talentInfo_common_checkIC", ["info" => $info]);
                 case CommonConst::ENTERPRISE_WJ:
-                    return view("/talent/hospital/talentInfo_common_check", ["info" => $info]);
+                    return view("/talent/hospital/new_talentInfo_common_check", ["info" => $info]);
                 case CommonConst::ENTERPRISE_GJ:
                     return view("/talent/school/talentInfo_common_check", ["info" => $info]);
             }

+ 367 - 0
app/admin/view/talent/hospital/new_talentInfo_common_check.html

@@ -0,0 +1,367 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css" xmlns="http://www.w3.org/1999/html">
+    .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: 35px;
+        width:100%;
+        padding:5px 0;
+    }
+    .imgs li>div{float:left;}
+    .info td{background:#f5f5f5 !important;}
+    .table .td-label{
+        display: block;
+        text-align: left;
+        border-bottom: 1px solid #ccc;
+        margin-bottom: 10px;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+    .word-wrap-no-width{
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+    ul{
+        padding: 0;
+    }
+    .control-symbol{
+        display: inline-block;
+        position:absolute;
+        right:0;
+        top:50%;
+        font-style:normal;
+        margin-top: -16px;
+        height:32px;
+        width:32px;
+        line-height:32px;
+        text-align:center;
+        border-left:1px solid #ddd;
+    }
+    #annual_salary{padding-right:32px;}
+    .zhiren-left{width:20px;text-align:center;font-size:12px;line-height:16px;float:left;font-weight:bold;color:#337ab7;}
+    .zhiren-right{margin-left:20px;}
+    #talent_condition_chosen li{word-break:break-all;white-space: initial;}
+</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="tabs-container" >
+                        <ul class="nav nav-tabs">
+                            <li  class="" style="float: right;margin-left: 10px;">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfoInfoDlg.download()" >
+                                    <i class="fa fa-download"></i>&nbsp;打包下载
+                                </button>
+                            </li>
+                        </ul>
+                    </div>
+                    <div class="tab-content">
+                        <div id="tab-1" class="tab-pane active">
+                            <form id="talentInfoForm" class="form-horizontal" action="/enterprise/talent/apply" method="post" enctype="multipart/form-data" target="hiddenIframe">                                    
+                                <input type="hidden" name="id" id="id" value="{$info.id}"/>
+                                <input type="hidden" name="type" id="type" value="{$info.enterpriseType}"/>
+                                <input type="hidden" name="process" id="process" value="{$info.process}"/>
+                                <input type="hidden" name="talent_condition" id="talent_condition" value="{$info.talent_condition}"/>
+                                <input type="hidden" name="checkState" id="checkState" value="{$info.checkState}"/>
+                                <input type="hidden" name="enterprise_tag" id="enterprise_tag" value="{$info.enterpriseTag}"/>
+                                <input type="hidden" name="import" id="import" value="{$info.isImport}"/>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>姓名</label>
+                                                        <input type="text" class="form-control" id="name" name="name" value="{$info.name}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>证件类型</label>
+                                                        <select class="form-control" id="card_type" name="card_type" value="{$info.card_type}">
+                                                            {eq name="info.card_type" value="1"}<option value="1">身份证</option>{/eq}
+                                                            {eq name="info.card_type" value="2"}<option value="2">通行证</option>{/eq}
+                                                            {eq name="info.card_type" value="3"}<option value="3">护照</option>{/eq}
+                                                        </select>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>证件号码</span></label>
+                                                        <input class="form-control" id="card_number" name="card_number" value="{$info.card_number}">
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>性别</label>
+                                                        <select class="form-control" id="sex" name="sex" value="{$info.sex}">
+                                                            {eq name="info.sex" value="1"}<option value="1">男</option>{/eq}
+                                                            {eq name="info.sex" value="2"}<option value="2">女</option>{/eq}
+                                                        </select>
+                                                    </div>
+                                                </td>
+                                                <td rowspan="5" style="width: 200%">
+                                                    <img id="photoImg" onclick="Feng.showImg(this)" {if condition="$info['headimgurl']"} src="{$info.headimgurl|getStoragePath}" {else/} src="/static/img/avatar.png" {/if}  style="height:147px;width:105px;margin:0 auto;display:block;"><hr />
+                                                        附件:
+                                                        <table class="fileTable"></table>
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control date" id="birthday" name="birthday" value="{$info.birthday}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>民族</label>
+                                                        <input type="text" class="form-control" id="nation" name="nation" value="{$info.nationName}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>政治面貌</label>
+                                                        <input type="text" class="form-control" id="politics" name="politics" value="{$info.politicsName}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>人才类型</label>
+                                                        <input type="text" class="form-control" id="talent_type" name="talent_type" value="{$info.talentTypeName}"/>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>最高学历</label>
+                                                        <input type="text" class="form-control" id="highest_degree" name="highest_degree" value="{$info.highestDegreeName}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>毕业院校</label>
+                                                        <input type="text" class="form-control" id="graduate_school" name="graduate_school" value="{$info.graduate_school}">
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>专业</label>
+                                                        <input type="text" class="form-control" id="major" name="major" value="{$info.major}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label">是否有留学经历</label>
+                                                        <select class="form-control" id="study_abroad" name="study_abroad" value="{$info.study_abroad}">
+                                                            {eq name="info.study_abroad" value="2"}<option value="2">否</option>{/eq}
+                                                            {eq name="info.study_abroad" value="1"}<option value="1">是</option>{/eq}
+                                                        </select>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <td {if condition='!$info["study_abroad"] or $info["study_abroad"] eq 2'}style="display:none;"{/if}>
+                                                    <div class="rowGroup abroad_need_this">
+                                                        <label class="control-label spacing td-label">留学毕业院校</label>
+                                                        <input type="text" class="form-control" id="abroad_school" name="abroad_school" value="{$info.abroad_school}"/>
+                                                    </div>
+                                                </td>
+                                                <td {if condition='!$info["study_abroad"] or $info["study_abroad"] eq 2'}style="display:none;"{/if}>
+                                                    <div class="rowGroup abroad_need_this">
+                                                        <label class="control-label spacing td-label">留学专业</label>
+                                                        <input type="text" class="form-control" id="abroad_major" name="abroad_major" value="{$info.abroad_major}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label">手机号码</label>
+                                                        <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$info.phone}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label">电子邮箱</label>
+                                                        <input type="text" class="form-control" id="email" name="email"  value="{$info.email}"/>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">工作履历</div>
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>
+                                                <td colspan="4">
+                                                    <div class="rowGroup word-wrap">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>医院名称</label>
+                                                        <div class="form-control" style="border: none;height:auto;">{$info.enterpriseName}</div>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>职务</label>
+                                                        <input type="text" class="form-control" id="position" name="position" value="{$info.position}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>入职时间</label>
+                                                        <input type="text" class="form-control date" id="cur_entry_time" name="cur_entry_time" value="{$info.cur_entry_time}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>工作合同起止时间</label>
+                                                        <input type="text" class="form-control rangedate" id="labor_contract_rangetime" name="labor_contract_rangetime" value="{$info.labor_contract_rangetime}" />
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label">职称</label>
+                                                        <input type="text" class="form-control" id="title" name="title" value="{$info.title}"/>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </div>                            
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>主要业绩及取得的荣誉</label>
+                                                        <textarea rows="8" class="form-control" id="experience" name="experience" style="border: none" placeholder="">{$info.experience}</textarea>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>教育背景及工作简历</label>
+                                                        <textarea rows="8" class="form-control" id="education" name="education" style="border: none" placeholder="">{$info.education}</textarea>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>                                                
+                                                <td style="width:22%">
+                                                    <div class="rowGroup col-sm-12">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>                                                        
+                                                        <input type="text" class="form-control" id="talent_arrange" name="talent_arrange" value="{$info.talentArrangeName}"/>
+                                                    </div>
+                                                </td>
+                                                <td style="width:45%;overflow: inherit">
+                                                    <div class="rowGroup col-sm-10">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                                        <input type="text" class="form-control" id="talent_condition_rel" value="{$info.talentConditionName}"/>
+                                                    </div>
+                                                </td>
+                                                <td style="width:33%">
+                                                    <table class="fileTable"></table>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">个人开户银行信息</div>
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <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银行" value="{$info.bank}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
+                                                        <input type="text" class="form-control" id="bank_number" name="bank_number" value="{$info.bank_number}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <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支行/分行/分理处" value="{$info.bank_branch_name}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>个人银行账号</label>
+                                                        <input type="text" class="form-control" id="bank_account" name="bank_account"  value="{$info.bank_account}" onkeyup="value = value.replace(/\s+/g, '')"/>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </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' id="tableIndex" name="tableIndex" />
+                                <input type='hidden' id="trIndex" name="trIndex" />
+                                <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack"/>
+                                <input type="type" name="type" value="1"/>
+                            </form>
+                            <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 type="text/javascript">
+    document.write('<script src="/static/modular/talentIdentify/talentInfo/hospital/talentInfo_common_check_new.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 21 - 0
app/enterprise/controller/Talent.php

@@ -1597,6 +1597,27 @@ class Talent extends EnterpriseController {
         return $ti;
     }
 
+    /**
+     * 
+     */
+    public function getTalentInfoFromOldLibrary() {
+        $responseObj = new \stdClass();
+        $responseObj->code = 500;
+        $ep = EnterpriseApi::getOne($this->user["uid"]);
+        $pIdCard = \StrUtil::getRequestDecodeParam($this->request, "idCard");
+        $eIdCard = $ep->idCard;
+        $where = [];
+        $where[] = ["e.idCard", "=", $eIdCard];
+        $where[] = ["ti.idCard", "=", $pIdCard];
+        $old = Db::table("un_talent_info")->alias("ti")->leftJoin("un_enterprise e", "e.id=ti.enterpriseId")->field("ti.*")->where($where)->order("ti.createTime desc")->find();
+        if ($old) {
+            $responseObj->code = 200;
+            $responseObj->info = $old;
+            return $responseObj;
+        }
+        return $responseObj;
+    }
+
     /**
      * 审核列表页
      */

+ 149 - 443
app/enterprise/view/talent/hospital/apply.html

@@ -105,26 +105,28 @@
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>民族</label>
-                                                        <select class="form-control" id="nation" name="nation" value='{$row.nation}'>
+                                                        <label class=" control-label spacing td-label"><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>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>政治面貌</label>
-                                                        <select class="form-control" id="politics" name="politics" value='{$row.politics}'>
-                                                        </select>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>证件号码</span></label>
+                                                        <input class="form-control" id="card_number" name="card_number" value="{$row.card_number}">
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>人才类型</label>
-                                                        <select class="form-control" id="talent_type" name="talent_type" value="{$row.talent_type}" data-value="{$row.talent_type}">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>性别</label>
+                                                        <select class="form-control" id="sex" name="sex" value='{$row.sex}'>
                                                             <option value="">请选择</option>
-                                                            {volist name="row.talent_type_list" id="item"}
-                                                            <option value="{$item.code}">{$item.name}</option>
-                                                            {/volist}
+                                                            <option value="1">男</option>
+                                                            <option value="2">女</option>
                                                         </select>
                                                     </div>
                                                 </td>
@@ -132,8 +134,8 @@
                                                     <p style="text-align: center;color: red">
                                                         请上传近期免冠半身彩照(两寸)
                                                     </p>
-                                                    <img id="photoImg" {if condition="$row['headimgurl']"} src="{$row.headimgurl|getStoragePath}" {else/} src="/static/img/photo.png" {/if} onclick="$('#photo').click();" style="height:147px;width:105px;margin:0 auto;display:block;">
-                                                         <hr />
+                                                    <img id="photoImg" {if condition="$row['headimgurl']"} src="{$row.headimgurl|getStoragePath}" {else/} src="/static/img/avatar.png" {/if} onclick="$('#photo').click();" style="height:147px;width:105px;margin:0 auto;display:block;">
+                                                        <hr />
                                                         附件:
                                                         <table class="fileTable"></table>
                                                 </td>
@@ -141,35 +143,33 @@
                                             <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><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>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control date" id="birthday" name="birthday" value="{$row.birthday}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>证件号码</span></label>
-                                                        <input class="form-control" id="card_number" name="card_number" value="{$row.card_number}">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>民族</label>
+                                                        <select class="form-control" id="nation" name="nation" value='{$row.nation}'>
+                                                        </select>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><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>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>政治面貌</label>
+                                                        <select class="form-control" id="politics" name="politics" value='{$row.politics}'>
                                                         </select>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>出生日期</label>
-                                                        <input type="text" class="form-control date" id="birthday" name="birthday" value="{$row.birthday}"/>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>人才类型</label>
+                                                        <select class="form-control" id="talent_type" name="talent_type" value="{$row.talent_type}" data-value="{$row.talent_type}">
+                                                            <option value="">请选择</option>
+                                                            {volist name="row.talent_type_list" id="item"}
+                                                            <option value="{$item.code}">{$item.name}</option>
+                                                            {/volist}
+                                                        </select>
                                                     </div>
                                                 </td>
                                             </tr>
@@ -192,8 +192,6 @@
                                                         <input type="text" class="form-control" id="major" name="major" value="{$row.major}"/>
                                                     </div>
                                                 </td>
-                                            </tr>
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class="control-label spacing td-label">是否有留学经历</label>
@@ -203,33 +201,49 @@
                                                         </select>
                                                     </div>
                                                 </td>
-                                                <td>
-                                                    <div class="rowGroup abroad_need_this" {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
-                                                         <label class="control-label spacing td-label">留学毕业院校</label>
+                                            </tr>
+                                            <tr>
+                                                <td {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
+                                                    <div class="rowGroup abroad_need_this">
+                                                        <label class="control-label spacing td-label">留学毕业院校</label>
                                                         <input type="text" class="form-control" id="abroad_school" name="abroad_school" value="{$row.abroad_school}"/>
                                                     </div>
                                                 </td>
-                                                <td>
-                                                    <div class="rowGroup abroad_need_this" {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
-                                                         <label class="control-label spacing td-label">留学专业</label>
+                                                <td {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
+                                                    <div class="rowGroup abroad_need_this">
+                                                        <label class="control-label spacing td-label">留学专业</label>
                                                         <input type="text" class="form-control" id="abroad_major" name="abroad_major" value="{$row.abroad_major}"/>
                                                     </div>
                                                 </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label">手机号码</label>
+                                                        <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$row.phone}"/>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing td-label">电子邮箱</label>
+                                                        <input type="text" class="form-control" id="email" name="email"  value="{$row.email}"/>
+                                                    </div>
+                                                </td>
                                             </tr>
                                         </table>
                                     </div>
                                 </div>
                                 <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才基础信息</div>
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">工作履历</div>
                                     <div class="panel-body">
                                         <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
                                             <tr>
-                                                <td>
+                                                <td colspan="4">
                                                     <div class="rowGroup word-wrap">
                                                         <label class=" control-label spacing td-label"><span style="color: red">*</span>医院名称</label>
                                                         <div class="form-control" style="border: none;height:auto;">{$row.enterprise.name}</div>
                                                     </div>
                                                 </td>
+                                            </tr>
+                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class="control-label spacing td-label"><span style="color: red">*</span>职务</label>
@@ -255,420 +269,112 @@
                                                     </div>
                                                 </td>
                                             </tr>
+                                        </table>
+                                    </div>                            
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
                                             <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>人才类型</label>
-                                                        <select class="form-control" id="talent_type" name="talent_type" value="{$row.talent_type}" onchange="TalentInfoInfoDlg.talentTypeChange()" data-value="{$row.talent_type}">
-                                                            <option value="">请选择</option>
-                                                            {volist name="row.talent_type_list" id="item"}
-                                                            <option value="{$item.code}">{$item.name}</option>
-                                                            {/volist}
-                                                        </select>
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>主要业绩及取得的荣誉</label>
+                                                        <textarea rows="8" class="form-control" id="experience" name="experience" style="border: none" placeholder="">{$row.experience}</textarea>
+                                                    </div>
+                                                </td>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>教育背景及工作简历</label>
+                                                        <textarea rows="8" class="form-control" id="education" name="education" style="border: none" placeholder="">{$row.education}</textarea>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>                                                
+                                                <td style="width:22%">
+                                                    <div class="rowGroup col-sm-12">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>
+                                                        <select class="form-control" id="talent_arrange" name="talent_arrange" onchange="TalentInfoInfoDlg.getIdentifyCondition()" value="{$row.talent_arrange}"></select>
                                                     </div>
                                                 </td>
+                                                <td style="width:45%;overflow: inherit">
+                                                    <div class="rowGroup col-sm-10">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                                        <div class="form-control" style="border:none;padding:0;">
+                                                            <select class="chosen" id="talent_condition" name="talent_condition" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()" value="{$row.talent_condition}"></select>
+                                                        </div>
+                                                    </div>
+                                                </td>
+                                                <td style="width:33%">
+                                                    <table class="fileTable"></table>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">个人开户银行信息</div>
+                                    <div class="panel-body">
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>
                                                 <td>
-                                                    <label class=" control-label spacing td-label">人才类型说明</label>
-                                                    <div class="word-wrap" id="typeTips">
-
+                                                    <div class="rowGroup">
+                                                        <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银行" value="{$row.bank}"/>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" colspan='2'>
-                                                    <table class="fileTable">
-                                                        <tr><td>载入附件</td></tr>
-                                                    </table>
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
+                                                        <input type="text" class="form-control" id="bank_number" name="bank_number" value="{$row.bank_number}"/>
+                                                    </div>
                                                 </td>
-                                            </tr>                                    
-                                            <tr class="talentType1-2" style="display: none">
-                                                <td >
+                                                <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span><span id="talentType_first" style="display: none">首次</span>在我市缴交社会保险或个人所得税月份</label>
-                                                        <input type="text" class="form-control rangemonth" id="tax_insurance_month" name="tax_insurance_month" value="{$row.tax_insurance_month}"/>
+                                                        <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支行/分行/分理处" value="{$row.bank_branch_name}"/>
                                                     </div>
                                                 </td>
-                                            </tr>                                    
-                                            <tr class="talentType1-2" style="display: none">
-                                                <td >
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>工资发放渠道</label>
-                                                        <input type="radio" name="salary_pay_way" value="1" {eq name="row.salary_pay_way" value="1"}checked{/eq}/>本单位&nbsp;&nbsp;
-                                                               <input type="radio" name="salary_pay_way" value="2" {eq name="row.salary_pay_way" value="2"}checked{/eq}/>本单位所属集团公司及权属公司
-                                                               </div>
-                                                                </td>
-                                                                <td>
-                                                                    <div class="rowGroup">
-                                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>工资发放月份</label>
-                                                                        <input type="text" class="form-control rangemonth" id="salary_pay_month" name="salary_pay_month" value="{$row.salary_pay_month}" />
-                                                                    </div>
-                                                                </td>
-                                                                </tr>
-                                                                <tr class="talentType3" style="display: none">
-                                                                    <td >
-                                                                        <div class="rowGroup">
-                                                                            预引进类型
-                                                                        </div>
-                                                                    </td>
-                                                                    <td >
-                                                                        <div class="rowGroup word-wrap">
-                                                                            <input type="radio" name="pre_import_type" value="1" {eq name="row.pre_import_type" value="1"}checked{/eq}/><span style="color: red">*</span>意向合同&nbsp;&nbsp;&nbsp;&nbsp;
-                                                                                <input type="radio" name="pre_import_type" value="2" {eq name="row.pre_import_type" value="2"}checked{/eq}/><span style="color: red">*</span>创业企业名称预核准
-                                                                                    </div>
-                                                                                    </td>
-                                                                                    </tr>
-                                                                                    {if condition="in_array($row['enterprise']['enterpriseTag'],['mtdw','gyqyh','mbfqy','jrjg'])"}
-                                                                                    <tr style="display:none" id="come_in_jin">
-                                                                                        <td>
-                                                                                            <div class="rowGroup">
-                                                                                                <label class="control-label spacing td-label">{if condition="$row['talent_type'] eq 1"}近三年{else/}近三年(首次){/if}来晋工作时间</label>
-                                                                                                <input type="text" class="form-control date" id="fst_work_time" name="fst_work_time" value="{$row.fst_work_time}"/>
-                                                                                            </div>
-                                                                                        </td>
-                                                                                        <td id="come_in_jin_str">
-                                                                                            <label class=" control-label spacing td-label">{if condition="$row['talent_type'] eq 1"}近三年{else/}近三年(首次){/if}来晋工作时间说明</label>
-                                                                                            <div class="word-wrap">
-                                                                                                如您为近三年来晋工作的人才,须填写近三年来晋日期,同时上传对应佐证材料,如果来晋时间已超过三年,则此项不必填写。
-                                                                                            </div>
-                                                                                        </td>
-                                                                                    </tr>
-                                                                                    {/if}                                    
-                                                                                    <tr class="talentType2" style="display: none">
-                                                                                        <td >
-                                                                                            <div class="rowGroup word-wrap">
-                                                                                                <label class=" control-label spacing td-label">流出晋江满3年后又返回晋江的</label>
-                                                                                                <select class="form-control" id="return" name="return" value="{$row.return}" data-value="{$row.return}">
-                                                                                                    <option value="">请选择</option>
-                                                                                                    <option value="2">否</option>
-                                                                                                    <option value="1">是</option>
-                                                                                                </select>
-                                                                                            </div>
-                                                                                        </td>
-                                                                                        <td>
-                                                                                        </td>
-                                                                                    </tr>
-                                                                                    </table>
-                                                                                    <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                        <tr>
-                                                                                            <td>
-                                                                                                <div class="rowGroup">
-                                                                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>引进方式</label>
-                                                                                                    <select class="form-control" id="import_way" name="import_way" data-placeholder="引进方式" value="{$row.import_way}">
-                                                                                                    </select>
-                                                                                                </div>
-                                                                                            </td>
-                                                                                            <td rowspan="3" style="width: 300%">
-                                                                                                <table class="fileTable"></table>
-                                                                                            </td>
-                                                                                        </tr>
-                                                                                    </table>
-                                                                                    </div>                            
-                                                                                    <div class="panel-body">
-                                                                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                            <tr>
-                                                                                                <td>
-                                                                                                    <div class="rowGroup">
-                                                                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>工作简历</label>
-                                                                                                        <textarea rows="10" class="form-control" id="experience" name="experience" style="border: none" placeholder="请严格按如下格式填写:
-                                                                                                                  2000.07-2005.03 xxxx有限公司 (私营企业) 总务科 后勤
-                                                                                                                  2005.03-2010.09 xx市xx单位 (事业单位) 非编 经办
-                                                                                                                  2010.09-2013.08 待业
-                                                                                                                  2013.08-至今 xx省xx单位 (参公事业单位) 在编 科员">{$row.experience}</textarea>
-                                                                                                    </div>
-                                                                                                </td>
-                                                                                                <td>
-                                                                                                    <div class="rowGroup">
-                                                                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>教育背景</label>
-                                                                                                        <textarea rows="10" class="form-control" id="education" name="education" style="border: none" placeholder="请严格按如下格式填写:
-                                                                                                                  1993.09-1996.07 xx市xx中学 (高中) 学生
-                                                                                                                  1996.09-2000.07 xxxxx大学 (本科) xxxx专业 学生">{$row.education}</textarea>
-                                                                                                    </div>
-                                                                                                </td>
-                                                                                            </tr>
-                                                                                        </table>
-                                                                                    </div>
-                                                                                    </div>
-                                                                                    <div class="panel panel-default">
-                                                                                        <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
-                                                                                        <div class="panel-body">
-                                                                                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                                <tr>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup">
-                                                                                                            <label class=" control-label spacing td-label"><span style="color: red">*</span>申报年度</label>
-                                                                                                            <input type="text" class="form-control" name="apply_year" id="apply_year" value="{$year}" readonly disabled>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup">
-                                                                                                            <label class="control-label spacing td-label"><span style="color: red">*</span>手机号码</label>
-                                                                                                            <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$row.phone}"/>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup">
-                                                                                                            <label class="control-label spacing td-label"><span style="color: red">*</span>电子邮箱</label>
-                                                                                                            <input type="text" class="form-control" id="email" name="email"  value="{$row.email}"/>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td rowspan="3" style="width: 300%">
-                                                                                                        <table class="fileTable"></table>
-                                                                                                    </td>
-                                                                                                </tr>
-
-                                                                                            </table>
-                                                                                            <table style="width: 100%;border-collapse: collapse;border:1px solid #ddd;border-left:none;border-right:none;" class="table table-bordered">                                    
-                                                                                                <tr>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup">
-                                                                                                            <label class="control-label spacing td-label">是否有留学经历</label>
-                                                                                                            <select class="form-control" id="study_abroad" name="study_abroad" onchange="TalentInfoInfoDlg.changeStudyAbroad()" autocomplete='off' value="{$row.study_abroad}">
-                                                                                                                <option value="2">否</option>
-                                                                                                                <option value="1">是</option>
-                                                                                                            </select>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup abroad_need_this" {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
-                                                                                                             <label class="control-label spacing td-label"><span style="color: red">*</span>留学毕业院校</label>
-                                                                                                            <input type="text" class="form-control" id="abroad_school" name="abroad_school" value="{$row.abroad_school}"/>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup abroad_need_this" {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
-                                                                                                             <label class="control-label spacing td-label"><span style="color: red">*</span>留学专业</label>
-                                                                                                            <input type="text" class="form-control" id="abroad_major" name="abroad_major" value="{$row.abroad_major}"/>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td rowspan="3" style="width: 300%">
-                                                                                                        <table class="fileTable"></table>
-                                                                                                    </td>
-                                                                                                </tr>
-                                                                                            </table>
-                                                                                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                                <tr>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup">
-                                                                                                            <label class="control-label spacing">职业资格</label>
-                                                                                                            <input type="text" class="form-control" id="pro_qua" name="pro_qua" value="{$row.pro_qua}"/>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td rowspan="3" style="width: 100%">
-                                                                                                        <table class="fileTable"></table>
-                                                                                                    </td>
-                                                                                                </tr>
-                                                                                            </table>
-                                                                                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                                <tr>
-                                                                                                    <td>
-                                                                                                        <div class="rowGroup">
-                                                                                                            <label class="control-label spacing">专业技术职称</label>
-                                                                                                            <input type="text" class="form-control" id="professional" name="professional" value="{$row.professional}"/>
-                                                                                                        </div>
-                                                                                                    </td>
-                                                                                                    <td rowspan="3" style="width: 100%">
-                                                                                                        <table class="fileTable"></table>
-                                                                                                    </td>
-                                                                                                </tr>
-                                                                                            </table>
-                                                                                            {if condition="$row['fjImport'] == 1 or $row['qzImport'] == 1"}
-                                                                                            <div style="color:red;font-size:12px;word-wrap: normal;white-space: normal;padding:10px 0;">*人才直认说明:曾入选为福建省高层次人才、泉州市高层次人才的对象,还在人才有效期内,可在本系统进行人才直认操作:选择“是”,在“认定条件”中选择与导入数据省级为“入选条款”、泉州级为“认定条件”同样的人才认定条件,完成人才直认操作,不用提供人才认定佐证材料;如果无法选择同样的人才认定条件,那就只能选择“否”,按步骤进行正常人才认定申报。</div>
-                                                                                            <table style="width: 100%;border-collapse: collapse;background:#f7f7f7;color:red;font-weight:bold;" class="table table-bordered">
-                                                                                                {if condition="$row['fjImport'] == 1"}
-                                                                                                <tr>
-                                                                                                    <td align="center" class="word-wrap">
-                                                                                                        导入来源标签:福建省高层次人才
-                                                                                                    </td>
-                                                                                                    <td align="center" class="word-wrap">
-                                                                                                        人才类型:{$row["fj_talent_level"]}
-                                                                                                    </td>
-                                                                                                    <td align="center" class="word-wrap">
-                                                                                                        入选条款: {$row["fj_talent_condition_text"]}
-                                                                                                    </td>
-                                                                                                    <td align="center" class="word-wrap" width="50%">
-                                                                                                        {$row["fj_talent_info"]}
-                                                                                                    </td>
-                                                                                                </tr>
-                                                                                                {/if}
-                                                                                                {if condition="$row['qzImport'] == 1"}
-                                                                                                <tr>
-                                                                                                    <td align="center" class="word-wrap">
-                                                                                                        导入来源标签:泉州市高层次人才
-                                                                                                    </td>
-                                                                                                    <td align="center" class="word-wrap">
-                                                                                                        人才层次:{$row["qz_talent_level"]}
-                                                                                                    </td>
-                                                                                                    <td align="center" class="word-wrap">
-                                                                                                        认定条件: {$row["qz_talent_condition_text"]}
-                                                                                                    </td>
-                                                                                                    <td align="center" class="word-wrap" width="50%">
-                                                                                                        {$row["qz_talent_info"]}
-                                                                                                    </td>
-                                                                                                </tr>
-                                                                                                {/if}
-                                                                                            </table>
-                                                                                            {/if}
-                                                                                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                                <tr>
-                                                                                                    <td colspan="4">
-                                                                                                        {if condition="$row['isImport']"}                                                    
-                                                                                                        <div class="rowGroup col-sm-12 zhiren word-wrap-no-width" style="font-weight:bold;">
-                                                                                                            <label class="control-label spacing td-label" style="border-bottom:2px solid red;"><span style="color: red">*</span>是否符合<span style="font-size:16px;color:red;">人才直认</span>条件</label>
-                                                                                                            <input type="radio" name="isMatchZhiren" value="1" {eq name="row.isMatchZhiren" value="1"}checked{/eq} onchange="TalentInfoInfoDlg.isMatchZhirenChange();"/>是&nbsp;&nbsp;
-                                                                                                                   <input type="radio" name="isMatchZhiren" value="0" {if condition="!$row['isMatchZhiren']"}checked{/if} onchange="TalentInfoInfoDlg.isMatchZhirenChange();"/>否
-                                                                                                                   </div>
-                                                                                                                    {/if}
-                                                                                                                    <div class="rowGroup col-sm-9">
-                                                                                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>申报来源</label>
-                                                                                                                        <select class="form-control" id="source" name="source" onchange="TalentInfoInfoDlg.sourceChange()" value="{$row.source}">
-                                                                                                                        </select>
-                                                                                                                    </div>
-                                                                                                                    <div class="rowGroup col-sm-3" {if condition="!$row['source_city']"}style="display:none;"{/if}>
-                                                                                                                         <label class="control-label spacing"><span style="color: red">*</span>入选来源地级市</label>
-                                                                                                                        <select class="form-control" id="source_city" name="source_city" value="{$row['source_city']}">
-                                                                                                                            <option value="">{$row.sourceCityName}</option>
-                                                                                                                        </select>
-                                                                                                                    </div>
-                                                                                                                    <div class="rowGroup col-sm-3" {if condition="!$row['source_county']"}style="display:none;"{/if}>
-                                                                                                                         <label class="control-label spacing"><span style="color: red">*</span>入选来源县市区</label>
-                                                                                                                        <select class="form-control" id="source_county" name="source_county" value="{$row['source_county']}">
-                                                                                                                            <option value="">{$row.sourceCountyName}</option>
-                                                                                                                        </select>
-                                                                                                                    </div>
-                                                                                                                    </td>
-                                                                                                                    <td rowspan="4" style="width: 100%">
-                                                                                                                        <table class="fileTable"></table>
-                                                                                                                    </td>
-                                                                                                                    </tr>
-                                                                                                                    <!--<tr>
-                                                                                                                        <td {if condition="!$row['source_batch']"}style="display:none;"{/if}>
-                                                                                                                            <div class="rowGroup">
-                                                                                                                                <label class=" control-label spacing" ><span style="color: red">*</span>入选名单的文件号及批次</label>
-                                                                                                                                <input type="text" class="form-control" id="source_batch" name="source_batch" value="{$row.source_batch}"/>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                        <td style="display: none">
-                                                                                                                            <div class="rowGroup fujian_highcert">
-                                                                                                                                <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" value="{$row.fujian_highcert_pubtime}"/>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                        <td style="display: none">
-                                                                                                                            <div class="rowGroup fujian_highcert">
-                                                                                                                                <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" value="{$row.fujian_highcert_exptime}"/>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                        <td style="display: none">
-                                                                                                                            <div class="rowGroup quanzhou_highcert">
-                                                                                                                                <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" value="{$row.quanzhou_highcert_pubtime}"/>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                        <td style="display: none">
-                                                                                                                            <div class="rowGroup quanzhou_highcert">
-                                                                                                                                <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" value="{$row.quanzhou_highcert_exptime}"/>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                    </tr>-->
-                                                                                                                    <tr>
-                                                                                                                        <td colspan="4">
-                                                                                                                            <div class="rowGroup col-sm-6">
-                                                                                                                                <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>
-                                                                                                                                <select class="form-control" id="talent_arrange" name="talent_arrange" onchange="TalentInfoInfoDlg.getLayerCatdByLayer()" value="{$row.talent_arrange}"></select>
-                                                                                                                            </div>
-                                                                                                                            <div class="rowGroup col-sm-6">
-                                                                                                                                <label class="control-label spacing"><span style="color: red">*</span>人才条款</label>
-                                                                                                                                <select class="form-control" id="talent_arrange_category" name="talent_arrange_category" onchange="TalentInfoInfoDlg.getIdentifyCondition()" value="{$row.talent_arrange_category}"></select>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                    </tr>
-                                                                                                                    <tr>
-                                                                                                                        <td colspan="4" style="overflow: inherit">
-                                                                                                                            <div class="rowGroup col-sm-10">
-                                                                                                                                <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
-                                                                                                                                <select class="chosen" id="talent_condition" name="talent_condition" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()" value="{$row.talent_condition}" style="width: 80%"></select>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                    </tr>
-                                                                                                                    <tr>
-                                                                                                                        <td colspan="2">
-                                                                                                                            <div class="rowGroup col-sm-12">
-                                                                                                                                <label class="control-label spacing"><span style="color: red">*</span>认定条件取得时间</label>
-                                                                                                                                <input type="text" class="form-control date" id="identifyGetTime" name="identifyGetTime" value="{$row.identifyGetTime}"/>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                        <td colspan="2" {if condition='!$row["annual_salary"]'}style="display:none;"{/if}>
-                                                                                                                            <div class="rowGroup col-sm-12">
-                                                                                                                                <label class="control-label spacing"><span style="color: red">*</span>上一年度年薪(元)</label>
-                                                                                                                                <div style="position:relative;">
-                                                                                                                                    <input type="text" class="form-control" id="annual_salary" name="annual_salary" value="{$row.annual_salary}"/>
-                                                                                                                                    <i class="control-symbol">元</i>
-                                                                                                                                </div>
-                                                                                                                            </div>
-                                                                                                                        </td>
-                                                                                                                    </tr>
-                                                                                                                    </table>
-                                                                                                                    </div>
-                                                                                                                    </div>
-                                                                                                                    <div class="panel panel-default">
-                                                                                                                        <div class="panel-heading" onclick="$(this).next().toggle()">个人开户银行信息</div>
-                                                                                                                        <div class="panel-body">
-                                                                                                                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                                                                                                                <tr>
-                                                                                                                                    <td>
-                                                                                                                                        <div class="rowGroup">
-                                                                                                                                            <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银行" value="{$row.bank}"/>
-                                                                                                                                        </div>
-                                                                                                                                    </td>
-                                                                                                                                    <td>
-                                                                                                                                        <div class="rowGroup">
-                                                                                                                                            <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
-                                                                                                                                            <input type="text" class="form-control" id="bank_number" name="bank_number" value="{$row.bank_number}"/>
-                                                                                                                                        </div>
-                                                                                                                                    </td>
-                                                                                                                                    <td>
-                                                                                                                                        <div class="rowGroup">
-                                                                                                                                            <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支行/分行/分理处" value="{$row.bank_branch_name}"/>
-                                                                                                                                        </div>
-                                                                                                                                    </td>
-                                                                                                                                    <td>
-                                                                                                                                        <div class="rowGroup">
-                                                                                                                                            <label class="control-label spacing"><span style="color: red">*</span>个人银行账号</label>
-                                                                                                                                            <input type="text" class="form-control" id="bank_account" name="bank_account"  value="{$row.bank_account}" onkeyup="value = value.replace(/\s+/g, '')"/>
-                                                                                                                                        </div>
-                                                                                                                                    </td>
-                                                                                                                                </tr>
-                                                                                                                            </table>
-                                                                                                                        </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' id="tableIndex" name="tableIndex" />
-                                                                                                                        <input type='hidden' id="trIndex" name="trIndex" />
-                                                                                                                        <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack"/>
-                                                                                                                        <input type="type" name="type" value="1"/>
-                                                                                                                    </form>
-                                                                                                                    <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">
-                                                                                                                        document.write('<script src="/static/modular/gate/talentInfo/new_talentInfo_info.js?v=' + (new Date()).getTime() + '"><\/script>');
-                                                                                                                        document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
-                                                                                                                    </script>
-                                                                                                                    {/block}
+                                                <td>
+                                                    <div class="rowGroup">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>个人银行账号</label>
+                                                        <input type="text" class="form-control" id="bank_account" name="bank_account"  value="{$row.bank_account}" onkeyup="value = value.replace(/\s+/g, '')"/>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                        </table>
+                                    </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' id="tableIndex" name="tableIndex" />
+                                <input type='hidden' id="trIndex" name="trIndex" />
+                                <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack"/>
+                                <input type="type" name="type" value="1"/>
+                            </form>
+                            <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">
+    document.write('<script src="/static/modular/gate/talentInfo/new_talentInfo_wj_info.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 118 - 419
app/enterprise/view/talent/hospital/view.html

@@ -1,8 +1,6 @@
 {extend name="layout/content"}
 {block name="content"}
-<style type="text/css">
-    td{white-space: normal;word-break: normal;}
-    .form-control{height:auto;}
+<style type="text/css" xmlns="http://www.w3.org/1999/html">
     .panel-heading{
         color:#333;
         background-color:#f5f5f5;
@@ -13,7 +11,7 @@
         padding-right:4px;
         padding-left: 4px;
     }
-    .panel label {
+    #talentInfoForm label {
         font-size: xx-small;
     }
     .has-feedback .form-control {
@@ -69,7 +67,10 @@
         text-align:center;
         border-left:1px solid #ddd;
     }
-    #annual_salary{padding-right:32px;}    
+    #annual_salary{padding-right:32px;}
+    .zhiren-left{width:20px;text-align:center;font-size:12px;line-height:16px;float:left;font-weight:bold;color:#337ab7;}
+    .zhiren-right{margin-left:20px;}
+    #talent_condition_chosen li{word-break:break-all;white-space: initial;}
 </style>
 <div class="ibox float-e-margins">
     <div class="ibox-content">
@@ -77,275 +78,142 @@
             <div class="row">
                 <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/apply" method="post" enctype="multipart/form-data" target="hiddenIframe">
+                                <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.enterpriseId}"/>
+                                <input type="hidden" name="enterprise_type" id="type" value="{$row.enterpriseType}"/>
+                                <input type="hidden" name="talent_condition" id="talent_condition" value="{$row.talent_condition}"/>
+                                <input type="file" name="photo" id="photo" style="display: none"/>
+                                <input type="hidden" name="checkState" id="checkState" value="{$row.checkState}"/>
+                                <input type="hidden" name="realState" id="realState" value="{$row.real_state}"/>
+                                <input type="hidden" name="files" id="files" value="{$row.modify_files}"/>
+                                <input type="hidden" name="fields" id="fields" value="{$row.modify_fields}"/>    
                                 <div class="panel panel-default">
                                     <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
                                     <div class="panel-body">
-                                        <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="enterprise_tag" id="enterprise_tag" value="{$row.enterpriseTag}">
-                                        <input type="hidden" name="import" id="import" value="{$row.isImport}"/>
                                         <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
                                             <tr>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class="control-label spacing td-label"><span style="color: red">*</span>姓名</label>
-                                                        <input type="text" class="form-control" id="name" value="{$row.name}"  readonly disabled/>
+                                                        <input type="text" class="form-control" id="name" name="name" value="{$row.name}"/>
                                                     </div>
                                                 </td>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>民族</label>
-                                                        <input class="form-control" value="{$row.nationName}" readonly disabled id="nation"/>
-                                                    </div>
-                                                </td>
-                                                <td rowspan="5" style="width: 200%">
-                                                    <img id="photoImg" onclick="Feng.showImg(this)" src="{$row.headimgurl|getStoragePath}"  style="height:147px;width:105px;margin:0 auto;display:block;">
-                                                    <hr />
-                                                    附件:
-                                                    <table class="fileTable"></table>
-                                                </td>
-                                            </tr>
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class=" control-label spacing td-label"><span style="color: red">*</span>证件类型</label>
-                                                        <select class="form-control" value="{$row.card_type}" readonly disabled  id="card_type">
-                                                            <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 class="form-control" id="card_type" name="card_type" value="{$row.card_type}">
+                                                            {eq name="row.card_type" value="1"}<option value="1">身份证</option>{/eq}
+                                                            {eq name="row.card_type" value="2"}<option value="2">通行证</option>{/eq}
+                                                            {eq name="row.card_type" value="3"}<option value="3">护照</option>{/eq}
                                                         </select>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class=" control-label spacing td-label"><span style="color: red">*</span>证件号码</span></label>
-                                                        <input class="form-control" value="{$row.card_number}" readonly disabled  id="card_number">
+                                                        <input class="form-control" id="card_number" name="card_number" value="{$row.card_number}">
                                                     </div>
                                                 </td>
-                                            </tr>
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class=" control-label spacing td-label"><span style="color: red">*</span>性别</label>
-                                                        <input type="text" class="form-control" value="{eq name='row.sex' value='1'}男{else/}女{/eq}"  readonly disabled  id="sex"/>
+                                                        <select class="form-control" id="sex" name="sex" value="{$row.sex}">
+                                                            {eq name="row.sex" value="1"}<option value="1">男</option>{/eq}
+                                                            {eq name="row.sex" value="2"}<option value="2">女</option>{/eq}
+                                                        </select>
                                                     </div>
                                                 </td>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>出生日期</label>
-                                                        <input type="text" class="form-control" value="{$row.birthday}" readonly disabled  id="birthday"/>
-                                                    </div>
+                                                <td rowspan="5" style="width: 200%">
+                                                    <p style="text-align: center;color: red">
+                                                        请上传近期免冠半身彩照(两寸)
+                                                    </p>
+                                                    <img id="photoImg" {if condition="$row['headimgurl']"} src="{$row.headimgurl|getStoragePath}" {else/} src="/static/img/avatar.png" {/if} onclick="$('#photo').click();" style="height:147px;width:105px;margin:0 auto;display:block;">
+                                                        <hr />
+                                                        附件:
+                                                        <table class="fileTable"></table>
                                                 </td>
                                             </tr>
                                             <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>政治面貌</label>
-                                                        <input class="form-control" value="{$row.politicsName}" readonly disabled  id="politics"/>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control date" id="birthday" name="birthday" value="{$row.birthday}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>国籍/地区</label>
-                                                        <input class="form-control" value="{$row.nationalityName}" readonly disabled id="nationality">
-                                                    </div>
-                                                </td>
-                                            </tr>
-                                            <tr>
-                                                <td colspan="2">
-                                                    <div class="rowGroup">
-                                                        <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
-                                                        <input class="form-control" value="{$row.provinceName}{$row.cityName}{$row.countyName}" readonly disabled id="province"/>
-                                                    </div>
-                                                </td>
-                                            </tr>
-                                        </table>
-                                    </div>
-                                </div>
-                                <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才基础信息</div>
-                                    <div class="panel-body">
-                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                            <tr>
-                                                <td>
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>单位标签</label>
-                                                        <div class="form-control" style="border: none;height:auto;">{$row.enterpriseTagName}</div>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>单位名称</label>
-                                                        <div class="form-control" style="border: none;height:auto;">{$row.enterpriseName}</div>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>所属街道</label>
-                                                        <div class="form-control" style="border: none;height:auto;">{$row.streetName}</div>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>产业领域</label>
-                                                        <div class="form-control" style="border: none;height:auto;">{$row.industryFieldName|default="无"}</div>
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>民族</label>
+                                                        <input type="text" class="form-control" id="nation" name="nation" value="{$row.nationName}"/>
                                                     </div>
                                                 </td>
-                                            </tr>
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>人才类型</label>
-                                                        <select class="form-control" readonly disabled id="talent_type" data-value="{$row.talent_type}">
-                                                            <option value="" selected="true">{$row.talentTypeName}</option>
-                                                        </select>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>政治面貌</label>
+                                                        <input type="text" class="form-control" id="politics" name="politics" value="{$row.politicsName}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label">人才类型说明</label>
-                                                        <div class="word-wrap" id="typeTips">                                                    
-                                                            {switch name="row.talent_type"}
-                                                            {case value="1"}含经晋江市认定且还在晋江市就业创业的人才,或在晋江市就业创业但未曾申报过晋江市现代产业体系人才的人才。{/case}
-                                                            {case value="2"}含本办法出台后首次从晋江市以外引进认定的人才,或者流出晋江市满3年后又返回晋江市就业创业(不含企业集团内部人员调动)的人才。{/case}
-                                                            {case value="3"}含已经与晋江市用人单位达成就业意向且签订预引进意向合作协议(合同)的人才,或拟来我市创业且提交企业名称预先核准的人才。{/case}
-                                                            {/switch}
-                                                        </div>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>人才类型</label>
+                                                        <input type="text" class="form-control" id="talent_type" name="talent_type" value="{$row.talentTypeName}"/>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" colspan="2">
-                                                    <table class="fileTable"></table>
-                                                </td>
                                             </tr>
-                                            {if condition="in_array($row['talent_type'],[1,2])"}
                                             <tr>
-                                                <td>
-                                                    <div class="rowGroup ">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{if condition="$row['talent_type'] eq 2"}首次{/if}在我市缴交社会保险或个人所得税月份</label>
-                                                        <input type="text" class="form-control" value="{$row.tax_insurance_month}"  readonly disabled id="tax_insurance_month"/>
-                                                    </div>
-                                                </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>劳动合同起止时间</label>
-                                                        <input type="text" class="form-control" value="{$row.labor_contract_rangetime}"  readonly disabled id="labor_contract_rangetime"/>
-                                                    </div>
-                                                </td>
-                                            </tr>
-                                            <tr>
-                                                <td>
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>工资发放渠道</label>
-                                                        <input type="radio" name="salary_pay_way" value="1" {eq name="row.salary_pay_way" value="1"}checked{/eq} readonly disabled/>本单位&nbsp;&nbsp;
-                                                        <input type="radio" name="salary_pay_way" value="2" {eq name="row.salary_pay_way" value="2"}checked{/eq} readonly disabled/>本单位所属集团公司及权属公司
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>最高学历</label>
+                                                        <input type="text" class="form-control" id="highest_degree" name="highest_degree" value="{$row.highestDegreeName}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>工资发放月份</label>
-                                                        <input type="text" class="form-control" value="{$row.salary_pay_month}"  readonly disabled id="salary_pay_month"/>
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>毕业院校</label>
+                                                        <input type="text" class="form-control" id="graduate_school" name="graduate_school" value="{$row.graduate_school}">
                                                     </div>
                                                 </td>
-                                            </tr>
-                                            {if condition="in_array($row['enterprise']['enterpriseTag'],['mtdw','gyqyh','mbfqy','jrjg']) and in_array($row['talent_type'],[1,2])"}
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>{if condition="$row['talent_type'] eq 1"}近三年{else/}近三年(首次){/if}来晋工作时间</label>
-                                                        <input type="text" class="form-control" id="fst_work_time" value="{$row.fst_work_time}"  readonly disabled/>
-                                                    </div>
-                                                </td>
-                                                <td id="come_in_jin_str">
-                                                    <label class=" control-label spacing td-label">{if condition="$row['talent_type'] eq 1"}近三年{else/}近三年(首次){/if}来晋工作时间说明</label>
-                                                    <div class="word-wrap">
-                                                        如您为近三年来晋工作的人才,须填写近三年来晋日期,同时上传对应佐证材料,如果来晋时间已超过三年,则此项不必填写。
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>专业</label>
+                                                        <input type="text" class="form-control" id="major" name="major" value="{$row.major}"/>
                                                     </div>
                                                 </td>
-                                            </tr>
-                                            {/if}
-                                            {/if}
-                                            {if condition="in_array($row['talent_type'],[3])"}
-                                            <tr class="talentType3">
-                                                <td >
+                                                <td>
                                                     <div class="rowGroup">
-                                                        预引进类型
-                                                    </div>
-                                                </td>
-                                                <td >
-                                                    <div class="rowGroup word-wrap">
-                                                        <input type="radio" name="pre_import_type" value="1" {eq name="row.pre_import_type" value="1"}checked{/eq} readonly disabled/><span style="color: red">*</span>意向合同&nbsp;&nbsp;&nbsp;&nbsp;
-                                                        <input type="radio" name="pre_import_type" value="2" {eq name="row.pre_import_type" value="2"}checked{/eq} readonly disabled/><span style="color: red">*</span>创业企业名称预核准
-                                                    </div>
-                                                </td>
-                                            </tr>
-                                            {/if}
-                                            {if condition="in_array($row['talent_type'],[2])"}
-                                            <tr class="talentType2">                                                
-                                                <td >
-                                                    <div class="rowGroup word-wrap">
-                                                        <label class=" control-label spacing td-label">流出晋江满3年后又返回晋江的</label>
-                                                        <select class="form-control" readonly disabled id="return" data-value="{$row.return}">
-                                                            <option value="">
-                                                                {switch name="row.return"}
-                                                                {case value="1"}是{/case}
-                                                                {case value="2"}否{/case}
-                                                                {default/}未选择
-                                                                {/switch}
-                                                            </option>
+                                                        <label class="control-label spacing td-label">是否有留学经历</label>
+                                                        <select class="form-control" id="study_abroad" name="study_abroad" value="{$row.study_abroad}">
+                                                            {eq name="row.study_abroad" value="2"}<option value="2">否</option>{/eq}
+                                                            {eq name="row.study_abroad" value="1"}<option value="1">是</option>{/eq}
                                                         </select>
                                                     </div>
                                                 </td>
-                                                <td>
-                                                </td>
                                             </tr>
-                                            {/if}
-                                        </table>
-                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
                                             <tr>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><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>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>本单位入职时间</label>
-                                                        <input type="text" class="form-control" id="cur_entry_time" name="cur_entry_time" value="{$row.cur_entry_time}"/>
+                                                <td {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
+                                                    <div class="rowGroup abroad_need_this">
+                                                        <label class="control-label spacing td-label">留学毕业院校</label>
+                                                        <input type="text" class="form-control" id="abroad_school" name="abroad_school" value="{$row.abroad_school}"/>
                                                     </div>
                                                 </td>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>本单位现任职务</label>
-                                                        <div class="form-control" style="border: none;height:auto;background:#eee;" id="position">{$row.position}</div>
+                                                <td {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
+                                                    <div class="rowGroup abroad_need_this">
+                                                        <label class="control-label spacing td-label">留学专业</label>
+                                                        <input type="text" class="form-control" id="abroad_major" name="abroad_major" value="{$row.abroad_major}"/>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" style="width: 300%">
-                                                    <table class="fileTable"></table>
-                                                </td>
-                                            </tr>
-                                        </table>
-                                    </div>
-                                    <div class="panel-body">
-                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>工作简历</label>
-                                                        <textarea class="form-control" style="border: none" rows="10" readonly disabled>{$row.experience}</textarea>
+                                                        <label class="control-label spacing td-label">手机号码</label>
+                                                        <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$row.phone}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>教育背景</label>
-                                                        <textarea class="form-control" style="border: none" rows="10" readonly disabled>{$row.education}</textarea>
+                                                        <label class="control-label spacing td-label">电子邮箱</label>
+                                                        <input type="text" class="form-control" id="email" name="email"  value="{$row.email}"/>
                                                     </div>
                                                 </td>
                                             </tr>
@@ -353,257 +221,83 @@
                                     </div>
                                 </div>
                                 <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">工作履历</div>
                                     <div class="panel-body">
                                         <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
                                             <tr>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class=" control-label spacing td-label"><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>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>手机号码</label>
-                                                        <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$row.phone}"/>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>电子邮箱</label>
-                                                        <input type="text" class="form-control" id="email" name="email"  value="{$row.email}"/>
+                                                <td colspan="4">
+                                                    <div class="rowGroup word-wrap">
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>医院名称</label>
+                                                        <div class="form-control" style="border: none;height:auto;">{$row.enterpriseName}</div>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" style="width: 300%">
-                                                    <table class="fileTable"></table>
-                                                </td>
                                             </tr>
                                             <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label">最高学历</label>
-                                                        <select class="form-control" id="highest_degree">
-                                                            <option value="">{$row.highestDegreeName}</option>
-                                                        </select>
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>职务</label>
+                                                        <input type="text" class="form-control" id="position" name="position" value="{$row.position}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label">毕业院校</label>
-                                                        <input type="text" class="form-control" id="graduate_school" name="graduate_school" value="{$row.graduate_school}">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>入职时间</label>
+                                                        <input type="text" class="form-control date" id="cur_entry_time" name="cur_entry_time" value="{$row.cur_entry_time}"/>
                                                     </div>
                                                 </td>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label">专业</label>
-                                                        <input type="text" class="form-control" id="major" name="major" value="{$row.major}"/>
+                                                        <label class=" control-label spacing td-label"><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>
                                                 </td>
-                                            </tr>
-                                        </table>
-                                        <table style="width: 100%;border-collapse: collapse;border:1px solid #ddd;border-left:none;border-right:none;" class="table table-bordered">                                    
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing td-label">是否有留学经历</label>
-                                                        <select class="form-control" id="study_abroad" >
-                                                            <option value="">{eq name="row.study_abroad" value="2"}否{else/}是{/eq}</option>
-                                                        </select>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup abroad_need_this" {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>留学毕业院校</label>
-                                                        <input type="text" class="form-control" id="abroad_school" name="abroad_school" value="{$row.abroad_school}"/>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup abroad_need_this" {if condition='!$row["study_abroad"] or $row["study_abroad"] eq 2'}style="display:none;"{/if}>
-                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>留学专业</label>
-                                                        <input type="text" class="form-control" id="abroad_major" name="abroad_major" value="{$row.abroad_major}"/>
+                                                        <label class="control-label spacing td-label">职称</label>
+                                                        <input type="text" class="form-control" id="title" name="title" value="{$row.title}"/>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" style="width: 300%">
-                                                    <table class="fileTable"></table>
-                                                </td>
                                             </tr>
                                         </table>
+                                    </div>                            
+                                    <div class="panel-body">
                                         <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
                                             <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing">职业资格</label>
-                                                        <div class="form-control" style="border: none;height:auto;background:#eee;" id="pro_qua">{$row.pro_qua}</div>
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>主要业绩及取得的荣誉</label>
+                                                        <textarea rows="8" class="form-control" id="experience" name="experience" style="border: none" placeholder="">{$row.experience}</textarea>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" style="width: 100%">
-                                                    <table class="fileTable"></table>
-                                                </td>
-                                            </tr>
-                                        </table>
-                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
-                                                        <label class="control-label spacing">专业技术职称</label>                                                        
-                                                        <div class="form-control" style="border: none;height:auto;background:#eee;" id="professional">{$row.professional}</div>
+                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>教育背景及工作简历</label>
+                                                        <textarea rows="8" class="form-control" id="education" name="education" style="border: none" placeholder="">{$row.education}</textarea>
                                                     </div>
                                                 </td>
-                                                <td rowspan="3" style="width: 100%">
-                                                    <table class="fileTable"></table>
-                                                </td>
                                             </tr>
                                         </table>
-                                        {if condition="$row['fjImport'] == 1 or $row['qzImport'] == 1"}
-                                        <div style="color:red;font-size:12px;word-wrap: normal;white-space: normal;padding:10px 0;">*人才直认说明:曾入选为福建省高层次人才、泉州市高层次人才的对象,还在人才有效期内,可在本系统进行人才直认操作:选择“是”,在“认定条件”中选择与导入数据省级为“入选条款”、泉州级为“认定条件”同样的人才认定条件,完成人才直认操作,不用提供人才认定佐证材料;如果无法选择同样的人才认定条件,那就只能选择“否”,按步骤进行正常人才认定申报。</div>
-                                        <table style="width: 100%;border-collapse: collapse;background:#f7f7f7;color:red;font-weight:bold;" class="table table-bordered">
-                                            {if condition="$row['fjImport'] == 1"}
-                                            <tr>
-                                                <td align="center" class="word-wrap">
-                                                    导入来源标签:福建省高层次人才
-                                                </td>
-                                                <td align="center" class="word-wrap">
-                                                    人才类型:{$row["fj_talent_level"]}
-                                                </td>
-                                                <td align="center" class="word-wrap">
-                                                    入选条款: {$row["fj_talent_condition_text"]}
-                                                </td>
-                                                <td align="center" class="word-wrap" width="50%">
-                                                    {$row["fj_talent_info"]}
-                                                </td>
-                                            </tr>
-                                            {/if}
-                                            {if condition="$row['qzImport'] == 1"}
-                                            <tr>
-                                                <td align="center" class="word-wrap">
-                                                    导入来源标签:泉州市高层次人才
-                                                </td>
-                                                <td align="center" class="word-wrap">
-                                                    人才层次:{$row["qz_talent_level"]}
-                                                </td>
-                                                <td align="center" class="word-wrap">
-                                                    认定条件: {$row["qz_talent_condition_text"]}
-                                                </td>
-                                                <td align="center" class="word-wrap" width="50%">
-                                                    {$row["qz_talent_info"]}
-                                                </td>
-                                            </tr>
-                                            {/if}
-                                        </table>
-                                        {/if}
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
+                                    <div class="panel-body">
                                         <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
-                                            <tr>
-                                                <td colspan="4">
-                                                    {if condition="$row['isImport']"}                                                    
-                                                    <div class="rowGroup col-sm-12 zhiren word-wrap-no-width" style="font-weight:bold;">
-                                                        <label class="control-label spacing td-label" style="border-bottom:2px solid red;"><span style="color: red">*</span>是否符合<span style="font-size:16px;color:red;">人才直认</span>条件</label>
-                                                        <input type="radio" name="isMatchZhiren" value="1" {eq name="row.isMatchZhiren" value="1"}checked{/eq}/>是&nbsp;&nbsp;
-                                                        <input type="radio" name="isMatchZhiren" value="0" {if condition="!$row['isMatchZhiren']"}checked{/if}/>否     
-                                                    </div>
-                                                    {/if}
-                                                    <div class="rowGroup col-sm-9">
-                                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>申报来源</label>
-                                                        <div class="form-control" style="border: none;background:#eee;">{$row.sourceName}</div>
-                                                        <input type="hidden" id="source" value="{$row.source}">
-                                                    </div>
-                                                    {if condition="$row['source_city'] || $row['source_county']"}
-                                                    <div class="rowGroup col-sm-3" {if condition="!$row['source_city']"}style="display:none;"{/if}>
-                                                        <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>
-                                                    <div class="rowGroup col-sm-3" {if condition="!$row['source_county']"}style="display:none;"{/if}>
-                                                        <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}
-                                                </td>
-                                                <td rowspan="4" style="width: 100%">
-                                                    <table class="fileTable"></table>
-                                                </td>
-                                            </tr> 
-                                            <!--<tr>
-                                                {if condition="$row['source_batch']"}
-                                                <td>
-                                                    <div class="rowGroup">
-                                                        <label class=" control-label spacing" ><span style="color: red">*</span>入选名单的文件号及批次</label>
-                                                        <input type="text" class="form-control" id="source_batch" name="source_batch" value="{$row.source_batch}"/>
-                                                    </div>
-                                                </td>
-                                                {/if}
-                                                {if condition="in_array($row['source'],[1,3])"}
-                                                <td>
-                                                    <div class="rowGroup fujian_highcert">
-                                                        <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书发证日期</label>
-                                                        <input type="text" class="form-control" id="fujian_highcert_pubtime" name="fujian_highcert_pubtime" value="{$row.fujian_highcert_pubtime}"/>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup fujian_highcert">
-                                                        <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书有效期</label>
-                                                        <input type="text" class="form-control" id="fujian_highcert_exptime" name="fujian_highcert_exptime" value="{$row.fujian_highcert_exptime}"/>
-                                                    </div>
-                                                </td>
-                                                {/if}
-                                                {if condition="in_array($row['source'],[2,4])"}
-                                                <td>
-                                                    <div class="rowGroup quanzhou_highcert">
-                                                        <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书发证日期</label>
-                                                        <input type="text" class="form-control" id="quanzhou_highcert_pubtime" name="quanzhou_highcert_pubtime" value="{$row.quanzhou_highcert_pubtime}"/>
-                                                    </div>
-                                                </td>
-                                                <td>
-                                                    <div class="rowGroup quanzhou_highcert">
-                                                        <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书有效期</label>
-                                                        <input type="text" class="form-control" id="quanzhou_highcert_exptime" name="quanzhou_highcert_exptime" value="{$row.quanzhou_highcert_exptime}"/>
-                                                    </div>
-                                                </td>
-                                                {/if}
-                                            </tr>-->
-                                            <tr>
-                                                <td colspan="4">
-                                                    <div class="rowGroup col-sm-6">
-                                                        <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-6">
-                                                        <label class="control-label spacing"><span style="color: red">*</span>人才条款</label>
-                                                        <select class="form-control" id="talent_arrange_category" name="talent_arrange_category">
-                                                            <option value="">{$row.talentArrangeCatName}</option>
-                                                        </select>
-                                                    </div>
-                                                </td>
-                                            </tr>
-                                            <tr>
-                                                <td colspan="4">
+                                            <tr>                                                
+                                                <td style="width:22%">
                                                     <div class="rowGroup col-sm-12">
-                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
-                                                        <input type='hidden' name='talent_condition' id='talent_condition' value='{$row.talent_condition}'>
-                                                        <div class='form-control' style='border: none;background:#eee;'>{$row.talentConditionName}</div>
+                                                        <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>                                                        
+                                                        <input type="text" class="form-control" id="talent_arrange" name="talent_arrange" value="{$row.talentArrangeName}"/>
                                                     </div>
                                                 </td>
-                                            </tr>
-                                            <tr>
-                                                <td colspan="2">
-                                                    <div class="rowGroup col-sm-12">
-                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件取得时间</label>
-                                                        <input type="text" class="form-control" id="identifyGetTime" name="identifyGetTime" value="{$row.identifyGetTime}"/>
+                                                <td style="width:45%;overflow: inherit">
+                                                    <div class="rowGroup col-sm-10">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                                        <input type="text" class="form-control" id="talent_condition_rel" value="{$row.talentConditionName}"/>
                                                     </div>
                                                 </td>
-                                                <td colspan="2" {if condition='!$row["annual_salary"]'}style="display:none;"{/if}>
-                                                    <div class="rowGroup col-sm-12">
-                                                        <label class="control-label spacing"><span style="color: red">*</span>上一年度年薪(元)</label>
-                                                        <div style="position:relative;">
-                                                            <input type="text" class="form-control" id="annual_salary" name="annual_salary" value="{$row.annual_salary}"/>
-                                                            <i class="control-symbol">元</i>
-                                                        </div>
-                                                    </div>
+                                                <td style="width:33%">
+                                                    <table class="fileTable"></table>
                                                 </td>
                                             </tr>
                                         </table>
@@ -626,11 +320,6 @@
                                                         <input type="text" class="form-control" id="bank_number" name="bank_number" value="{$row.bank_number}"/>
                                                     </div>
                                                 </td>
-                                                <td rowspan="2" style="width: 200%">
-                                                    <table class="fileTable"></table>
-                                                </td>
-                                            </tr>
-                                            <tr>
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class="control-label spacing"><span style="color: red">*</span>开户银行网点</label>
@@ -640,19 +329,28 @@
                                                 <td>
                                                     <div class="rowGroup">
                                                         <label class="control-label spacing"><span style="color: red">*</span>个人银行账号</label>
-                                                        <input type="text" class="form-control" id="bank_account" name="bank_account"  value="{$row.bank_account}"/>
+                                                        <input type="text" class="form-control" id="bank_account" name="bank_account"  value="{$row.bank_account}" onkeyup="value = value.replace(/\s+/g, '')"/>
                                                     </div>
                                                 </td>
                                             </tr>
                                         </table>
                                     </div>
                                 </div>
-                                <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
-                                    <table id="logTable">
-                                    </table>
-                                </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' id="tableIndex" name="tableIndex" />
+                                <input type='hidden' id="trIndex" name="trIndex" />
+                                <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack"/>
+                                <input type="type" name="type" value="1"/>
+                            </form>
+                            <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                            <table id="logTable">
+                            </table>
                         </div>
                     </div>
                 </div>
@@ -660,8 +358,9 @@
         </div>
     </div>
 </div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
 <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/gate/talentInfo/talentInfo_wj_select_new.js?v=' + (new Date()).getTime() + '"><\/script>');
     document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
 </script>
 {/block}

+ 1080 - 0
public/static/modular/gate/talentInfo/new_talentInfo_wj_info.js

@@ -0,0 +1,1080 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var locked = false;
+var TalentInfoInfoDlg = {
+    talentInfoInfoData: {},
+    validateFields1: {
+        phone: {
+            validators: {
+                regexp: {
+                    regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
+                    message: "手机号码格式不正确"
+                }
+            }
+        },
+        email: {
+            validators: {
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        },
+        bank: {
+            validators: {
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+        bank_branch_name: {
+            validators: {
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*省?[\u4e00-\u9fa5]+市[\u4e00-\u9fa5]*$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+    },
+    validateFields2: {
+        enterpriseId: {validators: {notEmpty: {message: '所属医院不能为空'}}},
+        type: {validators: {notEmpty: {message: '人才类别不能为空'}}},
+        name: {validators: {notEmpty: {message: '姓名不能为空'}}},
+        sex: {validators: {notEmpty: {message: '性别不能为空'}}},
+        nation: {validators: {notEmpty: {message: '民族不能为空'}}},
+        politics: {validators: {notEmpty: {message: '政治面貌不能为空'}}},
+        card_type: {validators: {notEmpty: {message: '证件类型不能为空'}}},
+        card_number: {validators: {notEmpty: {message: '证件号码不能为空'}}},
+        birthday: {validators: {notEmpty: {message: '出生日期不能为空'}}},
+        talent_type: {validators: {notEmpty: {message: '人才类型不能为空'}}},
+        highest_degree: {validators: {notEmpty: {message: '最高学历不能为空'}}},
+        graduate_school: {validators: {notEmpty: {message: '毕业学校不能为空'}}},
+        major: {validators: {notEmpty: {message: '专业不能为空'}}},
+        position: {validators: {notEmpty: {message: '职务不能为空'}}},
+        cur_entry_time: {validators: {notEmpty: {message: '入职时间不能为空'}}},
+        labor_contract_rangetime: {validators: {notEmpty: {message: '工作合同时间不能为空'}}},
+        talent_arrange: {validators: {notEmpty: {message: '人才层次不能为空'}}},
+        talent_arrange_category: {validators: {notEmpty: {message: '人才条款不能为空'}}},
+        talent_condition: {validators: {notEmpty: {message: '认定条件不能为空'}}},
+        phone: {
+            validators: {
+                regexp: {
+                    regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
+                    message: "手机号码格式不正确"
+                }
+            }
+        },
+        email: {
+            validators: {
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        },
+        bank: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+        bank_account: {validators: {notEmpty: {message: '银行账号不能为空'}}},
+        bank_number: {validators: {notEmpty: {message: '银行行号不能为空'}}},
+        bank_branch_name: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行网点不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*省?[\u4e00-\u9fa5]+市[\u4e00-\u9fa5]*$/,
+                    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('enterprise_id')
+            .set('type')
+            .set('card_number')
+            .set('card_type')
+            .set('name')
+            .set('sex')
+            .set('nation')
+            .set('nationality')
+            .set('province')
+            .set('city')
+            .set('county')
+            .set('birthday')
+            .set('address')
+            .set('politics')
+            .set('highest_degree')
+            .set('graduate_school')
+            .set('major')
+            .set('position')
+            .set('phone')
+            .set('email')
+            .set('bank')
+            .set('bank_branch_name')
+            .set('bank_account')
+            .set('bank_number')
+            .set('cur_entry_time')
+            .set('labor_contract_rangetime')
+            .set('talent_arrange')
+            .set('talent_condition')
+            .set('identifyGetTime')
+            .set('identifyConditionName')
+            .set('breakFaith')
+            .set('education')
+            .set('experience')
+            .set('industryField')
+            .set('title')
+            .set('pro_qua')
+            .set('study_abroad')
+            .set('studyAbroadCountry')
+            .set('studyAbroadTime')
+            .set('description');
+}
+
+/**
+ * 验证数据
+ */
+TalentInfoInfoDlg.validate = function () {
+    $('#talentInfoForm').data("bootstrapValidator").resetForm();
+    $('#talentInfoForm').bootstrapValidator('validate');
+    return $("#talentInfoForm").data('bootstrapValidator').isValid();
+}
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'left', valign: 'middle', width: "70%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                let str = '<div class="word-wrap">';
+                let highlights_by_api = ["crz"];
+                let description = row.description == null ? "" : row.description;
+                if (highlights_by_api.indexOf(row.api) > -1) {
+                    value = '<span style="font-weight:bold;color:red;">' + value + '</span>';
+                    description = '<span style="font-weight:bold;color:red;">' + description + '</span>';
+                }
+                if (row.must == 1) {
+                    str = str + '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    str = str + '<i class="fa fa-paste"></i>' + value;
+                }
+                str = str + '<br /><span id="desc_' + row.rel + '">' + description + '</span></div>'
+                return str;
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',5)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "20%",
+            formatter: function (value, row, index) {
+                return TalentInfoInfoDlg.validUploadButton(1, value, '', row.tableIndex, row.trIndex);
+            }
+        }
+    ]
+};
+
+TalentInfoInfoDlg.initFileTable = function () {
+    var ajax = new $ax("/common/api/findCommonFileType", function (data) {
+        if (data == null || data.length == 0) {
+            return;
+        }
+        var datas = new Array();
+        for (var i = 0; i < $(".fileTable").length; i++) {
+            datas.push([]);//创建空的多维数组,等下用来存每个附件表的各自的列
+        }
+        var enterpriseTag = $("#enterprise_tag").val();
+        for (var k in data["rows"]) {
+            if (data["rows"][k].enterprise_tag != "" && data["rows"][k].enterprise_tag != null && data["rows"][k].enterprise_tag.indexOf(enterpriseTag) == -1) {
+                continue;
+            }
+            var rel = data["rows"][k].rel;
+            if ($("#" + rel).length > 0) {
+                var tableIndex = 0;
+                if ($("#" + rel).parents(".table").length > 0) {
+                    tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
+                } else {
+                    tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
+                }
+                data["rows"][k].tableIndex = tableIndex;
+                data["rows"][k].trIndex = datas[tableIndex].length;
+                datas[tableIndex].push(data["rows"][k]);
+                if (data["rows"][k].option) {
+                    //指定了选项
+                    if (rel == "birthday") {
+                        let age = 0;
+                        if ($("#" + rel).val()) {
+                            let birthDate = new Date($("#" + rel).val());//生日日期
+                            let birthYear = birthDate.getFullYear();
+                            let birthMonth = birthDate.getMonth() + 1;
+                            let currentDate = new Date();//当前日期
+                            let currentYear = currentDate.getFullYear();
+                            let currentMonth = currentDate.getMonth() + 1;
+                            age = (currentYear * 12 + currentMonth - birthYear * 12 - birthMonth) / 12;
+                        }
+                        if (age < data["rows"][k].option)
+                            data["rows"][k].hidden = true;
+                    } else {
+                        let selectVal = $("#" + rel).data("value").toString();
+                        let options = data["rows"][k].option.split(",");
+                        if (options.indexOf(selectVal) == -1) {
+                            data["rows"][k].hidden = true;
+                        }
+                    }
+                }
+            } else {
+                if (data["rows"][k].isConditionFile) {
+                    var tableIndex = 0;
+                    if ($("#talent_condition").parents(".table").length > 0) {
+                        tableIndex = $("#talent_condition").parents(".table").find("table.fileTable").index(".fileTable");
+                    } else {
+                        tableIndex = $("#talent_condition").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
+                    }
+                    data["rows"][k].tableIndex = tableIndex;
+                    data["rows"][k].trIndex = datas[tableIndex].length;
+                    datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
+                } else {
+                    var tableIndex = $(".fileTable").length - 1;
+                    data["rows"][k].tableIndex = tableIndex;
+                    data["rows"][k].trIndex = datas[tableIndex].length;
+                    datas[$(".fileTable").length - 1].push(data["rows"][k]);//没有归属,放入最后一个附件表
+                }
+            }
+        }
+        for (var i = 0; i < $(".fileTable").length; i++) {
+            var that = $(".fileTable").eq(i);
+            that.bootstrapTable({
+                columns: TalentInfoInfoDlg.initFileTypeColumn(),
+                data: datas[i],
+                showHeader: false,
+                rowStyle: function (row, index) {
+                    return {classes: ""};
+                },
+                onPostBody: function (data) {
+                    for (var k in data) {
+                        var files = data[k].files;
+                        var html = '<ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
+                        for (var key in files) {
+                            var btn = "";
+                            btn = TalentInfoInfoDlg.validUploadButton(2, data[k].id, files[key].id, i, k);
+                            var sn = files[key].url.lastIndexOf(".");
+                            var suffix = files[key].ext;//files[key].url.substring(sn + 1, files[key].url.length);
+                            var imgStr = "";
+                            if (suffix == "pdf" || suffix == "PDF") {
+                                imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + files[key].url + "','" + files[key].id + "','" + files[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' || suffix == 'docx' || suffix == 'doc' || suffix == 'DOCX' || suffix == 'DOC') {
+                                imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + files[key].url + "','" + files[key].id + "','" + files[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\" onclick=\"Feng.showImg(this)\" src=\"' + files[key].url + '\" style=\"width:25px;height:25px;\">';
+                            }
+
+                            html += '<li data-id="' + files[key].id + '">\n\
+                                    <div>' + (data[k].step != 1 ? '<input type="hidden" name="uploadFiles[]" value="' + files[key].id + '">' : "") + '</div>\n' +
+                                    '<div style="width: 70%;">' + files[key].orignName + '</div>\n' +
+                                    '<div style="width: 10%;">' + imgStr + '</div>\n' +
+                                    '<div style="width: 20%;">' + btn + '</div>\n\
+                                    </li>';
+                        }
+                        html = html + '</ul>';
+                        that.find("tr[data-index='" + k + "']").attr("data-rel", data[k]["rel"]);
+                        that.find("tr[data-index='" + k + "']").attr("data-option", data[k]["option"]);
+                        that.find("tr[data-index='" + k + "']").after('<tr class="detail-view"><td colspan="5">' + html + '</td></tr>');
+                        if (typeof data[k].hidden != "undefined") {
+                            that.find("tr[data-index='" + k + "']").css("display", "none");
+                            that.find("tr[data-index='" + k + "']").next("tr.detail-view").css("display", "none");
+                        }
+                    }
+                    $("td.uitd_showTip").bind("mouseover", function () {
+                        var htm = $(this).html();
+                        $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+                    });
+                },
+            });
+        }
+    }, function (data) {
+        Feng.error("查询失败!" + data.responseJSON.message + "!");
+    });
+    var queryData = {};
+    queryData["mainId"] = $("#id").val();
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData["source"] = $("#source").val();
+    queryData['type'] = $("#type").val();
+    queryData["talent_condition"] = $("#talent_condition option:selected").val();
+    queryData['checkState'] = $("#checkState").val();
+    queryData['isMix'] = 1;
+    ajax.set(queryData);
+    ajax.start();
+}
+
+/**
+ * 提交添加
+ */
+TalentInfoInfoDlg.addSubmit = function () {
+    this.clearData();
+    this.collectData();
+    if (!TalentInfoInfoDlg.validate()) {
+        return;
+    }
+    var id = $('#id').val();
+    var name = $("#name").val().trim();
+    var cardNumber = $("#card_number").val().trim();
+    if (name == "" || cardNumber == "") {
+        layer.alert("姓名和证件号码不能为空");
+        return;
+    }
+    if (id != null && id != '') {
+        if (!TalentInfoInfoDlg.validateIsEdit())
+            return;
+    }
+    $("select").each(function () {
+        $(this).removeAttr("disabled");
+    });
+    if (locked) {
+        return;
+    }
+    locked = true;
+    $("#talentInfoForm").attr("action", "/enterprise/talent/apply");
+    $("#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);
+    }
+    return;
+}
+/**
+ * 获取人才认定
+ */
+TalentInfoInfoDlg.getIdentifyCondition = function () {
+    $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
+
+    $('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
+    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 () {
+    $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
+    TalentInfoInfoDlg.ajaxGetConditionFile();
+}
+TalentInfoInfoDlg.ajaxGetConditionFile = function (source) {
+    var condition = $("#talent_condition option:selected").val();
+    if (condition != "") {
+        var ajax = new $ax("/common/api/getTalentCondtionUploadFile", function (data) {
+            if (data == null || data.length == 0) {
+                return;
+            }
+            var conditionFileTable = $("#talent_condition").parents(".table").find(".fileTable");
+            var tableIndex = conditionFileTable.index(".fileTable");
+            var tbody = conditionFileTable.find("tbody");
+            var html = "";
+            for (var key in data.rows) {
+                var filetype = data.rows[key];
+                var name = "";
+                if (filetype.must == 1) {
+                    name = '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + filetype.name;
+                }
+                if (filetype.must == 2) {
+                    name = '<i class="fa fa-paste"></i>' + filetype.name;
+                }
+                var uploadbtn = TalentInfoInfoDlg.validUploadButton(1, filetype.id, '', tableIndex, key, true);
+                var templateUrl = '<button type="button" onclick="TalentInfoInfoDlg.downloadFile("' + filetype.id + '",5)" style="margin-right: 10px" class="btn btn-xs btn-primary">\n\
+<i class=\"fa fa-download\"></i>下载""</button>"';
+                html += '<tr data-index="' + key + '">\n\
+                                <td class="uitd_showTip" style="text-align: center; vertical-align: middle; width: 70%; ">' + name + '<br />' + (filetype.description == null ? "" : filetype.description) + '</td> \n\
+                                <td style="text-align: center; vertical-align: middle; width: 10%; ">' + (filetype.templateUrl ? templateUrl : "无") + '</td> \n\
+                                <td style="text-align: center; vertical-align: middle; width: 20%; ">' + uploadbtn + '</td> </tr></tr>';
+                html += '<tr class="detail-view"><td colspan="5"><ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
+
+                for (var k in filetype.files) {
+                    var file = filetype.files[k];
+                    var btn = TalentInfoInfoDlg.validUploadButton(2, filetype.id, file.id, tableIndex, key, true);
+                    var sn = file.url.lastIndexOf(".");
+                    var suffix = file.ext;//file.url.substring(sn + 1, file.url.length);
+                    var imgStr = "";
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + file.url + "','" + file.id + "','" + file.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' || suffix == 'docx' || suffix == 'doc' || suffix == 'DOCX' || suffix == 'DOC') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + file.url + "','" + file.id + "','" + file.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  onclick=\"Feng.showImg(this)\" src=\"' + file.url + '\" style=\"width:25px;height:25px;\">';
+                    }
+
+                    html += '<li data-id="' + file.id + '">\n\
+                                    <div>' + (filetype.step != 1 ? '<input type="hidden" name="uploadFiles[]" value="' + file.id + '">' : "") + '</div>\n' +
+                            '<div style="width: 80%;">' + file.orignName + '</div>\n' +
+                            '<div style="width: 10%;">' + imgStr + '</div>\n' +
+                            '<div style="width: 10%;">' + btn + '</div>\n\
+                                    </li>';
+                }
+                html += '</ul></td></tr>';
+            }
+            tbody.html(html);
+        }, function (data) {
+            Feng.error("查询失败!" + data.responseJSON.message + "!");
+        });
+        var queryData = {};
+        queryData["mainId"] = $("#id").val();
+        queryData['project'] = CONFIG.project_rcrd;
+        queryData["source"] = source;
+        queryData['type'] = $("#type").val();
+        queryData["talent_condition"] = condition;
+        ajax.set(queryData);
+        ajax.start();
+    }
+}
+
+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").parents("td").css("display", "table-cell");
+        $("#abroad_major").parents("td").css("display", "table-cell");
+        //$('#talentInfoForm').bootstrapValidator('addField', "abroad_school", {validators: {notEmpty: {message: '留学毕业院校不能为空'}}});
+        //$('#talentInfoForm').bootstrapValidator('addField', "abroad_major", {validators: {notEmpty: {message: '留学专业不能为空'}}});
+        //$("[data-rel='study_abroad']").find("i.fa-paste").after('<span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span>');
+    } else {
+        $("#abroad_school").val("").parents("td").css("display", "none");
+        $("#abroad_major").val("").parents("td").css("display", "none");
+        //$('#talentInfoForm').bootstrapValidator('removeField', "abroad_school");
+        //$('#talentInfoForm').bootstrapValidator('removeField', "abroad_major");
+        //$("[data-rel='study_abroad']").find("i.fa-paste").next("span").remove();
+    }
+}
+/**
+ * 加载市
+ */
+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.isAgeChecked = false;
+TalentInfoInfoDlg.birthdayChange = function () {
+    let age = 18;
+    if ($("#birthday").val()) {
+        let birthDate = new Date($("#birthday").val());//生日日期
+        let birthYear = birthDate.getFullYear();
+        let birthMonth = birthDate.getMonth() + 1;
+        let currentDate = new Date();//当前日期
+        let currentYear = currentDate.getFullYear();
+        let currentMonth = currentDate.getMonth() + 1;
+        age = (currentYear * 12 + currentMonth - birthYear * 12 - birthMonth) / 12;
+    }
+    /*let birthday = parseInt($("#birthday").val().substring(0, 4));
+     let currentYear = parseInt(new Date().getFullYear());
+     let age = currentYear - (isNaN(birthday) ? 0 : birthday);*/
+    let option = $("[data-rel=birthday]");
+    let limitAge = option.data("option");
+    if (age >= limitAge) {
+        option.css("display", "table-row");
+        option.next("tr.detail-view").css("display", "table-row");
+        if (!TalentInfoInfoDlg.isAgeChecked) {
+            layer.alert("由于您的年龄大于70岁(含),要求提供人社局的允许申报的批文,请线下前往人社局办理。如已办理,请将该批文作为附件上传至对应附件栏中。");
+            TalentInfoInfoDlg.isAgeChecked = true;
+            return false;
+        }
+    } else {
+        TalentInfoInfoDlg.isAgeChecked = false;
+        option.css("display", "none");
+        option.next("tr.detail-view").css("display", "none");
+    }
+    return true;
+}
+TalentInfoInfoDlg.initBirthday = function () {
+    let birthday = parseInt($("#birthday").val().substring(0, 4));
+    let currentYear = parseInt(new Date().getFullYear());
+    let age = currentYear - (isNaN(birthday) ? 0 : birthday);
+    let option = $("[data-rel=birthday]");
+    let isFileExists = option.next("tr.detail-view").find("ul.imgs").find("li").length > 3 ? true : false;
+    let limitAge = option.data("option");
+    if (!isNaN(birthday)) {
+        if (age >= limitAge && isFileExists) {
+            TalentInfoInfoDlg.isAgeChecked = true;
+        }
+        TalentInfoInfoDlg.birthdayChange();
+    }
+}
+
+//校验是否保存基础信息
+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, fileTypeId, fileId, tableIndex, trIndex) {
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    $("#upload_file").unbind("change");
+    $("#upload_file").change(function () {
+        if (!Feng.chkFileInvalid(this.files[0], 5, 10))
+            return;
+        TalentInfoInfoDlg.upload(fileTypeId, fileId, tableIndex, trIndex);
+    });
+    $('#upload_file').val("");
+    $('#upload_file').click();
+}
+//上传附件
+TalentInfoInfoDlg.upload = function (fileTypeId, fileId, tableIndex, trIndex) {
+    var id = $("#id").val();
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    if (fileId != null && fileId != 'null') {
+        $("#fileId").val(fileId)
+    } else {
+        $("#fileId").val("");
+    }
+    $("#mainId").val(id);
+    $("#fileTypeId").val(fileTypeId);
+    $("#tableIndex").val(tableIndex);
+    $("#trIndex").val(trIndex);
+    var index = layer.load(0, {shade: false, time: 0});
+    $("#index").val(index);
+    $("#uploadForm").submit();
+}
+//删除附件
+TalentInfoInfoDlg.deleteFile = function (id, obj) {
+    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);
+                $(obj).parents("li").remove();
+                //$("#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 () {
+    Feng.initValidatorTip("talentInfoForm", TalentInfoInfoDlg.validateFields2);
+    var id = $("#id").val();
+    if (id == null || id == "") {
+        Feng.info("请先填写基础信息并上传附件");
+        return;
+    }
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    var operation = function () {
+        TalentInfoInfoDlg.clearData();
+        TalentInfoInfoDlg.collectData();
+        /*if (!TalentInfoInfoDlg.validate()) {
+         return;
+         }*/
+        var id = $('#id').val();
+        if (id != null && id != '') {
+            if (!TalentInfoInfoDlg.validateIsEdit())
+                return;
+        }
+        $("select,input[type=radio]").each(function () {
+            $(this).removeAttr("disabled");
+        });
+        if (locked) {
+            return;
+        }
+        locked = true;
+        $("#talentInfoForm").attr("action", "/enterprise/talent/submitToCheck");
+        $("#talentInfoForm")[0].submit();
+
+
+        return;
+        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.submitCallback = function (data) {
+    locked = false;
+    TalentInfoInfoDlg.setNoChangeField();
+    if (data.code == 200) {
+        Feng.success(data.msg);
+        // $("#checkState").val(data.obj);
+        window.parent.TalentInfo.table.refresh();
+        TalentInfoInfoDlg.close();
+    } else {
+        Feng.error(data.msg);
+    }
+}
+
+/**
+ * 校验是否可以修改/提交审核
+ */
+TalentInfoInfoDlg.validateIsEdit = function () {
+    var checkState = $("#checkState").val();
+    if (checkState != 0 && checkState != 8) {
+        if (checkState == 16 || checkState == -1 || checkState == -2 || checkState == 7) {
+            Feng.error("您的申报审核不通过,无法再修改");
+            return false;
+        } else if (checkState == 28) {
+            Feng.error("申报已完成");
+            return false;
+        } else if (checkState == 14) {
+            Feng.error("您的申报已审核通过,无法再修改");
+            return false;
+        } else if (checkState == 22 || checkState == 25 || checkState == 27) {
+            Feng.error("该申报已终止");
+            return false;
+        } else {
+            Feng.error("您的申报正在审核中,请耐心等待");
+            return false;
+        }
+    }
+    return true;
+}
+
+/**
+ * 校验是否显示按钮
+ * @param type      类型  1-上传按钮,2-修改删除按钮
+ * @param row
+ * @returns {string}
+ */
+TalentInfoInfoDlg.validUploadButton = function (type, fileTypeId, fileId, tableIndex, trIndex, isConditionFile) {
+    var files = $("#files").val();
+    var fields = $("#fields").val();
+    files = files.split(",");
+    fields = fields.split(",");
+    var checkState = $("#checkState").val();
+    var realState = $("#realState").val();
+    //console.log(checkState, realState);
+    var isConditionEditable = false;
+    if (isConditionFile && (fields.indexOf("isMatchZhiren") != -1 || fields.indexOf("source") != -1 || fields.indexOf("talent_arrange") != -1 || fields.indexOf("talent_arrange_category") != -1 || fields.indexOf("talent_condition") != -1)) {
+        isConditionEditable = true;
+    }
+    if (Feng.isEmptyStr(checkState) || checkState == 0 || (checkState == 8 && realState == "") || (checkState == 8 && realState == 8) || (checkState == 11 && realState != 14) || (realState == 11 && (files.indexOf(fileTypeId.toString()) != -1 || isConditionEditable))) {
+        if (type == 1) {          //上传
+            return "<button type='button' onclick=\"TalentInfoInfoDlg.checkFile(this," + fileTypeId + "," + null + "," + tableIndex + "," + trIndex + ")\" 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," + fileTypeId + "," + fileId + "," + tableIndex + "," + trIndex + ")\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
+                    "<i class=\"fa fa-paste\"></i>修改" +
+                    "</button>" +
+                    "<button type='button' onclick=\"TalentInfoInfoDlg.deleteFile(" + fileId + ",this)\" class=\"btn btn-xs btn-danger\">" +
+                    "<i class=\"fa fa-times\"></i>删除" +
+                    "</button>";
+        }
+    } else {
+        return "";
+    }
+}
+
+
+//回调
+TalentInfoInfoDlg.callBack = function (data) {
+    layer.close(data.obj);
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        var tableIndex = $("#tableIndex").val();
+        var trIndex = $("#trIndex").val();
+        var sn = data.info.lastIndexOf(".");
+        var suffix = data.ext;//data.info.substring(sn + 1, data.info.length);
+        var imgStr = "";
+        if (suffix == "pdf" || suffix == "PDF") {
+            imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data.info + "','" + data.id + "','" + data.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' || suffix == 'docx' || suffix == 'doc' || suffix == 'DOCX' || suffix == 'DOC') {
+            imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data.info + "','" + data.id + "','" + data.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.info + '" style="width:25px;height:25px;">';
+        }
+        var li = $("input[name='uploadFiles[]'][value='" + data.id + "'").parents("li");
+        if (li.length > 0) {
+            li.find("div").eq(1).html(data.orignName);
+            li.find("div").eq(2).html(imgStr);
+        } else {
+            var html = '<li data-id="' + data.id + '">\n\
+<div><input type="hidden" name="uploadFiles[]" value="' + data.id + '"></div>\n\
+<div style="width: 70%;">' + data.orignName + '</div>\n\
+<div style="width: 10%;">' + imgStr + '</div>\n\
+<div style="width: 20%;">\n\
+<button type="button" onclick="TalentInfoInfoDlg.checkFile(this,' + data.typeId + ',' + data.id + ',' + tableIndex + ',' + trIndex + ')" style="margin-right: 10px" class="btn btn-xs btn-info"><i class="fa fa-paste"></i>修改</button>\n\
+<button type="button" onclick="TalentInfoInfoDlg.deleteFile(' + data.id + ',this)" class="btn btn-xs btn-danger"><i class="fa fa-times"></i>删除</button>\n\
+</div></li></ul>';
+            $(".fileTable").eq(tableIndex).find("tr[data-index='" + trIndex + "']").next("tr.detail-view").find(".imgs").append(html);
+        }
+    }
+}
+TalentInfoInfoDlg.downloadFile = function (id, type) {
+    window.location.href = Feng.ctxPath + "/common/api/downloadFile?id=" + id + "&type=" + type;
+}
+
+//设置不可修改的字段
+TalentInfoInfoDlg.setNoChangeField = function () {
+    var checkState = $("#checkState").val();
+    var fields = $("#fields").val();
+    var realState = $("#realState").val();
+    if (realState == 11) {
+        $("#photoImg").removeAttr("onclick");
+        $("input,textarea").each(function () {
+            $(this).attr("readonly", "readonly").css("pointer-events", "none");
+        });
+        $("select,input[type=radio]").each(function () {
+            $(this).attr("disabled", "disabled");
+        });
+        if (fields != null && fields != '') {
+            var arr = fields.split(",");
+            for (var key in arr) {
+                if (arr[key] == "headimgurl") {
+                    $("#photoImg").bind("click", function () {
+                        $("#photo").click();
+                    });
+                    continue;
+                }
+                if (arr[key] != "") {
+                    var name = $("#" + arr[key]).prop("tagName");
+                    if (name == 'select' || name == 'SELECT') {
+                        $("#" + arr[key]).removeAttr("disabled");
+                    } else if (name == "input" || name == 'textarea' || name == "INPUT" || name == 'TEXTAREA') {
+                        $("#" + arr[key]).removeAttr("readonly").css("pointer-events", "initial");
+                    } else {
+                        if (typeof name == "undefined") {
+                            $("input[name=" + arr[key] + "]").removeAttr("disabled").removeAttr("readonly").css("pointer-events", "initial");
+                        }
+                    }
+                }
+            }
+        }
+    }
+}
+
+TalentInfoInfoDlg.switchDateAndRangeDate = function (id) {
+    var $obj = $("#" + id);
+    var $prev = $obj.prev();
+    var range = false;
+    if ($obj.hasClass("date")) {
+        range = true;
+        $prev.find("a").html("切换无固定期限模式");
+    } else {
+        range = false;
+        $prev.find("a").html("切换日期范围模式");
+    }
+    $obj.remove();
+    $prev.after('<input type="text" class="form-control ' + (range ? "rangedate" : "date") + '" id="labor_contract_rangetime" name="labor_contract_rangetime" value="" />');
+    laydate.render({
+        elem: "#" + id,
+        type: "date",
+        range: range,
+        trigger: "click"
+    })
+}
+
+/**
+ * 是否导入
+ * @returns {Boolean}
+ */
+TalentInfoInfoDlg.isImport = function () {
+    var isImport = parseInt($("#import").val());
+    return isImport > 0 ? true : false;
+}
+/**
+ * 是否直认
+ * @returns {Boolean}
+ */
+TalentInfoInfoDlg.isZhiRen = function () {
+    var isMatchZhiren = $("input[name=isMatchZhiren]").length > 0 && $("input[name=isMatchZhiren]:checked").val() == 1 ? true : false;
+    return isMatchZhiren;
+}
+
+$("#card_type").change(function () {
+    async_padding($("#card_number").val().trim(), $(this).val());
+})
+$("#card_number").blur(function () {
+    var idCard = $(this).val();
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/talent/getTalentInfoFromOldLibrary", function (data) {
+        if (data.code == 200) {
+            var operation = function () {
+                var info = data.info;
+                $("#name").val(info.name);
+                $("#sex").val(info.sex);
+                $("#birthday").val(info.birthday);
+                $("#nation").val(info.nation);
+                $("#politics").val(info.politics);
+                $("#highest_degree").val(info.highEducation);
+                $("#graduate_school").val(info.graduateSchool);
+                $("#major").val(info.major);
+                $("#study_abroad").val(info.studyAbroad);
+                $("#phone").val(info.phone);
+                $("#email").val(info.email);
+                $("#position").val(info.post);
+                $("#cur_entry_time").val(info.entryTime);
+                $("#labor_contract_rangetime").val(info.startTime + " - " + info.endTime);
+                $("#title").val(info.title);
+                $("#talent_arrange").val(info.talentArrange);
+                $("#bank").val(info.bank);
+                $("#bank_number").val(info.bankNumber);
+                $("#bank_branch_name").val(info.bankNetwork);
+                $("#bank_account").val(info.bankAccount);
+                $("#experience").val(info.mainHonours);
+                $("#education").val(info.educationAndResume);
+                TalentInfoInfoDlg.changeStudyAbroad();
+                TalentInfoInfoDlg.bankChange();
+            }
+            Feng.confirm("查询到信息库中存在该人员的信息,是否自动填入?", operation);
+        }
+    }, function (data) {
+    });
+    ajax.set("idCard", idCard);
+    ajax.start();
+})
+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 () {
+    $('#talentInfoForm').bootstrapValidator({
+        feedbackIcons: {
+            valid: 'glyphicon glyphicon-ok',
+            invalid: 'glyphicon glyphicon-remove',
+            validating: 'glyphicon glyphicon-refresh'
+        },
+        container: 'tooltip',
+        group: '.col',
+        fields: TalentInfoInfoDlg.validateFields1,
+        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 id = $("#id").val();
+    var checkState = $("#checkState").val();
+    //批量加载字典表数据
+    var arr = [
+        {"name": "nation", "code": "nation"},
+        {"name": "talent_arrange", "code": "talent_arrange"},
+        {"name": "nationality", "code": "nationality"},
+        {"name": "politics", "code": "politics"},
+        {"name": "highest_degree", "code": "highest_degree"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+
+    //批量加载时间控件
+    $(".date").each(function () {
+        laydate.render({
+            elem: this
+            , type: 'date'
+            , trigger: 'click'
+        });
+    });
+    $(".rangedate").each(function () {
+        laydate.render({
+            elem: this,
+            type: "date",
+            range: true,
+            trigger: "click"
+        })
+    })
+    $(".rangemonth").each(function () {
+        laydate.render({
+            elem: this,
+            type: "month",
+            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})
+    }
+    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").val($("#talent_condition").attr("value"));
+    $("#talent_condition").chosen({
+        search_contains: true,       //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
+        disable_search: false,
+        width: "100%",
+        enable_split_word_search: true,
+        rtl: true,
+        classes: "test"
+    });
+    TalentInfoInfoDlg.initFileTable();
+    TalentInfoInfoDlg.changeStudyAbroad();
+    TalentInfoInfoDlg.initBirthday();
+});
+
+

+ 211 - 0
public/static/modular/gate/talentInfo/talentInfo_wj_select_new.js

@@ -0,0 +1,211 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var TalentInfoInfoDlg = {
+    talentInfoInfoData: {},
+};
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "70%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                let str = '<div class="word-wrap">';
+                let highlights_by_api = ["crz"];
+                let description = row.description;
+                if (highlights_by_api.indexOf(row.api) > -1) {
+                    value = '<span style="font-weight:bold;color:red;">' + value + '</span>';
+                    description = '<span style="font-weight:bold;color:red;">' + description + '</span>';
+                }
+                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;
+                }
+                str = str + '<br /><span id="desc_' + row.rel + '">' + description + '</span></div>'
+                return str;
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',5)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "20%",
+            formatter: function (value, row, index) {
+                return "";
+            }
+        }
+    ]
+};
+
+TalentInfoInfoDlg.initFileTable = function () {
+    var ajax = new $ax("/common/api/findCommonFileType", function (data) {
+        if (data == null || data.length == 0) {
+            return;
+        }
+        var datas = new Array();
+        for (var i = 0; i < $(".fileTable").length; i++) {
+            datas.push([]);//创建空的多维数组,等下用来存每个附件表的各自的列
+        }
+        var enterpriseTag = $("#enterprise_tag").val();
+        for (var k in data["rows"]) {
+            if (data["rows"][k].enterprise_tag != "" && data["rows"][k].enterprise_tag != null && data["rows"][k].enterprise_tag.indexOf(enterpriseTag) == -1) {
+                continue;
+            }
+            var rel = data["rows"][k].rel;
+            if ($("#" + rel).length > 0) {
+                var tableIndex = 0;
+                if ($("#" + rel).parents(".table").length > 0) {
+                    tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
+                } else {
+                    tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
+                }
+                data["rows"][k].tableIndex = tableIndex;
+                data["rows"][k].trIndex = datas[tableIndex].length;
+                datas[tableIndex].push(data["rows"][k]);
+                if (data["rows"][k].option) {
+                    //指定了选项
+                    if (rel == "birthday") {
+                        let age = 0;
+                        if ($("#" + rel).val()) {
+                            let birthDate = new Date($("#" + rel).val());//生日日期
+                            let birthYear = birthDate.getFullYear();
+                            let birthMonth = birthDate.getMonth() + 1;
+                            let currentDate = new Date();//当前日期
+                            let currentYear = currentDate.getFullYear();
+                            let currentMonth = currentDate.getMonth() + 1;
+                            age = (currentYear * 12 + currentMonth - birthYear * 12 - birthMonth) / 12;
+                        }
+                        if (age < data["rows"][k].option)
+                            data["rows"][k].hidden = true;
+                    } else {
+                        let selectVal = $("#" + rel).data("value").toString();
+                        let options = data["rows"][k].option.split(",");
+                        if (options.indexOf(selectVal) == -1) {
+                            data["rows"][k].hidden = true;
+                        }
+                    }
+                }
+            } else {
+                if (data["rows"][k].isConditionFile) {
+                    var tableIndex = 0;
+                    if ($("#talent_condition_rel").parents(".table").length > 0) {
+                        tableIndex = $("#talent_condition_rel").parents(".table").find("table.fileTable").index(".fileTable");
+                    } else {
+                        tableIndex = $("#talent_condition_rel").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
+                    }
+                    data["rows"][k].tableIndex = tableIndex;
+                    data["rows"][k].trIndex = datas[tableIndex].length;
+                    datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
+                } else {
+                    var tableIndex = $(".fileTable").length - 1;
+                    data["rows"][k].tableIndex = tableIndex;
+                    data["rows"][k].trIndex = datas[tableIndex].length;
+                    datas[$(".fileTable").length - 1].push(data["rows"][k]);//没有归属,放入最后一个附件表
+                }
+            }
+        }
+        for (var i = 0; i < $(".fileTable").length; i++) {
+            var that = $(".fileTable").eq(i);
+            that.bootstrapTable({
+                columns: TalentInfoInfoDlg.initFileTypeColumn(),
+                data: datas[i],
+                showHeader: false,
+                rowStyle: function (row, index) {
+                    return {classes: ""};
+                },
+                onPostBody: function (data) {
+                    for (var k in data) {
+                        var files = data[k].files;
+                        var html = '<ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
+                        for (var key in files) {
+                            var sn = files[key].url.lastIndexOf(".");
+                            var suffix = files[key].ext;//files[key].url.substring(sn + 1, files[key].url.length);
+                            var imgStr = "";
+                            if (suffix == "pdf" || suffix == "PDF") {
+                                imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + files[key].url + "','" + files[key].id + "','" + files[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('" + files[key].url + "','" + files[key].id + "','" + files[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\" onclick="Feng.showImg(this)" src=\"' + files[key].url + '\" style=\"width:25px;height:25px;\">';
+                            }
+
+                            html += '<li data-id="' + files[key].id + '">\n\
+                                    <div><input type="hidden" name="uploadFiles[]" value="' + files[key].id + '"></div>\n' +
+                                    '<div style="width: 70%;">' + files[key].orignName + '</div>\n' +
+                                    '<div style="width: 10%;">' + imgStr + '</div>\n' +
+                                    '<div style="width: 20%;"></div>\n\
+                                    </li>';
+                        }
+                        html = html + '</ul>';
+                        that.find("tr[data-index='" + k + "']").attr("data-rel", data[k]["rel"]);
+                        that.find("tr[data-index='" + k + "']").attr("data-option", data[k]["option"]);
+                        that.find("tr[data-index='" + k + "']").after('<tr class="detail-view"><td colspan="5">' + html + '</td></tr>');
+                        if (typeof data[k].hidden != "undefined") {
+                            that.find("tr[data-index='" + k + "']").css("display", "none");
+                            that.find("tr[data-index='" + k + "']").next("tr.detail-view").css("display", "none");
+                        }
+                    }
+                    $("td.uitd_showTip").bind("mouseover", function () {
+                        var htm = $(this).html();
+                        $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+                    });
+                },
+            });
+        }
+    }, function (data) {
+        Feng.error("查询失败!" + data.responseJSON.message + "!");
+    });
+    var queryData = {};
+    queryData["mainId"] = $("#id").val();
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    queryData["source"] = $("#source").val();
+    queryData["talent_condition"] = $("#talent_condition").val();
+    queryData['checkState'] = $("#checkState").val();
+    ajax.set(queryData);
+    ajax.start();
+}
+
+TalentInfoInfoDlg.downloadFile = function (id, type) {
+    window.location.href = Feng.ctxPath + "/common/api/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})
+    }
+    /*var source = $("#source").val();
+     var columns = 3;
+     if (source == 1 || source == 2) {
+     columns = 3;
+     } else if (source == 3 || source == 4) {
+     columns = 4;
+     }
+     
+     $("#source").parents("td").attr("colspan", columns);
+     $("#talent_arrange").parents("td").attr("colspan", columns);
+     $("#talent_condition").parents("td").attr("colspan", columns - 1);*/
+});
+
+

+ 805 - 0
public/static/modular/talentIdentify/talentInfo/hospital/talentInfo_common_check_new.js

@@ -0,0 +1,805 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var locked = false;
+var TalentInfoInfoDlg = {
+    talentInfoInfoData: {},
+
+};
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'left', valign: 'middle', width: "70%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                let str = '<div class="word-wrap">';
+                let highlights_by_api = ["crz"];
+                let description = row.description;
+                if (highlights_by_api.indexOf(row.api) > -1) {
+                    value = '<span style="font-weight:bold;color:red;">' + value + '</span>';
+                    description = '<span style="font-weight:bold;color:red;">' + description + '</span>';
+                }
+                if (row.must == 1) {
+                    str = str + '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    str = str + '<i class="fa fa-paste"></i>' + value;
+                }
+                str = str + '<br /><span id="desc_' + row.rel + '">' + description + '</span></div>'
+                return str;
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',5)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "20%",
+            formatter: function (value, row, index) {
+                return "";
+            }
+        }
+    ]
+};
+
+TalentInfoInfoDlg.initFileTable = function () {
+    var ajax = new $ax("/common/api/findCommonFileType", function (data) {
+        if (data == null || data.length == 0) {
+            return;
+        }
+        var datas = new Array();
+        for (var i = 0; i < $(".fileTable").length; i++) {
+            datas.push([]);//创建空的多维数组,等下用来存每个附件表的各自的列
+        }
+        var enterpriseTag = $("#enterprise_tag").val();
+        for (var k in data["rows"]) {
+            if (data["rows"][k].enterprise_tag != "" && data["rows"][k].enterprise_tag != null && data["rows"][k].enterprise_tag.indexOf(enterpriseTag) == -1) {
+                continue;
+            }
+            var rel = data["rows"][k].rel;
+            if ($("#" + rel).length > 0) {
+                if ($("#" + rel).parents(".table").length > 0) {
+                    var tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
+                } else {
+                    var tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
+                }
+                data["rows"][k].tableIndex = tableIndex;
+                data["rows"][k].trIndex = datas[tableIndex].length;
+                datas[tableIndex].push(data["rows"][k]);
+                if (data["rows"][k].option) {
+                    //指定了选项
+                    if (rel == "birthday") {
+                        let age = 0;
+                        if ($("#" + rel).val()) {
+                            let birthDate = new Date($("#" + rel).val());//生日日期
+                            let birthYear = birthDate.getFullYear();
+                            let birthMonth = birthDate.getMonth() + 1;
+                            let currentDate = new Date();//当前日期
+                            let currentYear = currentDate.getFullYear();
+                            let currentMonth = currentDate.getMonth() + 1;
+                            age = (currentYear * 12 + currentMonth - birthYear * 12 - birthMonth) / 12;
+                        }
+                        if (age < data["rows"][k].option)
+                            data["rows"][k].hidden = true;
+                    } else {
+                        let selectVal = $("#" + rel).data("value").toString();
+                        let options = data["rows"][k].option.split(",");
+                        if (options.indexOf(selectVal) == -1) {
+                            data["rows"][k].hidden = true;
+                        }
+                    }
+                }
+            } else {
+                if (data["rows"][k].isConditionFile) {
+                    var tableIndex = 0;
+                    if ($("#talent_condition_rel").parents(".table").length > 0) {
+                        tableIndex = $("#talent_condition_rel").parents(".table").find("table.fileTable").index(".fileTable");
+                    } else {
+                        tableIndex = $("#talent_condition_rel").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
+                    }
+                    data["rows"][k].tableIndex = tableIndex;
+                    data["rows"][k].trIndex = datas[tableIndex].length;
+                    datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
+                } else {
+                    var tableIndex = $(".fileTable").length - 1;
+                    data["rows"][k].tableIndex = tableIndex;
+                    data["rows"][k].trIndex = datas[tableIndex].length;
+                    datas[$(".fileTable").length - 1].push(data["rows"][k]);//没有归属,放入最后一个附件表
+                }
+            }
+        }
+        for (var i = 0; i < $(".fileTable").length; i++) {
+            var that = $(".fileTable").eq(i);
+            that.bootstrapTable({
+                columns: TalentInfoInfoDlg.initFileTypeColumn(),
+                data: datas[i],
+                showHeader: false,
+                rowStyle: function (row, index) {
+                    return {classes: ""};
+                },
+                onPostBody: function (data) {
+                    for (var k in data) {
+                        var files = data[k].files;
+                        var html = '<ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
+                        for (var key in files) {
+                            var sn = files[key].url.lastIndexOf(".");
+                            var suffix = files[key].ext;//files[key].url.substring(sn + 1, files[key].url.length);
+                            var imgStr = "";
+                            if (suffix == "pdf" || suffix == "PDF") {
+                                imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + files[key].url + "','" + files[key].id + "','" + files[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('" + files[key].url + "','" + files[key].id + "','" + files[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" onclick="Feng.showImg(this)" src="' + files[key].url + '" style="width:25px;height:25px;">';
+                            }
+
+                            html += '<li data-id="' + files[key].id + '">\n\
+                                    <div><input type="hidden" name="uploadFiles[]" value="' + files[key].id + '"></div>\n' +
+                                    '<div style="width: 70%;">' + files[key].orignName + '</div>\n' +
+                                    '<div style="width: 10%;">' + imgStr + '</div>\n' +
+                                    '<div style="width: 20%;"></div>\n\
+                                    </li>';
+                        }
+                        html = html + '</ul>';
+                        that.find("tr[data-index='" + k + "']").attr("data-rel", data[k]["rel"]);
+                        that.find("tr[data-index='" + k + "']").attr("data-option", data[k]["option"]);
+                        that.find("tr[data-index='" + k + "']").after('<tr class="detail-view"><td colspan="5">' + html + '</td></tr>');
+                        if (typeof data[k].hidden != "undefined") {
+                            that.find("tr[data-index='" + k + "']").css("display", "none");
+                            that.find("tr[data-index='" + k + "']").next("tr.detail-view").css("display", "none");
+                        }
+                    }
+                    $("td.uitd_showTip").bind("mouseover", function () {
+                        var htm = $(this).html();
+                        $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+                    });
+                },
+            });
+        }
+    }, function (data) {
+        Feng.error("查询失败!" + data.responseJSON.message + "!");
+    });
+    var queryData = {};
+    queryData["mainId"] = $("#id").val();
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    queryData["source"] = $("#source").data("val");
+    queryData["talent_condition"] = $("#talent_condition").val();
+    queryData['checkState'] = $("#checkState").val();
+    ajax.set(queryData);
+    ajax.start();
+}
+
+TalentInfoInfoDlg.initICFileTable = function () {
+    var queryData = {};
+    queryData['project'] = CONFIG.project_rcrd;
+    queryData['type'] = $("#type").val();
+    queryData['talent_condition'] = $("#talent_condition").val();
+    queryData['checkState'] = $("#checkState").val();
+    queryData['isMix'] = 1;
+    $("#fileTable").bootstrapTable({
+        url: Feng.ctxPath + "/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(Feng.ctxPath + "/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>';
+                var files = $("#files").val();
+                var checkState = $("#checkState").val();
+                for (var key in data) {
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].ext;//files[key].url.substring(sn + 1, files[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.close = function () {
+    parent.layer.close(window.parent.TalentInfo.layerIndex);
+}
+
+//人才标签变化
+TalentInfoInfoDlg.typeChange = function () {
+    var talentType = $("#talentType").val();
+    if (talentType == 'gbwszb' || talentType == 'zzbsh' || talentType == 'sydw') {
+        $("#letterTime").parent().attr("style", "display:block");
+        // }else if(talentType=='gyqyl' || talentType=="gyqyh"){
+        //     $("#letterTime").parent().attr("style","display:none");
+    } else {
+        $("#letterTime").parent().attr("style", "display:none");
+    }
+}
+TalentInfoInfoDlg.sourceChange = function () {
+    var source = $("#source").val();
+    if (source == 1) {
+        $("#fromCityName").parent().attr("style", "display:none");
+        $("#qzBatch").parent().attr("style", "display:block");
+        $("#qzgccrcActiveTime").parent().attr("style", "display:block");
+        $("#certificateStartTime").parent().attr("style", "display:block");
+        $("#ourCitySource").parent().attr("style", "display:block");
+    }
+    if (source == 2) {
+        $("#certificateStartTime").parent().attr("style", "display:block");
+        $("#qzgccrcActiveTime").parent().attr("style", "display:block");
+        $("#fromCityName").parent().attr("style", "display:block");
+        $("#qzBatch").parent().attr("style", "display:block");
+        $("#ourCitySource").parent().attr("style", "display:none");
+    }
+    if (source == 3 || source == null || source == '') {
+        $("#certificateStartTime").parent().attr("style", "display:none");
+        $("#qzgccrcActiveTime").parent().attr("style", "display:none");
+        $("#fromCityName").parent().attr("style", "display:none");
+        $("#qzBatch").parent().attr("style", "display:none");
+        $("#ourCitySource").parent().attr("style", "display:none");
+    }
+}
+
+
+TalentInfoInfoDlg.callback = function (data) {
+    Feng.info(data.msg);
+}
+
+/**
+ * 下载附件
+ * @param value
+ */
+TalentInfoInfoDlg.downloadFile = function (id, type) {
+    window.location.href = "/common/api/downloadFile?id=" + id + "&type=" + type;
+}
+
+TalentInfoInfoDlg.expandRows = function () {
+    $(".fileTable").bootstrapTable('expandAllRows')
+}
+
+/**
+ * 显示审核模态框
+ */
+TalentInfoInfoDlg.showCommonCheckModal = function () {
+    var ajax = new $ax("/admin/talent/validateIsCheck", function (data) {
+        if (data.code == 200) {
+            layer.open({
+                type: 1,
+                id: "neewFieldFormModel",
+                title: '审核',
+                area: ['800px', '350px'], //宽高
+                fix: false, //不固定
+                shade: 0,
+                maxmin: true,
+                content: TalentInfoInfoDlg.createNoFieldCheckModal(),
+                btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+                btnAlign: 'c',
+                zIndex: layer.zIndex,
+                success: function (layero, index) {
+                    layer.setTop(layero);
+                    $("#commonCheckForm")[0].reset();
+                    var process = $("#process").val();
+                    if (process == 3) {
+                        var html = '<option value=""></option>\n' +
+                                '                            <option value="3">审核通过</option>\n' +
+                                '                            <option value="2">审核驳回</option>';
+                        $("#checkStateModal").empty().append(html);
+                    }
+                    $("#checkStateModal").val(data.obj.checkState);
+                    $("#checkMsg").val(data.obj.checkMsg);
+                },
+                yes: function (index, layero) {
+                    TalentInfoInfoDlg.commonCheck(index);
+                }
+            });
+        } else {
+            Feng.error(data.msg);
+        }
+    }, function (data) {
+        Feng.error("校验失败!" + data.responseJSON.message + "!");
+    });
+    ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()})
+    ajax.start();
+}
+
+/**
+ * 显示初审审核模态框
+ */
+TalentInfoInfoDlg.showFirstCheckModal = function () {
+    var ajax = new $ax("/admin/talent/validateIsCheck", function (data) {
+        if (data.code == 200) {
+            layer.open({
+                type: 1,
+                id: "neewFieldFormModel",
+                title: '审核',
+                area: ['800px', '450px'], //宽高
+                fix: false, //不固定
+                shade: 0,
+                maxmin: true,
+                content: TalentInfoInfoDlg.creatFieldCheckModal(),
+                btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+                btnAlign: 'c',
+                zIndex: layer.zIndex,
+                success: function (layero, index) {
+                    layer.setTop(layero);
+                    var obj = data.obj.talentInfo;
+                    var companyList = data.obj.companys;
+                    var type = data.obj.type;
+                    var fileList = data.obj.fileList;
+                    var process = data.obj.process;
+                    if (typeof data.obj.fieldList != "undefined" && data.obj.fieldList.length > 0) {
+                        var fieldList = data.obj.fieldList;
+                        var html1 = '';
+                        for (var key in fieldList) {
+                            html1 = html1 + '<li style="float:left;margin:0 10px 10px 0;"><input type="checkbox" value="' + fieldList[key]["key"] + '"><span>' + fieldList[key]["value"] + '</span></li>';
+                        }
+                    }
+                    var html2 = '';
+                    for (var key in fileList) {
+                        html2 = html2 + '<ul><li style="width: 100%"><input type="checkbox" value="' + fileList[key].id + '"><span>' + fileList[key].name + '</span></li></ul>';
+                    }
+                    var html3 = '';
+                    for (var key in companyList) {
+                        html3 += '<li style="width: 100%"><input type="checkbox" value="' + companyList[key].id + '"><span>' + companyList[key].name + (companyList[key].uncheck == true ? "<span style='color:#ff0000;'>(上次驳回)</span>" : "") + '</span></li>';
+                    }
+                    $("#field_info ul").css("overflow", "hidden").empty().append(html1);
+                    $("#field_file").css("overflow", "hidden").empty().append(html2);
+                    $("#company_list ul").css("overflow", "hidden").empty().append(html3);
+                    var optionHtml = "";
+                    if (process <= 4 && process != 2) {
+                        optionHtml = '<option value="">请选择</option>\n' +
+                                (obj.highProcess >= 3 && companyList.length > 0 && process == 3 && obj.isMatchZhiren == 0 ? '<option value="5">审核通过(需要再次部门并审)</option>\n' : '<option value="3">审核通过</option>') +
+                                (obj.highProcess >= 3 && companyList.length > 0 && process == 3 && obj.isMatchZhiren == 0 ? '<option value="4">审核通过(跳过部门并审)</option>\n' : "") +
+                                '                            <option value="2">审核驳回</option>\n' +
+                                (type == 5 && process == 3 ? '<option value="6">驳回到分院</option>\n' : '');
+                    }
+                    if (process == 5 || process == 2) {
+                        optionHtml = '<option value="">请选择</option>\n' +
+                                '                            <option value="3">审核通过</option>\n' +
+                                '                            <option value="2">审核驳回</option>\n' +
+                                '                            <option value="-1">审核不通过</option>';
+                    }
+                    $("#checkStateFirstModal").empty().append(optionHtml);
+                    $("#firstCheckForm")[0].reset();
+                    $("#checkStateFirstModal").val(data.obj.check.checkState);
+                    $("#checkStateFirstModal").trigger("change");
+                    $("#checkMsgFirst").val(data.obj.check.msg);
+                    if (obj.fields != null && obj.fields != '') {
+                        $("#field_info input").each(function () {
+                            for (var key in obj.fields) {
+                                if ($(this).val() == obj.fields[key]) {
+                                    this.checked = true;
+                                }
+                            }
+                        });
+                    }
+                    if (obj.files != null && obj.files != '') {
+                        $("#field_file input").each(function () {
+                            for (var key in obj.files) {
+                                if ($(this).val() == obj.files[key]) {
+                                    this.checked = true;
+                                }
+                            }
+                            //if (obj.files.indexOf($(this).val()) != -1) {
+                            //this.checked = true;
+                            //}
+                        });
+                    }
+                    if (obj.re_check_companys != null && obj.re_check_companys != '') {
+                        $("#company_list input").each(function () {
+                            for (var key in obj.re_check_companys) {
+                                if ($(this).val() == obj.re_check_companys[key]) {
+                                    this.checked = true;
+                                }
+                            }
+                        });
+                    }
+                },
+                yes: function (index, layero) {
+                    TalentInfoInfoDlg.firstCheck(index);
+                }
+            });
+        } else {
+            Feng.error(data.msg);
+        }
+    }, function (data) {
+        Feng.error("校验失败!" + data.responseJSON.message + "!");
+    });
+    ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()})
+    ajax.start();
+}
+
+TalentInfoInfoDlg.toggledepField = function () {
+    var checkState = $("#checkStateModal").val();
+    var checkMsg = $("#checkMsg").val();
+    if (checkState == 3) {
+        if (checkMsg == null || checkMsg == '') {
+            $("#checkMsg").val("部门审核通过,待复核");
+        }
+    } else {
+        $("#checkMsg").val("");
+    }
+}
+
+
+/**
+ * 显示字段或者隐藏字段选择
+ */
+TalentInfoInfoDlg.toggleField = function () {
+    var checkState = $("#checkStateFirstModal").val();
+    var checkMsgFirst = $("#checkMsgFirst").val();
+    $("#company_list").hide();
+    if (checkState == 2) {
+        $("#field").show();
+        $("#checkMsgFirst").val("");
+    } else if (checkState == 3 || checkState == 4 || checkState == 5) {
+        $("#field").hide();
+        $("#field").find("input[type=checkbox]").removeAttr("checked");
+        if (checkMsgFirst == null || checkMsgFirst == '' || checkMsgFirst == "等待部门审核") {
+            $("#checkMsgFirst").val("审核通过");
+        }
+        if (checkState == 5) {
+            $("#company_list").show();
+        }
+    } else if (checkState == -1) {
+        $("#field").hide();
+        $("#checkMsgFirst").val("审核不通过");
+    }
+}
+
+
+/**
+ * 全选
+ */
+TalentInfoInfoDlg.checkAll = function () {
+    $("#field input").each(function () {
+        this.checked = true;
+    })
+}
+/**
+ * 反选
+ */
+TalentInfoInfoDlg.unCheckAll = function () {
+    $("#field input").each(function () {
+        if (this.checked) {
+            this.checked = false;
+        } else {
+            this.checked = true;
+        }
+    })
+}
+
+/**
+ * 审核提交
+ */
+TalentInfoInfoDlg.commonCheck = function (i) {
+    var checkState = $("#checkStateModal").val();
+    var checkMsg = $("#checkMsg").val();
+    if (checkState == null || checkState == '') {
+        Feng.info("请选择审核状态");
+        return;
+    }
+    if (checkMsg == null || checkMsg == '') {
+        Feng.info("请填写审核意见");
+        return;
+    }
+    if (locked)
+        return;
+    locked = true;
+    var ajax = new $ax(Feng.ctxPath + "/admin/talent/check", function (data) {
+        if (data.code == 200) {
+            Feng.success(data.msg);
+            // $("#commonModal").modal("hide");
+            layer.close(i);
+        } else {
+            Feng.error(data.msg);
+        }
+        locked = false;
+    }, function (data) {
+        Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+        locked = false;
+    });
+    ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg, "process": $("#process").val(), "companyId": $("#companyId").val()})
+    ajax.start();
+}
+
+/**
+ * 初审提交
+ */
+TalentInfoInfoDlg.firstCheck = function (i) {
+    var checkState = $("#checkStateFirstModal").val();
+    var checkMsg = $("#checkMsgFirst").val();
+    if (checkState == null || checkState == '') {
+        Feng.info("请选择审核状态");
+        return;
+    }
+    if (checkMsg == null || checkMsg == '') {
+        Feng.info("请填写审核意见");
+        return;
+    }
+    var fields = '';
+    var files = '';
+    var companys = '';
+    $("#field_info li input").each(function (index) {
+        if ($(this).is(":checked")) {
+            fields = fields + $(this).val() + ",";
+        }
+    });
+    $("#field_file li input").each(function (index) {
+        if ($(this).is(":checked")) {
+            files = files + $(this).val() + ",";
+        }
+    });
+    $("#company_list li input").each(function (index) {
+        if ($(this).is(":checked")) {
+            companys += $(this).val() + ",";
+        }
+    });
+    if (checkState == 2 && fields == '' && files == '') {
+        Feng.info("请选择可修改的字段或附件!");
+        return;
+    }
+    if (checkState == 5 && companys == "") {
+        Feng.info("请选择需要再次审核的部门!");
+        return;
+    }
+    if (locked)
+        return;
+    locked = true;
+    var ajax = new $ax("/admin/talent/check", function (data) {
+        if (data.code == 200) {
+            // $("#firstModal").modal("hide");
+            layer.close(i);
+            Feng.success(data.msg);
+        } else {
+            Feng.error(data.msg);
+        }
+        locked = false;
+    }, function (data) {
+        Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+        locked = false;
+    });
+    ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg,
+        "process": $("#process").val(), "fields": fields, "files": files, "companys": companys})
+    ajax.start();
+}
+
+
+TalentInfoInfoDlg.submitCheck = function () {
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/admin/talent/submitCheck", function (data) {
+            if (data.code == 200) {
+                Feng.success(data.msg);
+                window.parent.TalentInfo.table.refresh();
+                TalentInfoInfoDlg.close();
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+        });
+        ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()});
+        ajax.start();
+    }
+    Feng.confirm("一旦提交无法修改,是否审核完毕且无误?", operation);
+}
+
+TalentInfoInfoDlg.fieldCheckd = function (context) {
+    if ($(context).get(0).checked) {
+        $(context).parent().next().children()[0].checked = true;
+        $(context).parent().next().children().eq(0).trigger("change");
+    }
+}
+
+TalentInfoInfoDlg.sourceCheckd = function (context) {
+    if ($(context).get(0).checked) {
+        $("#talentArrangeCheckBox").attr("checked", true);
+        $("#talentArrangeCheckBox").trigger("change");
+    }
+}
+
+TalentInfoInfoDlg.download = function () {
+    window.location.href = encodeURI(encodeURI("/common/api/downloadZip?type=1&id=" + $("#id").val()));
+}
+TalentInfoInfoDlg.creatFieldCheckModal = function () {
+    return '<form id="firstCheckForm">\n' +
+            '                    <div class="form-group" style="margin: 10px;">\n' +
+            '                        <label for="checkState" class="control-label">审核状态</label>\n' +
+            '                        <select class="form-control" id="checkStateFirstModal" onchange="TalentInfoInfoDlg.toggleField()">\n' +
+            '                            <option value="">请选择</option>\n' +
+            '                            <option value="3">审核通过</option>\n' +
+            '                            <option value="2">审核驳回</option>\n' +
+            '                            <option value="-1">审核不通过</option>\n' +
+            '                        </select>\n' +
+            '                    </div>\n' +
+            '                    <div class="form-group" style="margin: 10px;">\n' +
+            '                        <label for="checkMsg" class="control-label" >审核意见</label>\n' +
+            '                        <textarea class="form-control" id="checkMsgFirst" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
+            '                        <div id="company_list" style="padding-top:5px;display:none;">\n' +
+            '                            <label for="checkMsg" class="control-label">选择需要再次审核的部门</label>\n' +
+            '                            <div id="companys">' +
+            '                               <ul style="overflow:hidden;list-style:none;"></ul>' +
+            '                            </div>' +
+            '                        </div>\n' +
+            '                        <div id="field" style="padding-top: 5px;display: none">\n' +
+            '                            <label for="checkMsg" class="control-label">可修改字段</label>\n' +
+            '                            <div id="field_info">\n' +
+            '                                <ul style="overflow:hidden;list-style:none;">\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="name"><span>姓名</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="sex"><span>性别</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="birthday"><span>出生日期</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="industryField"><span>行业领域</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="address"><span>所属镇街</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="nationality"><span>国籍/地区</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="provinceCode"><span>籍贯省</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="cityCode"><span>籍贯市</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="countyCode"><span>籍贯县</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="cardType"><span>证件类型</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="idCard"><span>证件号码</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="nation"><span>民族</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="politics"><span>政治面貌</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="post"><span>职务</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="highEducation"><span>最高学历</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="graduateSchool"><span>毕业院校</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="major"><span>专业</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="title"><span>职称</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="studyAbroad"><span>是否有留学经历</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="phone"><span>手机号码</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="email"><span>电子邮箱</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="bank"><span>开户银行</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>\n' +
+            '                                <li style="width:31%"><input type="checkbox" value="breakFaith"><span>曾被相关主管部门列为失信个人</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="talentArrange"><span>人才层次</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="identifyCondition"><span>认定条件</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="educationAndResume"><span>教育背景及工作简历</span></li>\n' +
+            '                                <li style="width:20.5%"><input type="checkbox" value="mainHonours"><span>主要业绩及取得的荣誉</span></li>\n' +
+            '                                <li style="width:10%"><input type="checkbox" value="description"><span>备注</span></li>\n' +
+            '                                </ul>\n' +
+            '                            </div>\n' +
+            '                            <label for="checkMsg" class="control-label">可修改附件</label>\n' +
+            '                            <div id="field_file">\n' +
+            '                            </div>\n' +
+            '                            <div class="form-group" style="text-align: center">\n' +
+            '                                <button type="button" class="btn btn-primary" onclick="TalentInfoInfoDlg.checkAll()">全选</button>\n' +
+            '                                <button type="button" class="btn btn-success" onclick="TalentInfoInfoDlg.unCheckAll()">反选</button>\n' +
+            '                            </div>\n' +
+            '                        </div>\n' +
+            '                    </div>\n' +
+            '                </form>';
+
+}
+
+TalentInfoInfoDlg.createNoFieldCheckModal = function () {
+    return '<form id="commonCheckForm" >\n' +
+            '                    <div class="form-group" style="margin: 10px;">\n' +
+            '                        <label for="checkState" class="control-label">审核状态</label>\n' +
+            '                        <select class="form-control" id="checkStateModal" >\n' +
+            '                            <option value=""></option>\n' +
+            '                            <option value="3">审核通过</option>\n' +
+            '                            <option value="2">审核驳回</option>\n' +
+            '                        </select>\n' +
+            '                    </div>\n' +
+            '                    <div class="form-group" style="margin: 10px;">\n' +
+            '                        <label for="checkMsg" class="control-label">审核意见</label>\n' +
+            '                        <textarea class="form-control" id="checkMsg" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
+            '                    </div>\n' +
+            '                </form>';
+}
+
+
+$(function () {
+    $("select:not(#checkStateModal,#checkStateFirstModal)").each(function () {
+        //$(this).attr("disabled", "disabled");
+    });
+    $("input,textarea").not("#checkMsg,#checkMsgFirst").each(function () {
+        $(this).attr("readonly", "readonly");
+    });
+    TalentInfoInfoDlg.typeChange();
+    TalentInfoInfoDlg.sourceChange();
+    $('[data-toggle="tooltip"]').tooltip();
+    var type = $("#type").val();
+    TalentInfoInfoDlg.initFileTable();
+
+    $(".fa").bind("mouseover", function () {
+        var htm = $(this).data('msg');
+        console.log(htm)
+        if (htm != '' && typeof (htm) != "undefined") {
+            $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+        } else {
+            var id = $(this).data('id');
+            html = $("#" + id).html();
+            if (id == "shebao") {
+                $(this).webuiPopover({title: '详情', content: html, trigger: 'hover', placement: 'right'}).webuiPopover('show');
+            } else {
+                $(this).webuiPopover({title: '详情', content: html, trigger: 'hover'}).webuiPopover('show');
+            }
+
+        }
+    });
+
+    /*var source = $("#source").val();
+     var columns = 3;
+     if (source == 1 || source == 2) {
+     columns = 3;
+     } else if (source == 3 || source == 4) {
+     columns = 4;
+     }
+     
+     $("#source").parents("td").attr("colspan", columns);
+     $("#talent_arrange").parents("td").attr("colspan", columns);
+     $("#talent_condition").parents("td").attr("colspan", columns - 1);*/
+
+    //$(".ibox-content").viewer({fullscreen: false});
+    Feng.getCheckLog("logTable", {"type": CONFIG.project_rcrd, "mainId": $("#id").val(), "typeFileId": "", "active": 1})
+});
+
+