فهرست منبع

Merge remote-tracking branch 'origin/master'

sandm 2 سال پیش
والد
کامیت
4f1a3b85de

+ 1 - 1
app/common/api/BatchApi.php

@@ -175,7 +175,7 @@ class BatchApi {
         if ($params["year"]) {
             $where[] = ["batch", "=", $params["year"]];
         }
-        $batch = Batch::where($where)->order("startTime desc")->order("endTime desc")->findOrEmpty();
+        $batch = Batch::where($where)->order("startTime desc")->order("endTime desc")->find();
         if (!$batch)
             return ["msg" => "该申报未启动"];
         if (strtotime($batch["startTime"]) > $now)

+ 1 - 1
app/enterprise/api/TalentApi.php

@@ -56,7 +56,7 @@ class TalentApi {
         if (session("user")["usertype"] == 2) {
             $where[] = ["enterprise_id", "=", session("user")["uid"]];
         }
-        $where[] = ["isImport", "=", $request["import"] ?: 0];
+        $where[] = ["isImport", "=", $request->param("import") ?: 0];
         if ($step) {
             switch ($step) {
                 case 1:

+ 2 - 10
app/enterprise/controller/Integral.php

@@ -28,15 +28,6 @@ class Integral extends EnterpriseController {
      */
     public function apply(\think\Request $request) {
         $type = $this->user["type"];
-        $tpl = "";
-        switch ($type) {
-            case 1:
-                $tpl = "apply"; //晋江人才
-                break;
-            case 2:
-                $tpl = "ic_apply"; //集成电路
-                break;
-        }
         $param = $request->param();
         $id = isset($param["id"]) ? $param["id"] : 0;
         $info = \app\common\api\VerifyApi::getTalentInfoById($id);
@@ -82,7 +73,7 @@ class Integral extends EnterpriseController {
 
         $info["enterprise"] = $ep;
         $info["talent_type_list"] = DictApi::findChildDictByCode("talent_type");
-        return view($tpl, ["year" => date("Y"), "checkState" => $checkState, "row" => $info]);
+        return view("", ["year" => date("Y"), "checkState" => $checkState, "row" => $info]);
     }
 
     public function view(\think\Request $request) {
@@ -251,6 +242,7 @@ class Integral extends EnterpriseController {
         echo sprintf("<script>parent.TalentInfoInfoDlg.submitCallback(%s);</script>", json_encode($res));
         exit;
     }
+
     /**
      * 保存申报表单
      * @param type $info talent_info

+ 615 - 0
app/enterprise/view/integral/apply.html

@@ -0,0 +1,615 @@
+{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;
+    }
+    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;}
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12" >
+                    <div class="tab-content">
+                        <div id="tab-1" class="tab-pane active">
+                            <form id="integralInfoForm" action="/enterprise/integral/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.enterprise.id}">
+                                <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}">
+                                <input type="hidden" name="enterprise_tag" id="enterprise_tag" value="{$row.enterprise.enterpriseTag}">
+                                <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">
+                                        <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="{$row.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="nation" name="nation" value='{$row.nation}'>
+                                                        </select>
+                                                    </div>
+                                                </td>
+                                                <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/photo.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>
+                                                        <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>证件号码</span></label>
+                                                        <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>
+                                                        <select class="form-control" id="sex" name="sex" value='{$row.sex}'>
+                                                            <option value="">请选择</option>
+                                                            <option value="1">男</option>
+                                                            <option value="2">女</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 date" id="birthday" name="birthday" value="{$row.birthday}"/>
+                                                    </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" 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>
+                                                        <select class="form-control" id="nationality" name="nationality" value="{$row.nationality}">
+                                                        </select>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <td colspan="2">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>籍贯省</label>
+                                                        <select class="form-control " onchange="TalentInfoInfoDlg.afterSelectProvince()" id="province" name="province" value='{$row.province}'>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>籍贯市</label>
+                                                        <select class="form-control" onchange="TalentInfoInfoDlg.afterSelectCity()" id="city" name="city" value='{$row.city}'>                                                            
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>籍贯县(区)</label>
+                                                        <select class="form-control" id="county" name="county" value='{$row.county}'>                                                            
+                                                        </select>
+                                                    </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>
+                                                <div class="form-control" style="border: none">{$row.enterprise.enterpristTagName}</div>
+                                            </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">{$row.enterprise.name}</div>
+                                            </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">{$row.enterprise.streetName}</div>
+                                            </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">{$row.enterprise.industryFieldNewName}</div>
+                                            </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" 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>
+                                            </div>
+                                        </td>
+                                        <td>
+                                            <label class=" control-label spacing td-label">人才类型说明</label>
+                                            <div class="word-wrap" id="typeTips">
+
+                                            </div>
+                                        </td>
+                                        <td rowspan="3" colspan='2'>
+                                            <table class="fileTable">
+                                                <tr><td>载入附件</td></tr>
+                                            </table>
+                                        </td>
+                                    </tr>                                    
+                                    <tr class="talentType1-2" style="display: none">
+                                        <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}"/>
+                                            </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="{$row.labor_contract_rangetime}" />
+                                            </div>
+                                        </td>
+                                    </tr>                                    
+                                    <tr class="talentType1-2" style="display: none">
+                                        <td >
+                                            <div class="rowGroup">
+                                                <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="labor_contract_rangetime" 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">
+                                                <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">近三年来晋工作时间说明</label>
+                                            <div class="word-wrap">
+                                                如您为近三年来晋工作的人才,须填写近三年来晋日期,同时上传对应佐证材料,如果来晋时间已超过三年,则此项不必填写。
+                                            </div>
+                                        </td>
+                                    </tr>
+                                    {/if}
+                                </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="5" 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="5" 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>
+                                    <tr>
+                                        <td>
+                                            <div class="rowGroup">
+                                                <label class="control-label spacing td-label"><span style="color: red">*</span>最高学历</label>
+                                                <select class="form-control" id="highest_degree" name="highest_degree" value="{$row.highest_degree}"></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="graduate_school" name="graduate_school" value="{$row.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="{$row.major}"/>
+                                            </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" 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 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>
+                                            <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="{$row.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" id="position" name="position" value="{$row.position}"/>
+                                            </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>
+
+                                <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                    <tr>
+                                        <td colspan="3">
+                                            <div class="rowGroup">
+                                                <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>
+                                        </td>
+                                        <td rowspan="7" style="width: 100%">
+                                            <table class="fileTable"></table>
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <td colspan="3">
+                                            <div class="rowGroup" {if condition="!$row['source_batch']"}style="display:none;"{/if}>
+                                                <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>
+                                    </tr>
+                                    <tr>
+                                        <td colspan="3">
+                                            <div class="rowGroup col-sm-6" {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-6" {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>
+                                    </tr>
+                                    <tr>
+                                        <td colspan="3">
+                                            <div class="rowGroup col-sm-6 fujian_highcert" style="display: none">
+                                                <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书发证日期</label>
+                                                <input type="text" class="form-control date" id="fujian_highcert_pubtime" name="fujian_highcert_pubtime" value="{$row.fujian_highcert_pubtime}"/>
+                                            </div>
+                                            <div class="rowGroup col-sm-6 fujian_highcert" style="display: none">
+                                                <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书有效期</label>
+                                                <input type="text" class="form-control date" id="fujian_highcert_exptime" name="fujian_highcert_exptime" value="{$row.fujian_highcert_exptime}"/>
+                                            </div>
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <td colspan="3">
+                                            <div class="rowGroup col-sm-6 quanzhou_highcert" style="display: none">
+                                                <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书发证日期</label>
+                                                <input type="text" class="form-control date" id="quanzhou_highcert_pubtime" name="quanzhou_highcert_pubtime" value="{$row.quanzhou_highcert_pubtime}"/>
+                                            </div>
+                                            <div class="rowGroup col-sm-6 quanzhou_highcert" style="display: none">
+                                                <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书有效期</label>
+                                                <input type="text" class="form-control date" id="quanzhou_highcert_exptime" name="quanzhou_highcert_exptime" value="{$row.quanzhou_highcert_exptime}"/>
+                                            </div>
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <td colspan="3">
+                                            <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="2" style="overflow: inherit">
+                                            <div class="rowGroup col-sm-9">
+                                                <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>
+                                        <td {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 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>
+                                                <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}"/>
+                                            </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/integral/integralInfo.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 144 - 0
app/enterprise/view/integral/index.html

@@ -0,0 +1,144 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .layui-layer-btn .layui-layer-btn1 {
+        border-color: #009688;
+        background-color: #009688;
+        color: #fff;
+    }
+</style>
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-title">
+                <h5>人才积分申报</h5>
+            </div>
+            <div class="ibox-content">
+                <div class="row row-lg">
+                    <div class="col-sm-12">
+                        <div class="row">
+                            <input type="hidden" id="type" value="{$type}">
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">姓名
+                                        </button>
+                                    </div>
+                                    <input type="text" class="form-control" id="name" placeholder="">
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">证件号码
+                                        </button>
+                                    </div>
+                                    <input type="text" class="form-control" id="card_number" placeholder="">
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            性别
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="sex">
+                                        <option value=""></option>
+                                        <option value="1">男</option>
+                                        <option value="2">女</option>
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">                                
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            民族
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="nation">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">                         
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            国籍/地区
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="nationality">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">                        
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            人才层次
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="talent_arrange">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            审核状态
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="checkState">
+                                        <option value=""></option>
+                                        <option value="-1">审核不通过</option>
+                                        <option value="1">待提交</option>
+                                        <option value="2">已驳回</option>
+                                        <option value="3">审核中</option>
+                                        <option value="4">认定通过</option>
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Integral.search()" id="">
+                                    <i class="fa fa-search"></i>&nbsp;搜索
+                                </button>
+                                <button type="button" class="btn btn-sm btn-primary " onclick="Integral.reset()" id="">
+                                    <i class="fa fa-trash"></i>&nbsp;重置
+                                </button>
+                            </div>
+                        </div>
+                        <div class="hidden-xs" id="IntegralInfoTableToolbar" role="group">
+                            <button type="button" class="btn btn-sm btn-primary " onclick="Integral.addInfo()" id="">
+                                <i class="fa fa-plus"></i>&nbsp;添加申报
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="Integral.editInfo()" id="">
+                                <i class="fa fa-edit"></i>&nbsp;修改申报
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="Integral.viewInfo()" id="">
+                                <i class="fa fa-book"></i>&nbsp;查看申报
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary " onclick="Integral.delete()" id="">
+                                <i class="fa fa-remove"></i>&nbsp;删除申报
+                            </button>
+                        </div>
+                        <table id="IntegralInfoTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                            <thead>
+                                <tr>
+                                    <th data-field="selectItem" data-checkbox="true"></th>
+                                </tr>
+                            </thead>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/integral/integral.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 594 - 0
app/enterprise/view/integral/view.html

@@ -0,0 +1,594 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    .panel 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;
+    }
+    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;}
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12" >
+                    <div class="tab-content">
+
+                        <div id="tab-1" class="tab-pane active">
+                            <div class="panel-body" >
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                    <div class="panel-body">
+                                        <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}">
+                                        <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/>
+                                                    </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>
+                                                    </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">
+                                                    </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='info.sex' value='1'}男{else/}女{/eq}"  readonly disabled  id="sex"/>
+                                                    </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>
+                                            </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"/>
+                                                    </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">
+                                                        <label class="control-label spacing td-label"><span style="color: red">*</span>单位标签</label>
+                                                        <div class="form-control" style="border: none">{$row.enterpriseTagName}</div>
+                                                    </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">{$row.enterpriseName}</div>
+                                                    </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">{$row.streetName}</div>
+                                                    </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">{$row.industryFieldName}</div>
+                                                    </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>
+                                                    </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>
+                                                    </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 ">
+                                                        <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/>本单位所属集团公司及权属公司
+                                                    </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"/>
+                                                    </div>
+                                                </td>
+                                            </tr>
+                                            {if condition="in_array($row['enterprise']['enterpriseTag'],['mtdw','gyqyh','mbfqy','jrjg'])"}
+                                            <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 date" id="fst_work_time" value="{$row.fst_work_time}"  readonly disabled/>
+                                                    </div>
+                                                </td>
+                                                {if condition="$row['talent_type'] eq 1"}
+                                                <td id="come_in_jin_str">
+                                                    <label class=" control-label spacing td-label">近三年来晋工作时间说明</label>
+                                                    <div class="word-wrap">
+                                                        如您为近三年来晋工作的人才,须填写近三年来晋日期,同时上传对应佐证材料,如果来晋时间已超过三年,则此项不必填写。
+                                                    </div>
+                                                </td>
+                                                {/if}
+                                            </tr>
+                                            {/if}
+                                            {/if}
+                                            {if condition="in_array($row['talent_type'],[3])"}
+                                            <tr class="talentType3">
+                                                <td >
+                                                    <div class="rowGroup">
+                                                        预引进类型
+                                                    </div>
+                                                </td>
+                                                <td >
+                                                    <div class="rowGroup">
+                                                        <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}
+                                        </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" readonly disabled>{$row.experience}</textarea>
+                                                    </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" readonly disabled>{$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="{$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}"/>
+                                                    </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"><span style="color: red">*</span>最高学历</label>
+                                                        <select class="form-control" id="highest_degree">
+                                                            <option value="">{$row.highestDegreeName}</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="graduate_school" name="graduate_school" value="{$row.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="{$row.major}"/>
+                                                    </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="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}"/>
+                                                    </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 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 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"><span style="color: red">*</span>本单位现任职务</label>
+                                                        <input type="text" class="form-control" id="position" name="position" value="{$row.position}"/>
+                                                    </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>
+
+                                        <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                            <tr>
+                                                <td colspan="3">
+                                                    <div class="rowGroup">
+                                                        <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>
+                                                </td>
+                                                <td rowspan="7" style="width: 100%">
+                                                    <table class="fileTable"></table>
+                                                </td>
+                                            </tr> 
+                                            {if condition="$row['source_batch']"}
+                                            <tr>
+                                                <td colspan="3">
+                                                    <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>
+                                            </tr>
+                                            {/if}
+                                            {if condition="$row['source_city'] || $row['source_county']"}
+                                            <tr>
+                                                <td colspan="3">
+                                                    <div class="rowGroup col-sm-6" {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-6" {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>
+                                                </td>
+                                            </tr>
+                                            {/if}
+                                            {if condition="in_array($row['source'],[1,3])"}
+                                            <tr>
+                                                <td colspan="3">
+                                                    <div class="rowGroup col-sm-6 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>
+                                                    <div class="rowGroup col-sm-6 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>
+                                            </tr>
+                                            {/if}
+                                            {if condition="in_array($row['source'],[2,4])"}
+                                            <tr>
+                                                <td colspan="3">
+                                                    <div class="rowGroup col-sm-6 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>
+                                                    <div class="rowGroup col-sm-6 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>
+                                            {/if}
+                                            <tr>
+                                                <td colspan="3">
+                                                    <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="2">
+                                                    <div class="rowGroup col-sm-9">
+                                                        <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>
+                                                    </div>
+                                                </td>
+                                                <td {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 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>
+                                                        <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}"/>
+                                                    </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>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/integral/integralInfo_select.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 1 - 0
public/static/modular/common/config.js

@@ -33,6 +33,7 @@ var CONFIG = {
     "project_renting_purchase_apply":17,//购房申请
     "project_renting_purchase_fees":18, //购房补助
     "project_master_living_allowance":19,//硕博人才生活补贴
+    "project_integral_apply":20,//积分申报
 
     /**
      * 子女就学项目类型

+ 393 - 0
public/static/modular/gate/integral/integral.js

@@ -0,0 +1,393 @@
+/**
+ * 人才认定申报管理初始化
+ */
+var Integral = {
+    id: "IntegralInfoTable", //表格id
+    seItem: null, //选中的条目
+    table: null,
+    layerIndex: -1
+};
+/**
+ * 初始化表格的列
+ */
+Integral.initColumn = function () {
+    var type = $("#type").val();
+    var isShow = true;
+    if (type == 2) {
+        isShow = false;
+    }
+    return [
+        {field: 'selectItem', radio: true},
+        {title: '申报年度', field: 'apply_year', visible: true, align: 'center', valign: 'middle', width: '80px'},
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (row.sex == 1) {
+                    return value + '<span style="color:#6495ED">【男】</span>';
+                } else if (row.sex == 2) {
+                    return value + '<span style="color:#FF82AB">【女】</span>';
+                } else {
+                    return value;
+                }
+            }
+        },
+        {title: '人才类别', field: 'type', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (value == 1) {
+                    return '晋江市现代产业体系人才';
+                }
+                if (value == 2) {
+                    return '集成电路优秀人才';
+                }
+            }
+        },
+        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", },
+        {title: '单位标签', field: 'enterpriseTagName', visible: isShow, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '证件号码', field: 'card_number', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (row.real_state != row.checkState) {
+                    switch (row.real_state) {
+                        case 4:
+                            return "<span class='label label-danger'>基础信息审核驳回</span>";
+                            break;
+                        case 6:
+                            return "<span class='label label-danger'>基础信息复审驳回</span>";
+                            break;
+                        case 11:
+                            return "<span class='label label-danger'>初审驳回</span>";
+                            break;
+                        case 13:
+                            return "<span class='label label-danger'>部门驳回</span>";
+                            break;
+                        case 15:
+                            return "<span class='label label-danger'>复审驳回</span>";
+                            break;
+
+                    }
+                } else {
+                    switch (value) {
+                        case - 2:
+                            return "<span class='label label-danger'>初审失败</span>";
+                            break;
+                        case - 1:
+                            return "<span class='label label-danger'>基础信息审核失败</span>";
+                            break;
+                        case 7:
+                            return "<span class='label label-danger'>基础信息复审失败</span>";
+                            break;
+                        case 1:
+                            return "<span class='label'>保存未提交</span>";
+                            break;
+                        case 2:
+                            if (row.last_state == 4) {
+                                return "<span class='label label-success'>待审核(重新提交)</span>";
+                            }
+                            return "<span class='label label-success'>待审核</span>";
+                            break;
+                        case 3:
+                            return "<span class='label label-success'>待基础条件复审</span>";
+                            break;
+                        case 5:
+                            return "<span class='label'>待详细填报</span>";
+                            break;
+                        case 8:
+                            return "<span class='label'>保存未提交</span>";
+                            break;
+                        case 9:
+                            if (row.last_state == 11) {
+                                return "<span class='label label-success'>待初审(重新提交)</span>";
+                            }
+                            return "<span class='label label-success'>待初审</span>";
+                            break;
+                        case 10:
+                            if (row.companyIds) {
+                                return "<span class='label label-success'>待部门审核</span>";
+                            } else {
+                                return "<span class='label label-success'>待复审</span>";
+                            }
+                            break;
+                        case 12:
+                            return "<span class='label label-success'>待复审</span>";
+                            break;
+                        case 14:
+                            return "<span class='label label-primary'>复审通过待核查征信</span>";
+                            break;
+                        case 16:
+                            return "<span class='label label-danger'>复审失败</span>";
+                            break;
+                        case 21:
+                            return "<span class='label label-success'>征信通过</span>";
+                            break;
+                        case 22:
+                            return "<span class='label label-danger'>征信不通过</span>";
+                            break;
+                        case 23:
+                            return "<span class='label label-success'>公示待审核</span>";
+                            break;
+                        case 24:
+                            return "<span class='label label-success'>待公布审核</span>";
+                            break;
+                        case 25:
+                            return "<span class='label label-danger'>公示审核不通过</span>";
+                            break;
+                        case 26:
+                            return "<span class='label label-success'>公布通过</span>";
+                            break;
+                        case 27:
+                            return "<span class='label label-danger'>公布不通过</span>";
+                            break;
+                        case 28:
+                            return "<span class='label label-inverse'>已发放人才码</span>";
+                            break;
+                    }
+                }
+            }
+        },
+        {title: '审核意见', field: 'checkMsg', visible: false, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
+            formatter: function (value, row, index) {
+                if (value == 1) {
+                    return ""
+                } else if (value == 10 || value == 5) {
+                    return value;
+                } else {
+                    if (row.isPublic >= 5) {
+                        if (value == -1) {
+                            return value
+                        } else if (value == 35) {
+                            return value;
+                        } else {
+                            return ""
+                        }
+                    } else {
+                        return ""
+                    }
+                }
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"Integral.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
+            }
+        }
+    ];
+};
+
+/**
+ * 检查是否选中
+ */
+Integral.check = function () {
+    var selected = $('#' + this.id).bootstrapTable('getSelections');
+    if (selected.length == 0) {
+        Feng.info("请先选中表格中的某一记录!");
+        return false;
+    } else {
+        Integral.seItem = selected[0];
+        return true;
+    }
+};
+
+/**
+ * 显示审核日志
+ */
+Integral.showLog = function (id) {
+    layer.open({
+        type: 1,
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
+        area: ['80%', '80%'],
+        maxmin: true,
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": CONFIG.project_rcrd, "mainId": id, "typeFileId": "", "active": 1})
+        }
+    });
+
+}
+
+
+/**
+ * 点击添加人才认定申报
+ */
+Integral.addInfo = function () {
+    var ajax = new $ax("/common/batch/checkBatchValid", function (data) {
+        if (data.code == 200) {
+            var index = layer.open({
+                type: 2,
+                title: '添加人才认定申报',
+                fix: false, //不固定
+                maxmin: true,
+                content: '/enterprise/integral/apply?year=' + data.batch,
+                btn: ['<i class="fa fa-eye control-btn"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check layui-bg-green  control-btn"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser control-btn"></i>&nbsp;&nbsp;取消'],
+                btnAlign: 'c',
+                btn1: function (index, layero) {
+                    var obj = layero.find("iframe")[0].contentWindow;
+                    obj.TalentInfoInfoDlg.addSubmit();
+                }, btn2: function (index, layero) {
+                    var obj = layero.find("iframe")[0].contentWindow;
+                    obj.TalentInfoInfoDlg.submitToCheck();
+                    return false;
+                },
+                success: function (layero, index) {
+                    layer.tips('添加人才认定信息并上传附件后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
+                },
+                end: function () {
+                    layer.closeAll('tips');
+                }
+            });
+            layer.full(index);
+            Integral.layerIndex = index;
+        } else {
+            Feng.info(data.msg);
+        }
+    }, function (data) {
+        Feng.error("校验失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set("type", CONFIG.project_integral_apply);
+    ajax.start();
+};
+
+/**
+ * 编辑人才申报
+ */
+Integral.editInfo = function () {
+    if (this.check()) {
+        var ajax = new $ax("/common/batch/checkBatchValid", function (data) {
+            if (data.code == 200) {
+                var index = layer.open({
+                    type: 2,
+                    title: '修改人才认定申报',
+                    area: ['800px', '420px'], //宽高
+                    fix: false, //不固定
+                    maxmin: true,
+                    content: '/enterprise/integral/apply/id/' + Integral.seItem.id,
+                    btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check layui-bg-green"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+                    btnAlign: 'c',
+                    btn1: function (index, layero) {
+                        var obj = layero.find("iframe")[0].contentWindow;
+                        obj.TalentInfoInfoDlg.addSubmit();
+                    }, btn2: function (index, layero) {
+                        var obj = layero.find("iframe")[0].contentWindow;
+                        obj.TalentInfoInfoDlg.submitToCheck();
+                        return false;
+                    },
+                    success: function (layero, index) {
+                        layer.tips('添加人才认定信息并上传附件后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
+                    },
+                    end: function () {
+                        layer.closeAll('tips');
+                    }
+                });
+                layer.full(index);
+                Integral.layerIndex = index;
+            } else {
+                Feng.info(data.msg);
+            }
+        }, function (data) {
+            Feng.error("校验失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("type", CONFIG.project_rcrd);
+        ajax.set("year", Integral.seItem.year);
+        ajax.start();
+    }
+};
+
+/**
+ * 查看
+ */
+Integral.viewInfo = function () {
+    if (this.check()) {
+        var index = layer.open({
+            type: 2,
+            title: '人才认定申报详情',
+            area: ['800px', '420px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: '/enterprise/integral/view/id/' + Integral.seItem.id,
+            btn: ['<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+            btnAlign: 'c',
+        });
+        layer.full(index);
+        Integral.layerIndex = index;
+    }
+}
+
+/**
+ * 删除人才认定申报
+ */
+Integral.delete = function () {
+    if (this.check()) {
+        if (Integral.seItem.checkState > 1) {
+            Feng.error("该申报已提交审核,无法删除");
+            return;
+        }
+        var operation = function () {
+            var ajax = new $ax("/enterprise/integral/delete", function (data) {
+                Feng.success("删除成功!");
+                Integral.table.refresh();
+            }, function (data) {
+                Feng.error("删除失败!" + data.responseJSON.message + "!");
+            });
+            ajax.set("talentInfoId", Integral.seItem.id);
+            ajax.start();
+        }
+        Feng.confirm("删除后无法恢复,确认删除吗?", operation);
+    }
+};
+
+/**
+ * 查询表单提交参数对象
+ * @returns {{}}
+ */
+Integral.formParams = function () {
+    var queryData = {};
+    queryData['name'] = $("#name").val();
+    queryData['card_number'] = $("#card_number").val();
+    queryData['sex'] = $("#sex").val();
+    queryData['nation'] = $("#nation").val();
+    queryData['nationality'] = $("#nationality").val();
+    queryData['talent_arrange'] = $("#talent_arrange").val();
+    queryData['checkState'] = $("#checkState").val();
+    return queryData;
+}
+
+/**
+ * 查询人才认定申报列表
+ */
+Integral.search = function () {
+    Integral.table.refresh({query: Integral.formParams()});
+};
+
+/**
+ * 重置
+ */
+Integral.reset = function () {
+    $("#name").val("");
+    $("#card_number").val("");
+    $("#sex").val("");
+    $("#nation").val("");
+    $("#nationality").val("");
+    $("#talent_type").val("");
+    $("#talent_arrange").val("");
+    $("#checkState").val("");
+}
+
+$(function () {
+    var defaultColunms = Integral.initColumn();
+    var table = new BSTable(Integral.id, "/enterprise/integral/list/type/1", defaultColunms);
+    table.setPaginationType("server");
+    table.setOnDblClickRow(function () {
+        Integral.openTalentInfoDetail();
+    });
+    Integral.table = table.init();
+    //批量加载字典表数据
+    var arr = [
+        {"name": "nation", "code": "nation"},
+        {"name": "talent_arrange", "code": "talent_arrange"},
+        {"name": "nationality", "code": "nationality"},
+        {"name": "enterprise_tag", "code": "enterprise_tag"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+});
+

+ 1228 - 0
public/static/modular/gate/integral/integralInfo.js

@@ -0,0 +1,1228 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var locked = false;
+var TalentInfoInfoDlg = {
+    talentInfoInfoData: {},
+    validateFields: {
+        source_county: {validators: {notEmpty: {message: '入选来源县市区不能为空'}}},
+        talent_type: {validators: {notEmpty: {message: '人才类型不能为空'}}},
+        name: {validators: {notEmpty: {message: '姓名不能为空'}}},
+        card_type: {validators: {notEmpty: {message: '证件类型不能为空'}}},
+        card_number: {
+            validators: {
+                notEmpty: {message: '证件号码不能为空'},
+                regexp: {
+                    regexp: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
+                    message: "身份证号码格式不正确"
+                }
+            }
+        },
+        sex: {validators: {notEmpty: {message: '性别不能为空'}}},
+        birthday: {validators: {notEmpty: {message: '出生日期不能为空'}}},
+        nationality: {validators: {notEmpty: {message: '国籍/地区不能为空'}}},
+        province: {validators: {notEmpty: {message: '户籍省份不能为空'}}},
+        city: {validators: {notEmpty: {message: '户籍市不能为空'}}},
+        nation: {validators: {notEmpty: {message: '民族不能为空'}}},
+        politics: {validators: {notEmpty: {message: '政治面貌不能为空'}}},
+        experience: {validators: {notEmpty: {message: '工作简历不能为空'}}},
+        education: {validators: {notEmpty: {message: '教育背景不能为空'}}},
+        apply_year: {validators: {notEmpty: {message: '申报年度不能为空'}}},
+        import_way: {validators: {notEmpty: {message: '引进方式不能为空'}}},
+        cur_entry_time: {validators: {notEmpty: {message: '本单位入职时间不能为空'}}},
+        position: {validators: {notEmpty: {message: '本单位现任职务不能为空'}}},
+        source: {validators: {notEmpty: {message: '申报来源不能为空'}}},
+        talent_arrange: {validators: {notEmpty: {message: '人才层次不能为空'}}},
+        talent_condition: {validators: {notEmpty: {message: '认定条件不能为空'}}},
+        highest_degree: {validators: {notEmpty: {message: '最高学历不能为空'}}},
+        graduate_school: {validators: {notEmpty: {message: '毕业院校不能为空'}}},
+        major: {validators: {notEmpty: {message: '专业不能为空'}}},
+        bank: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+        bank_number: {
+            validators: {
+                notEmpty: {
+                    message: '银行行号不能为空'
+                },
+                regexp: {
+                    regexp: /^\d+$/,
+                    message: "银行行号格式不正确"
+                }
+            }
+        },
+        bank_branch_name: {
+            validators: {
+                notEmpty: {
+                    message: '开户银行网点不能为空'
+                },
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*省?[\u4e00-\u9fa5]+市[\u4e00-\u9fa5]*$/,
+                    message: "开户银行格式不正确"
+                }
+            }
+        },
+        bank_account: {
+            validators: {
+                notEmpty: {
+                    message: '银行账号不能为空'
+                },
+                regexp: {
+                    regexp: /^\d+$/,
+                    message: "银行账号格式不正确"
+                }
+            }
+        },
+        phone: {
+            validators: {
+                notEmpty: {
+                    message: '手机号码不能为空'
+                },
+                regexp: {
+                    regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
+                    message: "手机号码格式不正确"
+                }
+            }
+        },
+        email: {
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        }
+    }
+};
+
+/**
+ * 清除数据
+ */
+TalentInfoInfoDlg.clearData = function () {
+    this.talentInfoInfoData = {};
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+TalentInfoInfoDlg.set = function (key, val) {
+    var dis = $("#" + key).attr("disabled");
+    if (dis == "disabled") {
+        $("#" + key).removeAttr("disabled");
+    }
+    this.talentInfoInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
+    if (dis == "disabled") {
+        $("#" + key).prop("disabled", true);
+    }
+    return this;
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+TalentInfoInfoDlg.get = function (key) {
+    return $("#" + key).val();
+}
+
+/**
+ * 关闭此对话框
+ */
+TalentInfoInfoDlg.close = function () {
+    parent.layer.close(window.parent.TalentInfo.layerIndex);
+}
+
+/**
+ * 收集数据
+ */
+TalentInfoInfoDlg.collectData = function () {
+    this
+            .set('id')
+            .set('type')
+            .set('talent_type')
+            .set('tax_insurance_month')
+            .set('labor_contract_rangetime')
+            .set('pre_import_type')
+            .set('salary_pay_way')
+            .set('salary_pay_month')
+            .set('enterprise_id')
+            .set('name')
+            .set('photo')
+            .set('card_type')
+            .set('card_number')
+            .set('sex')
+            .set('birthday')
+            .set('nationality')
+            .set('province')
+            .set('city')
+            .set('county')
+            .set('nation')
+            .set('politics')
+            .set('talent_arrange')
+            .set('talent_condition')
+            .set('highest_degree')
+            .set('graduate_school')
+            .set('major')
+            .set('professional')
+            .set('bank')
+            .set('bank_number')
+            .set('bank_branch_name')
+            .set('bank_account')
+            .set('study_abroad')
+            .set('abroad_school')
+            .set('abroad_major')
+            .set('phone')
+            .set('email')
+            .set('apply_year')
+            .set('import_way')
+            .set('fst_work_time')
+            .set('cur_entry_time')
+            .set('position')
+            .set('source')
+            .set('fujian_highcert_pubtime')
+            .set('fujian_highcert_exptime')
+            .set('quanzhou_highcert_pubtime')
+            .set('quanzhou_highcert_exptime');
+    if ($("#province").val() != null && $("#province").val() != '') {
+        this.talentInfoInfoData["province_name"] = $("#province").find("option:selected").text();
+    }
+    if ($("#city").val() != null && $("#city").val() != '') {
+        this.talentInfoInfoData["city_name"] = $("#city").find("option:selected").text();
+    }
+    if ($("#county").val() != null && $("#county").val() != '') {
+        this.talentInfoInfoData["county_name"] = $("#county").find("option:selected").text();
+    }
+    if ($("#source_city").val() != null && $("#source_city").val() != '') {
+        this.talentInfoInfoData["source_city_name"] = $("#source_city").find("option:selected").text();
+    }
+    if ($("#source_county").val() != null && $("#source_county").val() != '') {
+        this.talentInfoInfoData["source_county_name"] = $("#source_county").find("option:selected").text();
+    }
+}
+
+/**
+ * 验证数据
+ */
+TalentInfoInfoDlg.validate = function () {
+    $('#integralInfoForm').data("bootstrapValidator").resetForm();
+    $('#integralInfoForm').bootstrapValidator('validate');
+    return $("#integralInfoForm").data('bootstrapValidator').isValid();
+}
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'left', valign: 'middle', width: "82%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                let str = '<div class="word-wrap">';
+                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 + '">' + row.description + '</span></div>'
+                return str;
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
+            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 birthday = parseInt($("#" + rel).val().substring(0, 4));
+                        let currentYear = parseInt(new Date().getFullYear());
+                        let age = currentYear - (isNaN(birthday) ? 0 : birthday);
+                        if (isNaN(birthday) || (!isNaN(birthday) && 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();
+    if (id != null && id != '') {
+        if (!TalentInfoInfoDlg.validateIsEdit())
+            return;
+    }
+    $("select").each(function () {
+        $(this).removeAttr("disabled");
+    });
+    if (locked) {
+        return;
+    }
+    locked = true;
+    $("#integralInfoForm").attr("action", "/enterprise/talent/apply");
+    $("#integralInfoForm")[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.getLayerCatdByLayer = function () {
+    $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
+    $("#talent_condition").html("<option>---请选择---</option>");
+    $("#annual_salary").parents("td").css("display", "none");
+    $('#integralInfoForm').bootstrapValidator('removeField', "annual_salary");
+
+    var level = $("#talent_arrange").val();
+    Feng.addAjaxSelect({
+        "id": "talent_arrange_category",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/api/getLayerCatsByLayer/level/" + level
+    });
+    $("#talent_condition").trigger("chosen:updated");
+}
+
+/**
+ * 获取人才认定
+ */
+TalentInfoInfoDlg.getIdentifyCondition = function () {
+    $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
+    $("#annual_salary").parents("td").css("display", "none");
+    $('#integralInfoForm').bootstrapValidator('removeField', "annual_salary");
+    var level = $("#talent_arrange").val();
+    var cat = $("#talent_arrange_category").val();
+    var id = $('#id').val();
+    Feng.addAjaxSelect({
+        "id": "talent_condition",
+        "displayCode": "id",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/api/findIdentifyConditionByLevel/level/" + level + "/cat/" + cat + "/id/" + id
+    });
+    $("#talent_condition").trigger('chosen:updated');
+}
+
+TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
+    $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
+    $("#annual_salary").parents("td").css("display", "none");
+    $('#integralInfoForm').bootstrapValidator('removeField', "annual_salary");
+
+    var source = $("#source").val();
+    if (source == "" || typeof source == "undefined") {
+        layer.alert("请先选择申报来源");
+        $("#talent_condition").val("");
+        $("#talent_condition").trigger('chosen:updated');
+        return;
+    }
+    TalentInfoInfoDlg.ajaxGetConditionFile(source);
+}
+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;
+            }
+            if (typeof data.info != "undefined" && data.info.isSalary == 1) {
+                $("#annual_salary").parents("td").css("display", "table-cell");
+                $('#integralInfoForm').bootstrapValidator('addField', "annual_salary", {validators: {
+                        notEmpty: {message: '年薪不能放空'},
+                        callback: {
+                            message: "年薪只能填写数字",
+                            callback: function (value, validator) {
+                                if (!isNaN(value) && isFinite(value)) {
+                                    return true;
+                                }
+                                return false;
+                            }
+                        }
+                    }
+                });
+            }
+            if (source != "5") {
+                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);
+                var templateUrl = '<button type="button" onclick="TalentInfoInfoDlg.downloadFile("' + filetype.id + '",3)" 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: 30%; ">' + name + '</td> \n\
+                                <td style="text-align: center; vertical-align: middle; width: 8%; ">' + (filetype.templateUrl ? templateUrl : "无") + '</td> \n\
+                                <td class="uitd_showTip" style="text-align: center; vertical-align: middle; width: 52%; ">' + filetype.description + '</td> \n\
+                                <td style="text-align: center; vertical-align: middle; width: 10%; ">' + 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);
+                    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").parent().css("display", "block");
+        $("#abroad_major").parent().css("display", "block");
+        $('#integralInfoForm').bootstrapValidator('addField', "abroad_school", {validators: {notEmpty: {message: '留学毕业院校不能为空'}}});
+        $('#integralInfoForm').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("").parent().css("display", "none");
+        $("#abroad_major").val("").parent().css("display", "none");
+        $('#integralInfoForm').bootstrapValidator('removeField', "abroad_school");
+        $('#integralInfoForm').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 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.talentTypeChange = function () {
+    var talent_type = $("#talent_type").val();
+    //$("#tax_insurance_month").val("").parent().css("display", "none");
+    //$("#labor_contract_rangetime").val("").parent().css("display", "none");
+    $(".talentType1-2").css("display", "none");
+    $(".talentType3").css("display", "none");
+    var text = "";
+    switch (talent_type) {
+        case "1":
+            TalentInfoInfoDlg.talentTypeOneTwo = true;
+            $("#tipsBlock").css('display', 'block');
+            $("#typeTips").html("含经晋江市认定且还在晋江市就业创业的人才,或在晋江市就业创业但未曾申报过晋江市现代产业体系人才的人才。");
+            //$("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料");
+            $(".talentType1-2").css("display", "table-row");
+            $("#talentType_first").css('display', "none");
+            $('#integralInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
+                validators: {
+                    notEmpty: {message: '在我市缴交社会保险或个人所得税月份不能为空'}
+                }
+            });
+            $('#integralInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_way", {validators: {notEmpty: {message: '请选择工资发放渠道'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_month", {validators: {notEmpty: {message: '请选择工资发放月份'}}});
+            if (TalentInfoInfoDlg.talentTypeFlag) {
+                TalentInfoInfoDlg.talentTypeFlag = false;
+                $('#integralInfoForm').bootstrapValidator('removeField', "pre_import_type");
+            }
+            text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/首次/, "近三年") : "";
+            $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display', 'table-row') : "";
+            $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display', 'table-cell') : "";
+            break;
+        case "2":
+            TalentInfoInfoDlg.talentTypeOneTwo = true;
+            $("#tipsBlock").css('display', 'block');
+            $("#typeTips").html("含本办法出台后首次从晋江市以外引进认定的人才,或者流出晋江市满3年后又返回晋江市就业创业(不含企业集团内部人员调动)的人才。")
+            //$("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料与来我市前工作情况证明,例如原工作单位出具的工作证明、离职证明或原创(领)办企业的营业执照复印件、经市场监管部门备案的公司章程复印件等证明材料");
+            $(".talentType1-2").css("display", "table-row");
+            $("#talentType_first").css('display', "inline");
+            $('#integralInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
+                validators: {
+                    notEmpty: {message: '在我市缴交社会保险或个人所得税月份不能为空'}
+                }
+            });
+            $('#integralInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_way", {validators: {notEmpty: {message: '请选择工资发放渠道'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "salary_pay_month", {validators: {notEmpty: {message: '请选择工资发放月份'}}});
+            if (TalentInfoInfoDlg.talentTypeFlag) {
+                TalentInfoInfoDlg.talentTypeFlag = false;
+                $('#integralInfoForm').bootstrapValidator('removeField', "pre_import_type");
+            }
+            text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
+            $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display', 'table-row') : "";
+            $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display', 'none') : "";
+            break;
+        case "3":
+            TalentInfoInfoDlg.talentTypeFlag = true;
+            $("#tipsBlock").css('display', 'block');
+            $("#typeTips").html("含已经与晋江市用人单位达成就业意向且签订预引进意向合作协议(合同)的人才,或拟来我市创业且提交企业名称预先核准的人才。")
+            //$("#desc_talent_type").html("请先提供意向合作协议(合同)或企业名称预先核准材料,落地我市后再补齐上述材料");
+            $(".talentType3").css("display", "table-row");
+            $("#talentType_first").css('display', "none");
+            $('#integralInfoForm').bootstrapValidator('addField', "pre_import_type", {validators: {notEmpty: {message: '请选择预引进类型'}}});
+            if (TalentInfoInfoDlg.talentTypeOneTwo) {
+                TalentInfoInfoDlg.talentTypeOneTwo = false;
+                $('#integralInfoForm').bootstrapValidator('removeField', "labor_contract_rangetime");
+                $('#integralInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
+                $('#integralInfoForm').bootstrapValidator('removeField', "salary_pay_way");
+                $('#integralInfoForm').bootstrapValidator('removeField', "salary_pay_month");
+            }
+            text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
+            $("#come_in_jin").length > 0 ? $("#come_in_jin").css('display', 'none') : "";
+            $("#come_in_jin_str").length > 0 ? $("#come_in_jin_str").css('display', 'none') : "";
+            break;
+        default:
+            $("#tipsBlock").css('display', 'none');
+            text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
+            break;
+    }
+    $("#fst_work_time").prev("label").html(text);
+    for (var i = 0; i < $("[data-rel=talent_type]").length; i++) {
+        let option = $("[data-rel=talent_type]").eq(i);
+        let options = option.data("option").toString().split(",");
+        if (options.indexOf(talent_type) > -1) {
+            option.css("display", "table-row");
+            option.next("tr.detail-view").css("display", "table-row");
+        } else {
+            option.css("display", "none");
+            option.next("tr.detail-view").css("display", "none");
+        }
+    }
+
+}
+
+
+TalentInfoInfoDlg.sourceChange = function () {
+    var source = $("#source").val();
+    $("#source_batch").val("").parent().css("display", "none");
+    $(".fujian_highcert").css("display", "none");
+    $(".quanzhou_highcert").css("display", "none");
+    $("#source_city").val("").parent().css("display", "none");
+    $("#source_county").val("").parent().css("display", "none");
+    $('#integralInfoForm').bootstrapValidator('removeField', "source_batch");
+    $('#integralInfoForm').bootstrapValidator('removeField', "fujian_highcert_pubtime");
+    $('#integralInfoForm').bootstrapValidator('removeField', "fujian_highcert_exptime");
+    $('#integralInfoForm').bootstrapValidator('removeField', "quanzhou_highcert_pubtime");
+    $('#integralInfoForm').bootstrapValidator('removeField', "quanzhou_highcert_exptime");
+    $('#integralInfoForm').bootstrapValidator('removeField', "source_city");
+    $('#integralInfoForm').bootstrapValidator('removeField', "source_county");
+    switch (source) {
+        case "1":
+        case "3":
+            $("#source_batch").parent().css("display", "block");
+            $(".fujian_highcert").css("display", "block");
+            $('#integralInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "fujian_highcert_pubtime", {validators: {notEmpty: {message: '福建省高层次人才证书发证日期不能为空'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "fujian_highcert_exptime", {validators: {notEmpty: {message: '福建省高层次人才证书有效期不能为空'}}});
+            break;
+        case "2":
+        case "4":
+            $("#source_batch").parent().css("display", "block");
+            $(".quanzhou_highcert").css("display", "block");
+            $('#integralInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "quanzhou_highcert_pubtime", {validators: {notEmpty: {message: '泉州高层次人才证书发证日期不能为空'}}});
+            $('#integralInfoForm').bootstrapValidator('addField', "quanzhou_highcert_exptime", {validators: {notEmpty: {message: '泉州高层次人才证书有效期不能为空'}}});
+            break;
+    }
+    if (source == 3) {
+        //显示入选来源地级市除泉
+        $("#source_city").parent().css("display", "block");
+        Feng.addAjaxSelect({
+            "id": "source_city",
+            "displayCode": "code",
+            "displayName": "name",
+            "type": "GET",
+            "url": "/common/tool/findChildAreaByCode/code/35/no/350500"
+        });
+        $('#integralInfoForm').bootstrapValidator('addField', "source_city", {validators: {notEmpty: {message: '入选来源地级市不能为空'}}});
+    }
+    if (source == 4) {
+        //显示入选来源县市区除晋
+        $("#source_county").parent().css("display", "block");
+        Feng.addAjaxSelect({
+            "id": "source_county",
+            "displayCode": "code",
+            "displayName": "name",
+            "type": "GET",
+            "url": "/common/tool/findChildAreaByCode/code/3505/no/350582"
+        });
+        $('#integralInfoForm').bootstrapValidator('addField', "source_county", {validators: {notEmpty: {message: '入选来源县市区不能为空'}}});
+    }
+    if (source != 5) {
+        $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
+    } else {
+        TalentInfoInfoDlg.ajaxGetConditionFile(source);
+    }
+}
+
+//校验是否保存基础信息
+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, state) {
+    if (!TalentInfoInfoDlg.validateIsEdit())
+        return;
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) {
+            if (data.code = 200) {
+                Feng.success(data.msg);
+                $("input[name='uploadFiles[]'][value='" + id + "']").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 () {
+    /*if (!TalentInfoInfoDlg.validate()) {
+     return;
+     }*/
+    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").each(function () {
+            $(this).removeAttr("disabled");
+        });
+        if (locked) {
+            return;
+        }
+        locked = true;
+        $("#integralInfoForm").attr("action", "/enterprise/talent/submitToCheck");
+        $("#integralInfoForm")[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) {
+    var files = $("#files").val();
+    files = files.split(",");
+    var checkState = $("#checkState").val();
+    var realState = $("#realState").val();
+    //console.log(checkState, realState);
+    if (Feng.isEmptyStr(checkState) || checkState == 0 || (checkState == 8 && realState == 8) || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(fileTypeId.toString()) != -1)) {
+        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 + ")\" 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 + ')" 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 + "/api/common/downloadFile?id=" + id + "&type=" + type;
+}
+
+//设置不可修改的字段
+TalentInfoInfoDlg.setNoChangeField = function () {
+    var checkState = $("#checkState").val();
+    var fields = $("#fields").val();
+    var realState = $("#realState").val();
+    if (realState == 11) {
+        $("input,textarea").each(function () {
+            $(this).attr("readonly", "readonly");
+        });
+        $("select,input[type=radio]").each(function () {
+            $(this).attr("disabled", "disabled");
+        });
+        if (fields != null && fields != '') {
+            var arr = fields.split(",");
+            for (var key in arr) {
+                var name = $("#" + arr[key]).prop("tagName");
+                if (name == 'select' || name == 'SELECT') {
+                    $("#" + arr[key]).removeAttr("disabled");
+                } else if (name == "input" || name == 'textarea' || name == "INPUT" || name == 'TEXTAREA') {
+                    $("#" + arr[key]).removeAttr("readonly");
+                } else {
+                    if (name == "undefined") {
+                        $("input[name=" + arr[key] + "]").removeAttr("disabled").removeAttr("readonly");
+                    }
+                }
+            }
+        }
+    }
+}
+$("#card_type").change(function () {
+    async_padding($("#card_number").val().trim(), $(this).val());
+})
+$("#card_number").blur(function () {
+    async_padding($(this).val().trim(), $("#card_type").val());
+})
+function async_padding(card_number, card_type) {
+    if (card_number != "" && card_number.length == 18 && card_type == "1") {
+        var year = card_number.substring(6, 10);
+        var month = card_number.substring(10, 12);
+        var day = card_number.substring(12, 14);
+        var birthday = year + "-" + month + "-" + day;
+        var rule = /\d{4}-\d{2}-\d{2}/;
+        if (rule.test(birthday))
+            $("#birthday").val(birthday);
+        var num = card_number.substring(17, 1);
+        if (num % 2 == 0) {
+            $("#sex").val(2);
+        } else {
+            $("#sex").val(1);
+        }
+    }
+}
+$(function () {
+    //Feng.initValidatorTip("integralInfoForm", TalentInfoInfoDlg.validateFields);
+    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"},
+        {"name": "source", "code": "source"},
+        {"name": "import_way", "code": "import_way"}];
+    Feng.findChildDictBatch(JSON.stringify(arr))
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "province",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": "/common/tool/getProvinceSelect"
+    });
+    //批量加载时间控件
+    $(".date").each(function () {
+        laydate.render({
+            elem: this
+            , type: 'date'
+            , trigger: 'click'
+        });
+    });
+    $(".rangedate").each(function () {
+        laydate.render({
+            elem: this,
+            type: "date",
+            range: true,
+            trigger: "click"
+        })
+    })
+    $(".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})
+    }
+    $("#talent_type").val($("#talent_type").attr("value"));
+    $("#card_type").val($("#card_type").attr("value"));
+    $("#sex").val($("#sex").attr("value"));
+    $("#enterprise_tag").val($("#enterprise_tag").attr("value"));
+    $("#address").val($("#address").attr("value"));
+    $("#nation").val($("#nation").attr("value"));
+    $("#nationality").val($("#nationality").attr("value"));
+    $("#industry_field").val($("#industry_field").attr("value"));
+    $("#province").val($("#province").attr("value"));
+    TalentInfoInfoDlg.afterSelectProvince();
+    $("#city").val($("#city").attr("value"));
+    TalentInfoInfoDlg.afterSelectCity();
+    $("#county").val($("#county").attr("value"));
+    TalentInfoInfoDlg.getIdentifyCondition();
+    $("#politics").val($("#politics").attr("value"));
+    $("#tax_insurance_month").val($("#tax_insurance_month").attr("value"));
+    $("#labor_contract_rangetime").val($("#labor_contract_rangetime").attr("value"));
+    $("#source_batch").val($("#source_batch").attr("value"));
+    $("#source_city").val($("#source_city").attr("value"));
+    $("#source_county").val($("#source_county").attr("value"));
+    $("#quanzhou_highcert_pubtime").val($("#quanzhou_highcert_pubtime").attr("value"));
+    $("#quanzhou_highcert_exptime").val($("#quanzhou_highcert_exptime").attr("value"));
+    $("#fujian_highcert_pubtime").val($("#fujian_highcert_pubtime").attr("value"));
+    $("#fujian_highcert_exptime").val($("#fujian_highcert_exptime").attr("value"));
+    $("#talent_arrange").val($("#talent_arrange").attr("value"));
+    TalentInfoInfoDlg.getLayerCatdByLayer();
+    $("#talent_arrange_category").val($("#talent_arrange_category").attr("value"));
+    TalentInfoInfoDlg.getIdentifyCondition();
+    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
+    });
+    if ($("#annual_salary").val() != "") {
+        $("#annual_salary").parents("td").css("display", "table-cell");
+        $('#integralInfoForm').bootstrapValidator('addField', "annual_salary", {validators: {
+                notEmpty: {message: '年薪不能放空'},
+                callback: {
+                    message: "年薪只能填写数字",
+                    callback: function (value, validator) {
+                        if (!isNaN(value) && isFinite(value)) {
+                            return true;
+                        }
+                        return false;
+                    }
+                }
+            }
+        });
+    }
+    TalentInfoInfoDlg.initFileTable();
+    var is_abroad = $("#study_abroad").val();
+    if (is_abroad == "1") {
+        TalentInfoInfoDlg.changeStudyAbroad();
+    }
+    TalentInfoInfoDlg.initBirthday();
+});
+
+

+ 185 - 0
public/static/modular/gate/integral/integralInfo_select.js

@@ -0,0 +1,185 @@
+/**
+ * 初始化人才认定申报详情对话框
+ */
+var TalentInfoInfoDlg = {
+    talentInfoInfoData: {},
+};
+
+/**
+ * 初始化表格的列
+ */
+TalentInfoInfoDlg.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (row.must == 1) {
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    return '<i class="fa fa-paste"></i>' + value;
+                }
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "52%", 'class': 'uitd_showTip'},
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                return "";
+            }
+        }
+    ]
+};
+
+TalentInfoInfoDlg.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 birthday = parseInt($("#" + rel).val().substring(0, 4));
+                        let currentYear = parseInt(new Date().getFullYear());
+                        let age = currentYear - (isNaN(birthday) ? 0 : birthday);
+                        if (isNaN(birthday) || (!isNaN(birthday) && 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: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
+                        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: 80%;">' + files[key].orignName + '</div>\n' +
+                                    '<div style="width: 10%;">' + imgStr + '</div>\n' +
+                                    '<div style="width: 10%;"></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 + "/api/common/downloadFile?id=" + id + "&type=" + type;
+}
+
+
+$(function () {
+    $(":input").prop("disabled", true);
+    $("#talent_type option").eq(0).prop("selected", true);
+    var id = $("#id").val();
+    var checkState = $("#checkState").val();
+    TalentInfoInfoDlg.initFileTable();
+    if (id != null && id != '') {
+        //select初始化
+        $("select").each(function () {
+            $(this).val($(this).attr("value")).trigger("change");
+        });
+        Feng.getCheckLog("logTable", {"type": CONFIG.project_rcrd, "mainId": id, "typeFileId": "", "active": 1})
+    }
+});
+
+