sugangqiang 2 éve
szülő
commit
4094b8f556

+ 2 - 1
app/admin/controller/Enterprise.php

@@ -207,6 +207,7 @@ class Enterprise extends AdminController {
                 break;
             case CommonConst::ENTERPRISE_GJ:
                 $template = "/enterprise/school/goto_enterprise_detail_page";
+                $ep["fullLocationName"] = $ep["county"] ? \app\common\api\LocationApi::getNameByCode($ep["county"], true) : \app\common\api\LocationApi::getNameByCode($ep["city"], true);
                 break;
         }
         $assign['ep'] = $ep;
@@ -274,7 +275,7 @@ class Enterprise extends AdminController {
 
         $oriCheckState = $ep["checkState"];
         if ($oriCheckState == 6 && !EnterpriseApi::chkUserInSuperusers()) {
-            return json(["msg" => "已经流转到审,不在审核范围内"]);
+            return json(["msg" => "已经流转到审,不在审核范围内"]);
         }
 
         if (!in_array($ep["checkState"], [1, 4, 6]))

+ 15 - 15
app/common/api/MenuApi.php

@@ -205,25 +205,25 @@ class MenuApi {
 
     public static function getEnterpriseMenuByType($type) {
         $menus = [];
-        $menus[] = ["type" => [1, 2, 3], "code" => "qyzx", "pcode" => "0", "name" => "机构用户中心", "url" => "/enterprise/index/centerPage", "icon" => "fa-user", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "yhfk", "pcode" => "0", "name" => "用户反馈", "url" => "", "icon" => "fa-bug", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "rcrd", "pcode" => "0", "name" => "人才认定", "url" => "#", "icon" => "fa-pencil-square-o", "status" => 1];
+        $menus[] = ["type" => [1, 2, 3, 5, 6], "code" => "qyzx", "pcode" => "0", "name" => "机构用户中心", "url" => "/enterprise/index/centerPage", "icon" => "fa-user", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "yhfk", "pcode" => "0", "name" => "用户反馈", "url" => "", "icon" => "fa-bug", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "rcrd", "pcode" => "0", "name" => "人才认定", "url" => "#", "icon" => "fa-pencil-square-o", "status" => 1];
         //$menus[] = ["type" => [1, 2], "code" => "jctjsb", "pcode" => "rcrd", "name" => "基础条件申报", "url" => "/enterprise/base", "icon" => "fa-thumbs-o-up", "status" => 1];
         //$menus[] = ["type" => [1, 2], "code" => "rcrdsb", "pcode" => "rcrd", "name" => "人才认定申报", "url" => "/enterprise/talent", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "rcrdsbnew", "pcode" => "rcrd", "name" => "人才认定申报(新)", "url" => "/enterprise/talent/index/isMix/1", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "rcrdsbnew", "pcode" => "rcrd", "name" => "人才认定申报(新)", "url" => "/enterprise/talent/index/isMix/1", "icon" => "fa-thumbs-up", "status" => 1];
         //$menus[] = ["type" => [1, 2], "code" => "rczrzlbc", "pcode" => "rcrd", "name" => "人才直认资料补充", "url" => "/enterprise/talent/zrIndex", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "yxrck", "pcode" => "rcrd", "name" => "优秀人才库", "url" => "/enterprise/talent_library/index", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "yxrck", "pcode" => "rcrd", "name" => "优秀人才库", "url" => "/enterprise/talent_library/index", "icon" => "fa-thumbs-up", "status" => 1];
         $menus[] = ["type" => [2], "code" => "jfsb", "pcode" => "rcrd", "name" => "积分申报", "url" => "/enterprise/integral/index", "icon" => "fa-credit-card", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "yxrck", "pcode" => "rcrd", "name" => "优秀人才库", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "lzsb", "pcode" => "rcrd", "name" => "离职申报", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "gzdwbg", "pcode" => "rcrd", "name" => "工作单位变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "yhzhbg", "pcode" => "rcrd", "name" => "银行账号变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "rcccbg", "pcode" => "rcrd", "name" => "人才层次变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "jcxxbg", "pcode" => "rcrd", "name" => "基础信息变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "jbtmanage", "pcode" => "0", "name" => "津补贴申报", "url" => "", "icon" => "fa-money", "status" => 0];
-        $menus[] = ["type" => [1, 2], "code" => "jbtsb", "pcode" => "jbtmanage", "name" => "津补贴申报", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
-        $menus[] = ["type" => [1, 2], "code" => "gfbt", "pcode" => "0", "name" => "购房补贴", "url" => "", "icon" => "fa-university", "status" => 0];
-        $menus[] = ["type" => [1, 2], "code" => "gfbtsb", "pcode" => "gfbt", "name" => "购房补贴申报", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "yxrck", "pcode" => "rcrd", "name" => "优秀人才库", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "lzsb", "pcode" => "rcrd", "name" => "离职申报", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "gzdwbg", "pcode" => "rcrd", "name" => "工作单位变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "yhzhbg", "pcode" => "rcrd", "name" => "银行账号变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "rcccbg", "pcode" => "rcrd", "name" => "人才层次变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "jcxxbg", "pcode" => "rcrd", "name" => "基础信息变更", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "jbtmanage", "pcode" => "0", "name" => "津补贴申报", "url" => "", "icon" => "fa-money", "status" => 0];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "jbtsb", "pcode" => "jbtmanage", "name" => "津补贴申报", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "gfbt", "pcode" => "0", "name" => "购房补贴", "url" => "", "icon" => "fa-university", "status" => 0];
+        $menus[] = ["type" => [1, 2, 5, 6], "code" => "gfbtsb", "pcode" => "gfbt", "name" => "购房补贴申报", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
         $menus[] = ["type" => [2], "code" => "pxbtmanage", "pcode" => "0", "name" => "培训补贴", "url" => "", "icon" => "fa-building", "status" => 1];
         $menus[] = ["type" => [2], "code" => "pxbt", "pcode" => "pxbtmanage", "name" => "培训补贴", "url" => "", "icon" => "fa-thumbs-up", "status" => 1];
         $menus[] = ["type" => [2], "code" => "zdzxmanage", "pcode" => "0", "name" => "重大专项", "url" => "", "icon" => "fa-life-ring", "status" => 1];

+ 15 - 2
app/common/controller/Auth.php

@@ -17,6 +17,7 @@ use app\enterprise\model\Talent;
 use app\common\api\TalentState;
 use think\facade\Db;
 use app\common\state\CommonConst;
+use app\common\api\Nhc;
 
 class Auth extends BaseController {
 
@@ -348,7 +349,7 @@ class Auth extends BaseController {
                 return \StrUtil::back($response_object, "Register.epCallBack");
             }
         }
-        $medicalCommunities = Db::table("nhc_medical_community")->where("status", 1)->order("num asc,createTime asc")->select()->toArray();
+        $medicalCommunities = Nhc::getMedicalCommunityList();
         return view("", ["msg" => $msg, "medicalCommunities" => $medicalCommunities]);
     }
 
@@ -567,8 +568,20 @@ class Auth extends BaseController {
             }
         }
 
+        $template = "";
         $msg = session('temp')['msg'];
-        return view("", ['msg' => $msg, 'ep' => $ep]);
+        $assigns = ["msg" => $msg, "ep" => $ep];
+        switch ($ep->type) {
+            case CommonConst::ENTERPRISE_WJ:
+                $template = "/auth/hospital/enterprise_edit";
+                $assigns["medicalCommunities"] = Nhc::getMedicalCommunityList();
+                break;
+            case CommonConst::ENTERPRISE_GJ;
+                $template = "/auth/school/enterprise_edit";
+                break;
+        }
+
+        return view($template, $assigns);
     }
 
     public function findBackPassword() {

+ 207 - 0
app/common/view/auth/hospital/enterprise_edit.html

@@ -0,0 +1,207 @@
+{extend name="layout/content" /}
+{block name="content"}
+<style type="text/css">
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <h4 style="color: red;text-align: center;font-size: 26px">{$msg}</h4>
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12">
+                    <form id="ep_form" action="/common/auth/enterprise_edit" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe">
+                        <input type="hidden" id="id" name="id" value="{$ep.id}">
+                        <input type="hidden" id="type" name="type" value="{$ep.type}">
+                        <input type="hidden" id="special" name="special" value="{$ep.special}">
+                        <input type="hidden" id="files" name="files" value="{$ep.modify_files}">
+                        <input type="hidden" id="fields" name="fields" value="{$ep.modify_fields}">
+                        <div class="col-sm-12 form-group-sm">
+
+                            <div class="panel panel-default">
+                                <div class="panel-heading">医院基础信息</div>
+                                <div class="panel-body">
+                                    <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>账号</label>
+                                                    <input type="text" autocomplete="off" readonly="readonly" class="form-control" id="username" name="username" value="{$ep.username}" />
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>密码</label>
+                                                    <input type="password" autocomplete="off" class="form-control" id="password" name="password" value="**********" readonly disabled placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>重复密码</label>
+                                                    <input autocomplete="off" type="password" class="form-control" id="re_password" name="re_password" value="**********" readonly disabled placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
+                                                </div>
+
+                                            </td>
+                                            <td rowspan="3" >
+                                                <label class="control-label spacing"><span class="text-danger">*</span>医疗机构执业许可证</label>
+                                                {if condition="$ep['imgurl']"}
+                                                {if condition="$ep['imgurl_is_img'] eq 1"}
+                                                <img src="{$ep.imgurl|getStoragePath}" style="height: 60px;" onclick="$('#imgurl').click()">
+                                                {else/}
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#imgurl').click()">
+                                                {/if}
+                                                {else/}
+                                                <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
+                                                {/if}
+                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="imgurl" name="imgurl" />
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>医院名称</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="name" name="name" value="{$ep.name}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>登记证</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="idCard" name="idCard" value="{$ep.idCard}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>法人代表</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="legal" name="legal" value="{$ep.legal}"/>
+                                                </div>
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>医院电话</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="ephone" name="ephone"  value="{$ep.ephone}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>医共体</label>
+                                                    <select class="form-control" id="medicalCommunityId" name="medicalCommunityId" value="{$ep.medicalCommunityId}">
+                                                        {volist name="medicalCommunities" id="mc"}
+                                                        <option value="{$mc.id}">{$mc.name}</option>
+                                                        {/volist}
+                                                    </select>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>是否总院</label>
+                                                    <select class="form-control" id="isGeneral" name="isGeneral" value="{$ep.isGeneral}">
+                                                        <option value="">请选择</option>
+                                                        <option value="2">否</option>
+                                                        <option value="1">是</option>
+                                                    </select>
+                                                </div>
+                                            </td>
+                                        </tr>
+                                        
+                                        <tr>
+                                            <td colspan="3">
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>地址</label>
+                                                    <div class="col-sm-12">
+                                                        <div class="col-sm-2">
+                                                            <select class="form-control" id="province" name="province" onchange="Register.afterSelectProvince();" value="{$ep.province}">
+                                                                <option value="">---请选择---</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col-sm-2">
+                                                            <select class="form-control" id="city" name="city" onchange="Register.afterSelectCity();" value="{$ep.city}">
+                                                                <option value="">---请选择---</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col-sm-2">
+                                                            <select class="form-control" id="county" name="county" value="{$ep.county}">
+                                                                <option value="">---请选择---</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col-sm-6">
+                                                            <input autocomplete="off" type="text" class="form-control" id="address" name="address" placeholder="请填写详细地址"  value="{$ep.address}"/>
+                                                        </div>
+                                                    </div>
+                                                </div>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                                
+                                <div class="panel-heading">人才联络员信息</div>
+                                <div class="panel-body">
+                                    <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>人才联络员</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="agentName" name="agentName" value="{$ep.agentName}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>电子邮箱</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="agentEmail" name="agentEmail" value="{$ep.agentEmail}"/>
+                                                </div>
+                                            </td>
+                                            <td rowspan="2">
+                                                <label class="control-label spacing" style="text-align: center">人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">模板下载</a>  </label>                                                
+                                                {if condition="$ep['beian']"}
+                                                {if condition="$ep['beian_is_img'] eq 1"}
+                                                <img src="{$ep.beian|getStoragePath}" style="height: 60px;" onclick="$('#beian').click()">
+                                                {else/}
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#beian').click()">
+                                                {/if}
+                                                {else/}
+                                                <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#beian').click()" >
+                                                {/if}
+                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>人才联络员手机号</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="agentPhone" name="agentPhone" value="{$ep.agentPhone}"  placeholder="用于找回密码" />
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>审核状态</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="checkState" name="checkState" value="审核驳回" readonly disabled  />
+                                                </div>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="row">
+                                <div class="col-sm-12" style="text-align: center;margin-top: 10px;">
+                                    <button type="button" class="btn btn-sm btn-primary " onclick="Register.enterpriseUserRegister()" id="ensure">
+                                        <i class="fa fa-check"></i>&nbsp;提交
+                                    </button>
+                                </div>
+                            </div>
+                        </div>
+                    </form>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_edit.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/hospital/enterprise_edit.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 177 - 0
app/common/view/auth/school/enterprise_edit.html

@@ -0,0 +1,177 @@
+{extend name="layout/content" /}
+{block name="content"}
+<style type="text/css">
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <h4 style="color: red;text-align: center;font-size: 26px">{$msg}</h4>
+        <div class="form-horizontal">
+            <div class="row">
+                <div class="col-sm-12">
+                    <form id="ep_form" action="/common/auth/enterprise_edit" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe">
+                        <input type="hidden" id="id" name="id" value="{$ep.id}">
+                        <input type="hidden" id="type" name="type" value="{$ep.type}">
+                        <input type="hidden" id="special" name="special" value="{$ep.special}">
+                        <input type="hidden" id="files" name="files" value="{$ep.modify_files}">
+                        <input type="hidden" id="fields" name="fields" value="{$ep.modify_fields}">
+                        <div class="col-sm-12 form-group-sm">
+
+                            <div class="panel panel-default">
+                                <div class="panel-heading">学校基础信息</div>
+                                <div class="panel-body">
+                                    <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>账号</label>
+                                                    <input type="text" autocomplete="off" readonly="readonly" class="form-control" id="username" name="username" value="{$ep.username}" />
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>密码</label>
+                                                    <input type="password" autocomplete="off" class="form-control" id="password" name="password" value="**********" readonly disabled placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>重复密码</label>
+                                                    <input autocomplete="off" type="password" class="form-control" id="re_password" name="re_password" value="**********" readonly disabled placeholder="密码由字母、数字及特殊字符组成且字符个数为8-20"/>
+                                                </div>
+
+                                            </td>
+                                            <td rowspan="3" >
+                                                <label class="control-label spacing"><span class="text-danger">*</span>办学许可证、法人证书或登记证书</label>
+                                                {if condition="$ep['imgurl']"}
+                                                {if condition="$ep['imgurl_is_img'] eq 1"}
+                                                <img src="{$ep.imgurl|getStoragePath}" style="height: 60px;" onclick="$('#imgurl').click()">
+                                                {else/}
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#imgurl').click()">
+                                                {/if}
+                                                {else/}
+                                                <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
+                                                {/if}
+                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="imgurl" name="imgurl" />
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>学校名称</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="name" name="name" value="{$ep.name}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>法人代表</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="legal" name="legal" value="{$ep.legal}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>学校电话</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="ephone" name="ephone" value="{$ep.ephone}"/>
+                                                </div>
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td colspan="3">
+                                                <div class="rowGroup">
+                                                    <label class=" control-label spacing td-label"><span style="color: red">*</span>地址</label>
+                                                    <div class="col-sm-12">
+                                                        <div class="col-sm-2">
+                                                            <select class="form-control" id="province" name="province" onchange="Register.afterSelectProvince();" value="{$ep.province}">
+                                                                <option value="">---请选择---</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col-sm-2">
+                                                            <select class="form-control" id="city" name="city" onchange="Register.afterSelectCity();" value="{$ep.city}">
+                                                                <option value="">---请选择---</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col-sm-2">
+                                                            <select class="form-control" id="county" name="county" value="{$ep.county}">
+                                                                <option value="">---请选择---</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col-sm-6">
+                                                            <input autocomplete="off" type="text" class="form-control" id="address" name="address" placeholder="请填写详细地址"  value="{$ep.address}"/>
+                                                        </div>
+                                                    </div>
+                                                </div>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                                <div class="panel-heading">人才联络员信息</div>
+                                <div class="panel-body">
+                                    <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>人才联络员</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="agentName" name="agentName" value="{$ep.agentName}"/>
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>电子邮箱</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="agentEmail" name="agentEmail" value="{$ep.agentEmail}"/>
+                                                </div>
+                                            </td>
+                                            <td rowspan="2">
+                                                <label class="control-label spacing" style="text-align: center">人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">模板下载</a>  </label>                                                
+                                                {if condition="$ep['beian']"}
+                                                {if condition="$ep['beian_is_img'] eq 1"}
+                                                <img src="{$ep.beian|getStoragePath}" style="height: 60px;" onclick="$('#beian').click()">
+                                                {else/}
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#beian').click()">
+                                                {/if}
+                                                {else/}
+                                                <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#beian').click()" >
+                                                {/if}
+                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>人才联络员手机号</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="agentPhone" name="agentPhone" value="{$ep.agentPhone}"  placeholder="用于找回密码" />
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <div class="rowGroup">
+                                                    <label class="control-label spacing td-label"><span style="color: red">*</span>审核状态</label>
+                                                    <input autocomplete="off" type="text" class="form-control" id="checkState" name="checkState" value="审核驳回" readonly disabled  />
+                                                </div>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="row">
+                                <div class="col-sm-12" style="text-align: center;margin-top: 10px;">
+                                    <button type="button" class="btn btn-sm btn-primary " onclick="Register.enterpriseUserRegister()" id="ensure">
+                                        <i class="fa fa-check"></i>&nbsp;提交
+                                    </button>
+                                </div>
+                            </div>
+                        </div>
+                    </form>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_edit.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/school/enterprise_edit.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 26 - 4
app/enterprise/controller/Index.php

@@ -5,6 +5,7 @@ namespace app\enterprise\controller;
 use app\admin\model\Enterprise;
 use app\enterprise\common\EnterpriseController;
 use app\common\api\DictApi;
+use app\common\state\CommonConst;
 
 /**
  * Description of Index
@@ -33,7 +34,11 @@ class Index extends EnterpriseController {
                         $checkEnterpriseFullFields[] = "typeImg";
                     }
                 } else {
-                    $checkEnterpriseFullFields = ["bankCard", "bankNetwork", "bank", "imgurl", "bankImg", "beian"];
+                    if (!in_array($ep["type"], [CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ])) {
+                        $checkEnterpriseFullFields = ["bankCard", "bankNetwork", "bank", "imgurl", "bankImg", "beian"];
+                    } else {
+                        $checkEnterpriseFullFields = [];
+                    }
                 }
                 break;
             case 1:
@@ -95,15 +100,21 @@ class Index extends EnterpriseController {
             }
         }
         switch ($ep['type']) {
-            case 1:
+            case CommonConst::ENTERPRISE_NORMAL:
                 $ep['typeName'] = '晋江市现代产业体系人才';
                 break;
-            case 2:
+            case CommonConst::ENTERPRISE_JC:
                 $ep['typeName'] = '集成电路优秀人才';
                 break;
             case 3:
                 $ep['typeName'] = '海峡计划团队';
                 break;
+            case CommonConst::ENTERPRISE_WJ:
+                $ep['typeName'] = '卫健医院';
+                break;
+            case CommonConst::ENTERPRISE_GJ:
+                $ep['typeName'] = '高教学校';
+                break;
         }
         switch ($ep['checkState']) {
             case 1:
@@ -128,8 +139,19 @@ class Index extends EnterpriseController {
                 break;
         }
 
+        $template = "";
+        switch ($this->user["type"]) {
+            case CommonConst::ENTERPRISE_WJ:
+                $template = "/index/hospital/center_page";
+                $ep["fullLocationName"] = $ep["county"] ? \app\common\api\LocationApi::getNameByCode($ep["county"], true) : \app\common\api\LocationApi::getNameByCode($ep["city"], true);
+                break;
+            case CommonConst::ENTERPRISE_GJ:
+                $template = "/index/school/center_page";
+                $ep["fullLocationName"] = $ep["county"] ? \app\common\api\LocationApi::getNameByCode($ep["county"], true) : \app\common\api\LocationApi::getNameByCode($ep["city"], true);
+                break;
+        }
 
-        return view("", ['ep' => $ep]);
+        return view($template, ['ep' => $ep]);
     }
 
 }

+ 395 - 0
app/enterprise/view/index/hospital/center_page.html

@@ -0,0 +1,395 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .spacing {
+        margin-bottom: 10px;
+        padding-right: 4px;
+        padding-left: 4px;
+    }
+    table {
+        word-wrap: break-word;
+        word-break: break-all
+    }
+
+    .layui-layer-btn .layui-layer-btn1 {
+        border-color: #009688;
+        background-color: #009688;
+        color: #fff;
+    }
+    .key{
+        width: 150px;
+        text-align: right;
+        background-color: #f0f9eb;
+    }
+    .value1{
+        width: 240px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-title">
+        <h5>机构用户中心</h5>
+    </div>
+    <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">基本信息</a></li>
+                            <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">机构信息变更</a></li>
+                            <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">修改密码</a></li>
+                            <!--              <li class="" ><a data-toggle="tab" href="#tab-4" aria-expanded="false">绑定聚才网账号</a></li>-->
+                        </ul>
+                        <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">{eq name="ep.special" value="0"}企业{else/}单位{/eq}信息</div>
+                                        <div class="panel-body">
+
+                                            <table style="width:100%" class="table table-bordered">
+                                                <tr>
+                                                    <td class="key">
+                                                        账号
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.username}
+                                                    </td>
+                                                    <td class="key">
+                                                        {eq name="ep.special" value="0"}企业{else/}单位{/eq}名称
+                                                    </td>
+                                                    <td class="value1" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.name}
+                                                    </td>
+                                                    <td rowspan="4"  style="border: 1px solid #c0a16b">
+                                                        <label>{eq name="ep.special" value="0"}营业执照{else/}事业单位法人证或批文{/eq}</label>
+                                                        {if condition="$ep['imgurl']"}
+                                                        {if condition="$ep['imgurl_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="yyzz" src="{$ep.imgurl|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.imgurl|getStoragePath}', 'imgurl')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        统一社会信用代码
+                                                    </td>
+                                                    <td>
+                                                        {$ep.idCard}
+                                                    </td>
+                                                    <td class="key">
+                                                        法人代表
+                                                    </td>
+                                                    <td>
+                                                        {$ep.legal}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        所属街道
+                                                    </td>
+                                                    <td>
+                                                        {$ep.streetName}
+                                                    </td>
+                                                    <td class="key">
+                                                        {eq name="ep.special" value="0"}企业{else/}单位{/eq}电话
+                                                    </td>
+                                                    <td>
+                                                        {$ep.ephone}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+
+                                                    <td class="key">
+                                                        {eq name="ep.special" value="0"}企业{else/}单位{/eq}地址
+                                                    </td>
+                                                    <td colspan="3">
+                                                        {$ep.address}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        {eq name="ep.special" value="0"}企业{else/}单位{/eq}银行账号
+                                                    </td>
+                                                    <td>
+                                                        {$ep.bankCard}
+                                                    </td>
+                                                    <td class="key">
+                                                        {eq name="ep.special" value="0"}企业{else/}单位{/eq}开户银行
+                                                    </td>
+                                                    <td style="border-right: 1px solid #c0a16b">
+                                                        {$ep.bank}
+                                                    </td>
+                                                    <td rowspan="2" style="border: 1px solid #c0a16b">
+                                                        <label>开户许可证/基本存款账户信息</label>
+                                                        {if condition="$ep['bankImg']"}
+                                                        {if condition="$ep['bankImg_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="bankImg" src="{$ep.bankImg|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.bankImg|getStoragePath}', 'bankImg')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        {eq name="ep.special" value="0"}企业{else/}单位{/eq}开户银行网点
+                                                    </td>
+                                                    <td>
+                                                        {$ep.bankNetwork}
+                                                    </td>
+                                                    {eq name="ep.special" value="3"}
+                                                    <td class="key">机构标签</td>                                                            
+                                                    <td>{$ep.organizationTagName}</td>
+                                                    {/eq}
+                                                    {eq name="ep.special" value="1"}
+                                                    <td class="key">单位标签</td>                                                            
+                                                    <td>{$ep.institutionTagName}</td>
+                                                {/eq}
+                                                </tr>
+                                            </table>
+                                            {eq name="ep.special" value="0"}
+                                            <p>
+                                                申报类型:
+                                                {switch name="ep.type"}
+                                                {case value="1"}晋江市现代产业体系人才{if condition="$ep['agencyTypeName']"}({$ep.agencyTypeName}){/if}{/case}
+                                                {case value="2"}集成电路优秀人才{/case}
+                                                {/switch}
+                                                <input type="hidden" id="type" value="{$ep.type}">
+                                            </p>
+                                            {if condition="$ep['type'] eq 1"}
+                                            <table style="width:100%;table-layout:fixed;" class="table table-bordered">
+                                                {if condition="$ep['agencyType'] eq 1"}
+                                                <tr class="type1">
+                                                    <td  class="key">
+                                                        产业领域
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.industryFieldNewName}
+                                                    </td>
+                                                    <td  class="key">
+                                                        行业领域
+                                                    </td>
+                                                    <td class="value1" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.industryFieldOldName}
+                                                    </td>
+                                                    <td style="border: 1px solid #c0a16b">
+                                                        <label>行业领域佐证材料</label>
+                                                        {if condition="$ep['domainImg']"}
+                                                        {if condition="$ep['domainImg_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="domainImg" src="{$ep.domainImg|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.domainImg|getStoragePath}', 'domainImg')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                {/if}
+                                                <tr class="type1">
+                                                    <td  class="key">
+                                                        企业标签
+                                                    </td>
+                                                    <td>
+                                                        {$ep.enterpriseTagName}
+                                                    </td>
+                                                    <td  class="key">
+                                                        企业类型
+                                                    </td>
+                                                    <td style="border-right:1px solid #c0a16b;">
+                                                        {$ep.enterpriseTypeName}
+                                                    </td>
+                                                    <td style="border: 1px solid #c0a16b">
+                                                        <label>规上、高新技术、专精特新企业上传材料</label>
+                                                        {if condition="$ep['typeImg']"}
+                                                        {if condition="$ep['typeImg_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="domainImg" src="{$ep.typeImg|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.typeImg|getStoragePath}', 'typeImg')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                            </table>
+                                            {/if}
+                                            {/eq}
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="panel-body">
+                                    <div class="panel panel-default">
+                                        <div class="panel-heading">人才联络员信息</div>
+                                        <div class="panel-body">
+                                            <table style="width:100%" class="table table-bordered">
+                                                <tr>
+                                                    <td class="key">
+                                                        姓名
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.agentName}
+                                                    </td>
+                                                    <td class="key">
+                                                        人才联络员电话
+                                                    </td>
+                                                    <td class="value1" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.agentPhone}
+                                                    </td>
+                                                    <td rowspan="2" style="border: 1px solid #c0a16b">
+                                                        <label>人才联络员信息备案表</label>
+                                                        {if condition="$ep['beian']"}
+                                                        {if condition="$ep['beian_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="domainImg" src="{$ep.beian|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.beian|getStoragePath}', 'beian')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        人才联络员邮箱
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.agentEmail}
+                                                    </td>
+                                                    <td colspan="2"></td>
+                                                </tr>
+
+                                            </table>
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+
+                            <div id="tab-2" class="tab-pane">
+                                <br/>
+                                <div class="row">
+                                    <div class="hidden-xs" id="tableToolbar" role="group">
+                                        <button type="button" class="btn btn-sm btn-primary"
+                                                onclick="EnterpriseCenter.addEnterprisechangeRecord()"><i
+                                                class="fa fa-plus"></i>申请变更
+                                        </button>
+                                        <button type="button" class="btn btn-sm btn-primary"
+                                                onclick="EnterpriseCenter.updateEnterprisechangeRecord()"><i
+                                                class="fa fa-edit"></i>修改
+                                        </button>
+                                        <button type="button" class="btn btn-sm btn-primary"
+                                                onclick="EnterpriseCenter.showEnterprisechangeRecordDetail()"><i
+                                                class="fa fa-info"></i>查看详情
+                                        </button>
+                                    </div>
+                                    <table id="table">
+                                    </table>
+                                </div>
+                            </div>
+                            <div id="tab-3" class="tab-pane">
+                                <div class="panel-body" style="width:900px;">
+                                    <br/>
+                                    <div class="row">
+                                        <div class="col-sm-12 b-r">
+                                            <div class="rowGroup" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">原密码</label>
+                                                <div class="col-sm-10">
+                                                    <input type="password" class="form-control"
+                                                           autocomplete='new-password' name="password"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="hr-line-dashed"></div>
+                                    <div class="row">
+                                        <div class="col-sm-12 b-r">
+                                            <div class="rowGroup" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">新密码</label>
+                                                <div class="col-sm-10">
+                                                    <input type="password" class="form-control"
+                                                           autocomplete='new-password' name="newPassword"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="hr-line-dashed"></div>
+                                    <div class="row">
+                                        <div class="col-sm-12 b-r">
+                                            <div class="rowGroup" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">重复新密码</label>
+                                                <div class="col-sm-10">
+                                                    <input type="password" class="form-control"
+                                                           autocomplete='new-password' name="newRePassword"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <div style="width:100%; text-align: center;">
+                                        <button type="button" class="btn btn-w-m btn-primary" style="width:200px;"
+                                                onclick="EnterpriseCenter.changePwd()">确认修改
+                                        </button>
+                                    </div>
+                                </div>
+                            </div>
+                            <div id="tab-4" class="tab-pane">
+                                <div class="panel-body" style="width:900px;">
+                                    <br/>
+                                    <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" id="username"
+                                                           name="username"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <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="password" class="form-control"
+                                                           autocomplete='new-password' id="password" name="password"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <div class="row">
+                                        <div class="col-sm-12 ">
+                                            <div class="rowGroup form-inline" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">人才联络员手机验证码</label>
+                                                <div class="col-sm-10">
+                                                    <input autocomplete="off" type="text" style="width: 80%"
+                                                           class="form-control" id="verificationCode"
+                                                           name="verificationCode"/>
+                                                    <button id="enterprise_sms_btn"
+                                                            style="margin-bottom: 0px;width: 18%"
+                                                            onclick="EnterpriseCenter.getEnterpriseSms()" type="button"
+                                                            class="btn btn-sm btn-info">获取验证码
+                                                    </button>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <div style="width:100%; text-align: center;">
+                                        <button type="button" class="btn btn-w-m btn-primary" style="width:200px;"
+                                                onclick="EnterpriseCenter.bindJcAccount()">确认绑定
+                                        </button>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/enterprise_center.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+<!--<script src='{$ctxPath}/static/modular/gate/enterprise/enterprise_center.js?v='></script>-->
+{/block}

+ 276 - 0
app/enterprise/view/index/school/center_page.html

@@ -0,0 +1,276 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    .spacing {
+        margin-bottom: 10px;
+        padding-right: 4px;
+        padding-left: 4px;
+    }
+    table {
+        word-wrap: break-word;
+        word-break: break-all
+    }
+
+    .layui-layer-btn .layui-layer-btn1 {
+        border-color: #009688;
+        background-color: #009688;
+        color: #fff;
+    }
+    .key{
+        width: 150px;
+        text-align: right;
+        background-color: #f0f9eb;
+    }
+    .value1{
+        width: 240px;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-title">
+        <h5>用户中心</h5>
+    </div>
+    <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">基本信息</a></li>
+                            <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">学校信息变更</a></li>
+                            <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">修改密码</a></li>
+                            <!--              <li class="" ><a data-toggle="tab" href="#tab-4" aria-expanded="false">绑定聚才网账号</a></li>-->
+                        </ul>
+                        <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">学校信息</div>
+                                        <div class="panel-body">
+
+                                            <table style="width:100%" class="table table-bordered">
+                                                <tr>
+                                                    <td class="key">
+                                                        账号
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.username}
+                                                    </td>
+                                                    <td class="key">
+                                                        学校名称
+                                                    </td>
+                                                    <td class="value1" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.name}
+                                                    </td>
+                                                    <td rowspan="3"  style="border: 1px solid #c0a16b">
+                                                        <label>办学许可证、法人证书或登记证书</label>
+                                                        {if condition="$ep['imgurl']"}
+                                                        {if condition="$ep['imgurl_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="yyzz" src="{$ep.imgurl|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.imgurl|getStoragePath}', 'imgurl')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        法人代表
+                                                    </td>
+                                                    <td>
+                                                        {$ep.legal}
+                                                    </td>
+                                                    <td class="key">
+                                                        学校电话
+                                                    </td>
+                                                    <td style="border-right: 1px solid #c0a16b">
+                                                        {$ep.ephone}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        学校地址
+                                                    </td>
+                                                    <td colspan="3" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.fullLocationName} {$ep.address}
+                                                    </td>
+                                                </tr>
+                                            </table>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="panel-body">
+                                    <div class="panel panel-default">
+                                        <div class="panel-heading">人才联络员信息</div>
+                                        <div class="panel-body">
+                                            <table style="width:100%" class="table table-bordered">
+                                                <tr>
+                                                    <td class="key">
+                                                        姓名
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.agentName}
+                                                    </td>
+                                                    <td class="key">
+                                                        人才联络员电话
+                                                    </td>
+                                                    <td class="value1" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.agentPhone}
+                                                    </td>
+                                                    <td rowspan="2" style="border: 1px solid #c0a16b">
+                                                        <label>人才联络员信息备案表</label>
+                                                        {if condition="$ep['beian']"}
+                                                        {if condition="$ep['beian_is_img'] eq 1"}
+                                                        <img onclick="Feng.showImg(this)" id="domainImg" src="{$ep.beian|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.beian|getStoragePath}', 'beian')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        人才联络员邮箱
+                                                    </td>
+                                                    <td class="value1">
+                                                        {$ep.agentEmail}
+                                                    </td>
+                                                    <td colspan="2" style="border-right: 1px solid #c0a16b"></td>
+                                                </tr>
+
+                                            </table>
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+
+                            <div id="tab-2" class="tab-pane">
+                                <br/>
+                                <div class="row">
+                                    <div class="hidden-xs" id="tableToolbar" role="group">
+                                        <button type="button" class="btn btn-sm btn-primary"
+                                                onclick="EnterpriseCenter.addEnterprisechangeRecord()"><i
+                                                class="fa fa-plus"></i>申请变更
+                                        </button>
+                                        <button type="button" class="btn btn-sm btn-primary"
+                                                onclick="EnterpriseCenter.updateEnterprisechangeRecord()"><i
+                                                class="fa fa-edit"></i>修改
+                                        </button>
+                                        <button type="button" class="btn btn-sm btn-primary"
+                                                onclick="EnterpriseCenter.showEnterprisechangeRecordDetail()"><i
+                                                class="fa fa-info"></i>查看详情
+                                        </button>
+                                    </div>
+                                    <table id="table">
+                                    </table>
+                                </div>
+                            </div>
+                            <div id="tab-3" class="tab-pane">
+                                <div class="panel-body" style="width:900px;">
+                                    <br/>
+                                    <div class="row">
+                                        <div class="col-sm-12 b-r">
+                                            <div class="rowGroup" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">原密码</label>
+                                                <div class="col-sm-10">
+                                                    <input type="password" class="form-control"
+                                                           autocomplete='new-password' name="password"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="hr-line-dashed"></div>
+                                    <div class="row">
+                                        <div class="col-sm-12 b-r">
+                                            <div class="rowGroup" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">新密码</label>
+                                                <div class="col-sm-10">
+                                                    <input type="password" class="form-control"
+                                                           autocomplete='new-password' name="newPassword"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="hr-line-dashed"></div>
+                                    <div class="row">
+                                        <div class="col-sm-12 b-r">
+                                            <div class="rowGroup" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">重复新密码</label>
+                                                <div class="col-sm-10">
+                                                    <input type="password" class="form-control"
+                                                           autocomplete='new-password' name="newRePassword"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <div style="width:100%; text-align: center;">
+                                        <button type="button" class="btn btn-w-m btn-primary" style="width:200px;"
+                                                onclick="EnterpriseCenter.changePwd()">确认修改
+                                        </button>
+                                    </div>
+                                </div>
+                            </div>
+                            <div id="tab-4" class="tab-pane">
+                                <div class="panel-body" style="width:900px;">
+                                    <br/>
+                                    <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" id="username"
+                                                           name="username"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <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="password" class="form-control"
+                                                           autocomplete='new-password' id="password" name="password"/>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <div class="row">
+                                        <div class="col-sm-12 ">
+                                            <div class="rowGroup form-inline" style="margin-bottom: 0px;">
+                                                <label class="col-sm-2 control-label">人才联络员手机验证码</label>
+                                                <div class="col-sm-10">
+                                                    <input autocomplete="off" type="text" style="width: 80%"
+                                                           class="form-control" id="verificationCode"
+                                                           name="verificationCode"/>
+                                                    <button id="enterprise_sms_btn"
+                                                            style="margin-bottom: 0px;width: 18%"
+                                                            onclick="EnterpriseCenter.getEnterpriseSms()" type="button"
+                                                            class="btn btn-sm btn-info">获取验证码
+                                                    </button>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <br/>
+                                    <div style="width:100%; text-align: center;">
+                                        <button type="button" class="btn btn-w-m btn-primary" style="width:200px;"
+                                                onclick="EnterpriseCenter.bindJcAccount()">确认绑定
+                                        </button>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/enterprise_center.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+<!--<script src='{$ctxPath}/static/modular/gate/enterprise/enterprise_center.js?v='></script>-->
+{/block}

+ 12 - 49
public/static/modular/gate/enterprise/enterprise_edit.js

@@ -8,24 +8,6 @@ var psSmsBtn = $("#ps_sms_btn");
 
 Register.enterpriseUserRegister = function () {
     $("#agentPhone").removeAttr("disabled");
-    var type = $("#type").val();
-    var special = $("#special").val();
-    var enterpriseTypeName = "企业";
-    var idCardName = "统一社会信用代码";
-    switch (special) {
-        case 0:
-            if (type == 5) {
-                enterpriseTypeName = "医院";
-                idCardName = "登记号";
-            }
-            if (type == 6) {
-                enterpriseTypeName = "学校";
-            }
-            break;
-        case 1:
-            enterpriseTypeName = "单位";
-            break;
-    }
     var username = $("#username").val();
     var name = $("#name").val();
     var idCard = $("#idCard").val();
@@ -33,15 +15,12 @@ Register.enterpriseUserRegister = function () {
     var agentPhone = $("#agentPhone").val();
     var legal = $("#legal").val();
     var street = $("#street").val();
-    var province = $("#province").val();
-    var city = $("#city").val();
-    var county = $("#county").val();
     var address = $("#address").val();
+    var type = $("#type").val();
     var agencyType = $("#agencyType").val();
+    var special = $("#special").val();
     var agentEmail = $("#agentEmail").val();
     var ephone = $("#ephone").val();
-    var medicalCommunityId = $("#medicalCommunityId").val();
-    var isGeneral = $("#isGeneral").val();
     var bankCard = $("#bankCard").val();
     var bank = $("#bank").val();
     var bankNetwork = $("#bankNetwork").val();
@@ -54,19 +33,19 @@ Register.enterpriseUserRegister = function () {
         return;
     }
     if (name == null || name == '') {
-        Feng.info("请填写" + enterpriseTypeName + "名称!");
+        Feng.info("请填写单位名称!");
         return;
     }
     if (name.length > 100) {
-        Feng.info(enterpriseTypeName + "名称最多100个字符!");
+        Feng.info("单位名称最多100个字符!");
         return;
     }
-    if ((idCard == null || idCard == '') && special != "1" && type != 6) {
-        Feng.info("请填写" + idCardName + "!");
+    if ((idCard == null || idCard == '') && special != "1") {
+        Feng.info("请填写统一社会信用代码!");
         return;
     }
     if (idCard.length > 40) {
-        Feng.info(idCardName + "最多40个字符!");
+        Feng.info("统一社会信用代码最多40个字符!");
         return;
     }
     if ((legal == null || legal == '') && special != "1") {
@@ -74,34 +53,18 @@ Register.enterpriseUserRegister = function () {
         return;
     }
     if (ephone == null || ephone == '') {
-        Feng.info("请填写" + enterpriseTypeName + "电话");
+        Feng.info("请填写单位电话");
         return;
     }
-    if ((medicalCommunityId == null || medicalCommunityId == '') && type == 5) {
-        Feng.info("请选择医共体");
-        return;
-    }
-    if ((isGeneral == null || isGeneral == '') && type == 5) {
-        Feng.info("请选择是否总院");
-        return;
-    }
-    if ((street == null || street == '') && [3, 4].indexOf(type) == -1) {
+    if (street == null || street == '') {
         Feng.info("请选择所属街道!");
         return;
     }
-    if ((province == null || province == '') && [5, 6].indexOf(type) > -1) {
-        Feng.info("请选择" + enterpriseTypeName + "所在省份!");
-        return;
-    }
-    if ((city == null || city == '') && [5, 6].indexOf(type) > -1) {
-        Feng.info("请选择" + enterpriseTypeName + "所在市!");
-        return;
-    }
     if (address == null || address == '') {
-        Feng.info("请填写" + enterpriseTypeName + "地址!");
+        Feng.info("请填写单位地址!");
         return;
     }
-    if (special != "1" && [2, 5, 6].indexOf(type) == -1) {
+    if (special != "1" && type != 2) {
         if (bankCard == null || bankCard == '') {
             Feng.info("请填写企业银行账号!");
             return;
@@ -170,7 +133,7 @@ Register.enterpriseUserRegister = function () {
         return;
     }
     if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(ephone)) {
-        Feng.info(enterpriseTypeName + "电话格式不合法!");
+        Feng.info("单位电话格式不合法!");
         return;
     }
     if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(agentPhone)) {

+ 234 - 0
public/static/modular/gate/enterprise/hospital/enterprise_edit.js

@@ -0,0 +1,234 @@
+var Register = {};
+
+var enterpriseCountDown = 0;
+var enterpriseSmsBtn = $("#enterprise_sms_btn");
+var persionCountDown = 0;
+var psSmsBtn = $("#ps_sms_btn");
+
+
+Register.enterpriseUserRegister = function () {
+    $("#agentPhone").removeAttr("disabled");
+    var type = $("#type").val();
+    var special = $("#special").val();
+    var enterpriseTypeName = "医院";
+    var idCardName = "登记号";
+    var username = $("#username").val();
+    var name = $("#name").val();
+    var idCard = $("#idCard").val();
+    var legal = $("#legal").val();
+    var ephone = $("#ephone").val();
+    var medicalCommunityId = $("#medicalCommunityId").val();
+    var isGeneral = $("#isGeneral").val();
+    var province = $("#province").val();
+    var city = $("#city").val();
+    var county = $("#county").val();
+    var address = $("#address").val();
+    var agentName = $("#agentName").val();
+    var agentPhone = $("#agentPhone").val();
+    var agentEmail = $("#agentEmail").val();
+    if (username == null || username == '') {
+        Feng.info("请填写账号!");
+        return;
+    }
+    if (username.length > 50) {
+        Feng.info("账号最多50个字符!");
+        return;
+    }
+    if (name == null || name == '') {
+        Feng.info("请填写" + enterpriseTypeName + "名称!");
+        return;
+    }
+    if (name.length > 100) {
+        Feng.info(enterpriseTypeName + "名称最多100个字符!");
+        return;
+    }
+    if (idCard == null || idCard == '') {
+        Feng.info("请填写" + idCardName + "!");
+        return;
+    }
+    if (idCard.length > 40) {
+        Feng.info(idCardName + "最多40个字符!");
+        return;
+    }
+    if (legal == null || legal == '') {
+        Feng.info("请填写法人代表!");
+        return;
+    }
+    if (ephone == null || ephone == '') {
+        Feng.info("请填写" + enterpriseTypeName + "电话");
+        return;
+    }
+    if (medicalCommunityId == null || medicalCommunityId == '') {
+        Feng.info("请选择医共体");
+        return;
+    }
+    if (isGeneral == null || isGeneral == '') {
+        Feng.info("请选择是否总院");
+        return;
+    }
+    if (province == null || province == '') {
+        Feng.info("请选择" + enterpriseTypeName + "所在省份!");
+        return;
+    }
+    if (city == null || city == '') {
+        Feng.info("请选择" + enterpriseTypeName + "所在市!");
+        return;
+    }
+    if ((county == null || county == '') && $("#county option").length > 1 && $("#county option:selected").length == 0) {
+        Feng.info("请选择" + enterpriseTypeName + "所在县\区!");
+        return;
+    }
+    if (address == null || address == '') {
+        Feng.info("请填写" + enterpriseTypeName + "地址!");
+        return;
+    }
+    if (agentName == null || agentName == '') {
+        Feng.info("请填写人才联络员!");
+        return;
+    }
+    if (agentName.length > 30) {
+        Feng.info("人才联络员最多30个字符!");
+        return;
+    }
+    if (agentPhone == null || agentPhone == '') {
+        Feng.info("请填写人才联络员电话!");
+        return;
+    }
+
+    if (agentEmail == null || agentEmail == '') {
+        Feng.info("请填写电子邮箱!");
+        return;
+    }
+    if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(ephone)) {
+        Feng.info(enterpriseTypeName + "电话格式不合法!");
+        return;
+    }
+    if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(agentPhone)) {
+        Feng.info("人才联络员电话格式不合法!");
+        return;
+    }
+    if (!/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(agentEmail)) {
+        Feng.info("电子邮箱格式不合法!");
+        return;
+    }
+    $("#ep_form")[0].submit();
+};
+
+
+/**
+ * 企业用户注册回调
+ */
+Register.epCallBack = function (data) {
+    $("#agentPhone").prop("disabled", true);
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        setInterval(function () {
+            window.location.href = Feng.ctxPath + "/";
+        }, 3000);
+    }
+};
+$("#imgurl,#bankImg,#beian,#domainImg,#typeImg").change(function (e) {
+    var that = this;
+    if (!Feng.chkFileInvalid(that.files[0], 5, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片")) {
+        return;
+    }
+    var file = that.files[0];
+    var imgSrc;
+    var reader = new FileReader();
+    reader.readAsDataURL(file);
+    reader.onload = function () {
+        if (Feng.isImg(file.type)) {
+            imgSrc = this.result;
+            $(that).prev("img").attr("src", imgSrc);
+        } else {
+            $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/Pdf.png");
+        }
+    };
+});
+Register.setFieldDisabled = function () {
+    //注释注册驳回$("#ep_form :input").not("button").prop("disabled", true);
+    var fields = $("#fields").val().split(",");
+    for (var i in fields) {
+        $("#" + fields[i]).removeAttr("disabled");
+    }
+    var files = $("#files").val().split(",");
+    for (var i in files) {
+        switch (files[i]) {
+            case "imgurl":
+                $("#imgurl").removeAttr("disabled");
+                var html = $("#imgurl").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#imgurl").parent().find("label").html(html);
+                break;
+            case "bankImg":
+                $("#bankImg").removeAttr("disabled");
+                var html = $("#bankImg").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#bankImg").parent().find("label").html(html);
+                break;
+            case "domainImg":
+                $("#domainImg").removeAttr("disabled");
+                var html = $("#domainImg").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#domainImg").parent().find("label").html(html);
+                break;
+            case "typeImg":
+                $("#typeImg").removeAttr("disabled");
+                var html = $("#typeImg").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#typeImg").parent().find("label").html(html);
+                break;
+            case "beian":
+                $("#beian").removeAttr("disabled");
+                var html = $("#beian").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#beian").parent().find("label").html(html);
+                break;
+        }
+    }
+}
+
+Register.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
+    });
+}
+/**
+ * 加载县
+ */
+Register.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
+    });
+}
+
+$(function () {
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "province",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/getProvinceSelect"
+    });
+
+    $("select").each(function () {
+        $(this).val($(this).attr("value"));
+        $(this).trigger("change");
+    });
+    Register.setFieldDisabled();
+});

+ 213 - 0
public/static/modular/gate/enterprise/school/enterprise_edit.js

@@ -0,0 +1,213 @@
+var Register = {};
+
+var enterpriseCountDown = 0;
+var enterpriseSmsBtn = $("#enterprise_sms_btn");
+var persionCountDown = 0;
+var psSmsBtn = $("#ps_sms_btn");
+
+
+Register.enterpriseUserRegister = function () {
+    $("#agentPhone").removeAttr("disabled");
+    var type = $("#type").val();
+    var special = $("#special").val();
+    var enterpriseTypeName = "学校";
+    var username = $("#username").val();
+    var name = $("#name").val();
+    var legal = $("#legal").val();
+    var province = $("#province").val();
+    var city = $("#city").val();
+    var county = $("#county").val();
+    var address = $("#address").val();
+    var ephone = $("#ephone").val();
+    var agentName = $("#agentName").val();
+    var agentPhone = $("#agentPhone").val();
+    var agentEmail = $("#agentEmail").val();
+    if (username == null || username == '') {
+        Feng.info("请填写账号!");
+        return;
+    }
+    if (username.length > 50) {
+        Feng.info("账号最多50个字符!");
+        return;
+    }
+    if (name == null || name == '') {
+        Feng.info("请填写" + enterpriseTypeName + "名称!");
+        return;
+    }
+    if (name.length > 100) {
+        Feng.info(enterpriseTypeName + "名称最多100个字符!");
+        return;
+    }
+    if (legal == null || legal == '') {
+        Feng.info("请填写法人代表!");
+        return;
+    }
+    if (ephone == null || ephone == '') {
+        Feng.info("请填写" + enterpriseTypeName + "电话");
+        return;
+    }
+    if (province == null || province == '') {
+        Feng.info("请选择" + enterpriseTypeName + "所在省份!");
+        return;
+    }
+    if (city == null || city == '') {
+        Feng.info("请选择" + enterpriseTypeName + "所在市!");
+        return;
+    }
+    if ((county == null || county == '') && $("#county option").length > 1 && $("#county option:selected").length == 0) {
+        Feng.info("请选择" + enterpriseTypeName + "所在县\区!");
+        return;
+    }
+    if (address == null || address == '') {
+        Feng.info("请填写" + enterpriseTypeName + "地址!");
+        return;
+    }
+    if (agentName == null || agentName == '') {
+        Feng.info("请填写人才联络员!");
+        return;
+    }
+    if (agentName.length > 30) {
+        Feng.info("人才联络员最多30个字符!");
+        return;
+    }
+    if (agentPhone == null || agentPhone == '') {
+        Feng.info("请填写人才联络员电话!");
+        return;
+    }
+
+    if (agentEmail == null || agentEmail == '') {
+        Feng.info("请填写电子邮箱!");
+        return;
+    }
+    if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(ephone)) {
+        Feng.info(enterpriseTypeName + "电话格式不合法!");
+        return;
+    }
+    if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(agentPhone)) {
+        Feng.info("人才联络员电话格式不合法!");
+        return;
+    }
+    if (!/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(agentEmail)) {
+        Feng.info("电子邮箱格式不合法!");
+        return;
+    }
+    $("#ep_form")[0].submit();
+};
+
+/**
+ * 企业用户注册回调
+ */
+Register.epCallBack = function (data) {
+    $("#agentPhone").prop("disabled", true);
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        setInterval(function () {
+            window.location.href = Feng.ctxPath + "/";
+        }, 3000);
+    }
+};
+$("#imgurl,#bankImg,#beian,#domainImg,#typeImg").change(function (e) {
+    var that = this;
+    if (!Feng.chkFileInvalid(that.files[0], 5, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片")) {
+        return;
+    }
+    var file = that.files[0];
+    var imgSrc;
+    var reader = new FileReader();
+    reader.readAsDataURL(file);
+    reader.onload = function () {
+        if (Feng.isImg(file.type)) {
+            imgSrc = this.result;
+            $(that).prev("img").attr("src", imgSrc);
+        } else {
+            $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/Pdf.png");
+        }
+    };
+});
+Register.setFieldDisabled = function () {
+    //注释注册驳回$("#ep_form :input").not("button").prop("disabled", true);
+    var fields = $("#fields").val().split(",");
+    for (var i in fields) {
+        $("#" + fields[i]).removeAttr("disabled");
+    }
+    var files = $("#files").val().split(",");
+    for (var i in files) {
+        switch (files[i]) {
+            case "imgurl":
+                $("#imgurl").removeAttr("disabled");
+                var html = $("#imgurl").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#imgurl").parent().find("label").html(html);
+                break;
+            case "bankImg":
+                $("#bankImg").removeAttr("disabled");
+                var html = $("#bankImg").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#bankImg").parent().find("label").html(html);
+                break;
+            case "domainImg":
+                $("#domainImg").removeAttr("disabled");
+                var html = $("#domainImg").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#domainImg").parent().find("label").html(html);
+                break;
+            case "typeImg":
+                $("#typeImg").removeAttr("disabled");
+                var html = $("#typeImg").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#typeImg").parent().find("label").html(html);
+                break;
+            case "beian":
+                $("#beian").removeAttr("disabled");
+                var html = $("#beian").parent().find("label").html() + "<br><span style=\"color:red;\">(可修改)</span>";
+                $("#beian").parent().find("label").html(html);
+                break;
+        }
+    }
+}
+
+Register.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
+    });
+}
+/**
+ * 加载县
+ */
+Register.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
+    });
+}
+
+$(function () {
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "province",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/getProvinceSelect"
+    });
+
+    $("select").each(function () {
+        $(this).val($(this).attr("value"));
+        $(this).trigger("change");
+    });
+    Register.setFieldDisabled();
+});

+ 1 - 1
sys_config.json

@@ -1,6 +1,6 @@
 {
     "super_users_for_enterprise": [
-        "admin", "rs08", "rs02", "rs03", "rs04", "rs09", "rs13"
+        "admin", "rs08", "rs02", "rs03", "rs04", "rs09", "rs13","weijian","gaojiao"
     ],
     "super_privs_for_dept_verify": {
         "companys": ["super", "人社局人才服务科"],