Просмотр исходного кода

Merge branch 'master' of http://59.57.98.130:3000/jjhc/report

sandm 2 лет назад
Родитель
Сommit
7503a5af14
51 измененных файлов с 5660 добавлено и 717 удалено
  1. 1 0
      .gitignore
  2. 85 0
      app/admin/controller/Enterprise.php
  3. 14 0
      app/admin/controller/EnterpriseChangeRecord.php
  4. 62 0
      app/admin/view/enterprise/goto_active_page.html
  5. 0 5
      app/admin/view/enterprise/goto_enterprise_page.html
  6. 198 0
      app/admin/view/enterprise_change_record/goto_enterprise_change_record_page.html
  7. 0 288
      app/admin/view/talent/dept_verify.html
  8. 1 0
      app/common/api/MenuApi.php
  9. 11 0
      app/common/api/TalentState.php
  10. 4 1
      app/common/api/UploadApi.php
  11. 86 0
      app/common/controller/Api.php
  12. 1 1
      app/common/controller/Auth.php
  13. 12 0
      app/common/model/CurrentcyFileType.php
  14. 12 0
      app/common/model/TalentCommonFile.php
  15. 6 3
      app/common/validate/Upload.php
  16. 194 141
      app/common/view/auth/register.html
  17. 142 13
      app/enterprise/controller/Api.php
  18. 1 1
      app/enterprise/controller/Talent.php
  19. 14 2
      app/enterprise/view/api/to_add.html
  20. 245 0
      app/enterprise/view/api/to_detail.html
  21. 181 0
      app/enterprise/view/api/to_update.html
  22. 325 0
      app/enterprise/view/base/add.html
  23. 238 0
      app/enterprise/view/base/first.html
  24. 143 0
      app/enterprise/view/base/index.html
  25. 303 0
      app/enterprise/view/base/second.html
  26. 333 0
      app/enterprise/view/base/view.html
  27. 291 233
      app/enterprise/view/talent/second.html
  28. 3 2
      public/static/js/register.js
  29. 1 1
      public/static/modular/enterprise/enterprise_active.js
  30. 2 2
      public/static/modular/enterprise/enterprise_list.js
  31. 12 10
      public/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail.js
  32. 4 4
      public/static/modular/gate/enterprise/enterprise_center.js
  33. 2 2
      public/static/modular/gate/enterprise/enterprise_change_detail.js
  34. 10 7
      public/static/modular/gate/enterprise/enterprise_change_edit.js
  35. 347 0
      public/static/modular/gate/talentBase/talentBase.js
  36. 673 0
      public/static/modular/gate/talentBase/talentInfo_ic_info.js
  37. 247 0
      public/static/modular/gate/talentBase/talentInfo_ic_select.js
  38. 981 0
      public/static/modular/gate/talentBase/talentInfo_info.js
  39. 312 0
      public/static/modular/gate/talentBase/talentInfo_library.js
  40. 138 0
      public/static/modular/gate/talentBase/talentInfo_select.js
  41. 24 0
      public/static/modular/gate/talentInfo/talentInfo_info.js
  42. 1 1
      public/static/modular/gate/talentLibrary/talentQuit/talentQuit_info.js
  43. BIN
      public/storage/talent/filetype/template/20220831/025c85f2fdd54a67afd3e9be0686e33f.xlsx
  44. BIN
      public/storage/talent/filetype/template/20220831/6bbb43b9765b3bcdfb039ffd15532d74.xlsx
  45. BIN
      public/storage/talent/photo/20220831/4aadef3a9995f979cbc7a597e3cbf271.gif
  46. BIN
      public/storage/talent_files/20220831/45a58f58b9f8efa4ee1fdd7b23a418bc.gif
  47. BIN
      public/storage/talent_files/20220831/52e3ed5cb90c61c240478e25bf41d891.gif
  48. BIN
      public/storage/talent_files/20220831/859d917485b4a6d20c8b83f9da8b1f78.gif
  49. BIN
      public/storage/talent_files/20220831/89d7637af039aef5d8c63c20feb939ea.gif
  50. BIN
      public/storage/talent_files/20220831/8fc4909e66d20e42a417ef45e837d9d4.gif
  51. BIN
      public/storage/talent_files/20220831/b3eac3a777603ca92129813c43bd8a76.png

+ 1 - 0
.gitignore

@@ -4,3 +4,4 @@
 .env
 /config/database.php
 /composer.lock
+storage

+ 85 - 0
app/admin/controller/Enterprise.php

@@ -178,6 +178,91 @@ class Enterprise extends AdminController {
         } catch (\Exception $e){
             return json(["msg" => $e->getMessage()]);
         }
+    }
+
+    public function GotoActivePage(){
+        $id = trim($this->request['id']);
+        $ep = EnterpriseApi::getOne($id);
+
+        return view("", ['ep' => $ep]);
+    }
+
+    public function setActive(){
+        if(!$id = trim($this->request['id'])){
+            return json(["msg" => 'ID不能为空!',"code" => 500]);
+        }
+        $ep = EnterpriseApi::getOne($id);
+        $active = $this->request['active'];
+        if($ep['active'] == null || ($ep['active'] != 1 && $ep['active'] != 2)){
+            return json(["msg" => '状态有误!',"code" => 500]);
+        }
+        if($ep['active'] == 2){
+            $msg = trim($this->request['activeMsg']);
+            if(empty($msg)){
+                return json(["msg" => '请填写拉黑/冻结原因!',"code" => 500]);
+            }
+            if(strlen($msg) > 100){
+                return json(["msg" => '拉黑/冻结原因 最多100个字符!',"code" => 500]);
+            }
+        }
+
+        $company = CompanyApi::getOne(session('user')['companyId']);
+        $ep->active = $active;
+        $ep->activeMsg = $msg;
+        $ep->updateUser = session('user')['uid'] . "";
+        $ep->updateTime = date('y-m-d H:i:s');
+
+    	try {
+            $ep->save();
+            //添加日志
+            TalentChecklog::create([
+                'id' => getStringId(),
+                'mainId' => $ep['id'],
+                'type' => 10,
+                'typeField' => null,
+                'active' => 1,
+                'state' => TalentState::RCRD_BASEIC_FROZEN,
+                'step' => 102,
+                'stateChange' => TalentState::stateEnum(10),
+                'description' => $msg,
+                'createTime' => date("Y-m-d H:i:s",time()),
+                'createUser' => session('user')['name']."({$company['name']})"
+            ]);
+
+            return json(["msg" => '操作成功!',"code" => 200]);
+		} catch (\Exception $e) {
+            return json(["msg" => $e->getMessage()]);
+        }
+    }
+
+    public function resetPassword(){
+        if(!$id = trim($this->request['id'])){
+            return json(["msg" => 'ID不能为空!',"code" => 500]);
+        }
+        $ep = EnterpriseApi::getOne($id);
+        if(!$ep){
+            return json(["msg" => '找不到该用户!',"code" => 500]);
+        }
+        $ep->password = hash("md5", 'JJrc@123');//默认密码
+        $ep->updateUser = session('user')['uid'] . "";
+        $ep->updateTime = date("y-m-d H:i:s");
+        $ep->save();
+
+        $company = CompanyApi::getOne(session('user')['companyId']);
+        TalentChecklog::create([
+            'id' => getStringId(),
+            'mainId' => $ep['id'],
+            'type' => 10,
+            'typeField' => null,
+            'active' => 1,
+            'state' => null,
+            'step' => 103,
+            'stateChange' => '重置密码',
+            'description' => '重置密码',
+            'createTime' => date("Y-m-d H:i:s",time()),
+            'createUser' => session('user')['name']."({$company['name']})"
+        ]);
+        return json(["msg" => '重置密码成功!',"code" => 200]);
 
     }
 }

+ 14 - 0
app/admin/controller/EnterpriseChangeRecord.php

@@ -0,0 +1,14 @@
+<?php
+
+namespace app\admin\controller;
+
+use app\admin\common\AdminController;
+
+class EnterpriseChangeRecord extends AdminController {
+
+
+    public function gotoEnterpriseChangeRecordPage(){
+
+        return view();
+    }
+}

+ 62 - 0
app/admin/view/enterprise/goto_active_page.html

@@ -0,0 +1,62 @@
+{extend name="layout/content"}
+{block name="content"}
+<div class="ibox float-e-margins">
+  <div class="ibox-content">
+    <form id="ep_active" class="form-horizontal">
+      <input type="text" id="id" value="{$ep.id}" style="display: none;" />
+      <div class="row">
+        <div class="col-sm-12">
+          <div class="rowGroup"  style="margin-bottom: 0px;">
+            <label class="col-sm-2 control-label">单位名称</label>
+            <div class="col-sm-10">
+              <input type="text" class="form-control" readonly="readonly" id="name" name="name" value="{$ep.name}"  />
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="hr-line-dashed"></div>
+      <div class="row">
+        <div class="col-sm-12">
+          <div class="rowGroup"  style="margin-bottom: 0px;">
+            <label class="col-sm-2 control-label">社会信用代码</label>
+            <div class="col-sm-10">
+              <input type="text" class="form-control" readonly="readonly" id="idCard" name="idCard" value="{$ep.idCard}"  />
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="hr-line-dashed"></div>
+      <div class="row">
+        <div class="col-sm-12">
+          <div class="rowGroup"  style="margin-bottom: 0px;">
+            <label class="col-sm-2 control-label"><span class="text-danger">*</span>账号状态</label>
+            <div class="col-sm-10">
+              <select class="form-control" id="active" name="active" >
+                <option value="">--- 请选择 ---</option>
+                <option value="1">账号有效</option>
+                <option value="2">拉黑/冻结</option>
+              </select>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="hr-line-dashed"></div>
+      <div class="row">
+        <div class="col-sm-12">
+          <div class="rowGroup"  style="margin-bottom: 0px;">
+            <label class="col-sm-2 control-label">冻结原因</label>
+            <div class="col-sm-10">
+              <textarea class="form-control" rows="3" id="activeMsg" name="activeMsg">{$ep.activeMsg}</textarea>
+            </div>
+          </div>
+        </div>
+      </div>
+    </form>
+  </div>
+</div>
+<input type="text" id="activeTemp" value="{$ep.active}" style="display: none;" />
+<!--<script src="${ctxPath}/static/modular/enterprise/enterprise_active.js"></script>-->
+<script type="text/javascript">
+  document.write('<script src="/static/modular/enterprise/enterprise_active.js?v='+(new Date()).getTime()+'"><\/script>');
+</script>
+{/block}

+ 0 - 5
app/admin/view/enterprise/goto_enterprise_page.html

@@ -154,11 +154,6 @@
                         <i class="fa fa-edit"></i>&nbsp;设置冻结
                     </button>
                     {/if}
-                    {if condition="chkCommission('/admin/enterprise/delEnterprise','/enterprise/delEnterprise')"}
-                    <button type="button" class="btn btn-sm btn-primary " onclick="Enterprise.delEnterprise()">
-                        <i class="fa fa-remove"></i>&nbsp;删除
-                    </button>
-                    {/if}
                     {if condition="chkCommission('/admin/enterprise/resetPassword','/enterprise/resetPassword')"}
                     <button type="button" class="btn btn-sm btn-primary " onclick="Enterprise.resetPassword()">
                         <i class="fa fa-edit"></i>&nbsp;重置密码

+ 198 - 0
app/admin/view/enterprise_change_record/goto_enterprise_change_record_page.html

@@ -0,0 +1,198 @@
+{extend name="layout/content"}
+{block name="content"}
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-title">
+                <h5>企业信息变更</h5>
+            </div>
+            <div class="ibox-content">
+                <div class="row">
+                    <input type="hidden" id="type" value="${type}">
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">原单位名称
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="oldName" placeholder=""/>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">原社会信用代码
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="oldIdCard" placeholder=""/>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">原法人代表
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="oldLegal" placeholder=""/>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    原所属镇街
+                                </button>
+                            </div>
+                            <select class="form-control" id="oldStreet">
+                                <option value="">请选择</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    原企业标签
+                                </button>
+                            </div>
+                            <select class="form-control" id="oldTalentType">
+                                <option value="">请选择</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    原行业领域
+                                </button>
+                            </div>
+                            <select class="form-control" id="oldIndustryField">
+                                <option value="">请选择</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">新单位名称
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="newName" placeholder=""/>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">新社会信用代码
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="newIdCard" placeholder=""/>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">新法人代表
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="newAgentName" placeholder=""/>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    新所属镇街
+                                </button>
+                            </div>
+                            <select class="form-control" id="newStreet">
+                                <option value="">请选择</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    新企业标签
+                                </button>
+                            </div>
+                            <select class="form-control" id="newTalentType">
+                                <option value="">请选择</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    新行业领域
+                                </button>
+                            </div>
+                            <select class="form-control" id="newIndustryField">
+                                <option value="">请选择</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    审核状态
+                                </button>
+                            </div>
+                            <select class="form-control" id="checkState">
+                                <option value=""></option>
+                                <option value="1">保存未提交</option>
+                                <option value="2">待审核</option>
+                                <option value="3">审核驳回</option>
+                                <option value="4">审核通过</option>
+                                <option value="5">重新提交</option>
+                            </select>
+                        </div>
+                    </div>
+                    <div class="col-sm-4">
+                        <button type="button" class="btn btn-sm btn-primary " onclick="EpChange.search()">
+                            <i class="fa fa-search"></i>&nbsp;搜索
+                        </button>
+                        <button type="button" class="btn btn-sm btn-primary " onclick="EpChange.reset()">
+                            <i class="fa fa-trash"></i>&nbsp;重置
+                        </button>
+                    </div>
+                </div>
+                <div class="hidden-xs" id="tableToolbar" role="group">
+                    {if
+                    condition="chkCommission('/admin/enterpriseChangeRecord/doExamine','/enterprisechangeRecord/doExamine')"}
+                    <button type="button" class="btn btn-sm btn-primary "
+                            onclick="EpChange.gotoEnterpriseChangeDetailPage()">
+                        <i class="fa fa-edit"></i>&nbsp;审核
+                    </button>
+                    {/if}
+                    {if
+                    condition="chkCommission('/admin/enterpriseChangeRecord/excelExport','/enterprisechangeRecord/excelExport')"}
+                    <button type="button" class="btn btn-sm btn-primary " onclick="EpChange.export()">
+                        <i class="fa fa-download"></i>&nbsp;导出
+                    </button>
+                    {/if}
+                </div>
+                <table id="table" 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>
+<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_list.js"></script>
+{/block}

+ 0 - 288
app/admin/view/talent/dept_verify.html

@@ -1,288 +0,0 @@
-{extend name="layout/content"}
-{block name="content"}
-<style type="text/css">
-    .layui-layer-btn .layui-layer-btn1 {
-        border-color: #009688;
-        background-color: #009688;
-        color: #fff;
-    }
-    ul li{
-        list-style: none;
-        display:inline-block;
-        margin-bottom: 5px;
-    }
-    #field ul li input{
-        vertical-align:middle;
-        margin-top:1px;
-    }
-</style>
-<div class="row">
-    <div class="col-sm-12">
-        <div class="ibox float-e-margins">
-            <div class="ibox-title">
-                <h5>人才认定申报 - 部门审核</h5>
-            </div>
-            <div class="ibox-content">
-                <div class="row row-lg">
-                    <div class="col-sm-12">
-                        <div class="row">
-                            <input type="hidden" id="type" value="${user.type}">
-                            <input type="hidden" id="process" value="3">
-                            <input type="hidden" id="title" value="部门审核">
-                            <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="idCard" 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>
-                        <div class="row highSearch" style="display: none">
-                            <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="provinceCode">
-                                    </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="politics">
-                                    </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="enterpriseId">
-                                    </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="industryField">
-                                    </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="source">
-                                    </select>
-                                </div>
-                            </div>
-                            <div class="col-sm-3">
-                                <div class="input-group input-group-sm">
-                                    <div class="input-group-btn">
-                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">申报年度
-                                        </button>
-                                    </div>
-                                    <input type="text" class="form-control" id="year" placeholder="">
-                                </div>                            </div>
-                            <div class="col-sm-3" style="display: none">
-                                <div class="input-group ">
-                                    <div class="input-group-btn">
-                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">公布入选月份
-                                        </button>
-                                    </div>
-                                    <input type="text"  class="form-control time" id="identifyMonth" name="identifyMonth"/>
-                                </div>
-                            </div>
-                        </div>
-                        <div class="row">
-                            <div class="col-sm-12" style="text-align: center">
-                                <button type="button" style="cursor:pointer;" id="openSearch" onclick="$('.highSearch,#closeSearch').show();
-                                        $(this).hide();" class="btn btn-sm btn-primary glyphicon glyphicon-eye-open" id="open-but">打开高级搜索</button>
-                                <button type="button" style="cursor:pointer;display: none;" id="closeSearch" onclick="$('#openSearch').show();
-                                        $('.highSearch').hide();
-                                        $(this).hide();"  class="btn btn-sm btn-danger glyphicon glyphicon-eye-close" id="close-but">关闭高级搜索</button>
-                                <button type="button" style="cursor:pointer;"  class="btn btn-sm btn-info  glyphicon glyphicon-search" onclick="TalentInfo.search()">搜索</button>
-                                <button type="button" style="cursor:pointer;"  class="btn btn-sm btn-warning glyphicon glyphicon-repeat" onclick="TalentInfo.reset()">重置</button>
-                            </div>
-                        </div>
-                        <div class="hidden-xs" id="TalentInfoTableToolbar" role="group">
-                            <if condition="chkCommission('/admin/talent/deptCheck','/talentInfo/depCheck')">
-                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.openCheckTalentInfo()" id="">
-                                    <i class="fa fa-check"></i>&nbsp;审核
-                                </button>
-                            </if>
-                            <if condition="chkCommission('/admin/talent/depExport','/talentInfo/depExport')">
-                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.showExportModal(1)" id="">
-                                    <i class="fa fa-file-excel-o"></i>&nbsp;导出
-                                </button>
-                            </if>
-                            <if condition="chkCommission('/admin/talent/depDownloadZip','/talentInfo/depDownload')">
-                                <button type="button" class="btn btn-sm btn-primary " onclick="TalentInfo.download()" id="">
-                                    <i class="fa fa-download"></i>&nbsp;下载
-                                </button>
-                            </if>
-                        </div>
-                        <table id="TalentInfoTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
-                            <thead>
-                                <tr>
-                                    <th data-field="selectItem" data-checkbox="true"></th>
-                                </tr>
-                            </thead>
-                        </table>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-<!--导出模态框-->
-<div class="modal fade " id="commonExportModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
-    <div class="modal-dialog modal-lg" role="document" style="min-width: 1000px">
-        <div class="modal-content animated flipInY">
-            <div class="modal-header">
-                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
-                <h4 class="modal-title" id="firstModalLabel">导出</h4>
-            </div>
-            <div class="modal-body">
-                <form id="exportForm" action="/talentInfoExport/publicExport" target="hiddenIframe" class="form-horizontal">
-                    <div class="form-group" id="field">
-                        <div id="field_info">
-                            <ul>
-                                <li style="width:24%"><input type="checkbox" value="year"><span>申报年度</span></li>
-                                <li style="width:24%"><input type="checkbox" value="name"><span>姓名</span></li>
-                                <li style="width:24%"><input type="checkbox" value="sexName"><span>性别</span></li>
-                                <li style="width:24%"><input type="checkbox" value="birthday"><span>出生日期</span></li>
-                                <li style="width:24%"><input type="checkbox" value="nationalityName"><span>国籍/地区</span></li>
-                                <li style="width:24%"><input type="checkbox" value="provinceName"><span>籍贯省</span></li>
-                                <li style="width:24%"><input type="checkbox" value="cityName"><span>籍贯市</span></li>
-                                <li style="width:24%"><input type="checkbox" value="countyName"><span>籍贯县</span></li>
-                                <li style="width:24%"><input type="checkbox" value="nationName"><span>民族</span></li>
-                                <li style="width:24%"><input type="checkbox" value="politicsName"><span>政治面貌</span></li>
-                                <li style="width:24%"><input type="checkbox" value="cardTypeName"><span>证件类型</span></li>
-                                <li style="width:24%"><input type="checkbox" value="idCard"><span>证件号码</span></li>
-                                <li style="width:24%"><input type="checkbox" value="firstInJJTime"><span>首次来晋工作时间</span></li>
-                                <li style="width:24%"><input type="checkbox" value="enterpriseName"><span>企业名称</span></li>
-                                <li style="width:24%"><input type="checkbox" value="industryFieldName"><span>产业领域</span></li>
-                                <li style="width:24%"><input type="checkbox" value="streetName"><span>所属镇街</span></li>
-                                <li style="width:24%"><input type="checkbox" value="sourceName"><span>申报来源</span></li>
-                                <li style="width:24%"><input type="checkbox" value="qzBatch"><span>入选名单批次</span></li>
-                                <li style="width:24%"><input type="checkbox" value="certificateStartTime"><span>泉州高层次人才证书发证日期</span></li>
-                                <li style="width:24%"><input type="checkbox" value="qzgccrcActiveTime"><span>泉州高层次人才证书的有效期</span></li>
-                                <li style="width:24%"><input type="checkbox" value="talentArrangeName"><span>人才层次</span></li>
-                                <li style="width:24%"><input type="checkbox" value="identifyConditionText"><span>认定条件</span></li>
-                                <li style="width:24%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>
-                                <li style="width:24%"><input type="checkbox" value="enterpriseTalentTypeName"><span>企业标签</span></li>
-                                <li style="width:24%"><input type="checkbox" value="letterTime"><span>首次来晋行政介绍信时间</span></li>
-                                <li style="width:24%"><input type="checkbox" value="introductionModeName"><span>引进方式</span></li>
-                                <li style="width:24%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>
-                                <li style="width:24%"><input type="checkbox" value="post"><span>职务</span></li>
-                                <li style="width:24%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>
-                                <li style="width:24%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>
-                                <li style="width:12%"><input type="checkbox" value="educationName"><span>最高学历</span></li>
-                                <li style="width:24%"><input type="checkbox" value="graduateSchool"><span>毕业院校)</span></li>
-                                <li style="width:24%"><input type="checkbox" value="major"><span>专业</span></li>
-                                <li style="width:24%"><input type="checkbox" value="title"><span>职称</span></li>
-                                <li style="width:24%"><input type="checkbox" value="studyAbroadName"><span>是否有留学经历</span></li>
-                                <li style="width:24%"><input type="checkbox" value="studyAbroadName"><span>留学毕业院校</span></li>
-                                <li style="width:24%"><input type="checkbox" value="studyAbroadName"><span>留学专业</span></li>
-                                <li style="width:24%"><input type="checkbox" value="phone"><span>手机号码</span></li>
-                                <li style="width:24%"><input type="checkbox" value="email"><span>电子邮箱</span></li>
-                                <li style="width:24%"><input type="checkbox" value="bank"><span>开户银行</span></li>
-                                <li style="width:24%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>
-                                <li style="width:24%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>
-                                <li style="width:24%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>
-                                <li style="width:24%"><input type="checkbox" value="certificateNO"><span>人才编号</span></li>
-                                <li style="width:24%"><input type="checkbox" value="firstSubmitTime"><span>首次确认提交时间</span></li>
-                                <li style="width:24%"><input type="checkbox" value="newSubmitTime"><span>最新确认提交时间</span></li>
-                                <li style="width:24%"><input type="checkbox" value="checkStateName"><span>审核状态</span></li>
-                                <li style="width:24%"><input type="checkbox" value="checkMsg"><span>审核意见</span></li>
-                            </ul>
-                        </div>
-                        <div class="form-group" style="text-align: center">
-                            <button type="button" class="btn btn-primary" onclick="TalentInfo.checkAll()">全选</button>
-                            <button type="button" class="btn btn-success" onclick="TalentInfo.unCheckAll()">反选</button>
-                        </div>
-                    </div>
-                </form>
-            </div>
-            <div class="modal-footer">
-                <button type="button" class="btn btn-primary" onclick="TalentInfo.export(1)">导出</button>
-                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
-            </div>
-        </div>
-    </div>
-</div>
-<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
-<!--<script src="${ctxPath}/static/modular/talentIdentify/talentInfo/talentInfo_first.js"></script>-->
-<!--<script src="${ctxPath}/static/modular/talentIdentify/talentInfo/talentInfo_common.js"></script>-->
-<script type="text/javascript">
-    document.write('<script src="/static/modular/talentIdentify/talentInfo/talentInfo_base.js?v=' + (new Date()).getTime() + '"><\/script>');
-    document.write('<script src="/static/modular/talentIdentify/talentInfo/talentInfo_common.js?v=' + (new Date()).getTime() + '"><\/script>');
-</script>
-{/block}

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

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

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

@@ -25,6 +25,17 @@ class TalentState {
     public const BASE_VERIFY_FAIL = -1; //条件验证失败
     public const FST_VERIFY_FAIL = -2; //初审失败
 
+    public const RCRD_BASIC_SAVE = -2;
+    public const RCRD_BASIC_NOTPASS = -1;
+    public const RCRD_BASIC_NEED = 1;
+    public const RCRD_BASIC_REJECT = 2;
+    public const RCRD_BASIC_PASS = 3;
+    public const RCRD_BASIC_UPREJECT = 4;
+    public const RCRD_BASEIC_SUBMIT = 8;
+    public const RCRD_BASEIC_RESUBMIT = 9;
+    public const RCRD_BASEIC_FROZEN = 10;
+    public const RCRD_BASEIC_CANCLE = 11;
+
     public static function stateEnum($code){
         switch ($code){
             case -2:

+ 4 - 1
app/common/api/UploadApi.php

@@ -57,7 +57,10 @@ class UploadApi {
                     $check = ['file' => $file];
                     break;
                 case 'hybrid':
-                    $check = ['file' => $file];
+                    $check = ['hybrid' => $file];
+                    break;
+                case 'system':
+                    $check = ['system' => $file];
                     break;
                 default:
                     $upload_result->code = 500;

+ 86 - 0
app/common/controller/Api.php

@@ -8,6 +8,9 @@ use think\facade\Db;
 use app\enterprise\api\TalentApi;
 use app\common\api\TalentLogApi;
 use app\common\api\DictApi;
+use app\common\model\CurrentcyFileType;
+use app\common\model\TalentCommonFile;
+use app\common\api\UploadApi;
 
 /**
  * 需要权限的公共方法放这
@@ -280,4 +283,87 @@ class Api extends BaseController {
         return json($list);
     }
 
+    public function listCurrencyFileType(){
+        $where = [
+            'type' => $this->request['type'],
+            'active' => 1
+        ];
+        $rows = CurrentcyFileType::where($where)->select();
+        return json(["rows" => $rows, 'total' => count($rows)]);
+    }
+
+    public function listTalentCommonFile(){
+        $where = [];
+        if(\StrUtil::isNotEmpAndNull($this->request['mainId'])){
+            $where[] = ['mainId','=',$this->request['mainId']];
+        }
+        if(\StrUtil::isNotEmpAndNull($this->request['typeId'])){
+            $where[] = ['typeId','=',$this->request['typeId']];
+        }
+        $res = TalentCommonFile::where($where)->order('sn')->select();
+        if($res){
+            foreach ($res as $k => &$v){
+                $v['url'] = "/storage/" . $v['url'];
+            }
+        }
+        return json($res);
+    }
+
+    public function addTalentCommonFile(){
+        $backName = \StrUtil::getRequestDecodeParam($this->request,'backName');
+        $id = \StrUtil::getRequestDecodeParam($this->request, "fileId");
+        $mainId = \StrUtil::getRequestDecodeParam($this->request, "mainId");
+        $typeId = \StrUtil::getRequestDecodeParam($this->request, "typeId");
+        $index = \StrUtil::getRequestDecodeParam($this->request, "index");
+
+        if($backName == "EpChangeEdit.callBack"){
+            $type = 1;
+            $error = "文件格式不正确,只能上传图片";
+        } else {
+            $type = 4;
+            $error = "文件格式不正确,只能上传pdf和图片";
+        }
+        $uploadapi = new UploadApi();
+        $file_check_res = $uploadapi->uploadOne($this->request->file('fileUrl'),'system');
+        if($file_check_res->code == 500){
+            return \StrUtil::back($file_check_res,"Register.epCallBack");
+        }
+
+        $file_data = [
+            'id' => getStringId(),
+            'mainId' => $mainId,
+            'typeId' => $typeId,
+            'orignName' => $this->request->file('fileUrl')->getOriginalName(),
+            'url' => $file_check_res->filepath
+        ];
+
+        if(\StrUtil::isEmpOrNull($id)){
+            $tc = TalentCommonFile::where('mainId',$mainId)->where('typeId',$typeId)->order('sn','desc')->findOrEmpty();
+            if($tc){
+                $file_data['sn'] = $tc['sn'] + 1;
+            }else{
+                $file_data['sn'] = 1;
+            }
+            $file_data['createTime'] = date("y-m-d H:i:s");
+            TalentCommonFile::create($file_data);
+            $response_object = new \StdClass();
+            $response_object->code = 200;
+            $response_object->msg = "附件上传成功!";
+            $response_object->obj = $index;
+            return \StrUtil::back($response_object, $backName);
+        } else {
+            $tf = TalentCommonFile::findOrEmpty($id);
+            $tf->originalName = $file_data['orignName'];
+            $tf->updateTime = date("y-m-d H:i:s");
+            $tf->url = $file_check_res->filepath;
+            $tf->save();
+            $response_object = new \StdClass();
+            $response_object->code = 200;
+            $response_object->msg = "附件修改成功!";
+            $response_object->obj = $index;
+            return \StrUtil::back($response_object, $backName);
+        }
+    }
+
+
 }

+ 1 - 1
app/common/controller/Auth.php

@@ -6,7 +6,7 @@ use app\BaseController;
 use app\common\api\ChuanglanSmsApi;
 use app\common\model\MessageRecord;
 use app\common\model\TalentChecklog;
-use think\Facade\Cache;
+use think\facade\Cache;
 use app\common\validate\Enterprise;
 use think\exception\ValidateException;
 use think\facade\Request;

+ 12 - 0
app/common/model/CurrentcyFileType.php

@@ -0,0 +1,12 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class CurrentcyFileType extends Model{
+
+    protected $table = "new_currency_filetype";
+
+
+}

+ 12 - 0
app/common/model/TalentCommonFile.php

@@ -0,0 +1,12 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class TalentCommonFile extends Model{
+
+    protected $table = "new_talent_common_file";
+
+
+}

+ 6 - 3
app/common/validate/Upload.php

@@ -8,8 +8,8 @@ class Upload extends Validate
     protected $rule = [
         'image' => ['fileExt' => 'jpg,png,gif,jpeg', 'fileSize' => 5 * 1024 * 1024, 'fileMime' => 'image/jpg,image/png,image/gif,image/jpeg'],
         'file' => ['fileExt' => 'pdf,doc,docx,xlsx,xls,csv', 'fileSize' => 10 * 1024 * 1024,'fileMime' => 'application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
-        'hybrid' => ['fileExt' => 'zip,rar,7z', 'fileSize' => 50 * 1024 * 1024, 'fileMime' => 'application/zip,application/x-rar-compressed,application/x-7z-compressed']
-
+        'hybrid' => ['fileExt' => 'zip,rar,7z', 'fileSize' => 50 * 1024 * 1024, 'fileMime' => 'application/zip,application/x-rar-compressed,application/x-7z-compressed'],
+        'system' => ['fileExt' => 'jpg,png,gif,jpeg,pdf', 'fileSize' => 10 * 1024 * 1024, 'fileMime' => 'image/jpg,image/png,image/gif,image/jpeg,application/pdf']
     ];
 
     protected $message = [
@@ -21,6 +21,9 @@ class Upload extends Validate
         'file.fileMime' => '文件类型不支持',
         'hybrid.fileExt'=> '文件的格式支持:zip,rar,7z',
         'hybrid.fileSize' => '文件大小不能大于50兆',
-        'hybrid.fileMime' => '文件类型不支持'
+        'hybrid.fileMime' => '文件类型不支持',
+        'system.fileExt' => '文件的格式仅支持:png,jpg,jpeg,gif,pdf',
+        'system.fileSize' => '文件大小不能大于10兆',
+        'system.fileMime' => '文件类型不支持'
     ];
 }

+ 194 - 141
app/common/view/auth/register.html

@@ -1,6 +1,11 @@
 {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;
@@ -20,155 +25,203 @@
                         <div class="tab-content">
                             <div id="tab-1" class="tab-pane active">
                                 <br/>
-                                <form id="ep_form" action="/common/auth/register" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe">
-                                    <div class="col-sm-12 form-group-sm">
-                                        <input type="hidden" id="source" name="source" value="1">
-                                        <div class="row">
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>账号</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input type="text" autocomplete="off" class="form-control" id="username" name="username" placeholder="请填写账号,用于登陆" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>密码</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input type="password" autocomplete="off" class="form-control" id="password" name="password" placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>重复密码</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="password" class="form-control" id="re_password" name="re_password" placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位名称</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="name" name="name" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>社会信用代码</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="idCard" name="idCard" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>申报类型</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <select class="form-control" id="type" name="type" onchange="Register.typeChange()">
-                                                        <option value="">请选择</option>
-                                                        <option value="1">晋江市优秀人才</option>
-                                                        <option value="2">集成电路优秀人才</option>
-                                                        <!--	<option value="3">海峡计划团队</option>  -->
-                                                    </select>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  style="display: none">
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>产业领域</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <select autocomplete="off" type="text" class="form-control" id="industryFieldNew" name="industryFieldNew" onchange="Register.industryChange()"></select>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  style="display: none">
-                                                <label class="col-sm-2 control-label spacing">行业领域</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <select class="form-control" id="industryFieldOld" name="industryFieldOld">
-                                                    </select>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  style="display: none">
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位标签</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <select class="form-control" id="enterpriseTag" name="enterpriseTag">
-                                                    </select>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位类型</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <select class="form-control" id="enterpriseType" name="enterpriseType">
-                                                    </select>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="agentName" name="agentName" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup form-inline" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人手机号</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="agentPhone" name="agentPhone"  style="width: 60%" />
-                                                    <button id="enterprise_sms_btn" style="margin-bottom: 0px;" onclick="Register.getEnterpriseSms()" type="button" class="btn btn-xs btn-info" style="width: 38%">获取验证码</button>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>手机验证码</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="verificationCode" name="verificationCode" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>法人代表</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="legal" name="legal" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>所属街道</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <select class="form-control" id="street" name="street"></select>
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位地址</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="address" name="address" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup" >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位电话</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="ephone" name="ephone" />
+                                <div class="panel-body" >
+                                    <div class="panel panel-default">
+                                        <form id="ep_form1" action="/common/auth/register" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe">
+                                            <input type="hidden" id="source" name="source" value="1">
+                                            <div class="panel-heading">单位基础信息</div>
+                                            <div class="panel-body">
+                                                <div class="col-sm-12 form-group-sm">
+                                                    <div class="row">
+                                                        <div class="rowGroup" >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>账号</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input type="text" autocomplete="off" class="form-control" id="username" name="username" placeholder="请填写账号,用于登陆" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup" >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>密码</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input type="password" autocomplete="off" class="form-control" id="password" name="password" placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>重复密码</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="password" class="form-control" id="re_password" name="re_password" placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
+                                                            </div>
+                                                        </div>
+                                                    </div>
+                                                    <div class="row">
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>单位名称</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="name" name="name" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>社会信用代码</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="idCard" name="idCard" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>法人代表</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="legal" name="legal" />
+                                                            </div>
+                                                        </div>
+                                                    </div>
+                                                    <div class="row">
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>所属街道</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <select class="form-control" id="street" name="street"></select>
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup" >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>单位地址</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="address" name="address" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup" >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>单位电话</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="ephone" name="ephone" />
+                                                            </div>
+                                                        </div>
+                                                    </div>
+                                                    <div class="row">
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>企业银行账号</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="bankCard" name="bankCard" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>企业开户银行</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="bank" name="bank" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>企业开户银行网点</label>
+                                                            <div class="col-sm-3 spacing">
+                                                                <input autocomplete="off" type="text" class="form-control" id="bankNetwork" name="bankNetwork" />
+                                                            </div>
+                                                        </div>
+                                                    </div>
+                                                    <div class="row">
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>营业执照</label>
+                                                            <div class="col-sm-4 spacing">
+                                                                <img id="photoImg" src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
+                                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="imgurl" name="imgurl" />
+                                                            </div>
+                                                        </div>
+                                                        <div class="rowGroup"  >
+                                                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>开户许可证</label>
+                                                            <div class="col-sm-4 spacing">
+                                                                <img id="photoImg" src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
+                                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="imgurl" name="imgurl" />
+                                                            </div>
+                                                        </div>
+                                                    </div>
                                                 </div>
                                             </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>电子邮箱</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="agentEmail" name="agentEmail" />
+                                            <div class="panel-heading">申报基础信息</div>
+                                            <div class="panel-body">
+                                                <div class="row">
+                                                    <div class="rowGroup" >
+                                                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>申报类型</label>
+                                                        <div class="col-sm-4 spacing">
+                                                            <select class="form-control" id="type" name="type" onchange="Register.typeChange()">
+                                                                <option value="">请选择</option>
+                                                                <option value="1">晋江市现代产业体系人才</option>
+                                                                <option value="2">集成电路优秀人才</option>
+                                                                <!--	<option value="3">海峡计划团队</option>  -->
+                                                            </select>
+                                                        </div>
+                                                    </div>
                                                 </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业银行账号</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="bankCard" name="bankCard" />
-                                                </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业开户银行</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="bank" name="bank" />
+                                                <div class="row" id="typeGroup" style="display: none">
+                                                    <div class="rowGroup">
+                                                        <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>产业领域</label>
+                                                        <div class="col-sm-2 spacing">
+                                                            <select autocomplete="off" type="text" class="form-control" id="industryFieldNew" name="industryFieldNew" onchange="Register.industryChange()"></select>
+                                                        </div>
+                                                    </div>
+                                                    <div class="rowGroup">
+                                                        <label class="col-sm-1 control-label spacing">行业领域</label>
+                                                        <div class="col-sm-2 spacing">
+                                                            <select class="form-control" id="industryFieldOld" name="industryFieldOld">
+                                                            </select>
+                                                        </div>
+                                                    </div>
+                                                    <div class="rowGroup">
+                                                        <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>单位标签</label>
+                                                        <div class="col-sm-2 spacing">
+                                                            <select class="form-control" id="enterpriseTag" name="enterpriseTag">
+                                                            </select>
+                                                        </div>
+                                                    </div>
+                                                    <div class="rowGroup">
+                                                        <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>单位类型</label>
+                                                        <div class="col-sm-2 spacing">
+                                                            <select class="form-control" id="enterpriseType" name="enterpriseType">
+                                                            </select>
+                                                        </div>
+                                                    </div>
+                                                    <div class="rowGroup"  >
+                                                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>行业领域上传材料 </label>
+                                                        <div class="col-sm-4 spacing">
+                                                            <img id="photoImg" src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
+                                                            <input style="display: none" autocomplete="off" type="file" class="form-control" id="imgurl" name="imgurl" />
+                                                        </div>
+                                                    </div>
                                                 </div>
+
                                             </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业开户银行网点</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <input autocomplete="off" type="text" class="form-control" id="bankNetwork" name="bankNetwork" />
+                                            <div class="panel-heading">联系信息</div>
+                                            <div class="panel-body">
+                                                <div class="row">
+                                                    <div class="rowGroup" >
+                                                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人</label>
+                                                        <div class="col-sm-4 spacing">
+                                                            <input autocomplete="off" type="text" class="form-control" id="agentName" name="agentName" />
+                                                        </div>
+                                                    </div>
+                                                    <div class="rowGroup"  >
+                                                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>电子邮箱</label>
+                                                        <div class="col-sm-4 spacing">
+                                                            <input autocomplete="off" type="text" class="form-control" id="agentEmail" name="agentEmail" />
+                                                        </div>
+                                                    </div>
                                                 </div>
-                                            </div>
-                                            <div class="rowGroup"  >
-                                                <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>附件上传</label>
-                                                <div class="col-sm-4 spacing">
-                                                    <img id="photoImg" src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
-                                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="imgurl" name="imgurl" />
+                                                <div class="row">
+                                                    <div class="rowGroup form-inline" >
+                                                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人手机号</label>
+                                                        <div class="col-sm-4 spacing">
+                                                            <input autocomplete="off" type="text" class="form-control" id="agentPhone" name="agentPhone"  style="width: 60%" />
+                                                            <button id="enterprise_sms_btn" style="margin-bottom: 0px;" onclick="Register.getEnterpriseSms()" type="button" class="btn btn-xs btn-info" style="width: 38%">获取验证码</button>
+                                                        </div>
+                                                    </div>
+                                                    <div class="rowGroup"  >
+                                                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>手机验证码</label>
+                                                        <div class="col-sm-4 spacing">
+                                                            <input autocomplete="off" type="text" class="form-control" id="verificationCode" name="verificationCode" />
+                                                        </div>
+                                                    </div>
                                                 </div>
                                             </div>
-                                        </div>
+
+                                        </form>
+
                                     </div>
-                                </form>
+
+                                </div>
+
                             </div>
                             <div id="tab-2" class="tab-pane">
                                 <input type="hidden" id="ps_source"  value="1">
@@ -265,6 +318,6 @@
 </div>
 <iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
 
-<script src="/static/js/register.js?v=7"></script>
+<script src="/static/js/register.js?v=9"></script>
 
 {/block}

+ 142 - 13
app/enterprise/controller/Api.php

@@ -4,7 +4,9 @@ namespace app\enterprise\controller;
 
 use app\admin\model\Enterprise;
 use app\common\api\DictApi;
+use app\common\model\CurrentcyFileType;
 use app\common\model\TalentChecklog;
+use app\common\model\TalentCommonFile;
 use app\enterprise\model\EnterpriseRecord;
 use app\enterprise\common\EnterpriseController;
 use app\Request;
@@ -20,12 +22,22 @@ class Api extends EnterpriseController {
 
         $list = EnterpriseRecord::where('mainId',session("user")["uid"])->limit($offset, $limit)->order('createTime ' . $order)->select()->toArray();
         $count = count($list);
+        if($count > 0){
+            $streetList = DictApi::selectByParentCode('street');
+            $typeList = DictApi::selectByParentCode('enterprise_type');
+            $industryFieldNew = DictApi::selectByParentCode('industry_field');
+            foreach ($list as $k => &$v){
+                $v['newIndustryFieldNewName'] = $industryFieldNew[$v['newIndustryFieldNew']];
+                $v['newEnterpriseType'] = $typeList[$v['newEnterpriseType']];
+                $v['newStreetName'] = $streetList[$v['newStreet']];
+            }
+        }
 
         return json(["total" => $count, "rows" => $list]);
     }
 
     public function findUnfinishedChangeRecord(){
-        return EnterpriseRecord::where('mainId',session("user")["uid"])->where('checkState',4)->select()->toArray();
+        return EnterpriseRecord::where('mainId',session("user")["uid"])->where('checkState','<>', 4)->select()->toArray();
     }
 
     public function toAdd()
@@ -85,6 +97,7 @@ class Api extends EnterpriseController {
             'address' => \StrUtil::getRequestDecodeParam($this->request,'newAddress'),//地址
             'type' => intval($this->request['type']),
             'enterpriseTag' => \StrUtil::getRequestDecodeParam($this->request,'newEnterpriseTag'),//单位标签
+            'enterpriseType' => \StrUtil::getRequestDecodeParam($this->request,'newEnterpriseType'),//单位类型
             'agentEmail' => \StrUtil::getRequestDecodeParam($this->request,'newAgentEmail'),//邮箱
             'ephone' => \StrUtil::getRequestDecodeParam($this->request,'newEphone'),//单位电话
             'industryFieldNew' => \StrUtil::getRequestDecodeParam($this->request,'newIndustryFieldNew'),//产业领域
@@ -98,8 +111,9 @@ class Api extends EnterpriseController {
             validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
             $ep = Enterprise::where('id',session("user")["uid"])->find();
             $record_id = \StrUtil::getRequestDecodeParam($this->request,'id');
-            if($record_id){
+            if(!$record_id){
                 $record_data = [
+                    'id' => getStringId(),
                     'mainId' => $data['id'],
                     'type' => $data['type'],
                     'oldName' => $ep['name'],
@@ -114,6 +128,7 @@ class Api extends EnterpriseController {
                     'oldAgentEmail' => $ep['agentEmail'],
                     'oldAgentPhone' => $ep['agentPhone'],
                     'oldEnterpriseTag' => $ep['enterpriseTag'],
+                    'oldEnterpriseType' => $ep['enterpriseType'],
                     'oldBankCard' => $ep['bankCard'],
                     'oldBank' => $ep['bank'],
                     'oldBankNetwork' => $ep['bankNetwork'],
@@ -129,6 +144,7 @@ class Api extends EnterpriseController {
                     'newAgentEmail' => $data['agentEmail'],
                     'newAgentPhone' => $data['agentPhone'],
                     'newEnterpriseTag' => $data['enterpriseTag'],
+                    'newEnterpriseType' => $data['enterpriseType'],
                     'newBankCard' => $data['bankCard'],
                     'newBank' => $data['bank'],
                     'newBankNetwork' => $data['bankNetwork'],
@@ -137,25 +153,138 @@ class Api extends EnterpriseController {
                     'createUser' => session("user")["uid"]
                 ];
                 EnterpriseRecord::create($record_data);
-            }
 
-            $log = [
-                'type' => 10,
-                'active' => 1,
-                'state' => 1,
-                'step' => 100,
-                'stateChange' => '保存未提交',
-                'createTime' => date("y-m-d H:i:s",time()),
-                'createUser' => '用户'
-            ];
+                $log = [
+                    'id' => getStringId(),
+                    'mainId' => $record_data['id'],
+                    'type' => 10,
+                    'active' => 1,
+                    'state' => 1,
+                    'step' => 100,
+                    'stateChange' => '保存未提交',
+                    'description' => '企业信息变更记录添加成功',
+                    'createTime' => date("y-m-d H:i:s",time()),
+                    'createUser' => '用户'
+                ];
+                $res = ['msg' => '添加成功', 'code' => 200, 'obj' => $record_data];
+            } else {
+                $record = EnterpriseRecord::find($record_id);
+                $record->name = htmlspecialchars($data['name']);
+                $record->updateTime = date("y-m-d H:i:s");
+                $record->updateUser = session("user")["uid"];
+                $record->save();
 
+                $log = [
+                    'id' => getStringId(),
+                    'mainId' => '',
+                    'type' => 10,
+                    'active' => 1,
+                    'state' => 1,
+                    'step' => 100,
+                    'stateChange' => '保存未提交',
+                    'description' => '企业信息变更记录修改成功',
+                    'createTime' => date("y-m-d H:i:s",time()),
+                    'createUser' => '用户'
+                ];
+
+                $res = ['msg' => '修改成功', 'code' => 200, 'obj' => $record];
+            }
 
+            TalentChecklog::create($log);
 
+            return json($res);
         } catch (ValidateException $e){
             $error = $e->getError();
             return json(["msg" => array_pop($error)],500);
         }
-        dd($this->request->post());
 
     }
+
+    public function toUpdate(){
+        $id = trim($this->request['id']);
+        $ecr = EnterpriseRecord::findOrEmpty($id);
+
+        return view("", ['ecr' => $ecr]);
+    }
+
+    public function submitToCheck(){
+        $id = trim($this->request->post('id'));
+        if(!$id){
+            return json(['msg' => '记录为空', 'code' => 500]);
+        }
+        $obj = EnterpriseRecord::find($id);
+
+        if(!$obj){
+            return json(['msg' => '提交审核失败,请先填写基础信息', 'code' => 500]);
+        }
+
+        if($obj['checkState'] != 1 && $obj['checkState'] != 3){
+            return json(['msg' => '不能重复提交审核', 'code' => 500]);
+        }
+
+        $list = CurrentcyFileType::where('type','enterpriseChange')->where('active',1)->select();
+        if(!$list || count($list) <= 0){
+            return json(['msg' => '缺少附件', 'code' => 500]);
+        }
+        $error_msg = "";
+        foreach ($list as $k => $v){
+            if($v['must'] == 1){
+                $count = TalentCommonFile::where('mainId',$id)->where('typeId',$v['id'])->count();
+                if($count == 0){
+                    if(strlen($error_msg) == 0){
+                        $error_msg = "以下为必传附件:";
+                    }
+                    $error_msg .= $v['name'] . ";";
+                }
+            }
+        }
+        if(strlen($error_msg) > 0){
+            return json(['msg' => $error_msg, 'code' => 500]);
+        }
+        if($obj['checkState'] == 3){
+            $obj['checkState'] = 5;
+            $state = 9;
+        }else{
+            $obj['checkState'] = 2;
+        }
+        $obj->save();
+
+        $log = [
+            'id' => getStringId(),
+            'mainId' => $id,
+            'type' => 10,
+            'active' => 1,
+            'state' => $state,
+            'step' => 100,
+            'stateChange' => "<span class='label'>待提交</span>-><span class='label label-success'>待审核</span>" ,
+            'description' => '提交审核',
+            'createTime' => date("y-m-d H:i:s",time()),
+            'createUser' => '用户'
+        ];
+        TalentChecklog::create($log);
+        return json(['msg' => '提交审核成功', 'code' => 200, 'obj' => 1]);
+    }
+
+    public function toDetail(){
+        $id = trim($this->request['id']);
+        if(!$id){
+            return json(['msg' => '记录为空', 'code' => 500]);
+        }
+        $ecr = EnterpriseRecord::find($id);
+        $streetList = DictApi::selectByParentCode('street');
+        $tagList = DictApi::selectByParentCode('enterprise_tag');
+        $typeList = DictApi::selectByParentCode('enterprise_type');
+        $industryFieldNew = DictApi::selectByParentCode('industry_field');
+
+        $ecr['oldStreetName'] = $streetList[$ecr['oldStreet']];
+        $ecr['newStreetName'] = $streetList[$ecr['newStreet']];
+        $ecr['oldEnterpriseTagName'] = $tagList[$ecr['oldEnterpriseTag']];
+        $ecr['newEnterpriseTagName'] = $tagList[$ecr['newEnterpriseTag']];
+        $ecr['oldEnterpriseTypeName'] = $typeList[$ecr['oldEnterpriseType']];
+        $ecr['newEnterpriseTypeName'] = $typeList[$ecr['newEnterpriseType']];
+        $ecr['oldIndustryFieldNewName'] = $industryFieldNew[$ecr['oldIndustryFieldNew']];
+        $ecr['newIndustryFieldNewName'] = $industryFieldNew[$ecr['newIndustryFieldNew']];
+
+        return view("",['ecr' => $ecr]);
+    }
 }

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

@@ -326,7 +326,7 @@ class Talent extends EnterpriseController {
         return json(["msg" => "删除成功"]);
     }
 
-    static private function chkIsOwner($id, $uid) {
+    static public function chkIsOwner($id, $uid) {
         $where[] = ["id", "=", $id];
         $where[] = ["enterprise_id", "=", $uid];
         $info = TalentModel::where($where)->findOrEmpty()->toArray();

+ 14 - 2
app/enterprise/view/api/to_add.html

@@ -77,6 +77,12 @@
                           <select type="text" class="form-control" id="newEnterpriseTag" name="newEnterpriseTag" value="{$ecr.newEnterpriseTag}"></select>
                         </div>
                       </div>
+                      <div class="rowGroup"  style="display: none">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位类型</label>
+                        <div class="col-sm-4 spacing">
+                          <select type="text" class="form-control" id="newEnterpriseType" name="newEnterpriseType" value="{$ecr.newEnterpriseType}"></select>
+                        </div>
+                      </div>
                       <div class="rowGroup"  style="margin-bottom: 0px;">
                         <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>法人代表</label>
                         <div class="col-sm-4 spacing">
@@ -143,9 +149,15 @@
               </div>
             </div>
             <div id="tab-2" class="tab-pane ">
-              <#table id="fileTable" />
+              <table id="fileTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                <thead>
+                <tr>
+                  <th data-field="selectItem" data-checkbox="true"></th>
+                </tr>
+                </thead>
+              </table>
               <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
-              <form id="uploadForm" action="${ctxPath}/api/talentCommonFile/addTalentCommonFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
+              <form id="uploadForm" action="/api/talentCommonFile/addTalentCommonFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
                 <input type="hidden" name="backName" value="EpChangeEdit.callBack">
                 <input type='hidden' id="fileId" name="fileId" >
                 <input type='file' id="upload_file" name="fileUrl" style='display: none'>

+ 245 - 0
app/enterprise/view/api/to_detail.html

@@ -0,0 +1,245 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+  .upload-btn{
+    position: relative;
+    display: inline-block;
+    cursor: pointer;
+    background: #1ab394;
+    padding: 6px 12px;
+    color: #fff;
+    text-align: center;
+    border-radius: 3px;
+    overflow: hidden;
+    font-size: 14px;
+    font-weight: 400;
+  }
+  .spacing {
+    margin-bottom: 10px;
+    padding-right:4px;
+    padding-left: 4px;
+  }
+  .imgs li{
+    list-style: none;
+    float: left;
+    border: 1px solid #d8d1d1;
+    text-align: center;
+    height: 30px;
+  }
+</style>
+<div class="ibox float-e-margins">
+  <div class="ibox-content" >
+    <div class="form-horizontal">
+      <div class="row">
+        <div class="col-sm-12" >
+          <div class="tabs-container" >
+            <ul class="nav nav-tabs">
+              <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">1.基本信息</a></li>
+              <li id="fileLi" class=""><a data-toggle="tab" href="#tab-2" onclick="ecre.initFileTable()"  aria-expanded="false">2.附件上传</a></li>
+            </ul>
+          </div>
+          <div class="tab-content">
+            <div id="tab-1" class="tab-pane active">
+              <div class="panel-body">
+                <div class="panel panel-default">
+                  <div class="panel-heading" onclick="$(this).next().toggle()">变更前企业信息</div>
+                  <div class="panel-body">
+                    <form id="ecr_form1" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+                      <input type="text" class="form-control" id="id" name="id" value="{$ecr.id}" style="display: none;"/>
+                      <input type="text" class="form-control" id="type" name="type" value="{$ecr.type}" style="display: none;"/>
+                      <input style="display: none;" type="text" class="form-control" id="checkState" name="checkState" value="{$ecr.checkState}"/>
+                      <div class="col-sm-12 ">
+                        <div class="row">
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位名称</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldName" name="oldName" value="{$ecr.oldName}" readonly disabled/>
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>社会信用代码</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldIdCard" name="oldIdCard" value="{$ecr.oldIdCard}" readonly disabled/>
+                            </div>
+                          </div>
+                          <div class="rowGroup" style="display: none">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>产业领域</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldIndustryFieldNew" name="oldIndustryFieldNew" value="{$ecr.oldIndustryFieldNewName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup" style="display: none">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>行业领域</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldIndustryFieldOld" name="oldIndustryFieldOld" value="{$ecr.oldIndustryFieldOld}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="display: none">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位标签</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldEnterpriseTag" name="oldEnterpriseTag" value="{$ecr.oldEnterpriseTagName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="display: none">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位类型</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldEnterpriseType" name="oldEnterpriseType" value="{$ecr.oldEnterpriseTypeName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>法人代表</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldLegal" name="oldLegal" value="{$ecr.oldLegal}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>所属街道</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldStreet" name="oldStreet" value="{$ecr.oldStreetName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位地址</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldAddress" name="oldAddress" value="{$ecr.oldAddress}" readonly disabled/>
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位电话</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldEphone" name="oldEphone" value="{$ecr.oldEphone}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldAgentName" name="oldAgentName" value="{$ecr.oldAgentName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人电话</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldAgentPhone" name="oldAgentPhone" value="{$ecr.oldAgentPhone}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>电子邮箱</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="oldAgentEmail" name="oldAgentEmail" value="{$ecr.oldAgentEmail}" readonly disabled />
+                            </div>
+                          </div>
+                        </div>
+                      </div>
+                    </form>
+                  </div>
+                </div>
+                <div class="panel panel-default">
+                  <div class="panel-heading" onclick="$(this).next().toggle()">变更后企业信息</div>
+                  <div class="panel-body">
+                    <form id="ecr_form2" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+                      <div class="col-sm-12 ">
+                        <div class="row">
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位名称</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newName" name="newName" value="{$ecr.newName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>社会信用代码</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newIdCard" name="newIdCard" value="{$ecr.newIdCard}" readonly disabled/>
+                            </div>
+                          </div>
+                          <div class="rowGroup" >
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>产业领域</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newIndustryFieldNew" name="newIndustryFieldNew" value="{$ecr.newIndustryFieldNewName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup" >
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>行业领域</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newIndustryFieldOld" name="newIndustryFieldOld" value="{$ecr.newIndustryFieldOldName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="display: none">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位标签</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newEnterpriseTag" name="newEnterpriseTag" value="{$ecr.newEnterpriseTagName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="display: none">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位类型</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newEnterpriseType" name="newEnterpriseType" value="{$ecr.newEnterpriseTypeName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>法人代表</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newLegal" name="newLegal" value="{$ecr.newLegal}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>所属街道</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newStreet" name="newStreet" value="{$ecr.newStreetName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位地址</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newAddress" name="newAddress" value="{$ecr.newAddress}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位电话</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newEphone" name="newEphone" value="{$ecr.newEphone}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newAgentName" name="newAgentName" value="{$ecr.newAgentName}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人电话</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newAgentPhone" name="newAgentPhone" value="{$ecr.newAgentPhone}" readonly disabled />
+                            </div>
+                          </div>
+                          <div class="rowGroup"  style="margin-bottom: 0px;">
+                            <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>电子邮箱</label>
+                            <div class="col-sm-4 spacing">
+                              <input type="text" class="form-control" id="newAgentEmail" name="newAgentEmail" value="{$ecr.newAgentEmail}" readonly disabled />
+                            </div>
+                          </div>
+                        </div>
+                      </div>
+                    </form>
+                  </div>
+                </div>
+              </div>
+            </div>
+            <div id="tab-2" class="tab-pane ">
+              <table id="fileTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                <thead>
+                <tr>
+                  <th data-field="selectItem" data-checkbox="true"></th>
+                </tr>
+                </thead>
+              </table>
+              <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail.js?v=4"></script>
+{/block}

+ 181 - 0
app/enterprise/view/api/to_update.html

@@ -0,0 +1,181 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+  .upload-btn{
+    position: relative;
+    display: inline-block;
+    cursor: pointer;
+    background: #1ab394;
+    padding: 6px 12px;
+    color: #fff;
+    text-align: center;
+    border-radius: 3px;
+    overflow: hidden;
+    font-size: 14px;
+    font-weight: 400;
+  }
+  .spacing {
+    margin-bottom: 10px;
+    padding-right:4px;
+    padding-left: 4px;
+  }
+  .imgs li{
+    list-style: none;
+    float: left;
+    border: 1px solid #d8d1d1;
+    text-align: center;
+    height: 30px;
+  }
+</style>
+<div class="ibox float-e-margins">
+  <div class="ibox-content" style="height: 450px;">
+    <div class="form-horizontal">
+      <div class="row">
+        <div class="col-sm-12" >
+          <div class="tabs-container" >
+            <ul class="nav nav-tabs">
+              <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">1.基本信息</a></li>
+              <li id="fileLi" class=""><a data-toggle="tab" href="#tab-2" onclick="EpChangeEdit.initFileTable()"  aria-expanded="false">2.附件上传</a></li>
+            </ul>
+          </div>
+          <div class="tab-content">
+            <div id="tab-1" class="tab-pane active">
+              <div class="panel-body">
+                <form id="ecr_form" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+                  <input type="text" class="form-control" id="enterprise_id" name="enterprise_id" value="{$ecr.mainId}" style="display: none;"/>
+                  <input type="text" class="form-control" id="id" name="id" value="{$ecr.id}" style="display: none;"/>
+                  <input type="text" class="form-control" id="type" name="type" value="{$ecr.type}" style="display: none;"/>
+                  <input style="display: none;" type="text" class="form-control" id="checkState" name="checkState" value="{$ecr.checkState}"/>
+                  <div class="col-sm-12 ">
+                    <div class="row">
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位名称</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newName" name="newName" value="{$ecr.newName}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>社会信用代码</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newIdCard" name="newIdCard" value="{$ecr.newIdCard}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup" style="display: none">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>产业领域</label>
+                        <div class="col-sm-4 spacing">
+                          <select type="text" class="form-control" id="newIndustryFieldNew" name="newIndustryFieldNew" value="{$ecr.newIndustryFieldNew}"></select>
+                        </div>
+                      </div>
+                      <div class="rowGroup" style="display: none">
+                        <label class="col-sm-2 control-label spacing">行业领域</label>
+                        <div class="col-sm-4 spacing">
+                          <select type="text" class="form-control" id="newIndustryFieldOld" name="newIndustryFieldOld" value="{$ecr.newIndustryFieldOld}"></select>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="display: none">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位标签</label>
+                        <div class="col-sm-4 spacing">
+                          <select type="text" class="form-control" id="newEnterpriseTag" name="newEnterpriseTag" value="{$ecr.newEnterpriseTag}"></select>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="display: none">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位类型</label>
+                        <div class="col-sm-4 spacing">
+                          <select type="text" class="form-control" id="newEnterpriseType" name="newEnterpriseType" value="{$ecr.newEnterpriseType}"></select>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>法人代表</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newLegal" name="newLegal" value="{$ecr.newLegal}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>所属街道</label>
+                        <div class="col-sm-4 spacing">
+                          <select class="form-control" id="newStreet" name="newStreet" value="{$ecr.newStreet}"></select>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位地址</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newAddress" name="newAddress" value="{$ecr.newAddress}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>单位电话</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newEphone" name="newEphone" value="{$ecr.newEphone}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newAgentName" name="newAgentName" value="{$ecr.newAgentName}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>经办人电话</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newAgentPhone" name="newAgentPhone" value="{$ecr.newAgentPhone}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>电子邮箱</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newAgentEmail" name="newAgentEmail" value="{$ecr.newAgentEmail}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业银行账号</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newBankCard" name="newBankCard" value="{$ecr.newBankCard}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业开户银行</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newBank" name="newBank" value="{$ecr.newBank}"/>
+                        </div>
+                      </div>
+                      <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业开户银行网点</label>
+                        <div class="col-sm-4 spacing">
+                          <input type="text" class="form-control" id="newBankNetwork" name="newBankNetwork" value="{$ecr.newBankNetwork}"/>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                </form>
+              </div>
+            </div>
+            <div id="tab-2" class="tab-pane ">
+              <table id="fileTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                <thead>
+                <tr>
+                  <th data-field="selectItem" data-checkbox="true"></th>
+                </tr>
+                </thead>
+              </table>
+              <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
+              <form id="uploadForm" action="/common/api/addTalentCommonFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
+                <input type="hidden" name="backName" value="EpChangeEdit.callBack">
+                <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="typeId" name="typeId" >
+                <input type='hidden' id="index" name="index" >
+              </form>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_edit.js"></script>-->
+<script type="text/javascript">
+  document.write('<script src="/static/modular/gate/enterprise/enterprise_change_edit.js?v='+(new Date()).getTime()+'"><\/script>');
+</script>
+{/block}

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

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

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

@@ -0,0 +1,238 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    #talentInfoForm label {
+        font-size: xx-small;
+    }
+    .has-feedback .form-control {
+        padding-right: 5px;
+    }
+    .control-label{
+        color: #337ab7;
+    }
+    .rowGroup{
+        padding-bottom: 5px;
+    }
+    .imgs li{
+        list-style: none;
+        float: left;
+        border: 1px solid #d8d1d1;
+        text-align: center;
+        height: 30px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12" >
+                    <div class="tab-content">
+                        <div id="tab-1" class="tab-pane active">
+                            <form id="talentInfoForm" action="/enterprise/talent/add" method="post" enctype="multipart/form-data" target="hiddenIframe">
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">个人信息</div>
+                                    <div class="panel-body">
+                                        <div class="row">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <input type="hidden" name="id" id="id" value="{$row.id}">
+                                                <input type="hidden" name="year" id="year" value="{$year}">
+                                                <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}">
+                                                <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}">
+                                                <input type="file" name="photo" id="photo" style="display: none">
+                                                <input type="hidden" name="province_name" id="province_name" value="">
+                                                <input type="hidden" name="city_name" id="city_name" value="">
+                                                <input type="hidden" name="county_name" id="county_name" value="">
+                                                <input type="hidden" name="source_city_name" id="source_city_name" value="">
+                                                <input type="hidden" name="source_county_name" id="source_county_name" value="">
+                                                <input type="hidden" name="checkState" id="checkState" value="{$checkState}">
+                                                <input type="hidden" name="step" id="step" value="1">                                                
+                                                <input type="hidden" name="files" id="files" value="{$row.modify_files}">
+                                                <input type="hidden" name="fields" id="fields" value="{$row.modify_fields}">
+                                                <div class="col-sm-11">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                        <input type="text" class="form-control" id="name" name="name"  value='{$row.name}'/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                        <select class="form-control" id="card_type" name="card_type" value='{$row.card_type}'>
+                                                            <option value="">请选择</option>
+                                                            <option value="1">身份证</option>
+                                                            <option value="2">通行证</option>
+                                                            <option value="3">护照</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>证件号码</label>
+                                                        <input class="form-control" id="card_number" name="card_number" value='{$row.card_number}'>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>性别</label>
+                                                        <select class="form-control" id="sex" name="sex" value='{$row.sex}'>
+                                                            <option value="">请选择</option>
+                                                            <option value="1">男</option>
+                                                            <option value="2">女</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control date" id="birthday" name="birthday" value='{$row.birthday}'/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                        <select class="form-control" id="nation" name="nation" value='{$row.nation}'>
+                                                        </select>
+                                                    </div> 
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                        <select class="form-control" id="nationality" name="nationality" value="{$row.nationality}">
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>籍贯省</label>
+                                                        <select class="form-control " onchange="TalentInfoInfoDlg.afterSelectProvince()" id="province" name="province" value='{$row.province}'>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>籍贯市</label>
+                                                        <select class="form-control" onchange="TalentInfoInfoDlg.afterSelectCity()" id="city" name="city" value='{$row.city}'></select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>籍贯县</label>
+                                                        <select class="form-control" id="county" name="county" value='{$row.county}'></select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                        <select class="form-control" id="politics" name="politics" value='{$row.politics}'>
+                                                        </select>
+                                                    </div>   
+                                                </div>
+                                                <div class="col-sm-1">
+                                                    <img id="photoImg" {if condition="$row['headimgurl']"} src="/storage/{$row.headimgurl}" {else/} src="/static/img/photo.png" {/if} onclick="$('#photo').click()" style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                </div>
+                                            </div>
+                                        </div>
+                                        <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                            <ul class="list-unstyled">
+                                                <li style="margin:10px 0;overflow:hidden;">
+                                                    <div style="float:left;margin-left:25px;">身份证或护照上传</div>
+                                                    <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                        <i class="fa fa-upload"></i>上传
+                                                    </button>
+                                                </li>
+                                            </ul>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                    <div class="panel-body">
+                                        <div class="row">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class="control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                                    <select class="form-control" id="enterprise_tag"  value="{$row.enterprise.talentType}" disabled="disabled">
+                                                    </select>
+                                                </div>
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
+                                                    <input type="text" class="form-control" id="enterprise_name"  name="enterprise_name" readonly="readonly" value="{$row.enterprise.name}" />
+                                                </div>
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>所属镇街</label>
+                                                    <select class="form-control" id="address" name="address" value="{$row.enterprise.street}" disabled="disabled"></select>
+                                                </div>
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>产业领域</label>
+                                                    <select type="text" class="form-control" id="industry_field" value="{$row.enterprise.industryFieldNew}" name="industry_field" disabled="disabled">
+                                                    </select>
+                                                </div> 
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class="control-label spacing"><span style="color: red">*</span>人才类型</label>
+                                                    <select class="form-control" id="talent_type" name="talent_type" value="{$row.talent_type}" onchange="TalentInfoInfoDlg.talentTypeChange()">
+                                                        <option value="">请选择</option>  
+                                                        {volist name="row.talent_type_list" id="item"}
+                                                        <option value="{$item.id}">{$item.name}</option>        
+                                                        {/volist}
+                                                    </select>
+                                                </div>
+                                                <div class="rowGroup col-sm-9" id="tipsBlock" style="display: none">
+                                                    <label class=" control-label spacing">说明</label>
+                                                    <input type="text" class="form-control" id="typeTips" disabled readonly value=""/>
+
+                                                </div>
+                                                {if condition="in_array($row['talent_type'],[1,2])"}                                                        
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
+                                                    <input type="text" class="form-control" id="tax_insurance_month" name="tax_insurance_month" value="{$row.tax_insurance_month}"/>
+                                                </div>
+                                                {else/}
+                                                <div class="rowGroup col-sm-3" style="display:none;">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
+                                                    <input type="text" class="form-control" id="tax_insurance_month" name="tax_insurance_month" value="{$row.tax_insurance_month}"/>
+                                                </div>
+                                                {/if}                                                        
+                                                {if condition="$row['talent_type'] eq 3"}  
+                                                <div class="rowGroup col-sm-3">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
+                                                    <input type="text" class="form-control rangedate" id="labor_contract_rangetime" name="labor_contract_rangetime" value="{$row.labor_contract_rangetime}" />
+                                                </div> 
+                                                {else/}
+                                                <div class="rowGroup col-sm-3" style="display:none;">
+                                                    <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
+                                                    <input type="text" class="form-control rangedate" id="labor_contract_rangetime" name="labor_contract_rangetime" value="{$row.labor_contract_rangetime}" />
+                                                </div> 
+                                                {/if}  
+                                            </div>
+                                        </div>
+                                        <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                            <ul class="list-unstyled">
+                                                <li style="margin:10px 0;overflow:hidden;">
+                                                    <div style="float:left;margin-left:25px;" id="material_name">社保或所得税缴费记录</div>
+                                                    <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                        <i class="fa fa-upload"></i>上传
+                                                    </button>
+                                                </li>
+                                            </ul>
+                                        </div>
+                                    </div>
+                                </div>
+                            </form> 
+                            <form id="uploadForm" action="/common/api/addTalentFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
+                                <input type='hidden' id="fileId" name="fileId" >
+                                <input type='file' id="upload_file" name="fileUrl" style='display: none'>
+                                <input type='hidden' id="mainId" name="mainId" >
+                                <input type='hidden' id="fileTypeId" name="fileTypeId" >
+                                <input type='hidden' id="index" name="index" >
+                                <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack">
+                                <input type="type" name="type" value="1">
+                            </form>
+                            <div class="panel panel-default">
+                                <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                                <table id="logTable">
+                                </table>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo_info.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/talentInfo/talentInfo_info.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

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

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

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

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

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

@@ -0,0 +1,333 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    #talentInfoForm label {
+        font-size: xx-small;
+    }
+    .has-feedback .form-control {
+        padding-right: 5px;
+    }
+    .control-label{
+        color: #337ab7;
+    }
+    .rowGroup{
+        padding-bottom: 5px;
+    }
+    .imgs li{
+        list-style: none;
+        float: left;
+        border: 1px solid #d8d1d1;
+        text-align: center;
+        height: 30px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12" >
+                    <div class="tab-content">
+                        
+                        <div id="tab-1" class="tab-pane active">
+                            <div class="panel-body" >
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">申报信息</div>
+                                    <div class="panel-body">
+                                        <form id="talentInfoForm" class="form-horizontal" autocomplete="off">
+                                            <div class="col-sm-12 form-group-sm">
+                                                <input type="hidden" name="id" id="id" value="{$row.id}">
+                                                <input type="hidden" name="type" id="type" value="1">
+                                                <input type="hidden" name="checkState" id="checkState" value="{$row.checkState}">
+                                                <input type="hidden" name="talent_condition" id="talent_condition" value="{$row.talent_condition}">
+                                                <div class="row">
+                                                    <div class="col-sm-11">
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>人才类型</label>
+                                                            <select class="form-control" id="talent_type" name="talent_type" >
+                                                                <option value="" selected="true">{$row.talentTypeName}</option>
+                                                            </select>
+                                                        </div>
+                                                        {if condition="in_array($row['talent_type'],[1,2])"}
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
+                                                            <input type="text" class="form-control" id="tax_insurance_month" name="tax_insurance_month" value="{$row.tax_insurance_month}" />
+                                                        </div>
+                                                        {else/}
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
+                                                            <input type="text" class="form-control" id="labor_contract_rangetime" name="labor_contract_rangetime" value="{$row.labor_contract_rangetime}" />
+                                                        </div>
+                                                        {/if}
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
+                                                            <input type="text" class="form-control" id="enterprise_name" name="enterprise_name" value="{$row.enterpriseName}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                                            <input type="text" class="form-control" id="enterprise_tag" name="enterprise_tag" value="{$row.enterpriseTagName}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
+                                                            <input type="text" class="form-control" id="street" name="street" value="{$row.streetName}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
+                                                            <input type="text" class="form-control" id="industry_field" name="industry_field" value="{$row.industryFieldName}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                            <input type="text" class="form-control" id="name" name="name" value="{$row.name}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                            <select class="form-control" id="cardType" name="cardType" value="{$row.card_type}">
+                                                                <option value="">请选择</option>
+                                                                <option value="1">身份证</option>
+                                                                <option value="2">通行证</option>
+                                                                <option value="3">护照</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
+                                                            <input class="form-control" id="card_type" name="card_type" value="{$row.card_number}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
+                                                            <input type="text" class="form-control" id="sex" name="sex" value="{eq name='info.sex' value='1'}男{else/}女{/eq}" />
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                            <input type="text" class="form-control" id="birthday" name="birthday" value="{$row.birthday}"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                            <input class="form-control" id="nationality" name="nationality" value="{$row.nationalityName}">
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
+                                                            <input class="form-control" id="province" name="province" value="{$row.provinceName}{$row.cityName}{$row.countyName}"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                            <input class="form-control" id="nation" name="nation" value="{$row.nationName}"/>
+                                                        </div>
+                                                        <div class="rowGroup col-sm-3">
+                                                            <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                            <input class="form-control" id="politics" name="politics" value="{$row.politicsName}"/>
+                                                        </div>
+                                                    </div>
+                                                    <div class="col-sm-1">
+                                                        <img id="photoImg" src="{$row.headimgurl}"  style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                    </div>
+                                                </div>
+                                                <div class="row">
+                                                    <label class="col-sm-12 control-label spacing" style="text-align: left"><span style="color: red">声明:本人对输入材料的真实性负全部责任</span></label>
+                                                </div>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">个人信息填报及人才认定申请</div>
+                                    <div class="panel-body">
+                                        <div class="col-sm-12 form-group-sm">
+                                            <div class="row">
+                                                <div class="col-sm-11">                          
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>申报年度</label>
+                                                        <input type="text" class="form-control" name="apply_year" id="apply_year" value="{$row.apply_year}" readonly disabled>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>首次来晋工作时间</label>
+                                                        <input type="text" class="form-control date" id="fst_work_time" value="{$row.fst_work_time}"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>引进方式</label>
+                                                        <select class="form-control" id="import_way" name="import_way" data-placeholder="引进方式">
+                                                            <option value="">{$row.importWayName}</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>本单位入职时间</label>
+                                                        <input type="text" class="form-control date" id="cur_entry_time" value="{$row.cur_entry_time}"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>本单位现任职务</label>
+                                                        <input type="text" class="form-control" id="position" value="{$row.position}"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>申报来源</label>
+                                                        <select class="form-control" id="source" >
+                                                            <option value="">{$row.sourceName}</option>
+                                                        </select>
+                                                    </div>
+                                                    {if condition="$row['source_city']"}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>入选来源地级市</label>
+                                                        <select class="form-control" id="source_city" name="source_city">
+                                                            <option value="">{$row.sourceCityName}</option>
+                                                        </select>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['source_county']"}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>入选来源县市区</label>
+                                                        <select class="form-control" id="source_county" name="source_county">
+                                                            <option value="">{$row.sourceCountyName}</option>
+                                                        </select>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['source_batch']"}                                                
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing" ><span style="color: red">*</span>入选名单批次</label>
+                                                        <input type="text" class="form-control" id="source_batch" value="{$row.source_batch}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['fujian_highcert_pubtime']"}                                                
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书发证日期</label>
+                                                        <input type="text" class="form-control date" id="fujian_highcert_pubtime" value="{$row.fujian_highcert_pubtime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['fujian_highcert_exptime']"}                                                
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书有效期</label>
+                                                        <input type="text" class="form-control date" id="fujian_highcert_exptime" value="{$row.fujian_highcert_exptime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['quanzhou_highcert_pubtime']"}    
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书发证日期</label>
+                                                        <input type="text" class="form-control date" id="quanzhou_highcert_pubtime" value="{$row.quanzhou_highcert_pubtime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    {if condition="$row['quanzhou_highcert_exptime']"}    
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书有效期</label>
+                                                        <input type="text" class="form-control date" id="quanzhou_highcert_exptime" value="{$row.quanzhou_highcert_exptime}"/>
+                                                    </div>
+                                                    {/if}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>
+                                                        <select class="form-control" id="talent_arrange" name="talent_arrange">
+                                                            <option value="">{$row.talentArrangeName}</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                                        <select class="form-control" >
+                                                            <option value="">{$row.talentConditionName}</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>最高学历</label>
+                                                        <select class="form-control" >
+                                                            <option value="">{$row.highestDegreeName}</option>
+                                                        </select>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                                        <input type="text" class="form-control" id="graduate_school" value="{$row.graduate_school}">
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                                        <input type="text" class="form-control" id="major" value="{$row.major}"/>
+                                                    </div>
+                                                    {if condition="$row['professional']"}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing">专业技术职称</label>
+                                                        <input type="text" class="form-control" id="professional" value="{$row.professional}"/>
+                                                    </div>{/if}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>开户银行</label>
+                                                        <input type="text" class="form-control" onchange="" id="bank" value="{$row.bank}" placeholder="XX银行"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
+                                                        <input type="text" class="form-control" id="bank_number" value="{$row.bank_number}"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>开户银行网点</label>
+                                                        <input type="text" class="form-control" id="bank_branch_name" value="{$row.bank_branch_name}" placeholder="XX银行XX省XX市XX支行/分行/分理处"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>银行账号</label>
+                                                        <input type="text" class="form-control" id="bank_account" value="{$row.bank_account}" />
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing">是否有留学经历</label>
+                                                        <select class="form-control" id="study_abroad" >
+                                                            <option value="">{eq name="study_abroad" value="2"}否{else/}是{/eq}</option>
+                                                        </select>
+                                                    </div>                                                
+                                                    {if condition="$row['abroad_school']"}   
+                                                    <div class="rowGroup col-sm-3 abroad_need_this">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                                        <input type="text" class="form-control" id="abroad_school" value="{$row.abroad_school}" maxlength="11"/>
+                                                    </div>
+                                                    {/if}                                                
+                                                    {if condition="$row['abroad_major']"}   
+                                                    <div class="rowGroup col-sm-3 abroad_need_this">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                                        <input type="text" class="form-control" id="abroad_major" value="{$row.abroad_major}" maxlength="11"/>
+                                                    </div>
+                                                    {/if}
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>手机号码</label>
+                                                        <input type="text" class="form-control" id="phone" value="{$row.phone}" maxlength="11"/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-3">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>电子邮箱</label>
+                                                        <input type="text" class="form-control" id="email" value="{$row.email}"/>
+                                                    </div>
+                                                </div>
+                                            </div>
+                                            <div class="row">
+                                                <label class="col-sm-12 control-label spacing" style="text-align: left"><span style="color: red">声明:本人对输入材料的真实性负全部责任</span></label>
+                                            </div>
+                                        </div>
+                                    </div> 
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">附件</div>
+                                    <div class="panel-body">
+                                        <table id="fileTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                                            <thead>
+                                                <tr>
+                                                    <th data-field="selectItem" data-checkbox="true"></th>
+                                                </tr>
+                                            </thead>
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="panel panel-default">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                                    <table id="logTable">
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                        <div id="tab-2" class="tab-pane ">
+                            <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/talentInfo/talentInfo_select.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

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

@@ -38,262 +38,320 @@
                 <div class="col-sm-12" >
                     <div class="tab-content">
                         <div id="tab-1" class="tab-pane active">
-                            <div class="panel-body" >
+                            <form id="talentInfoForm" action="/enterprise/talent/add" method="post" enctype="multipart/form-data" target="hiddenIframe">
                                 <div class="panel panel-default">
-                                    <form id="talentInfoForm" action="/enterprise/talent/add" method="post" enctype="multipart/form-data" target="hiddenIframe">
-                                        <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
-                                        <div class="panel-body">
+                                    <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
+                                    <div class="panel-body" style="display:none;">
+                                        <div class="row">
                                             <div class="col-sm-12 form-group-sm">
                                                 <input type="hidden" name="id" id="id" value="{$row.id}">
                                                 <input type="hidden" name="year" id="year" value="{$year}">
                                                 <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}">
                                                 <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}">
                                                 <input type="hidden" name="checkState" id="checkState" value="{$row.checkState}">
-                                                <div class="row">
-                                                    <div class="col-sm-11">
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>人才类型</label>
-                                                            <select class="form-control" readonly disabled>
-                                                                <option value="" selected="true">{$row.talentTypeName}</option>
-                                                            </select>
-                                                        </div>
-                                                        {if condition="in_array($row['talent_type'],[1,2])"}
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
-                                                            <input type="text" class="form-control" value="{$row.tax_insurance_month}"  readonly disabled/>
-                                                        </div>
-                                                        {else/}
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
-                                                            <input type="text" class="form-control" value="{$row.labor_contract_rangetime}"  readonly disabled/>
-                                                        </div>
-                                                        {/if}
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
-                                                            <input type="text" class="form-control" value="{$row.enterpriseName}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
-                                                            <input type="text" class="form-control" value="{$row.enterpriseTagName}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
-                                                            <input type="text" class="form-control" value="{$row.streetName}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
-                                                            <input type="text" class="form-control" value="{$row.industryFieldName}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
-                                                            <input type="text" class="form-control" value="{$row.name}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
-                                                            <select class="form-control" value="{$row.card_type}" readonly disabled>
-                                                                <option value="">请选择</option>
-                                                                <option value="1" {eq name="row.card_type" value="1"} selected="" {/eq}>身份证</option>
-                                                                <option value="2" {eq name="row.card_type" value="2"} selected="" {/eq}>通行证</option>
-                                                                <option value="3" {eq name="row.card_type" value="3"} selected="" {/eq}>护照</option>
-                                                            </select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
-                                                            <input class="form-control" value="{$row.card_number}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
-                                                            <input type="text" class="form-control" value="{eq name='info.sex' value='1'}男{else/}女{/eq}"  readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
-                                                            <input type="text" class="form-control" value="{$row.birthday}" readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
-                                                            <input class="form-control" value="{$row.nationalityName}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
-                                                            <input class="form-control" value="{$row.provinceName}{$row.cityName}{$row.countyName}" readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>民族</label>
-                                                            <input class="form-control" value="{$row.nationName}" readonly disabled/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
-                                                            <input class="form-control" value="{$row.politicsName}" readonly disabled/>
-                                                        </div>
+                                                <div class="col-sm-11">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>姓名</label>
+                                                        <input type="text" class="form-control" value="{$row.name}"  readonly disabled/>
                                                     </div>
-                                                    <div class="col-sm-1">
-                                                        <img id="photoImg" src="{$row.headimgurl}"  style="height: 110px;width: 76px;padding-bottom: 5px;">
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>证件类型</label>
+                                                        <select class="form-control" value="{$row.card_type}" readonly disabled>
+                                                            <option value="">请选择</option>
+                                                            <option value="1" {eq name="row.card_type" value="1"} selected="" {/eq}>身份证</option>
+                                                            <option value="2" {eq name="row.card_type" value="2"} selected="" {/eq}>通行证</option>
+                                                            <option value="3" {eq name="row.card_type" value="3"} selected="" {/eq}>护照</option>
+                                                        </select>
                                                     </div>
-                                                </div>
-                                            </div>
-                                        </div>
-                                        <div class="panel-heading" onclick="$(this).next().toggle()">个人信息填报及人才认定申请</div>
-                                        <div class="panel-body">
-                                            <div class="col-sm-12 form-group-sm">
-                                                <div class="row">
-                                                    <div class="col-sm-11">                          
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>申报年度</label>
-                                                            <input type="text" class="form-control" name="apply_year" id="apply_year" value="{$year}" readonly disabled>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>首次来晋工作时间</label>
-                                                            <input type="text" class="form-control date" id="fst_work_time" name="fst_work_time"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class=" control-label spacing"><span style="color: red">*</span>引进方式</label>
-                                                            <select class="form-control" id="import_way" name="import_way" data-placeholder="引进方式">
-                                                            </select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>本单位入职时间</label>
-                                                            <input type="text" class="form-control date" id="cur_entry_time" name="cur_entry_time"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>本单位现任职务</label>
-                                                            <input type="text" class="form-control" id="position" name="position"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>申报来源</label>
-                                                            <select class="form-control" id="source" name="source" onchange="TalentInfoInfoDlg.sourceChange()">
-                                                            </select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>入选来源地级市</label>
-                                                            <select class="form-control" id="source_city" name="source_city"></select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>入选来源县市区</label>
-                                                            <select class="form-control" id="source_county" name="source_county"></select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class=" control-label spacing" ><span style="color: red">*</span>入选名单批次</label>
-                                                            <input type="text" class="form-control" id="source_batch" name="source_batch"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书发证日期</label>
-                                                            <input type="text" class="form-control date" id="fujian_highcert_pubtime" name="fujian_highcert_pubtime"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书有效期</label>
-                                                            <input type="text" class="form-control date" id="fujian_highcert_exptime" name="fujian_highcert_exptime"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书发证日期</label>
-                                                            <input type="text" class="form-control date" id="quanzhou_highcert_pubtime" name="quanzhou_highcert_pubtime"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3" style="display:none;">
-                                                            <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书有效期</label>
-                                                            <input type="text" class="form-control date" id="quanzhou_highcert_exptime" name="quanzhou_highcert_exptime"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>
-                                                            <select class="form-control" id="talent_arrange" name="talent_arrange" onchange="TalentInfoInfoDlg.getIdentifyCondition()"></select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
-                                                            <select class="chosen" id="talent_condition" name="talent_condition" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()"></select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>最高学历</label>
-                                                            <select class="form-control" id="highest_degree" name="highest_degree"></select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
-                                                            <input type="text" class="form-control" id="graduate_school" name="graduate_school">
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>专业</label>
-                                                            <input type="text" class="form-control" id="major" name="major"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing">专业技术职称</label>
-                                                            <input type="text" class="form-control" id="professional" name="professional"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>开户银行</label>
-                                                            <input type="text" class="form-control" onchange="TalentInfoInfoDlg.bankChange()" id="bank" name="bank" placeholder="XX银行"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
-                                                            <input type="text" class="form-control" id="bank_number" name="bank_number"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>开户银行网点</label>
-                                                            <input type="text" class="form-control" id="bank_branch_name" name="bank_branch_name" placeholder="XX银行XX省XX市XX支行/分行/分理处"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>银行账号</label>
-                                                            <input type="text" class="form-control" id="bank_account" name="bank_account" />
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing">是否有留学经历</label>
-                                                            <select class="form-control" id="study_abroad" name="study_abroad" onchange="TalentInfoInfoDlg.changeStudyAbroad()">
-                                                                <option value="2">否</option>
-                                                                <option value="1">是</option>
-                                                            </select>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3 abroad_need_this" style="display:none;">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
-                                                            <input type="text" class="form-control" id="abroad_school" name="abroad_school" maxlength="11"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3 abroad_need_this" style="display:none;">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>专业</label>
-                                                            <input type="text" class="form-control" id="abroad_major" name="abroad_major" maxlength="11"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>手机号码</label>
-                                                            <input type="text" class="form-control" id="phone" name="phone" maxlength="11"/>
-                                                        </div>
-                                                        <div class="rowGroup col-sm-3">
-                                                            <label class="control-label spacing"><span style="color: red">*</span>电子邮箱</label>
-                                                            <input type="text" class="form-control" id="email" name="email"/>
-                                                        </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*证件号码</span></label>
+                                                        <input class="form-control" value="{$row.card_number}" readonly disabled>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>性别</label>                                                            
+                                                        <input type="text" class="form-control" value="{eq name='info.sex' value='1'}男{else/}女{/eq}"  readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>出生日期</label>
+                                                        <input type="text" class="form-control" value="{$row.birthday}" readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class="control-label spacing"><span style="color: red">*</span>民族</label>
+                                                        <input class="form-control" value="{$row.nationName}" readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>国籍/地区</label>
+                                                        <input class="form-control" value="{$row.nationalityName}" readonly disabled>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>籍贯</label>
+                                                        <input class="form-control" value="{$row.provinceName}{$row.cityName}{$row.countyName}" readonly disabled/>
+                                                    </div>
+                                                    <div class="rowGroup col-sm-4">
+                                                        <label class=" control-label spacing"><span style="color: red">*</span>政治面貌</label>
+                                                        <input class="form-control" value="{$row.politicsName}" readonly disabled/>
                                                     </div>
                                                 </div>
-                                                <div class="row">
-                                                    <label class="col-sm-12 control-label spacing" style="text-align: left"><span style="color: red">声明:本人对输入材料的真实性负全部责任</span></label>
+                                                <div class="col-sm-1">
+                                                    <img id="photoImg" src="{$row.headimgurl}"  style="height: 110px;width: 76px;padding-bottom: 5px;">
                                                 </div>
                                             </div>
-                                        </div>     
-                                    </form>                               
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">附件上传</div>
-                                    <div class="panel-body">
-                                        <table id="fileTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
-                                            <thead>
-                                                <tr>
-                                                    <th data-field="selectItem" data-checkbox="true"></th>
-                                                </tr>
-                                            </thead>
-                                        </table>
-                                        <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
-                                        <form id="uploadForm" action="/common/api/addTalentFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
-                                            <input type='hidden' id="fileId" name="fileId" >
-                                            <input type='file' id="upload_file" name="fileUrl" style='display: none'>
-                                            <input type='hidden' id="mainId" name="mainId" >
-                                            <input type='hidden' id="fileTypeId" name="fileTypeId" >
-                                            <input type='hidden' id="index" name="index" >
-                                            <input type="hidden" name="backName" value="TalentInfoInfoDlg.callBack">
-                                            <input type="type" name="type" value="1">
-                                        </form>
+                                        </div>
+                                        <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                            <ul class="list-unstyled">
+                                                <li style="margin:10px 0;overflow:hidden;">
+                                                    <div style="float:left;margin-left:25px;">身份证或护照上传</div>
+                                                    <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                        <i class="fa fa-upload"></i>上传
+                                                    </button>
+                                                </li>
+                                            </ul>
+                                        </div>
                                     </div>
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
-                                    <table id="logTable">
-                                    </table>
+                                </div>
+                        </div>
+                        <div class="panel panel-default">
+                            <div class="panel-heading" onclick="$(this).next().toggle()">人才基础信息</div>
+                            <div class="panel-body" style="display:none;">
+                                <div class="row">
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>单位名称</label>
+                                        <input type="text" class="form-control" value="{$row.enterpriseName}"  readonly disabled/>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>单位标签</label>
+                                        <input type="text" class="form-control" value="{$row.enterpriseTagName}"  readonly disabled/>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>所属街道</label>
+                                        <input type="text" class="form-control" value="{$row.streetName}"  readonly disabled/>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>行业领域</label>
+                                        <input type="text" class="form-control" value="{$row.industryFieldName}" readonly disabled>
+                                    </div>
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>人才类型</label>
+                                        <select class="form-control" readonly disabled>
+                                            <option value="" selected="true">{$row.talentTypeName}</option>
+                                        </select>
+                                    </div>
+                                    {if condition="in_array($row['talent_type'],[1,2])"}
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>在我市缴交社会保险或个人所得税月份</label>
+                                        <input type="text" class="form-control" value="{$row.tax_insurance_month}"  readonly disabled/>
+                                    </div>
+                                    {else/}
+                                    <div class="rowGroup col-sm-3">
+                                        <label class=" control-label spacing"><span style="color: red">*</span>劳动合同起止时间</label>
+                                        <input type="text" class="form-control" value="{$row.labor_contract_rangetime}"  readonly disabled/>
+                                    </div>
+                                    {/if}
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">社保或所得税缴费记录</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
                                 </div>
                             </div>
                         </div>
+                        <div class="panel panel-default">
+                            <div class="panel-heading" onclick="$(this).next().toggle()">人才认定申请</div>
+                            <div class="panel-body">
+                                <div class="row">
+                                    <div class="col-sm-12">                          
+                                        <div class="rowGroup col-sm-3">
+                                            <label class=" control-label spacing"><span style="color: red">*</span>申报年度</label>
+                                            <input type="text" class="form-control" name="apply_year" id="apply_year" value="{$year}" readonly disabled>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>首次来晋工作时间</label>
+                                            <input type="text" class="form-control date" id="fst_work_time" name="fst_work_time"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>手机号码</label>
+                                            <input type="text" class="form-control" id="phone" name="phone" maxlength="11"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>电子邮箱</label>
+                                            <input type="text" class="form-control" id="email" name="email"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>最高学历</label>
+                                            <select class="form-control" id="highest_degree" name="highest_degree"></select>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                            <input type="text" class="form-control" id="graduate_school" name="graduate_school">
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                            <input type="text" class="form-control" id="major" name="major"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing">是否有留学经历</label>
+                                            <select class="form-control" id="study_abroad" name="study_abroad" onchange="TalentInfoInfoDlg.changeStudyAbroad()">
+                                                <option value="2">否</option>
+                                                <option value="1">是</option>
+                                            </select>
+                                        </div>
+                                        <div class="rowGroup col-sm-3 abroad_need_this" style="display:none;">
+                                            <label class="control-label spacing"><span style="color: red">*</span>毕业院校</label>
+                                            <input type="text" class="form-control" id="abroad_school" name="abroad_school" maxlength="11"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3 abroad_need_this" style="display:none;">
+                                            <label class="control-label spacing"><span style="color: red">*</span>专业</label>
+                                            <input type="text" class="form-control" id="abroad_major" name="abroad_major" maxlength="11"/>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                                <div class="row">
+                                    <div class="col-sm-12">
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>本单位入职时间</label>
+                                            <input type="text" class="form-control date" id="cur_entry_time" name="cur_entry_time"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>本单位现任职务</label>
+                                            <input type="text" class="form-control" id="position" name="position"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing">专业技术职称</label>
+                                            <input type="text" class="form-control" id="professional" name="professional"/>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                                <div class="row">
+                                    <div class="col-sm-12">
+                                        <div class="rowGroup col-sm-3">
+                                            <label class=" control-label spacing"><span style="color: red">*</span>引进方式</label>
+                                            <select class="form-control" id="import_way" name="import_way" data-placeholder="引进方式">
+                                            </select>
+                                        </div>   
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>申报来源</label>
+                                            <select class="form-control" id="source" name="source" onchange="TalentInfoInfoDlg.sourceChange()">
+                                            </select>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class="control-label spacing"><span style="color: red">*</span>入选来源地级市</label>
+                                            <select class="form-control" id="source_city" name="source_city"></select>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class="control-label spacing"><span style="color: red">*</span>入选来源县市区</label>
+                                            <select class="form-control" id="source_county" name="source_county"></select>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class=" control-label spacing" ><span style="color: red">*</span>入选名单批次</label>
+                                            <input type="text" class="form-control" id="source_batch" name="source_batch"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书发证日期</label>
+                                            <input type="text" class="form-control date" id="fujian_highcert_pubtime" name="fujian_highcert_pubtime"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class=" control-label spacing" ><span style="color: red">*</span>福建省高层次人才证书有效期</label>
+                                            <input type="text" class="form-control date" id="fujian_highcert_exptime" name="fujian_highcert_exptime"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书发证日期</label>
+                                            <input type="text" class="form-control date" id="quanzhou_highcert_pubtime" name="quanzhou_highcert_pubtime"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3" style="display:none;">
+                                            <label class=" control-label spacing" ><span style="color: red">*</span>泉州高层次人才证书有效期</label>
+                                            <input type="text" class="form-control date" id="quanzhou_highcert_exptime" name="quanzhou_highcert_exptime"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>人才层次</label>
+                                            <select class="form-control" id="talent_arrange" name="talent_arrange" onchange="TalentInfoInfoDlg.getIdentifyCondition()"></select>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>认定条件</label>
+                                            <select class="chosen" id="talent_condition" name="talent_condition" onchange="TalentInfoInfoDlg.getIdentifyNeedsFileTypes()"></select>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述认定条件佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                                <div class="row">
+                                    <div class="col-sm-12">
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>开户银行</label>
+                                            <input type="text" class="form-control" onchange="TalentInfoInfoDlg.bankChange()" id="bank" name="bank" placeholder="XX银行"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>银行行号</label>
+                                            <input type="text" class="form-control" id="bank_number" name="bank_number"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>开户银行网点</label>
+                                            <input type="text" class="form-control" id="bank_branch_name" name="bank_branch_name" placeholder="XX银行XX省XX市XX支行/分行/分理处"/>
+                                        </div>
+                                        <div class="rowGroup col-sm-3">
+                                            <label class="control-label spacing"><span style="color: red">*</span>银行账号</label>
+                                            <input type="text" class="form-control" id="bank_account" name="bank_account" />
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="row" style="border-top:1px solid #ddd;margin-top:20px;border-bottom:1px solid #ddd;">
+                                    <ul class="list-unstyled">
+                                        <li style="margin:10px 0;overflow:hidden;">
+                                            <div style="float:left;margin-left:25px;">上传上述佐证材料</div>
+                                            <button type='button' onclick="TalentInfoInfoDlg.checkFile(this)" style='margin-right: 10px;float:right;' class="btn btn-xs btn-info">
+                                                <i class="fa fa-upload"></i>上传
+                                            </button>
+                                        </li>
+                                    </ul>
+                                </div>
+                            </div>
+                        </div>
+                        </form>
+                        <div class="panel panel-default">
+                            <div class="panel-heading" onclick="$(this).next().toggle()">附件上传</div>
+                        </div>
+                        <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
+                        <table id="logTable">
+                        </table>
                     </div>
                 </div>
             </div>
         </div>
     </div>
 </div>
+</div>
 <iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
 <!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo_info.js"></script>-->
 <script type="text/javascript">

+ 3 - 2
public/static/js/register.js

@@ -397,10 +397,11 @@ Register.typeChange = function(){
     $("#type").removeAttr("disabled");
     var type = $("#type").val();
     if(type==1){
-        $("#enterpriseTag,#industryFieldNew,#industryFieldOld").parent().parent().attr("style","display:block");
+        $("#typeGroup").attr("style","display:block");
     }else{
+        $("typeGroup").attr("style","display:none");
         $("#enterpriseTag,#industryFieldNew,#industryFieldOld").val("");
-        $("#enterpriseTag,#industryFieldNew,#industryFieldOld").parent().parent().attr("style","display:none");
+
     }
 }
 Register.industryChange = function(){

+ 1 - 1
public/static/modular/enterprise/enterprise_active.js

@@ -5,7 +5,7 @@ EpActive.addSubmit = function() {
 	var active = $("#active").val();
 	var activeMsg = $("#activeMsg").val();
 	var da = {"id":id, "active":active, "activeMsg":activeMsg};
-    var ajax = new $ax(Feng.ctxPath + "/enterprise/setActive", function(data){
+    var ajax = new $ax(Feng.ctxPath + "/admin/enterprise/setActive", function(data){
         Feng.info(data.msg);
         if (data.code == 200) {
         	window.parent.Enterprise.table.refresh();

+ 2 - 2
public/static/modular/enterprise/enterprise_list.js

@@ -159,7 +159,7 @@ Enterprise.setActive = function() {
         area: ['830px', '500px'], //宽高
         fix: false, //不固定
         maxmin: true,
-        content: Feng.ctxPath + '/enterprise/gotoActivePage?id='+Enterprise.seItem.id,
+        content: Feng.ctxPath + '/admin/enterprise/gotoActivePage?id='+Enterprise.seItem.id,
         btn: ['<i class="fa fa-check"></i>&nbsp;&nbsp;提交','<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
         btnAlign: 'c',
         yes: function (index, layero) {
@@ -225,7 +225,7 @@ Enterprise.resetPassword = function() {
 	Feng.confirm(
         "确定要重置密码吗?",
         function(){
-        	var ajax = new $ax(Feng.ctxPath + "/enterprise/resetPassword?id="+Enterprise.seItem.id, function(data){
+        	var ajax = new $ax(Feng.ctxPath + "/admin/enterprise/resetPassword?id="+Enterprise.seItem.id, function(data){
                 Feng.info(data.msg);
 //                if(data.code == 200){
 //                	Enterprise.table.refresh();

+ 12 - 10
public/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail.js

@@ -28,7 +28,7 @@ ecre.doExamine = function() {
 
 ecre.initFileTable = function(){
 	$("#fileTable").bootstrapTable({
-		url: Feng.ctxPath + "/api/common/listCurrencyFileType",
+		url: Feng.ctxPath + "/common/api/listCurrencyFileType",
 		method: 'POST',
 		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
 		search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
@@ -61,7 +61,7 @@ ecre.initFileTable = function(){
 			$("#fileTable").bootstrapTable('expandAllRows');
 		},
 		onExpandRow: function (index, row, $detail) {
-			var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/listTalentCommonFile", function (data) {
+			var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
 				if(data==null||data.length==0){
 					return;
 				}
@@ -123,19 +123,21 @@ ecre.downloadFile = function(id,type) {
 
 
 $(function () {	
-	var arr = [
-		{"name":"newStreet","code":"un_street"},
-		{"name":"oldStreet","code":"un_street"},
-		{"name":"newTalentType","code":"un_enterprise_talentType"},
-		{"name":"oldTalentType","code":"un_enterprise_talentType"}];
-	Feng.findChildDictBatch(JSON.stringify(arr))
+	// var arr = [
+	// 	{"name":"newStreet","code":"street"},
+	// 	{"name":"oldStreet","code":"street"},
+	// 	{"name":"newTalentType","code":"enterprise_type"},
+	// 	{"name":"oldTalentType","code":"enterprise_type"},
+	// 	{"name":"oldIndustryFieldNew","code":"industry_field"},
+	// 	{"name":"newIndustryFieldNew","code":"industry_field"}];
+	// Feng.findChildDictBatch(JSON.stringify(arr))
 
 	$("select").each(function () {
 		$(this).val($(this).attr("value"));
 	})
 	if($("#type").val()==1){
-		$("#newTalentType,#oldTalentType,#oldIndustryField,#newIndustryField").parent().parent().attr("style","display:block");
+		$("#newEnterpriseType,#oldEnterpriseType,#oldIndustryFieldOld,#oldIndustryFieldNew,#newIndustryFieldNew,#newIndustryFieldOld,#newEnterpriseTag,#oldEnterpriseTag").parent().parent().attr("style","display:block");
 	}else{
-		$("#newTalentType,#oldTalentType,#oldIndustryField,#newIndustryField").parent().parent().attr("style","display:none");
+		$("#newEnterpriseType,#oldEnterpriseType,#oldIndustryFieldOld,#oldIndustryFieldNew,#newIndustryFieldNew,#newIndustryFieldOld,#newEnterpriseTag,#oldEnterpriseTag").parent().parent().attr("style","display:none");
 	}
 });

+ 4 - 4
public/static/modular/gate/enterprise/enterprise_center.js

@@ -46,8 +46,8 @@ EnterpriseCenter.initColumn = function(){
         {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
         {title: '更新单位名称', field: 'newName', align: 'left', width:120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '更新社会信用代码', field: 'newIdCard', align: 'center', width:160, valign: 'middle', 'class': 'uitd_showTip'},
-		{title: '更新行业领域', field: 'newIndustryFieldName', align: 'center', width:160, valign: 'middle', 'class': 'uitd_showTip'},
-		{title: '更新企业标签', field: 'newTalentTypeName', align: 'left', width:120, valign: 'middle', 'class': 'uitd_showTip'},
+		{title: '更新产业领域', field: 'newIndustryFieldNewName', align: 'center', width:160, valign: 'middle', 'class': 'uitd_showTip'},
+		{title: '更新单位标签', field: 'newEnterpriseType', align: 'left', width:120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '更新法人代表', field: 'newLegal', align: 'left', width:100, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '更新所属街道', field: 'newStreetName', align: 'left', width:100, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '更新单位地址', field: 'newAddress', align: 'left', width:200, valign: 'middle', 'class': 'uitd_showTip'},
@@ -148,7 +148,7 @@ EnterpriseCenter.updateEnterprisechangeRecord = function() {
         area: ['930px', '600px'], //宽高
         fix: false, //不固定
         maxmin: true,
-        content: Feng.ctxPath + '/api/enterpriseChangeRecord/toUpdate?id='+item.id,
+        content: Feng.ctxPath + '/enterprise/api/toUpdate?id='+item.id,
         btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
 		btnAlign: 'c',
         btn1: function (index, layero) {
@@ -188,7 +188,7 @@ EnterpriseCenter.showEnterprisechangeRecordDetail = function() {
         area: ['930px', '600px'], //宽高
         fix: false, //不固定
         maxmin: true,
-        content: Feng.ctxPath + '/api/enterpriseChangeRecord/toDetail?id='+EnterpriseCenter.seItem.id,
+        content: Feng.ctxPath + '/enterprise/api/toDetail?id='+EnterpriseCenter.seItem.id,
         btn: ['<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
         btn1: function (index, layero) {
         	layer.close(index);

+ 2 - 2
public/static/modular/gate/enterprise/enterprise_change_detail.js

@@ -4,7 +4,7 @@ var EpChangeEdit = {
 
 EpChangeEdit.initFileTable = function(){
     $("#fileTable").bootstrapTable({
-        url: Feng.ctxPath + "/api/common/listCurrencyFileType",
+        url: Feng.ctxPath + "/common/api/listCurrencyFileType",
         method: 'POST',
         contentType: "application/x-www-form-urlencoded; charset=UTF-8",
         search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
@@ -37,7 +37,7 @@ EpChangeEdit.initFileTable = function(){
             $("#fileTable").bootstrapTable('expandAllRows');
         },
         onExpandRow: function (index, row, $detail) {
-            var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/listTalentCommonFile", function (data) {
+            var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
                 if(data==null||data.length==0){
                     return;
                 }

+ 10 - 7
public/static/modular/gate/enterprise/enterprise_change_edit.js

@@ -4,7 +4,8 @@ var EpChangeEdit = {
 	validateFields: {
 		newName: {validators: {notEmpty: {message: '单位名称不能为空' }}},
 		newIdCard : {validators: {notEmpty: {message: '社会信用代码不能为空' }}},
-		newEnterpriseTag : {validators: {notEmpty: {message: '企业标签不能为空' }}},
+		newEnterpriseTag : {validators: {notEmpty: {message: '单位标签不能为空' }}},
+		newEnterpriseType: {validators: {notEmpty: {message: '单位类型不能为空' }}},
 		newLegal: {validators: {notEmpty: {message: '法人代表不能为空'}}},
 		newAddress: {validators: {notEmpty: {message: '单位地址不能为空'}}},
 		newStreet: {validators: {notEmpty: {message: '所属街道不能为空'}}},
@@ -89,6 +90,7 @@ EpChangeEdit.collectData = function() {
 		.set('newName')
 		.set('newIdCard')
 		.set('newEnterpriseTag')
+		.set('newEnterpriseType')
 		.set('newLegal')
 		.set('newStreet')
 		.set('newAddress')
@@ -116,7 +118,7 @@ EpChangeEdit.validate = function () {
 
 EpChangeEdit.initFileTable = function(){
 	$("#fileTable").bootstrapTable({
-		url: Feng.ctxPath + "/api/common/listCurrencyFileType",
+		url: Feng.ctxPath + "/common/api/listCurrencyFileType",
 		method: 'POST',
 		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
 		search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
@@ -149,7 +151,7 @@ EpChangeEdit.initFileTable = function(){
 			$("#fileTable").bootstrapTable('expandAllRows');
 		},
 		onExpandRow: function (index, row, $detail) {
-			var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/listTalentCommonFile", function (data) {
+			var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
 				if(data==null||data.length==0){
 					return;
 				}
@@ -163,7 +165,7 @@ EpChangeEdit.initFileTable = function(){
 					}else if(suffix == "xlsx" || suffix=="XLSX" || suffix == 'xls' || suffix == 'XLS'){
 						imgStr = "<button type='button'  onclick=\"Feng.showExcel('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
 					}else{
-						imgStr = '<img class=\"imgUrl\"  src=\"'+data[key].url+'\" style=\"width:25px;height:25px;\">';
+						imgStr = '<img class=\"imgUrl\"  src=\"/'+data[key].url+'\" style=\"width:25px;height:25px;\">';
 					}
 					var btn = "<button type=\'button\' onclick=\"EpChangeEdit.checkFile('"+row.id+"','"+data[key].id+"')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\"><i class=\"fa fa-paste\"></i>修改</button>" +
 						"<button type='button' onclick=\"EpChangeEdit.deleteFile('"+data[key].id+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i>删除</button>";
@@ -339,7 +341,7 @@ EpChangeEdit.submitToCheck = function(){
 	}
 	$(".layui-layer-btn1",parent.document).css("pointer-events","none");
 	var operation = function() {
-		var ajax = new $ax(Feng.ctxPath + "/api/enterpriseChangeRecord/submitToCheck", function (data) {
+		var ajax = new $ax(Feng.ctxPath + "/enterprise/api/submitToCheck", function (data) {
 			if(data.code==200){
 				Feng.success(data.msg);
 				window.parent.EnterpriseCenter.table.refresh();
@@ -383,19 +385,20 @@ $(function() {
 	var arr = [
 		{"name":"newStreet","code":"street"},
 		{"name":"newEnterpriseTag","code":"enterprise_tag"},
+		{"name":"newEnterpriseType","code":"enterprise_type"},
 		{"name":"newIndustryFieldNew","code":"industry_field"}];
 	Feng.findChildDictBatch(JSON.stringify(arr));
 	$("select").each(function () {
 		$(this).val($(this).attr("value"));
 	})
 	if($("#type").val()==1){
-		$("#newEnterpriseTag,#newIndustryFieldNew,#newIndustryFieldOld").parent().parent().attr("style","display:block");
+		$("#newEnterpriseTag,#newIndustryFieldNew,#newIndustryFieldOld,#newEnterpriseType").parent().parent().attr("style","display:block");
 		$("#newEnterpriseTag").val($("#newEnterpriseTag").attr("value"));
 		console.log($("#newIndustryFieldNew").attr("value"))
 		$("#newIndustryFieldNew").val($("#newIndustryFieldNew").attr("value"));
 		$("#newIndustryFieldOld").val($("#newIndustryFieldOld").attr("value"));
 	}else{
-		$("#newEnterpriseTag,#newIndustryFieldNew,#newIndustryFieldOld").parent().parent().attr("style","display:none");
+		$("#newEnterpriseTag,#newIndustryFieldNew,#newIndustryFieldOld,#newEnterpriseType").parent().parent().attr("style","display:none");
 		$("#newEnterpriseTag").val("");
 		$("#newIndustryFieldNew").val("");
 	}

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

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

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

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

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

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

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

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

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

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

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

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

+ 24 - 0
public/static/modular/gate/talentInfo/talentInfo_info.js

@@ -376,6 +376,9 @@ TalentInfoInfoDlg.talentTypeChange = function () {
     switch (talent_type) {
         case "1":
         case "2":
+            $("#tipsBlock").css('display','block');
+            $("#typeTips").val("含经晋江市认定且还在晋江市就业创业的人才,或在晋江市就业创业但未曾申报过晋江市优秀人才的人才。");
+            $("#material_name").html("社保或个税的缴交记录");
             $("#tax_insurance_month").removeAttr("disabled").parent().css("display", "block");
             $('#talentInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
                 validators: {
@@ -388,9 +391,30 @@ TalentInfoInfoDlg.talentTypeChange = function () {
             });
             break;
         case "3":
+            $("#tipsBlock").css('display','block');
+            $("#typeTips").val("含本办法出台后首次从晋江市以外引进认定的人才,或者流出晋江市满3年后又返回晋江市就业创业(不含企业集团内部人员调动)的人才。")
+            $("#material_name").html("社保或个税的缴交记录");
+            $("#tax_insurance_month").removeAttr("disabled").parent().css("display", "block");
+            $('#talentInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
+                validators: {
+                    notEmpty: {message: '在我市缴交社会保险或个人所得税月份不能为空'},
+                    regexp: {
+                        regexp: /^\d+$/,
+                        message: "在我市缴交社会保险或个人所得税月份格式不正确"
+                    }
+                }
+            });
+            break;
+        case "4":
+            $("#tipsBlock").css('display','block');
+            $("#typeTips").val("含已经与晋江市用人单位达成就业意向且签订预引进意向合作协议(合同)的人才,或拟来我市创业且提交企业名称预先核准的人才。")
+            $("#material_name").html("社保或个税的缴交记录");
             $("#labor_contract_rangetime").removeAttr("disabled").parent().css("display", "block");
             $('#talentInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
             break;
+        default:
+            $("#tipsBlock").css('display','none');
+            break;
     }
 }
 

+ 1 - 1
public/static/modular/gate/talentLibrary/talentQuit/talentQuit_info.js

@@ -261,7 +261,7 @@ TalentQuitInfoDlg.initFileTable = function(){
             $("#fileTable").bootstrapTable('expandAllRows');
         },
         onExpandRow: function (index, row, $detail) {
-            var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/listTalentCommonFile", function (data) {
+            var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
                 if(data==null||data.length==0){
                     return;
                 }

BIN
public/storage/talent/filetype/template/20220831/025c85f2fdd54a67afd3e9be0686e33f.xlsx


BIN
public/storage/talent/filetype/template/20220831/6bbb43b9765b3bcdfb039ffd15532d74.xlsx


BIN
public/storage/talent/photo/20220831/4aadef3a9995f979cbc7a597e3cbf271.gif


BIN
public/storage/talent_files/20220831/45a58f58b9f8efa4ee1fdd7b23a418bc.gif


BIN
public/storage/talent_files/20220831/52e3ed5cb90c61c240478e25bf41d891.gif


BIN
public/storage/talent_files/20220831/859d917485b4a6d20c8b83f9da8b1f78.gif


BIN
public/storage/talent_files/20220831/89d7637af039aef5d8c63c20feb939ea.gif


BIN
public/storage/talent_files/20220831/8fc4909e66d20e42a417ef45e837d9d4.gif


BIN
public/storage/talent_files/20220831/b3eac3a777603ca92129813c43bd8a76.png