sugangqiang 1 年之前
父节点
当前提交
0fbc2ad8c8
共有 41 个文件被更改,包括 3799 次插入1063 次删除
  1. 1 4
      app/admin/controller/Enterprise.php
  2. 62 47
      app/admin/controller/EnterpriseChangeRecord.php
  3. 49 49
      app/admin/view/enterprise/hospital/goto_active_page.html
  4. 2 2
      app/admin/view/enterprise/hospital/goto_reject_page.html
  5. 50 39
      app/admin/view/enterprise/school/goto_active_page.html
  6. 14 6
      app/admin/view/enterprise/school/goto_enterprise_detail_page.html
  7. 10 0
      app/admin/view/enterprise/school/goto_enterprise_page.html
  8. 11 0
      app/admin/view/enterprise/school/goto_examine_page.html
  9. 1 1
      app/admin/view/enterprise/school/goto_reject_page.html
  10. 1 0
      app/admin/view/enterprise_change_record/goto_enterprise_change_examine_page.html
  11. 0 300
      app/admin/view/enterprise_change_record/hospital/goto_enterprise_change_detail_page1.html
  12. 0 63
      app/admin/view/enterprise_change_record/hospital/goto_enterprise_change_examine_page.html
  13. 12 8
      app/admin/view/enterprise_change_record/school/goto_enterprise_change_detail_page.html
  14. 0 300
      app/admin/view/enterprise_change_record/school/goto_enterprise_change_detail_page1.html
  15. 0 63
      app/admin/view/enterprise_change_record/school/goto_enterprise_change_examine_page.html
  16. 20 0
      app/admin/view/enterprise_change_record/school/goto_enterprise_change_record_page.html
  17. 2 0
      app/common/api/EnterpriseApi.php
  18. 1 1
      app/common/api/LocationApi.php
  19. 10 0
      app/common/controller/Auth.php
  20. 10 1
      app/common/validate/Hospital.php
  21. 13 2
      app/common/validate/School.php
  22. 9 3
      app/common/view/auth/register.html
  23. 78 30
      app/enterprise/controller/Api.php
  24. 16 11
      app/enterprise/controller/Index.php
  25. 308 0
      app/enterprise/view/api/hospital/to_add.html
  26. 372 0
      app/enterprise/view/api/hospital/to_detail.html
  27. 311 0
      app/enterprise/view/api/hospital/to_update.html
  28. 162 0
      app/enterprise/view/api/school/to_add.html
  29. 202 0
      app/enterprise/view/api/school/to_detail.html
  30. 165 0
      app/enterprise/view/api/school/to_update.html
  31. 16 121
      app/enterprise/view/index/hospital/center_page.html
  32. 12 6
      app/enterprise/view/index/school/center_page.html
  33. 4 3
      public/static/js/register.js
  34. 10 1
      public/static/modular/enterprise/enterprisechangeRecord/ep_change_record_examine.js
  35. 3 0
      public/static/modular/enterprise/school/enterprise_list.js
  36. 18 2
      public/static/modular/enterprise/school/enterprisechangeRecord/ep_change_record_list.js
  37. 308 0
      public/static/modular/gate/enterprise/hospital/enterprise_center.js
  38. 648 0
      public/static/modular/gate/enterprise/hospital/enterprise_change_edit.js
  39. 309 0
      public/static/modular/gate/enterprise/school/enterprise_center.js
  40. 569 0
      public/static/modular/gate/enterprise/school/enterprise_change_edit.js
  41. 10 0
      public/static/modular/gate/enterprise/school/enterprise_edit.js

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

@@ -197,17 +197,14 @@ class Enterprise extends AdminController {
             $ep['beian_is_img'] = 0;
         }
 
-
         $template = "";
         switch ($this->user["type"]) {
             case CommonConst::ENTERPRISE_WJ:
                 $template = "/enterprise/hospital/goto_enterprise_detail_page";
                 $ep["medicalCommunityName"] = \app\common\api\Nhc::getMedicalCommunityMap()[$ep["medicalCommunityId"]];
-                $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 = "/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;
@@ -762,7 +759,7 @@ class Enterprise extends AdminController {
                     "agentName" => "人才联络员姓名", "agentPhone" => "人才联络员电话", "agentEmail" => "人才联络员邮箱"];
                 $files = ["imgurl" => "医疗机构执业许可证", "beian" => "人才联络员信息备案表"];
             } else if ($type == CommonConst::ENTERPRISE_GJ) {
-                $fields = ["name" => "学校名称", "legal" => "法人代表", "ephone" => "学校电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "学校地址",
+                $fields = ["name" => "学校名称", "idCard" => "统一社会信用代码", "legal" => "法人代表", "ephone" => "学校电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "学校地址",
                     "agentName" => "人才联络员姓名", "agentPhone" => "人才联络员电话", "agentEmail" => "人才联络员邮箱"];
                 $files = ["imgurl" => "办学许可证、法人证书或登记证书", "beian" => "人才联络员信息备案表"];
             } else {

+ 62 - 47
app/admin/controller/EnterpriseChangeRecord.php

@@ -322,7 +322,6 @@ class EnterpriseChangeRecord extends AdminController {
                     $industry = DictApi::findDictByCode($ecr['newEnterpriseType']);
                     $ecr['newEnterpriseTypeName'] = $industry['name'];
                 }
-                return view("", ['ecr' => $ecr]);
                 break;
             case 1:
                 if (\StrUtil::isNotEmpAndNull($ecr['oldInstitutionTag']) || \StrUtil::isNotEmpAndNull($ecr['newInstitutionTag'])) {
@@ -334,7 +333,6 @@ class EnterpriseChangeRecord extends AdminController {
                         $ecr['newInstitutionTagName'] = $tagList[$ecr['newInstitutionTag']];
                     }
                 }
-                return view("", ['ecr' => $ecr]);
                 break;
             case 3:
                 if (\StrUtil::isNotEmpAndNull($ecr['oldOrganizationTag']) || \StrUtil::isNotEmpAndNull($ecr['newOrganizationTag'])) {
@@ -346,12 +344,22 @@ class EnterpriseChangeRecord extends AdminController {
                         $ecr['newOrganizationTagName'] = $tagList[$ecr['newOrganizationTag']];
                     }
                 }
-                return view("", ['ecr' => $ecr]);
                 break;
             default:
 
                 break;
         }
+
+        $template = "";
+        switch ($this->user["type"]) {
+            case CommonConst::ENTERPRISE_WJ:
+                $template = "/enterprise_change_record/hospital/goto_enterprise_change_detail_page";
+                break;
+            case CommonConst::ENTERPRISE_GJ:
+                $template = "/enterprise_change_record/school/goto_enterprise_change_detail_page";
+                break;
+        }
+        return view($template, ['ecr' => $ecr]);
     }
 
     public function gotoEnterpriseChangeExaminePage() {
@@ -367,28 +375,11 @@ class EnterpriseChangeRecord extends AdminController {
             $ecr["checkState"] = $lastLog["state"];
             $ecr["checkMsg"] = $lastLog["description"];
         }
-        if ($ep->special == 0) {
-            if ($ep->type == 1) {
-                $fields = ["Name" => "企业名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "企业地址", "Street" => "所属街道", "Ephone" => "企业电话", "BankCard" => "企业银行账号", "Bank" => "企业开户银行", "BankNetwork" => "企业开户银行网点",
-                    "AgencyType" => "机构类型", "IndustryFieldNew" => "产业领域", "IndustryFieldOld" => "行业领域", "EnterpriseTag" => "企业标签", "EnterpriseType" => "企业类型",
-                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-                $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newDomainImg" => "行业领域佐证材料", "newBeian" => "人才联络员信息备案表", "newTypeImg" => "规上、高新技术、专精特新企业上传材料"];
-            } else {
-                $fields = ["Name" => "企业名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "企业地址", "Street" => "所属街道", "Ephone" => "企业电话", "BankCard" => "企业银行账号", "Bank" => "企业开户银行", "BankNetwork" => "企业开户银行网点",
-                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-                $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员备案表"];
-            }
-        } else {
-            $fields = ["Name" => "单位名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "单位地址", "Street" => "所属街道", "Ephone" => "单位电话", "BankCard" => "单位银行账号", "Bank" => "单位开户银行", "BankNetwork" => "单位开户银行网点",
-                "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-            if ($ep->special == 1) {
-                $fields["InstitutionTag"] = "单位标签";
-            }
-            if ($ep->special == 3) {
-                $fields["OrganizationTag"] = "机构标签";
-            }
-            $files = ["newImgurl" => "法人证或批文", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员备案表"];
-        }
+
+        $fieldsAndFiles = $this->getFieldAndFilesBySpecialAndType($ep->special, $ep->type);
+        $fields = $fieldsAndFiles["fields"];
+        $files = $fieldsAndFiles["files"];
+
         $modify_fields = [];
         foreach ($fields as $key => $value) {
             $oldFieldName = "old" . $key;
@@ -561,11 +552,19 @@ class EnterpriseChangeRecord extends AdminController {
                     $ep = EnterpriseApi::getOne($ecr['mainId']);
                     $ep->name = $ecr['newName'];
                     $ep->idCard = $ecr['newIdCard'];
+                    $ep->medicalCommunityId = $ecr['newMedicalCommunityId'];
+                    $ep->isGeneral = $ecr['newIsGeneral'];
                     $ep->agencyType = $ecr['newAgencyType'];
                     $ep->enterpriseTag = $ecr['newEnterpriseTag'];
                     $ep->organizationTag = $ecr['newOrganizationTag'];
                     $ep->institutionTag = $ecr['newInstitutionTag'];
                     $ep->street = $ecr['newStreet'];
+                    $ep->province = $ecr['newProvince'];
+                    $ep->city = $ecr['newCity'];
+                    $ep->county = $ecr['newCounty'];
+                    $ep->provinceName = $ecr['newProvinceName'];
+                    $ep->cityName = $ecr['newCityName'];
+                    $ep->countyName = $ecr['newCountyName'];
                     $ep->address = $ecr['newAddress'];
                     $ep->legal = $ecr['newLegal'];
                     $ep->ephone = $ecr['newEphone'];
@@ -706,28 +705,10 @@ class EnterpriseChangeRecord extends AdminController {
             return json(["msg" => '没有对应的企业变更信息!']);
         }
 
-        if ($ep->special == 0) {
-            if ($ep->type == 1) {
-                $fields = ["Name" => "企业名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "企业地址", "Street" => "所属街道", "Ephone" => "企业电话", "BankCard" => "企业银行账号", "Bank" => "企业开户银行", "BankNetwork" => "企业开户银行网点",
-                    "AgencyType" => "机构类型", "IndustryFieldNew" => "产业领域", "IndustryFieldOld" => "行业领域", "EnterpriseTag" => "企业标签", "EnterpriseType" => "企业类型",
-                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-                $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newDomainImg" => "行业领域佐证材料", "newBeian" => "人才联络员信息备案表", "newTypeImg" => "规上、高新技术、专精特新企业上传材料"];
-            } else {
-                $fields = ["Name" => "企业名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "企业地址", "Street" => "所属街道", "Ephone" => "企业电话", "BankCard" => "企业银行账号", "Bank" => "企业开户银行", "BankNetwork" => "企业开户银行网点",
-                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-                $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员备案表"];
-            }
-        } else {
-            $fields = ["Name" => "单位名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "单位地址", "Street" => "所属街道", "Ephone" => "单位电话", "BankCard" => "单位银行账号", "Bank" => "单位开户银行", "BankNetwork" => "单位开户银行网点",
-                "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-            if ($ep->special == 1) {
-                $fields["InstitutionTag"] = "单位标签";
-            }
-            if ($ep->special == 3) {
-                $fields["OrganizationTag"] = "机构标签";
-            }
-            $files = ["newImgurl" => "法人证或批文", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员备案表"];
-        }
+        $fieldsAndFiles = $this->getFieldAndFilesBySpecialAndType($ep->special, $ep->type);
+        $fields = $fieldsAndFiles["fields"];
+        $files = $fieldsAndFiles["files"];
+
         $modify_fields = [];
         foreach ($fields as $key => $value) {
             $oldFieldName = "old" . $key;
@@ -800,4 +781,38 @@ class EnterpriseChangeRecord extends AdminController {
         }
     }
 
+    private function getFieldAndFilesBySpecialAndType($special, $type) {
+        if ($special == 0) {
+            if ($type == CommonConst::ENTERPRISE_JC) {
+                $fields = ["Name" => "企业名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "企业地址", "Street" => "所属街道", "Ephone" => "企业电话", "BankCard" => "企业银行账号", "Bank" => "企业开户银行", "BankNetwork" => "企业开户银行网点",
+                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
+                $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员信息备案表"];
+            } else if ($type == CommonConst::ENTERPRISE_WJ) {
+                $fields = ["Name" => "医院名称", "IdCard" => "登记号", "Legal" => "法人代表", "MedicalCommunityId" => "医共体", "IsGeneral" => "是否总院", "Ephone" => "医院电话", "Province" => "地址省", "City" => "地址市", "County" => "地址县\区", "Address" => "企业地址",
+                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
+                $files = ["newImgurl" => "医疗机构执业许可证", "newBeian" => "人才联络员信息备案表"];
+            } else if ($type == CommonConst::ENTERPRISE_GJ) {
+                $fields = ["Name" => "学校名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Ephone" => "学校电话", "Province" => "地址省", "City" => "地址市", "County" => "地址县\区", "Address" => "学校地址",
+                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
+                $files = ["newImgurl" => "办学许可证、法人证书或登记证书", "newBeian" => "人才联络员信息备案表"];
+            } else {
+                $fields = ["Name" => "企业名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "企业地址", "Street" => "所属街道", "Ephone" => "企业电话", "BankCard" => "企业银行账号", "Bank" => "企业开户银行", "BankNetwork" => "企业开户银行网点",
+                    "AgencyType" => "机构类型", "IndustryFieldNew" => "产业领域", "IndustryFieldOld" => "行业领域", "EnterpriseTag" => "企业标签", "EnterpriseType" => "企业类型",
+                    "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
+                $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newDomainImg" => "行业领域佐证材料", "newBeian" => "人才联络员信息备案表", "newTypeImg" => "规上、高新技术、专精特新企业上传材料"];
+            }
+        } else {
+            $fields = ["Name" => "单位名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Address" => "单位地址", "Street" => "所属街道", "Ephone" => "单位电话", "BankCard" => "单位银行账号", "Bank" => "单位开户银行", "BankNetwork" => "单位开户银行网点",
+                "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
+            if ($special == 1) {
+                $fields["InstitutionTag"] = "单位标签";
+            }
+            if ($special == 3) {
+                $fields["OrganizationTag"] = "机构标签";
+            }
+            $files = ["newImgurl" => "法人证或批文", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员备案表"];
+        }
+        return ["fields" => $fields, "files" => $files];
+    }
+
 }

+ 49 - 49
app/admin/view/enterprise/hospital/goto_active_page.html

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

+ 2 - 2
app/admin/view/enterprise/hospital/goto_reject_page.html

@@ -7,7 +7,7 @@
             <div class="row">
                 <div class="col-sm-12">
                     <div class="rowGroup"  style="margin-bottom: 0px;">
-                        <label class="col-sm-2 control-label">单位名称</label>
+                        <label class="col-sm-2 control-label">医院名称</label>
                         <div class="col-sm-10">
                             <input type="text" class="form-control" readonly="readonly" id="name" name="name" value="{$ep.name}"  />
                         </div>
@@ -18,7 +18,7 @@
             <div class="row">
                 <div class="col-sm-12">
                     <div class="rowGroup"  style="margin-bottom: 0px;">
-                        <label class="col-sm-2 control-label">统一社会信用代码</label>
+                        <label class="col-sm-2 control-label">登记号</label>
                         <div class="col-sm-10">
                             <input type="text" class="form-control" readonly="readonly" id="idCard" name="idCard" value="{$ep.idCard}"  />
                         </div>

+ 50 - 39
app/admin/view/enterprise/school/goto_active_page.html

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

+ 14 - 6
app/admin/view/enterprise/school/goto_enterprise_detail_page.html

@@ -29,7 +29,7 @@
 <script type="text/javascript">
     $(function () {
         $("select").each(function () {
-            $(this).val($(this).attr("value"));
+        $(this).val($(this).attr("value"));
         });
         {if condition = "!$ep['imgurl_is_img']"}
         $("#yyzz").attr("src", Feng.ctxPath + "/static/img/Pdf.png");
@@ -74,12 +74,12 @@
                                 {$ep.name}
                             </td>
                             <td class="key">
-                                法人代表
+                                统一社会信用代码
                             </td>
                             <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">
-                                {$ep.legal}
+                                {$ep.idCard}
                             </td>
-                            <td rowspan="2" style="border: 1px solid #c0a16b;width: 300px">
+                            <td rowspan="3" style="border: 1px solid #c0a16b;width: 300px">
                                 <label>
                                     办学许可证、法人证书或登记证书
                                 </label>
@@ -97,15 +97,23 @@
                         </tr>
                         <tr>
                             <td class="key">
-                                学校电话
+                                法人代表
                             </td>
                             <td class="value1 word-wrap">
+                                {$ep.legal}
+                            </td>
+                            <td class="key">
+                                学校电话
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">
                                 {$ep.ephone}
                             </td>
+                        </tr>
+                        <tr>
                             <td class="key">
                                 学校地址
                             </td>
-                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">                                
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b">                                
                                 {$ep.fullLocationName} {$ep.address}
                             </td>
                         </tr>

+ 10 - 0
app/admin/view/enterprise/school/goto_enterprise_page.html

@@ -23,6 +23,16 @@
                             <input type="text" class="form-control" id="name" placeholder=""/>
                         </div>
                     </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
+                                        type="button">统一社会信用代码
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="idCard" placeholder=""/>
+                        </div>
+                    </div>
                     <div class="col-sm-4">
                         <div class="input-group input-group-sm">
                             <div class="input-group-btn">

+ 11 - 0
app/admin/view/enterprise/school/goto_examine_page.html

@@ -16,6 +16,17 @@
                 </div>
             </div>
             <div class="hr-line-dashed"></div>
+            <div class="row">
+                <div class="col-sm-12">
+                    <div class="rowGroup"  style="margin-bottom: 0px;">
+                        <label class="col-sm-2 control-label">统一社会信用代码</label>
+                        <div class="col-sm-10">
+                            <input type="text" class="form-control" readonly="readonly" id="idCard" name="idCard" value="{$ep.idCard}"  />
+                        </div>
+                    </div>
+                </div>
+            </div>
+            <div class="hr-line-dashed"></div>
             <div class="row">
                 <div class="col-sm-12">
                     <div class="rowGroup"  style="margin-bottom: 0px;">

+ 1 - 1
app/admin/view/enterprise/school/goto_reject_page.html

@@ -7,7 +7,7 @@
             <div class="row">
                 <div class="col-sm-12">
                     <div class="rowGroup"  style="margin-bottom: 0px;">
-                        <label class="col-sm-2 control-label">单位名称</label>
+                        <label class="col-sm-2 control-label">学校名称</label>
                         <div class="col-sm-10">
                             <input type="text" class="form-control" readonly="readonly" id="name" name="name" value="{$ep.name}"  />
                         </div>

+ 1 - 0
app/admin/view/enterprise_change_record/goto_enterprise_change_examine_page.html

@@ -4,6 +4,7 @@
     <div class="ibox-content">
         <form id="erc_examine" class="form-horizontal">
             <input type="text" id="id" value="{$ecr.id}" style="display: none;" />
+            <input type="text" id="type" value="{$ecr.type}" style="display: none;" />
             <div class="row">
                 <div class="row">
                     <div class="col-sm-12">

+ 0 - 300
app/admin/view/enterprise_change_record/hospital/goto_enterprise_change_detail_page1.html

@@ -1,300 +0,0 @@
-{extend name="layout/content"}
-{block name="content"}
-<style>
-    .upload-btn {
-        position: relative;
-        display: inline-block;
-        cursor: pointer;
-        background: #1ab394;
-        padding: 6px 12px;
-        color: #fff;
-        text-align: center;
-        border-radius: 3px;
-        overflow: hidden;
-        font-size: 14px;
-        font-weight: 400;
-    }
-
-    .spacing {
-        margin-bottom: 10px;
-        padding-right: 4px;
-        padding-left: 4px;
-    }
-
-    .imgs li {
-        list-style: none;
-        float: left;
-        border: 1px solid #d8d1d1;
-        text-align: center;
-        height: 30px;
-    }
-</style>
-<div class="ibox float-e-margins">
-    <div class="ibox-content">
-        <div class="form-horizontal">
-            <div class="row">
-                <div class="col-sm-12">
-                    <div class="tabs-container">
-                        <ul class="nav nav-tabs">
-                            <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">1.基本信息</a>
-                            </li>
-                            <li id="fileLi" class=""><a data-toggle="tab" href="#tab-2" onclick="ecre.initFileTable()"
-                                                        aria-expanded="false">2.附件上传</a></li>
-                        </ul>
-                    </div>
-                    <div class="tab-content">
-                        <div id="tab-1" class="tab-pane active">
-                            <input type="text" class="form-control" id="id" name="id" value="{$ecr.id}"
-                                   style="display: none;"/>
-                            <input type="text" class="form-control" id="type" name="type" value="{$ecr.type}"
-                                   style="display: none;"/>
-                            <input style="display: none;" type="text" class="form-control" id="checkState"
-                                   name="checkState" value="{$ecr.checkState}"/>
-                            <div class="panel-body">
-                                <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">变更前机构信息</div>
-                                    <div class="panel-body">
-                                        <div class="col-sm-12 ">
-                                            <div class="row">
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位名称</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldName"
-                                                               name="oldName" value="{$ecr.oldName}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">统一社会信用代码</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldIdCard"
-                                                               name="oldIdCard" value="{$ecr.oldIdCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">法人代表</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldLegal"
-                                                               name="oldLegal" value="{$ecr.oldLegal}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>所属街道</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldStreet"
-                                                               name="oldStreet" value="{$ecr.oldStreetName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位地址</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAddress"
-                                                               name="oldAddress" value="{$ecr.oldAddress}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldEphone"
-                                                               name="oldEphone" value="{$ecr.oldEphone}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAgentName"
-                                                               name="oldAgentName" value="{$ecr.oldAgentName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAgentPhone"
-                                                               name="oldAgentPhone" value="{$ecr.oldAgentPhone}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>电子邮箱</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAgentEmail"
-                                                               name="oldAgentEmail" value="{$ecr.oldAgentEmail}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业银行账号</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldBankCard"
-                                                               name="oldBankCard" value="{$ecr.oldBankCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行网点</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldBankNetwork"
-                                                               name="oldBankNetwork" value="{$ecr.oldBankNetwork}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldBank"
-                                                               name="oldBank" value="{$ecr.oldBank}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        </div>
-                                    </div>
-                                </div>
-                                <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">变更后机构信息</div>
-                                    <div class="panel-body">
-
-                                        <div class="col-sm-12 ">
-                                            <div class="row">
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位名称</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newName"
-                                                               name="newName" value="{$ecr.newName}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">统一社会信用代码</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newIdCard"
-                                                               name="newIdCard" value="{$ecr.newIdCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">法人代表</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newLegal"
-                                                               name="newLegal" value="{$ecr.newLegal}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>所属街道</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newStreet"
-                                                               name="newStreet" value="{$ecr.newStreetName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位地址</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAddress"
-                                                               name="newAddress" value="{$ecr.newAddress}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newEphone"
-                                                               name="newEphone" value="{$ecr.newEphone}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAgentName"
-                                                               name="newAgentName" value="{$ecr.newAgentName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAgentPhone"
-                                                               name="newAgentPhone" value="{$ecr.newAgentPhone}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>电子邮箱</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAgentEmail"
-                                                               name="newAgentEmail" value="{$ecr.newAgentEmail}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业银行账号</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newBankCard"
-                                                               name="newBankCard" value="{$ecr.newBankCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行网点</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newBankNetwork"
-                                                               name="newBankNetwork" value="{$ecr.newBankNetwork}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newBank"
-                                                               name="newBank" value="{$ecr.newBank}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        </div>
-
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                        <div id="tab-2" class="tab-pane ">
-                            <table id="fileTable" class="table-condensed"
-                                   style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true"
-                                   data-click-to-select="true">
-                                <thead>
-                                <tr>
-                                    <th data-field="selectItem" data-checkbox="true"></th>
-                                </tr>
-                                </thead>
-                            </table>
-                            <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
-<script type="text/javascript">
-    document.write('<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail1.js?v='+(new Date()).getTime()+'"><\/script>');
-</script>
-{/block}

+ 0 - 63
app/admin/view/enterprise_change_record/hospital/goto_enterprise_change_examine_page.html

@@ -1,63 +0,0 @@
-{extend name="layout/content"}
-{block name="content"}
-<div class="ibox float-e-margins">
-    <div class="ibox-content">
-        <form id="erc_examine" class="form-horizontal">
-            <input type="text" id="id" value="{$ecr.id}" style="display: none;" />
-            <div class="row">
-                <div class="row">
-                    <div class="col-sm-12">
-                        <div class="rowGroup"  style="margin-bottom: 0px;">
-                            <label class="col-sm-2 control-label"><span class="text-danger">*</span>审核状态</label>
-                            <div class="col-sm-10">
-                                <select class="form-control" id="checkState" name="checkState" onchange="examine.toggleField()">
-                                    <option value="">--- 请选择 ---</option>
-                                    <option value="3" {in name="ecr.checkState" value="3,6"}selected{/in}>审核驳回</option>
-                                    <option value="4" {in name="ecr.checkState" value="4,7"}selected{/in}>审核通过</option>
-                                </select>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <div class="hr-line-dashed"></div>
-                <div class="row">
-                    <div class="col-sm-12">
-                        <div class="rowGroup"  style="margin-bottom: 0px;">
-                            <label class="col-sm-2 control-label">审核意见</label>
-                            <div class="col-sm-10">
-                                <textarea class="form-control" rows="6" id="checkMsg" name="checkMsg">{$ecr.checkMsg}</textarea>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <div id="field" {if condition="!in_array($ecr['checkState'],[3,6])"}style="padding-top:5px;display:none"{/if}>
-                    <label for="checkMsg" class="control-label">可修改字段</label>
-                    <div id="field_info">
-                        <ul style="overflow:hidden;list-style:none;">
-                            {volist name="fields" id="field"}
-                            <li style="float:left;margin-right:10px;"><input type="checkbox" value="{$field.field}" {if condition="$field['checked']"}checked="true"{/if}><span>{$field.name}</span></li>
-                            {/volist}
-                        </ul>
-                    </div>
-                    <label for="checkMsg" class="control-label">可修改附件</label>
-                    <div id="field_file">
-                        <ul style="overflow:hidden;list-style:none;">
-                            {volist name="files" id="file"}
-                            <li style="float:left;margin-right:10px;"><input type="checkbox" value="{$file.field}" {if condition="$file['checked']"}checked="true"{/if}><span>{$file.name}</span></li>
-                            {/volist}
-                        </ul>
-                    </div>
-                    <div class="form-group" style="text-align: center">
-                        <button type="button" class="btn btn-primary" onclick="examine.checkAll()">全选</button>
-                        <button type="button" class="btn btn-success" onclick="examine.unCheckAll()">反选</button>
-                    </div>
-                </div>
-            </div>
-        </form>
-    </div>
-</div>
-<input type="text" id="checkStateTemp" value="{$ecr.checkState}" style="display: none;" />
-<script type="text/javascript">
-    document.write('<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_examine.js?v=' + (new Date()).getTime() + '"><\/script>');
-</script>
-{/block}

+ 12 - 8
app/admin/view/enterprise_change_record/school/goto_enterprise_change_detail_page.html

@@ -79,12 +79,10 @@
                             </td>
                             <td class="value1 word-wrap" data-old='{$ecr.oldName}' data-new='{$ecr.newName}'></td>
                             <td class="key" style="border-right: 1px solid #c0a16b">
-                                法人代表
-                            </td>
-                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldLegal}' data-new='{$ecr.newLegal}'>
-                                {$ep.legal}
+                                统一社会信用代码
                             </td>
-                            <td rowspan="2" style="border: 1px solid #c0a16b;width: 300px">
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldIdCard}' data-new='{$ecr.newIdCard}'></td>
+                            <td rowspan="3" style="border: 1px solid #c0a16b;width: 300px">
                                 <label>
                                     办学许可证、法人证书或登记证书
                                 </label>
@@ -124,13 +122,19 @@
                         </tr>
                         <tr>
                             <td class="key">
-                                学校电话
+                                法人代表
                             </td>
-                            <td class="value1 word-wrap" data-old='{$ecr.oldEphone}' data-new='{$ecr.newEphone}'></td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldLegal}' data-new='{$ecr.newLegal}'></td>
                             <td class="key" style="border-right: 1px solid #c0a16b">
+                                学校电话
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldEphone}' data-new='{$ecr.newEphone}'></td>
+                        </tr>
+                        <tr>                            
+                            <td class="key">
                                 学校地址
                             </td>
-                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldFullLocationName} {$ecr.oldAddress}' data-new='{$ecr.newFullLocationName} {$ecr.newAddress}'></td>
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldProvinceName}{$ecr.oldCityName}{$ecr.oldCountyName|default=""} {$ecr.oldAddress}' data-new='{$ecr.newProvinceName}{$ecr.newCityName}{$ecr.newCountyName|default=""} {$ecr.newAddress}'></td> 
                         </tr>
                     </table>                    
                 </div>

+ 0 - 300
app/admin/view/enterprise_change_record/school/goto_enterprise_change_detail_page1.html

@@ -1,300 +0,0 @@
-{extend name="layout/content"}
-{block name="content"}
-<style>
-    .upload-btn {
-        position: relative;
-        display: inline-block;
-        cursor: pointer;
-        background: #1ab394;
-        padding: 6px 12px;
-        color: #fff;
-        text-align: center;
-        border-radius: 3px;
-        overflow: hidden;
-        font-size: 14px;
-        font-weight: 400;
-    }
-
-    .spacing {
-        margin-bottom: 10px;
-        padding-right: 4px;
-        padding-left: 4px;
-    }
-
-    .imgs li {
-        list-style: none;
-        float: left;
-        border: 1px solid #d8d1d1;
-        text-align: center;
-        height: 30px;
-    }
-</style>
-<div class="ibox float-e-margins">
-    <div class="ibox-content">
-        <div class="form-horizontal">
-            <div class="row">
-                <div class="col-sm-12">
-                    <div class="tabs-container">
-                        <ul class="nav nav-tabs">
-                            <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">1.基本信息</a>
-                            </li>
-                            <li id="fileLi" class=""><a data-toggle="tab" href="#tab-2" onclick="ecre.initFileTable()"
-                                                        aria-expanded="false">2.附件上传</a></li>
-                        </ul>
-                    </div>
-                    <div class="tab-content">
-                        <div id="tab-1" class="tab-pane active">
-                            <input type="text" class="form-control" id="id" name="id" value="{$ecr.id}"
-                                   style="display: none;"/>
-                            <input type="text" class="form-control" id="type" name="type" value="{$ecr.type}"
-                                   style="display: none;"/>
-                            <input style="display: none;" type="text" class="form-control" id="checkState"
-                                   name="checkState" value="{$ecr.checkState}"/>
-                            <div class="panel-body">
-                                <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">变更前机构信息</div>
-                                    <div class="panel-body">
-                                        <div class="col-sm-12 ">
-                                            <div class="row">
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位名称</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldName"
-                                                               name="oldName" value="{$ecr.oldName}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">统一社会信用代码</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldIdCard"
-                                                               name="oldIdCard" value="{$ecr.oldIdCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">法人代表</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldLegal"
-                                                               name="oldLegal" value="{$ecr.oldLegal}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>所属街道</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldStreet"
-                                                               name="oldStreet" value="{$ecr.oldStreetName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位地址</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAddress"
-                                                               name="oldAddress" value="{$ecr.oldAddress}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldEphone"
-                                                               name="oldEphone" value="{$ecr.oldEphone}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAgentName"
-                                                               name="oldAgentName" value="{$ecr.oldAgentName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAgentPhone"
-                                                               name="oldAgentPhone" value="{$ecr.oldAgentPhone}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>电子邮箱</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldAgentEmail"
-                                                               name="oldAgentEmail" value="{$ecr.oldAgentEmail}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业银行账号</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldBankCard"
-                                                               name="oldBankCard" value="{$ecr.oldBankCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行网点</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldBankNetwork"
-                                                               name="oldBankNetwork" value="{$ecr.oldBankNetwork}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="oldBank"
-                                                               name="oldBank" value="{$ecr.oldBank}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        </div>
-                                    </div>
-                                </div>
-                                <div class="panel panel-default">
-                                    <div class="panel-heading" onclick="$(this).next().toggle()">变更后机构信息</div>
-                                    <div class="panel-body">
-
-                                        <div class="col-sm-12 ">
-                                            <div class="row">
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位名称</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newName"
-                                                               name="newName" value="{$ecr.newName}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">统一社会信用代码</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newIdCard"
-                                                               name="newIdCard" value="{$ecr.newIdCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">法人代表</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newLegal"
-                                                               name="newLegal" value="{$ecr.newLegal}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>所属街道</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newStreet"
-                                                               name="newStreet" value="{$ecr.newStreetName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位地址</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAddress"
-                                                               name="newAddress" value="{$ecr.newAddress}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>单位电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newEphone"
-                                                               name="newEphone" value="{$ecr.newEphone}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAgentName"
-                                                               name="newAgentName" value="{$ecr.newAgentName}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>人才联络员电话</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAgentPhone"
-                                                               name="newAgentPhone" value="{$ecr.newAgentPhone}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing"><span
-                                                            class="text-danger">*</span>电子邮箱</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newAgentEmail"
-                                                               name="newAgentEmail" value="{$ecr.newAgentEmail}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业银行账号</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newBankCard"
-                                                               name="newBankCard" value="{$ecr.newBankCard}" readonly
-                                                               disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行网点</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newBankNetwork"
-                                                               name="newBankNetwork" value="{$ecr.newBankNetwork}"
-                                                               readonly disabled/>
-                                                    </div>
-                                                </div>
-                                                <div class="rowGroup" style="margin-bottom: 0px;">
-                                                    <label class="col-sm-2 control-label spacing">企业开户银行</label>
-                                                    <div class="col-sm-4 spacing">
-                                                        <input type="text" class="form-control" id="newBank"
-                                                               name="newBank" value="{$ecr.newBank}" readonly disabled/>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        </div>
-
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                        <div id="tab-2" class="tab-pane ">
-                            <table id="fileTable" class="table-condensed"
-                                   style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true"
-                                   data-click-to-select="true">
-                                <thead>
-                                <tr>
-                                    <th data-field="selectItem" data-checkbox="true"></th>
-                                </tr>
-                                </thead>
-                            </table>
-                            <label style="padding-top: 15px;color: red">*请根据上传的附件材料,编辑好相应的文件夹名称</label>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
-<script type="text/javascript">
-    document.write('<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail1.js?v='+(new Date()).getTime()+'"><\/script>');
-</script>
-{/block}

+ 0 - 63
app/admin/view/enterprise_change_record/school/goto_enterprise_change_examine_page.html

@@ -1,63 +0,0 @@
-{extend name="layout/content"}
-{block name="content"}
-<div class="ibox float-e-margins">
-    <div class="ibox-content">
-        <form id="erc_examine" class="form-horizontal">
-            <input type="text" id="id" value="{$ecr.id}" style="display: none;" />
-            <div class="row">
-                <div class="row">
-                    <div class="col-sm-12">
-                        <div class="rowGroup"  style="margin-bottom: 0px;">
-                            <label class="col-sm-2 control-label"><span class="text-danger">*</span>审核状态</label>
-                            <div class="col-sm-10">
-                                <select class="form-control" id="checkState" name="checkState" onchange="examine.toggleField()">
-                                    <option value="">--- 请选择 ---</option>
-                                    <option value="3" {in name="ecr.checkState" value="3,6"}selected{/in}>审核驳回</option>
-                                    <option value="4" {in name="ecr.checkState" value="4,7"}selected{/in}>审核通过</option>
-                                </select>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <div class="hr-line-dashed"></div>
-                <div class="row">
-                    <div class="col-sm-12">
-                        <div class="rowGroup"  style="margin-bottom: 0px;">
-                            <label class="col-sm-2 control-label">审核意见</label>
-                            <div class="col-sm-10">
-                                <textarea class="form-control" rows="6" id="checkMsg" name="checkMsg">{$ecr.checkMsg}</textarea>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <div id="field" {if condition="!in_array($ecr['checkState'],[3,6])"}style="padding-top:5px;display:none"{/if}>
-                    <label for="checkMsg" class="control-label">可修改字段</label>
-                    <div id="field_info">
-                        <ul style="overflow:hidden;list-style:none;">
-                            {volist name="fields" id="field"}
-                            <li style="float:left;margin-right:10px;"><input type="checkbox" value="{$field.field}" {if condition="$field['checked']"}checked="true"{/if}><span>{$field.name}</span></li>
-                            {/volist}
-                        </ul>
-                    </div>
-                    <label for="checkMsg" class="control-label">可修改附件</label>
-                    <div id="field_file">
-                        <ul style="overflow:hidden;list-style:none;">
-                            {volist name="files" id="file"}
-                            <li style="float:left;margin-right:10px;"><input type="checkbox" value="{$file.field}" {if condition="$file['checked']"}checked="true"{/if}><span>{$file.name}</span></li>
-                            {/volist}
-                        </ul>
-                    </div>
-                    <div class="form-group" style="text-align: center">
-                        <button type="button" class="btn btn-primary" onclick="examine.checkAll()">全选</button>
-                        <button type="button" class="btn btn-success" onclick="examine.unCheckAll()">反选</button>
-                    </div>
-                </div>
-            </div>
-        </form>
-    </div>
-</div>
-<input type="text" id="checkStateTemp" value="{$ecr.checkState}" style="display: none;" />
-<script type="text/javascript">
-    document.write('<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_examine.js?v=' + (new Date()).getTime() + '"><\/script>');
-</script>
-{/block}

+ 20 - 0
app/admin/view/enterprise_change_record/school/goto_enterprise_change_record_page.html

@@ -23,6 +23,16 @@
                             <input type="text" class="form-control" id="oldName" placeholder=""/>
                         </div>
                     </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    原统一社会信用代码
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="oldIdCard" placeholder=""/>
+                        </div>
+                    </div>
                     <div class="col-sm-4">
                         <div class="input-group input-group-sm">
                             <div class="input-group-btn">
@@ -43,6 +53,16 @@
                             <input type="text" class="form-control" id="newName" placeholder=""/>
                         </div>
                     </div>
+                    <div class="col-sm-4">
+                        <div class="input-group input-group-sm">
+                            <div class="input-group-btn">
+                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                    新统一社会信用代码
+                                </button>
+                            </div>
+                            <input type="text" class="form-control" id="newIdCard" placeholder=""/>
+                        </div>
+                    </div>
                     <div class="col-sm-4">
                         <div class="input-group input-group-sm">
                             <div class="input-group-btn">

+ 2 - 0
app/common/api/EnterpriseApi.php

@@ -17,6 +17,8 @@ class EnterpriseApi {
         if ($ep->delete == 1) {
             return null;
         }
+        $area = array_filter([$ep["provinceName"], $ep["cityName"], $ep["countyName"]]);
+        $ep["fullLocationName"] = $area ? implode("", $area) : "";
         return $ep;
     }
 

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

@@ -18,7 +18,7 @@ class LocationApi {
     }
 
     /**
-     * 
+     * 通过地区代码获取地区名
      * @param type $code
      * @param type $isfull
      * @return type

+ 10 - 0
app/common/controller/Auth.php

@@ -311,6 +311,11 @@ class Auth extends BaseController {
                 }
 
 
+                $data["provinceName"] = $data["province"] ? \app\common\api\LocationApi::getNameByCode($data["province"]) : null;
+                $data["cityName"] = $data["city"] ? \app\common\api\LocationApi::getNameByCode($data["city"]) : null;
+                $data["countyName"] = $data["county"] ? \app\common\api\LocationApi::getNameByCode($data["county"]) : null;
+
+
                 $data['id'] = getStringId();
                 $data['password'] = hash('md5', $data['password']);
                 $data['source'] = $source;
@@ -508,6 +513,11 @@ class Auth extends BaseController {
                         return \StrUtil::back($response_object, "Register.epCallBack");
                     }
                 }
+
+                $data["provinceName"] = $data["province"] ? \app\common\api\LocationApi::getNameByCode($data["province"]) : null;
+                $data["cityName"] = $data["city"] ? \app\common\api\LocationApi::getNameByCode($data["city"]) : null;
+                $data["countyName"] = $data["county"] ? \app\common\api\LocationApi::getNameByCode($data["county"]) : null;
+
                 //unset($data["agentPhone"]);
                 $data['checkState'] = 4;
                 $data["updateTime"] = date("Y-m-d H:i:s");

+ 10 - 1
app/common/validate/Hospital.php

@@ -12,7 +12,7 @@ class Hospital extends Validate {
         'password' => 'require|min:8|regex:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,}$/',
         're_password' => 'require|confirm:password',
         'name' => 'require|max:100|checkName', //|regex:/^[\x{4e00}-\x{9fa5}\(\)()\da-zA-Z&]{2,50}$/u
-        'idCard' => 'require',
+        'idCard' => 'require|checkID',
         'legal' => 'require', //|regex:/^[\x{4e00}-\x{9fa5}]+$/u
         'ephone' => 'require',
         'medicalCommunityId' => 'require',
@@ -68,4 +68,13 @@ class Hospital extends Validate {
         }
     }
 
+    protected function checkID($value, $rule, $data = []) {
+        $info = EnterpriseModel::where('idCard', $value)->where('delete', 0)->where('id', '<>', $data['id'])->find();
+        if ($info) {
+            return "该统一社会信用代码已存在";
+        } else {
+            return true;
+        }
+    }
+
 }

+ 13 - 2
app/common/validate/School.php

@@ -12,6 +12,7 @@ class School extends Validate {
         'password' => 'require|min:8|regex:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,}$/',
         're_password' => 'require|confirm:password',
         'name' => 'require|max:100|checkName', //|regex:/^[\x{4e00}-\x{9fa5}\(\)()\da-zA-Z&]{2,50}$/u
+        'idCard' => 'require|checkID',
         'legal' => 'require', //|regex:/^[\x{4e00}-\x{9fa5}]+$/u
         'ephone' => 'require',
         'province' => 'require',
@@ -33,6 +34,7 @@ class School extends Validate {
         're_password.confirm' => '两次密码输入不一致',
         'name.require' => '请输入学校名称',
         'name.max' => '学校名称最多100个字符!',
+        'idCard.require' => '请填写统一社会信用代码!',
         'legal.require' => '请输入学校法人',
         'ephone.require' => '请输入学校电话',
         'province.require' => '请选择学校所在省份',
@@ -48,8 +50,8 @@ class School extends Validate {
         'agentEmail.email' => '邮箱格式错误'
     ];
     protected $scene = [
-        'add' => ['username', 'password', 're_password', 'name', 'legal', 'ephone', 'province', 'city', 'address', 'agentName', 'agentPhone', 'verificationCode', 'agentEmail'],
-        'change' => ['name', 'legal', 'ephone', 'province', 'city', 'address', 'agentName', 'agentPhone', 'agentEmail'],
+        'add' => ['username', 'password', 're_password', 'name', 'idCard', 'legal', 'ephone', 'province', 'city', 'address', 'agentName', 'agentPhone', 'verificationCode', 'agentEmail'],
+        'change' => ['name', 'idCard', 'legal', 'ephone', 'province', 'city', 'address', 'agentName', 'agentPhone', 'agentEmail'],
         'changePwd' => ['password'],
     ];
 
@@ -62,4 +64,13 @@ class School extends Validate {
         }
     }
 
+    protected function checkID($value, $rule, $data = []) {
+        $info = EnterpriseModel::where('idCard', $value)->where('delete', 0)->where('id', '<>', $data['id'])->find();
+        if ($info) {
+            return "该登记号已存在";
+        } else {
+            return true;
+        }
+    }
+
 }

+ 9 - 3
app/common/view/auth/register.html

@@ -601,21 +601,27 @@
                                                                     <input autocomplete="off" type="text" class="form-control" id="gj_name" name="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="gj_idCard" name="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="gj_legal" name="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="gj_ephone" name="ephone" />
                                                                 </div>
                                                             </td>
-                                                        </tr>
-                                                        <tr>
-                                                            <td colspan="3">
+                                                            <td colspan="2">
                                                                 <div class="rowGroup">
                                                                     <label class=" control-label spacing td-label"><span style="color: red">*</span>地址</label>
                                                                     <div class="col-sm-12">

+ 78 - 30
app/enterprise/controller/Api.php

@@ -13,6 +13,8 @@ use app\enterprise\common\EnterpriseController;
 use app\Request;
 use think\exception\ValidateException;
 use app\common\api\UploadApi;
+use app\common\state\CommonConst;
+use app\common\api\LocationApi;
 
 class Api extends EnterpriseController {
 
@@ -50,8 +52,13 @@ class Api extends EnterpriseController {
             'enterprise_id' => $ep['id'],
             'newName' => $ep['name'],
             'newIdCard' => $ep['idCard'],
+            'newMedicalCommunityId' => $ep["medicalCommunityId"],
+            'newIsGeneral' => $ep["isGeneral"],
             'newStreet' => $ep['street'],
             'newAddress' => $ep['address'],
+            'newProvince' => $ep['province'],
+            'newCity' => $ep['city'],
+            'newCounty' => $ep['county'],
             'newLegal' => $ep['legal'],
             'newEphone' => $ep['ephone'],
             'newAgentName' => $ep['agentName'],
@@ -124,21 +131,16 @@ class Api extends EnterpriseController {
             default:
                 $ecr['checkStateName'] = '';
         }
-        //20220918增加根据不同的企业类型显示不同的信息变更界面
-        switch ($ep->special) {
-            case 0:
-                return view("", ['ecr' => $ecr]);
+        $template = "";
+        switch ($ep->type) {
+            case CommonConst::ENTERPRISE_WJ:
+                $template = "/api/hospital/to_add";
                 break;
-            case 1:
-                return view("", ['ecr' => $ecr]);
-                break;
-            case 3:
-                return view("", ['ecr' => $ecr]);
-                break;
-            default:
-
+            case CommonConst::ENTERPRISE_GJ:
+                $template = "/api/school/to_add";
                 break;
         }
+        return view($template, ['ecr' => $ecr]);
     }
 
     public function upsert() {
@@ -146,10 +148,15 @@ class Api extends EnterpriseController {
             'id' => \StrUtil::getRequestDecodeParam($this->request, 'enterprise_id'),
             'name' => \StrUtil::getRequestDecodeParam($this->request, 'newName'), //单位名称
             'idCard' => \StrUtil::getRequestDecodeParam($this->request, 'newIdCard'), //统一社会信用代码
+            'medicalCommunityId' => \StrUtil::getRequestDecodeParam($this->request, 'newMedicalCommunityId'), //医共体
+            'isGeneral' => \StrUtil::getRequestDecodeParam($this->request, 'newIsGeneral'), //是否总院
             'agentName' => \StrUtil::getRequestDecodeParam($this->request, 'newAgentName'), //人才联络员
             'agentPhone' => \StrUtil::getRequestDecodeParam($this->request, 'newAgentPhone'), //人才联络员电话
             'legal' => \StrUtil::getRequestDecodeParam($this->request, 'newLegal'), //法人
             'street' => \StrUtil::getRequestDecodeParam($this->request, 'newStreet'), //镇街
+            'province' => \StrUtil::getRequestDecodeParam($this->request, 'newProvince'), //地址省
+            'city' => \StrUtil::getRequestDecodeParam($this->request, 'newCity'), //地址市
+            'county' => \StrUtil::getRequestDecodeParam($this->request, 'newCounty'), //地址县区
             'address' => \StrUtil::getRequestDecodeParam($this->request, 'newAddress'), //地址
             'type' => intval($this->request['type']),
             'agencyType' => intval($this->request['newAgencyType']),
@@ -180,8 +187,12 @@ class Api extends EnterpriseController {
             }
             switch ($ep->special) {
                 case 0:
-                    if ($ep->type == 2) {
+                    if ($ep->type == CommonConst::ENTERPRISE_JC) {
                         validate(\app\common\validate\Enterprise::class)->batch(true)->scene('jc_change')->check($data);
+                    } else if ($ep->type == CommonConst::ENTERPRISE_WJ) {
+                        validate(\app\common\validate\Hospital::class)->batch(true)->scene('change')->check($data);
+                    } else if ($ep->type == CommonConst::ENTERPRISE_GJ) {
+                        validate(\app\common\validate\School::class)->batch(true)->scene('change')->check($data);
                     } else {
                         if ($data["agencyType"] == 1) {
                             validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
@@ -208,9 +219,17 @@ class Api extends EnterpriseController {
                     'oldAgencyType' => $ep['agencyType'],
                     'oldName' => $ep['name'],
                     'oldIdCard' => $ep['idCard'],
+                    'oldMedicalCommunityId' => $ep['medicalCommunityId'],
+                    'oldIsGeneral' => $ep['isGeneral'],
                     'oldIndustryFieldNew' => $ep['industryFieldNew'],
                     'oldIndustryFieldOld' => $ep['industryFieldOld'],
                     'oldStreet' => $ep['street'],
+                    'oldProvince' => $ep['province'],
+                    'oldCity' => $ep['city'],
+                    'oldCounty' => $ep['county'],
+                    'oldProvinceName' => $ep['provinceName'],
+                    'oldCityName' => $ep['cityName'],
+                    'oldCountyName' => $ep['countyName'],
                     'oldAddress' => $ep['address'],
                     'oldLegal' => $ep['legal'],
                     'oldEphone' => $ep['ephone'],
@@ -232,9 +251,17 @@ class Api extends EnterpriseController {
                     'newAgencyType' => $data['agencyType'],
                     'newName' => htmlspecialchars($data['name']),
                     'newIdCard' => htmlspecialchars($data['idCard']),
+                    'newMedicalCommunityId' => $data['medicalCommunityId'],
+                    'newIsGeneral' => $data['isGeneral'],
                     'newIndustryFieldNew' => $data['industryFieldNew'],
                     'newIndustryFieldOld' => $data['industryFieldOld'],
                     'newStreet' => $data['street'],
+                    'newProvince' => $data['province'],
+                    'newCity' => $data['city'],
+                    'newCounty' => $data['county'],
+                    'newProvinceName' => $data['province'] ? LocationApi::getNameByCode($data['province']) : null,
+                    'newCityName' => $data['city'] ? LocationApi::getNameByCode($data['city']) : null,
+                    'newCountyName' => $data['county'] ? LocationApi::getNameByCode($data['county']) : null,
                     'newAddress' => $data['address'],
                     'newLegal' => $data['legal'],
                     'newEphone' => $data['ephone'],
@@ -351,9 +378,17 @@ class Api extends EnterpriseController {
                 $record->oldAgencyType = $ep['agencyType'];
                 $record->oldName = $ep['name'];
                 $record->oldIdCard = $ep['idCard'];
+                $record->oldMedicalCommunityId = $ep['medicalCommunityId'];
+                $record->oldIsGeneral = $ep['isGeneral'];
                 $record->oldIndustryFieldNew = $ep['industryFieldNew'];
                 $record->oldIndustryFieldOld = $ep['industryFieldOld'];
                 $record->oldStreet = $ep['street'];
+                $record->oldProvince = $ep['province'];
+                $record->oldCity = $ep['city'];
+                $record->oldCounty = $ep['county'];
+                $record->oldProvinceName = $ep['provinceName'];
+                $record->oldCityName = $ep['cityName'];
+                $record->oldCountyName = $ep['countyName'];
                 $record->oldAddress = $ep['address'];
                 $record->oldLegal = $ep['legal'];
                 $record->oldEphone = $ep['ephone'];
@@ -367,11 +402,12 @@ class Api extends EnterpriseController {
                 $record->oldBankCard = $ep['bankCard'];
                 $record->oldBank = $ep['bank'];
                 $record->oldBankNetwork = $ep['bankNetwork'];
-
                 if ($record->checkState == 1) {
                     $record->newAgencyType = $data['agencyType'];
                     $record->newName = htmlspecialchars($data['name']);
                     $record->newIdCard = htmlspecialchars($data['idCard']);
+                    $record->newMedicalCommunityId = htmlspecialchars($data['medicalCommunityId']);
+                    $record->newIsGeneral = htmlspecialchars($data['isGeneral']);
                     if ($data["agencyType"] == 1) {
                         $record->newIndustryFieldNew = $data['industryFieldNew'];
                         $record->newIndustryFieldOld = $data['industryFieldOld'];
@@ -380,6 +416,9 @@ class Api extends EnterpriseController {
                         $record->newIndustryFieldOld = null;
                     }
                     $record->newStreet = $data['street'];
+                    $record->newProvince = $data['province'];
+                    $record->newCity = $data['city'];
+                    $record->newCounty = $data['county'];
                     $record->newAddress = $data['address'];
                     $record->newLegal = $data['legal'];
                     $record->newEphone = $data['ephone'];
@@ -400,6 +439,9 @@ class Api extends EnterpriseController {
                         $record[$fields[$i]] = $data[$key]; //仅可修改选择的字段
                     }
                 }
+                $record->newProvinceName = $data['province'] ? LocationApi::getNameByCode($data['province']) : null;
+                $record->newCityName = $data['city'] ? LocationApi::getNameByCode($data['city']) : null;
+                $record->newCountyName = $data['county'] ? LocationApi::getNameByCode($data['county']) : null;
                 if (!$record["newImgurl"]) {
                     if (strtotime($record["createTime"]) < strtotime($this->compatible_time)) {
                         $where = [];
@@ -706,20 +748,16 @@ class Api extends EnterpriseController {
                 $ecr["bankImg_is_img"] = 1;
             }
         }
-        switch ($ep->special) {
-            case 0:
-                return view("", ['ecr' => $ecr]);
-                break;
-            case 1:
-                return view("", ['ecr' => $ecr]);
-                break;
-            case 3:
-                return view("", ['ecr' => $ecr]);
+        $template = "";
+        switch ($ep->type) {
+            case CommonConst::ENTERPRISE_WJ:
+                $template = "/api/hospital/to_update";
                 break;
-            default:
-
+            case CommonConst::ENTERPRISE_GJ:
+                $template = "/api/school/to_update";
                 break;
         }
+        return view($template, ['ecr' => $ecr]);
     }
 
     public function submitToCheck() {
@@ -965,24 +1003,35 @@ class Api extends EnterpriseController {
                 $ecr['newIndustryFieldNewName'] = $industryFieldNew[$ecr['newIndustryFieldNew']];
                 $ecr['oldAgencyTypeName'] = $agencyTypeList[$ecr['oldAgencyType']];
                 $ecr['newAgencyTypeName'] = $agencyTypeList[$ecr['newAgencyType']];
-                return view("", ['ecr' => $ecr]);
                 break;
             case 1:
                 $tagList = DictApi::selectByParentCode('institution_tag');
                 $ecr['oldInstitutionTagName'] = $tagList[$ecr['oldInstitutionTag']];
                 $ecr['newInstitutionTagName'] = $tagList[$ecr['newInstitutionTag']];
-                return view("", ['ecr' => $ecr]);
                 break;
             case 3:
                 $tagList = DictApi::selectByParentCode('organization_tag');
                 $ecr['oldOrganizationTagName'] = $tagList[$ecr['oldOrganizationTag']];
                 $ecr['newOrganizationTagName'] = $tagList[$ecr['newOrganizationTag']];
-                return view("", ['ecr' => $ecr]);
                 break;
             default:
 
                 break;
         }
+        $oldArea = array_filter([$ecr["oldProvinceName"], $ecr["oldCityName"], $ecr["oldCountyName"]]);
+        $newArea = array_filter([$ecr["newProvinceName"], $ecr["newCityName"], $ecr["newCountyName"]]);
+        $ecr["newFullLocationName"] = $newArea ? implode("", $newArea) : "";
+        $ecr["oldFullLocationName"] = $newArea ? implode("", $newArea) : "";
+        $template = "";
+        switch ($ep->type) {
+            case CommonConst::ENTERPRISE_WJ:
+                $template = "/api/hospital/to_detail";
+                break;
+            case CommonConst::ENTERPRISE_GJ:
+                $template = "/api/school/to_detail";
+                break;
+        }
+        return view($template, ['ecr' => $ecr]);
     }
 
     public function gotoChangeHeadPortraitPage() {
@@ -1010,8 +1059,7 @@ class Api extends EnterpriseController {
 //如果新照片符合像素要求,则删除旧照片
                 $old_head_url = "storage/" . $userInfo ["headPortrait"];
                 if (file_exists($old_head_url))
-                    @unlink(
-                                    $old_head_url);
+                    @unlink($old_head_url);
             }
             $data["id"] = $uid;
             $data["headPortrait"] = $result->filepath;

+ 16 - 11
app/enterprise/controller/Index.php

@@ -61,14 +61,6 @@ class Index extends EnterpriseController {
 
     public function centerPage() {
         $ep = Enterprise::where('id', $this->user['uid'])->find();
-        $ep['agencyTypeName'] = DictApi::findByParentCodeAndCode('agency_type', $ep['agencyType'])->name ?? "";
-        $ep['industryFieldNewName'] = DictApi::findDictByCode($ep['industryFieldNew'])->name ?? '';
-        $ep['industryFieldOldName'] = DictApi::findDictByCode($ep['industryFieldOld'])->name ?? '';
-        $ep['enterpriseTagName'] = DictApi::findDictByCode($ep['enterpriseTag'])->name ?? '';
-        $ep['organizationTagName'] = DictApi::findDictByCode($ep['organizationTag'])->name ?? '';
-        $ep['institutionTagName'] = DictApi::findDictByCode($ep['institutionTag'])->name ?? '';
-        $ep['streetName'] = DictApi::findDictByCode($ep['street'])->name ?? '';
-        $ep['enterpriseTypeName'] = DictApi::findDictByCode($ep['enterpriseType'])->name ?? '';
         if ($ep["imgurl"]) {
             $pathinfo = pathinfo($ep["imgurl"]);
             if (in_array($pathinfo["extension"], ["jpg", "jpeg", "png", "gif"])) {
@@ -140,15 +132,28 @@ class Index extends EnterpriseController {
         }
 
         $template = "";
-        switch ($this->user["type"]) {
+        switch ($ep['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);
+                $ep["medicalCommunityName"] = \app\common\api\Nhc::getMedicalCommunityMap()[$ep["medicalCommunityId"]];
                 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;
+            default:
+                $ep['agencyTypeName'] = DictApi::findByParentCodeAndCode('agency_type', $ep['agencyType'])->name ?? "";
+                $ep['industryFieldNewName'] = DictApi::findDictByCode($ep['industryFieldNew'])->name ?? '';
+                $ep['industryFieldOldName'] = DictApi::findDictByCode($ep['industryFieldOld'])->name ?? '';
+                $ep['enterpriseTagName'] = DictApi::findDictByCode($ep['enterpriseTag'])->name ?? '';
+                $ep['organizationTagName'] = DictApi::findDictByCode($ep['organizationTag'])->name ?? '';
+                $ep['institutionTagName'] = DictApi::findDictByCode($ep['institutionTag'])->name ?? '';
+                $ep['streetName'] = DictApi::findDictByCode($ep['street'])->name ?? '';
+                $ep['enterpriseTypeName'] = DictApi::findDictByCode($ep['enterpriseType'])->name ?? '';
+                break;
+        }
+        $area = array_filter([$ep["provinceName"], $ep["cityName"], $ep["countyName"]]);
+        if ($area) {
+            $ep["fullLocationName"] = implode("", $area);
         }
 
         return view($template, ['ep' => $ep]);

+ 308 - 0
app/enterprise/view/api/hospital/to_add.html

@@ -0,0 +1,308 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    .has-feedback label~.form-control-feedback{
+        top: 35px;
+    }
+    .table .td-label{
+        display: block;
+        text-align: left;
+        border-bottom: 1px solid #ccc;
+        margin-bottom: 10px;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">                                
+        <form id="ecr_form" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+            <input type="hidden" id="special" name="special" value="{$ecr.special}"/>
+            <input type="hidden" id="enterprise_id" name="enterprise_id" value="{$ecr.enterprise_id}"/>
+            <input type="hidden" id="id" name="id" value="{$ecr.id}"/>
+            <input type="hidden" id="type" name="type" value="{$ecr.type}"/>
+            <div class="form-horizontal">
+                <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>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}名称</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newName" name="newName" value="{$ecr.newName}"/>
+                                    </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="newIdCard" name="newIdCard"  value="{$ecr.newIdCard}"/>
+                                    </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="newLegal" name="newLegal" value="{$ecr.newLegal}"/>
+                                    </div>
+                                </td>
+                                <td rowspan="2" style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#imgurl').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing"><span class="text-danger">*</span>{eq name="ecr.special" value="1"}事业单位法人证或批文{else/}营业执照或统一机构代码证{/eq}</label>
+                                    {if condition="$ecr['imgurl']"}
+                                    {eq name="ecr.imgurl_is_img" value="1"}
+                                    <img src="{$ecr.imgurl|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)">
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.imgurl|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height:60px;">
+                                    {/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>
+                                        <select class="form-control" id="newStreet" name="newStreet" value="{$ecr.newStreet}"></select>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}地址</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newAddress" name="newAddress"  value="{$ecr.newAddress}"/>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}电话</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newEphone" name="newEphone" placeholder="固话格式0595-xxxx" value="{$ecr.newEphone}"/>
+                                    </div>
+                                </td>
+                            </tr>
+                            <tr>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}银行账号</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newBankCard" name="newBankCard" value="{$ecr.newBankCard}" onkeyup="value = value.replace(/\s+/g, '')"/>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}开户银行</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newBank" name="newBank" value="{$ecr.newBank}"/>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}开户银行网点</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newBankNetwork" name="newBankNetwork" placeholder="XX银行XX支行/分行/分理处" value="{$ecr.newBankNetwork}"/>
+                                    </div>
+                                </td>
+                                <td style="position:relative;">            
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#bankImg').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing"><span class="text-danger">*</span>开户许可证/基本存款账户信息</label>
+                                    {if condition="$ecr['bankImg']"}
+                                    {eq name="ecr.bankImg_is_img" value="1"}
+                                    <img src="{$ecr.bankImg|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)" >
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.bankImg|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height:60px;">
+                                    {/if}
+                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="bankImg" name="bankImg" />
+                                </td>
+                            </tr>
+                            {eq name="ecr.special" value="3"}
+                            <tr>
+                                <td colspan="4">
+                                    <div class="rowGroup">
+                                        <label class="control-label spacing td-label"><span style="color: red">*</span>机构标签</label>
+                                        <select class="form-control" id="newOrganizationTag" name="newOrganizationTag" value="{$ecr.newOrganizationTag}">
+                                        </select>
+                                    </div>
+                                </td>
+                            </tr>
+                            {/eq}
+                            {eq name="ecr.special" value="1"}
+                            <tr>
+                                <td colspan="4">
+                                    <div class="rowGroup">
+                                        <label class="control-label spacing td-label"><span style="color: red">*</span>单位标签</label>
+                                        <select class="form-control" id="newInstitutionTag" name="newInstitutionTag" value="{$ecr.newInstitutionTag}">
+                                        </select>
+                                    </div>
+                                </td>
+                            </tr>
+                            {/eq}
+                        </table>
+                        {if condition="$ecr['special'] eq 0"}
+                        <div class="row">
+                            <div class="rowGroup" >
+                                <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>申报类型</label>
+                                <div class="col-sm-3 spacing">
+                                    <div class="form-control" disabled="disabled">
+                                        {switch name="ecr.type"}
+                                        {case value="1"}晋江市现代产业体系人才{/case}
+                                        {case value="2"}集成电路优秀人才{/case}
+                                        {case value="3"}海峡计划团队{/case}
+                                        {/switch}
+                                    </div>
+                                </div>
+                                {eq name="ecr.type" value="1"}
+                                <div class="rowGroup agencyType">
+                                    <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>机构类型</label>
+                                    <div class="col-sm-3 spacing">
+                                        <select class="form-control" id="newAgencyType" name="newAgencyType" value="{$ecr.newAgencyType}" onchange="EpChangeEdit.agencyTypeChange()">
+                                        </select>
+                                    </div>
+                                </div>
+                                {/eq}
+                            </div>
+                        </div>
+                        {if condition="$ecr['type'] eq 1"}
+                        <div class="row" id="typeGroup">
+                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                <tr class="agencyType1">
+                                    <td colspan="3">
+                                        <p style="color: #333;width:100%;white-space:normal;word-wrap:break-word;word-break:break-all;">备注:4341现代产业体系主要包括:“4”即鞋服、纺织、建材、食品4大传统优势产业,“3”即信息技术、智能装备、医疗健康3大新兴产业,“4”即商贸物流、文体旅游、研发创意、金融服务4大现代服务业,“1”即探索布局未来产业(数字经济等)</p>
+                                    </td>
+                                </tr>
+                                <tr class="agencyType1">
+                                    <td>
+                                        <div class="rowGroup">
+                                            <label class="control-label spacing td-label"><span style="color: red">*</span>产业领域</label>
+                                            <select autocomplete="off" type="text" class="form-control" id="newIndustryFieldNew" name="newIndustryFieldNew" value="{$ecr.newIndustryFieldNew}" onchange="EpChangeEdit.industryChange()"></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="newIndustryFieldOld" name="newIndustryFieldOld" value="{$ecr.newIndustryFieldOld}">
+                                            </select>
+                                        </div>
+                                    </td>
+                                    <td style="position:relative;">
+                                        <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#domainImg').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                        <label class="control-label spacing"><span style="color: red">*</span>产业及行业领域上传材料</label>
+                                        {if condition="$ecr['domainImg']"}
+                                        {eq name="ecr.domainImg_is_img" value="1"}
+                                        <img src="{$ecr.domainImg|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)" >
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.domainImg|getStoragePath}">
+                                        {/eq}
+                                        {else/}
+                                        <img src="/static/img/yyzz.png" style="height:60px;">
+                                        {/if}
+                                        <input style="display: none" autocomplete="off" type="file" class="form-control" id="domainImg" name="domainImg" />
+                                        <p class="word-wrap">
+                                            请相关企业截图行业查询结果,做好相关标注(可以用下划线或圆圈等),还要清楚体现大类、中类或小类,上传做为佐证材料。
+                                        </p>
+                                    </td>
+                                </tr>
+                                <tr class="agencyType1">
+                                    <td colspan="3">
+                                        <p style="color: #333;width:100%;white-space:normal;word-wrap:break-word;word-break:break-all;">备注:请下载<a href="https://rencai.jucai.gov.cn/RXu0fYBPZwdXrgNzq9vIIRjaHXTu3mv3.docx">《国民经济行业分类(GB/T+4754-2017)》</a>或<a href="https://rencai.jucai.gov.cn/QKmKXmINDNeU1qKslkfaec47LXp7qCUO.docx" >《数字经济及其核心产业统计分类(2021)》</a>文档,对照行业分类标准,先查看属于什么行业,再按我市确定的“4341”产业比对属于什么产业,进行产业领域或行业领域的填报。</p>
+                                    </td>
+                                </tr>
+                                <tr class="agencyType1 agencyType2">
+                                    <td>
+                                        <div class="rowGroup">
+                                            <label class="control-label spacing td-label"><span style="color: red">*</span>企业标签</label>
+                                            <select class="form-control" id="newEnterpriseTag" name="newEnterpriseTag" value="{$ecr.newEnterpriseTag}">
+                                            </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="newEnterpriseType" name="newEnterpriseType" value="{$ecr.newEnterpriseType}" onchange="EpChangeEdit.changeEnterpriseType()">
+                                            </select>
+                                        </div>
+                                    </td>
+                                    <td class="typeUploader" {if condition="in_array($ecr.newEnterpriseType,['guishang','gaoxinjishu','zhuanjingtexin'])"}style="position:relative;"{else/}style="position:relative;display:none;"{/if}>
+                                        <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#typeImg').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                        <label class="control-label spacing"><span style="color: red">*</span>规上、高新技术、专精特新企业上传材料</label>
+                                        {if condition="$ecr['typeImg']"}
+                                        {eq name="ecr.typeImg_is_img" value="1"}
+                                        <img src="{$ecr.typeImg|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)" >
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.typeImg|getStoragePath}">
+                                        {/eq}
+                                        {else/}
+                                        <img src="/static/img/yyzz.png" style="height:60px;">
+                                        {/if}
+                                        <input style="display: none" autocomplete="off" type="file" class="form-control" id="typeImg" name="typeImg" />
+                                    </td>
+                                </tr>
+                            </table>
+                        </div>
+                        {/if}
+                        {/if}
+                    </div>
+                </div>
+                <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 autocomplete="off" type="text" class="form-control" id="newAgentName" name="newAgentName" value="{$ecr.newAgentName}"/>
+                                    </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="newAgentEmail" name="newAgentEmail" value="{$ecr.newAgentEmail}"/>
+                                    </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="newAgentPhone" name="newAgentPhone" value="{$ecr.newAgentPhone}"/>
+                                    </div>
+                                </td>
+                                <td style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#beian').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing" style="text-align: center"><span style="color: red">*</span>人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">(点击此处下载模板)</a>  </label>
+                                    {if condition="$ecr['beian']"}
+                                    {eq name="ecr.beian_is_img" value="1"}
+                                    <img src="{$ecr.beian|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)" >
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.beian|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height:60px;">
+                                    {/if}
+                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
+                                </td>
+                            </tr>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_edit.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/enterprise_change_edit.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 372 - 0
app/enterprise/view/api/hospital/to_detail.html

@@ -0,0 +1,372 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+    .float-e-margins .btn{margin-bottom:0 !important;}
+    .upload-btn {
+        position: relative;
+        display: inline-block;
+        cursor: pointer;
+        background: #1ab394;
+        padding: 6px 12px;
+        color: #fff;
+        text-align: center;
+        border-radius: 3px;
+        overflow: hidden;
+        font-size: 14px;
+        font-weight: 400;
+    }
+
+    .imgs li {
+        list-style: none;
+        float: left;
+        border: 1px solid #d8d1d1;
+        text-align: center;
+        height: 30px;
+    }
+
+
+    .spacing {
+        margin-bottom: 10px;
+        padding-right: 4px;
+        padding-left: 4px;
+        height: 30px;
+    }
+    table td{
+        text-align: center;
+    }
+    .key{
+        width: 150px;
+        text-align: right;
+        background-color: #f0f9eb;
+    }
+    .value1{
+        width: 240px;
+        text-align: left;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+    span.new{font-weight:bold;color:#333;}
+    span.old{text-decoration:line-through;}
+    ul.files{list-style:none;display:flex;justify-content:center;padding:0;align-items:flex-start;}
+    ul.files li{overflow:hidden;position:relative;margin-right:10px;float:left;}
+    ul.files i.old{text-align:center;height:0;width:0;line-height:15px;color:#fff;position:absolute;right:0;bottom:0;border-top:15px solid transparent;border-right:15px solid #000;border-bottom:15px solid #000;border-left:15px solid transparent;display:block;}
+    ul.files i.new{text-align:center;height:0;width:0;line-height:15px;color:#000;position:absolute;right:0;bottom:0;border-top:15px solid transparent;border-right:15px solid #0bfd1a;border-bottom:15px solid #0bfd1a;border-left:15px solid transparent;display:block;}
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="panel-body">
+            <div class="panel panel-default">
+                <input type="hidden" id="id" name="id" value="{$ecr.id}"/>
+                <input type="hidden" id="type" name="type" value="{$ecr.type}"/>
+                <input type="hidden" id="checkState" name="checkState" value="{$ecr.checkState}"/>
+                <div class="panel-heading">{eq name="ecr.special" value="0"}企业{else/}单位{/eq}信息</div>
+                <div class="panel-body">
+                    <table style="width:100%" class="table table-bordered">
+                        <tr>
+                            <td class="key">
+                                {eq name="ecr.special" value="0"}企业{else/}单位{/eq}名称
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldName}' data-new='{$ecr.newName}'></td>
+                            <td class="key">
+                                统一社会信用代码
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldIdCard}' data-new='{$ecr.newIdCard}'></td>
+                            <td rowspan="3" style="border: 1px solid #c0a16b;width: 300px">
+                                <label>
+                                    {eq name="ecr.special" value="0"}营业执照{else/}事业单位法人证或批文{/eq}
+                                </label>
+                                <ul class="files yyzz">
+                                    {if condition="$ecr['oldImgurl'] eq $ecr['newImgurl']"}
+                                    <li>
+                                        {if condition="$ecr['oldImgurl_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldImgurl']"}
+                                    <li>
+                                        {if condition="$ecr['oldImgurl_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newImgurl']"}
+                                    <li>
+                                        {if condition="$ecr['newImgurl_is_img'] eq 1"}
+                                        <img src="{$ecr.newImgurl|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                法人代表
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldLegal}' data-new='{$ecr.newLegal}'>
+                                {$ep.legal}
+                            </td>
+                            <td class="key">
+                                {eq name="ecr.special" value="0"}企业{else/}单位{/eq}地址
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldAddress}' data-new='{$ecr.newAddress}'></td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                所属街道
+                            </td>
+                            <td class="value1" data-old='{$ecr.oldStreetName}' data-new='{$ecr.newStreetName}'></td>
+                            <td class="key">
+                                {eq name="ecr.special" value="0"}企业{else/}单位{/eq}电话
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldEphone}' data-new='{$ecr.newEphone}'></td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                {eq name="ecr.special" value="0"}企业{else/}单位{/eq}银行账号
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldBankCard}' data-new='{$ecr.newBankCard}'></td>
+                            <td class="key">
+                                {eq name="ecr.special" value="0"}企业{else/}单位{/eq}开户银行
+                            </td>
+                            <td class="value1 word-wrap`" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldBank}' data-new='{$ecr.newBank}'></td>
+                            <td style="border: 1px solid #c0a16b" rowspan="2">
+                                <label>
+                                    开户许可证/基本存款账户信息
+                                </label>
+                                <ul class="files khxkz">
+                                    {if condition="$ecr['oldBankImg'] eq $ecr['newBankImg']"}
+                                    <li>
+                                        {if condition="$ecr['oldBankImg_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldBankImg|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldBankImg']"}
+                                    <li>
+                                        {if condition="$ecr['oldBankImg_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldBankImg|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newBankImg']"}
+                                    <li>
+                                        {if condition="$ecr['newBankImg_is_img'] eq 1"}
+                                        <img src="{$ecr.newBankImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                {eq name="ecr.special" value="0"}企业{else/}单位{/eq}开户银行网点
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldBankNetwork}' data-new='{$ecr.newBankNetwork}'></td>
+                            {eq name="ecr.special" value="3"}
+                            <td class="key">
+                                机构标签
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldOrganizationTagName}' data-new='{$ecr.newOrganizationTagName}'></td>
+                            {/eq}
+                            {eq name="ecr.special" value="1"}
+                            <td class="key">
+                                单位标签
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldInstitutionTagName}' data-new='{$ecr.newInstitutionTagName}'></td>
+                            {/eq}
+                        </tr>
+                    </table>
+                    {if condition="$ecr['special'] == 0"}
+                    <table style="width:100%" class="table table-bordered">
+                        <tr>
+                            <td colspan="5">
+                                申报类型:
+                                {switch name="ecr.type"}
+                                {case value="1"}晋江市现代产业体系人才{if condition="$ecr['newAgencyType'] neq $ecr['oldAgencyType']"}(<span class='old' {if condition="!$ecr['oldAgencyType']"}style="text-decoration:none;"{/if}>{$ecr.oldAgencyTypeName|default='"未填写"'}</span> -> <span class="new">{$ecr.newAgencyTypeName|default='"已取消"'}</span>){else/}({$ecr.newAgencyTypeName|default='"未选择机构类型"'}){/if}{/case}
+                                {case value="2"}集成电路优秀人才{/case}
+                                {/switch}
+                            </td>
+                        </tr>
+                        {if condition="$ecr['type'] eq 1"}
+                        <tr class="type1">
+                            <td class="key">
+                                产业领域
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldIndustryFieldNewName}" data-new="{$ecr.newIndustryFieldNewName}"></td>
+                            <td class="key">
+                                行业领域
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldIndustryFieldOldName}" data-new="{$ecr.newIndustryFieldOldName}"></td>
+                            <td style="border: 1px solid #c0a16b;width: 300px">
+                                <label>
+                                    行业领域佐证材料
+                                </label>
+                                <ul class="files hyly">
+                                    {if condition="$ecr['oldDomainImg'] eq $ecr['newDomainImg']"}
+                                    <li>
+                                        {if condition="$ecr['oldDomainImg_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldDomainImg|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldDomainImg']"}
+                                    <li>
+                                        {if condition="$ecr['oldDomainImg_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldDomainImg|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newDomainImg']"}
+                                    <li>
+                                        {if condition="$ecr['newDomainImg_is_img'] eq 1"}
+                                        <img src="{$ecr.newDomainImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                        <tr class="type1">
+                            <td class="key">
+                                企业标签
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldEnterpriseTagName}" data-new="{$ecr.newEnterpriseTagName}"></td>
+                            <td class="key">
+                                企业类型
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldEnterpriseTypeName}" data-new="{$ecr.newEnterpriseTypeName}" style="border:1px solid #c0a16b;"></td>
+                            <td style="border:1px solid #c0a16b;width: 300px">
+                                <label>
+                                    规上、高新技术、专精特新企业上传材料
+                                </label>
+                                <ul class="files hyly">
+                                    {if condition="$ecr['oldTypeImg'] eq $ecr['newTypeImg']"}
+                                    <li>
+                                        {if condition="$ecr['oldTypeImg_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldTypeImg|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldTypeImg|getStoragePath}', 'typeImg')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldTypeImg']"}
+                                    <li>
+                                        {if condition="$ecr['oldTypeImg_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldTypeImg|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldTypeImg|getStoragePath}', 'typeImg')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newTypeImg']"}
+                                    <li>
+                                        {if condition="$ecr['newTypeImg_is_img'] eq 1"}
+                                        <img src="{$ecr.newTypeImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newTypeImg|getStoragePath}', 'typeImg')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                        {/if}
+                    </table>
+                    {/if}
+                </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 word-wrap" data-old="{$ecr.oldAgentName}" data-new="{$ecr.newAgentName}"></td>
+                            <td class="key">
+                                人才联络员电话
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldAgentPhone}" data-new="{$ecr.newAgentPhone}"></td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                人才联络员邮箱
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldAgentEmail}" data-new="{$ecr.newAgentEmail}"></td>
+                            <td class="key">
+                                人才联络员信息备案表
+                            </td>
+                            <td style="text-align: left">
+                                <ul class="files beian">
+                                    {if condition="$ecr['oldBeian'] eq $ecr['newBeian']"}
+                                    <li>
+                                        {if condition="$ecr['oldBeian_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldBeian']"}
+                                    <li>
+                                        {if condition="$ecr['oldBeian_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newBeian']"}
+                                    <li>
+                                        {if condition="$ecr['newBeian_is_img'] eq 1"}
+                                        <img src="{$ecr.newBeian|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                    </table>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail.js?v=4"></script>
+{/block}

+ 311 - 0
app/enterprise/view/api/hospital/to_update.html

@@ -0,0 +1,311 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    .has-feedback label~.form-control-feedback{
+        top: 35px;
+    }
+    .table .td-label{
+        display: block;
+        text-align: left;
+        border-bottom: 1px solid #ccc;
+        margin-bottom: 10px;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">                                
+        <form id="ecr_form" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+            <input type="hidden" id="special" name="special" value="{$ecr.special}"/>
+            <input type="hidden" id="enterprise_id" name="enterprise_id" value="{$ecr.mainId}"/>
+            <input type="hidden" id="id" name="id" value="{$ecr.id}"/>
+            <input type="hidden" id="type" name="type" value="{$ecr.type}"/>
+            <input type="hidden" id="checkState" name="checkState" value="{$ecr.checkState}"/>
+            <input type="hidden" id="fields" name="fields" value="{$ecr.modify_fields}"/>
+            <input type="hidden" id="files" name="files" value="{$ecr.modify_files}"/>
+            <div class="form-horizontal">
+                <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>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}名称</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newName" name="newName" value="{$ecr.newName}"/>
+                                    </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="newIdCard" name="newIdCard"  value="{$ecr.newIdCard}"/>
+                                    </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="newLegal" name="newLegal" value="{$ecr.newLegal}"/>
+                                    </div>
+                                </td>
+                                <td rowspan="2" style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#imgurl').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing"><span class="text-danger">*</span>{eq name="ecr.special" value="0"}营业执照{else/}事业单位法人证或批文{/eq}</label>
+                                    {if condition="$ecr['newImgurl']"}
+                                    {eq name="ecr.imgurl_is_img" value="1"}
+                                    <img src="{$ecr.newImgurl|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)">
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newImgurl|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height: 60px;">
+                                    {/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>
+                                        <select class="form-control" id="newStreet" name="newStreet" value="{$ecr.newStreet}"></select>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}地址</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newAddress" name="newAddress"  value="{$ecr.newAddress}"/>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}电话</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newEphone" name="newEphone" placeholder="固话格式0595xxxx" value="{$ecr.newEphone}"/>
+                                    </div>
+                                </td>
+                            </tr>
+                            <tr>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}银行账号</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newBankCard" name="newBankCard" value="{$ecr.newBankCard}" onkeyup="value = value.replace(/\s+/g, '')"/>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}开户银行</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newBank" name="newBank" value="{$ecr.newBank}"/>
+                                    </div>
+                                </td>
+                                <td>
+                                    <div class="rowGroup">
+                                        <label class=" control-label spacing td-label"><span style="color: red">*</span>{eq name="ecr.special" value="0"}企业{else/}单位{/eq}开户银行网点</label>
+                                        <input autocomplete="off" type="text" class="form-control" id="newBankNetwork" name="newBankNetwork" placeholder="XX银行XX支行/分行/分理处" value="{$ecr.newBankNetwork}"/>
+                                    </div>
+                                </td>
+                                <td style="position:relative;">            
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#bankImg').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing"><span class="text-danger">*</span>开户许可证/基本存款账户信息</label>
+                                    {if condition="$ecr['newBankImg']"}
+                                    {eq name="ecr.bankImg_is_img" value="1"}
+                                    <img src="{$ecr.newBankImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newBankImg|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height: 60px;">
+                                    {/if}
+                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="bankImg" name="bankImg" />
+                                </td>
+                            </tr>
+                            {eq name="ecr.special" value="3"}
+                            <tr>
+                                <td colspan="4">
+                                    <div class="rowGroup">
+                                        <label class="control-label spacing td-label"><span style="color: red">*</span>机构标签</label>
+                                        <select class="form-control" id="newOrganizationTag" name="newOrganizationTag" value="{$ecr.newOrganizationTag}">
+                                        </select>
+                                    </div>
+                                </td>
+                            </tr>
+                            {/eq}
+                            {eq name="ecr.special" value="1"}
+                            <tr>
+                                <td colspan="4">
+                                    <div class="rowGroup">
+                                        <label class="control-label spacing td-label"><span style="color: red">*</span>单位标签</label>
+                                        <select class="form-control" id="newInstitutionTag" name="newInstitutionTag" value="{$ecr.newInstitutionTag}">
+                                        </select>
+                                    </div>
+                                </td>
+                            </tr>
+                            {/eq}
+                        </table>
+                        {if condition="$ecr['special'] eq 0"}
+                        <div class="row">
+                            <div class="rowGroup" >
+                                <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>申报类型</label>
+                                <div class="col-sm-3 spacing">
+                                    <div class="form-control" disabled="disabled">
+                                        {switch name="ecr.type"}
+                                        {case value="1"}晋江市现代产业体系人才{/case}
+                                        {case value="2"}集成电路优秀人才{/case}
+                                        {case value="3"}海峡计划团队{/case}
+                                        {/switch}
+                                    </div>
+                                </div>
+                            </div>
+                            {eq name="ecr.type" value="1"}
+                            <div class="rowGroup agencyType">
+                                <label class="col-sm-1 control-label spacing"><span class="text-danger">*</span>机构类型</label>
+                                <div class="col-sm-3 spacing">
+                                    <select class="form-control" id="newAgencyType" name="newAgencyType" value="{$ecr.newAgencyType}" onchange="EpChangeEdit.agencyTypeChange()">
+                                    </select>
+                                </div>
+                            </div>
+                            {/eq}
+                        </div>
+                        {if condition="$ecr['type'] eq 1"}
+                        <div class="row" id="typeGroup">
+                            <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
+                                <tr class="agencyType1" {if condition="$ecr['newAgencyType'] neq 1"}style="display:none;"{/if}>
+                                    <td colspan="3">
+                                        <p style="color: #333;width:100%;white-space:normal;word-wrap:break-word;word-break:break-all;">备注:4341现代产业体系主要包括:“4”即鞋服、纺织、建材、食品4大传统优势产业,“3”即信息技术、智能装备、医疗健康3大新兴产业,“4”即商贸物流、文体旅游、研发创意、金融服务4大现代服务业,“1”即探索布局未来产业(数字经济等)</p>
+                                    </td>
+                                </tr>
+                                <tr class='agencyType1' {if condition="$ecr['newAgencyType'] neq 1"}style="display:none;"{/if}>
+                                    <td>
+                                        <div class="rowGroup">
+                                            <label class="control-label spacing td-label"><span style="color: red">*</span>产业领域</label>
+                                            <select autocomplete="off" type="text" class="form-control" id="newIndustryFieldNew" name="newIndustryFieldNew" value="{$ecr.newIndustryFieldNew}" onchange="EpChangeEdit.industryChange()"></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="newIndustryFieldOld" name="newIndustryFieldOld" value="{$ecr.newIndustryFieldOld}">
+                                            </select>
+                                        </div>
+                                    </td>
+                                    <td style="position:relative;">
+                                        <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#domainImg').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                        <label class="control-label spacing"><span style="color: red">*</span>行业领域上传材料</label>
+                                        {if condition="$ecr['newDomainImg']"}
+                                        {eq name="ecr.domainImg_is_img" value="1"}
+                                        <img src="{$ecr.newDomainImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newDomainImg|getStoragePath}">
+                                        {/eq}
+                                        {else/}
+                                        <img src="/static/img/yyzz.png" style="height: 60px;">
+                                        {/if}
+                                        <input style="display: none" autocomplete="off" type="file" class="form-control" id="domainImg" name="domainImg" />
+                                        <p class="word-wrap">
+                                            请相关企业截图行业查询结果,做好相关标注(可以用下划线或圆圈等),还要清楚体现大类、中类或小类,上传做为佐证材料。
+                                        </p>
+                                    </td>
+                                </tr>
+                                <tr class="agencyType1" {if condition="$ecr['agencyType'] neq 1"}style="display:none;"{/if}>
+                                    <td colspan="3">
+                                        <p style="color: #333;width:100%;white-space:normal;word-wrap:break-word;word-break:break-all;">备注:请下载<a href="https://rencai.jucai.gov.cn/RXu0fYBPZwdXrgNzq9vIIRjaHXTu3mv3.docx">《国民经济行业分类(GB/T+4754-2017)》</a>或<a href="https://rencai.jucai.gov.cn/QKmKXmINDNeU1qKslkfaec47LXp7qCUO.docx" >《数字经济及其核心产业统计分类(2021)》</a>文档,对照行业分类标准,先查看属于什么行业,再按我市确定的“4341”产业比对属于什么产业,进行产业领域或行业领域的填报。</p>
+                                    </td>
+                                </tr>
+                                <tr class='agencyType1 agencyType2'>
+                                    <td>
+                                        <div class="rowGroup">
+                                            <label class="control-label spacing td-label"><span style="color: red">*</span>企业标签</label>
+                                            <select class="form-control" id="newEnterpriseTag" name="newEnterpriseTag" value="{$ecr.newEnterpriseTag}">
+                                            </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="newEnterpriseType" name="newEnterpriseType" value="{$ecr.newEnterpriseType}" onchange="EpChangeEdit.changeEnterpriseType()">
+                                            </select>
+                                        </div>
+                                    </td>
+                                    <td class="typeUploader" {if condition="in_array($ecr.newEnterpriseType,['guishang','gaoxinjishu','zhuanjingtexin'])"}style="position:relative;"{else/}style="position:relative;display:none;"{/if}>
+                                        <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#typeImg').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                        <label class="control-label spacing"><span style="color: red">*</span>规上、高新技术、专精特新企业上传材料</label>
+                                        {if condition="$ecr['newTypeImg']"}
+                                        {eq name="ecr.typeImg_is_img" value="1"}
+                                        <img src="{$ecr.newTypeImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newTypeImg|getStoragePath}">
+                                        {/eq}
+                                        {else/}
+                                        <img src="/static/img/yyzz.png" style="height: 60px;">
+                                        {/if}
+                                        <input style="display: none" autocomplete="off" type="file" class="form-control" id="typeImg" name="typeImg" />
+                                    </td>
+                                </tr>
+                            </table>
+                        </div>
+                        {/if}
+                        {/if}
+                    </div>
+                </div>
+                <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 autocomplete="off" type="text" class="form-control" id="newAgentName" name="newAgentName" value="{$ecr.newAgentName}"/>
+                                    </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="newAgentEmail" name="newAgentEmail" value="{$ecr.newAgentEmail}"/>
+                                    </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="newAgentPhone" name="newAgentPhone" value="{$ecr.newAgentPhone}"/>
+                                    </div>
+                                </td>
+                                <td style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#beian').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing" style="text-align: center"><span style="color: red">*</span>人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">(点击此处下载模板)</a>  </label>
+                                    {if condition="$ecr['newBeian']"}
+                                    {eq name="ecr.beian_is_img" value="1"}
+                                    <img src="{$ecr.newBeian|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newBeian|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height: 60px;">
+                                    {/if}
+                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
+                                </td>
+                            </tr>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_edit.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/enterprise_change_edit.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 162 - 0
app/enterprise/view/api/school/to_add.html

@@ -0,0 +1,162 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    .has-feedback label~.form-control-feedback{
+        top: 35px;
+    }
+    .table .td-label{
+        display: block;
+        text-align: left;
+        border-bottom: 1px solid #ccc;
+        margin-bottom: 10px;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">                                
+        <form id="ecr_form" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+            <input type="hidden" id="special" name="special" value="{$ecr.special}"/>
+            <input type="hidden" id="enterprise_id" name="enterprise_id" value="{$ecr.enterprise_id}"/>
+            <input type="hidden" id="id" name="id" value="{$ecr.id}"/>
+            <input type="hidden" id="type" name="type" value="{$ecr.type}"/>
+            <div class="form-horizontal">
+                <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 autocomplete="off" type="text" class="form-control" id="newName" name="newName" value="{$ecr.newName}"/>
+                                    </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="newLegal" name="newIdCard" value="{$ecr.newIdCard}"/>
+                                    </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="newLegal" name="newLegal" value="{$ecr.newLegal}"/>
+                                    </div>
+                                </td>
+                                <td rowspan="2" style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#imgurl').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing"><span class="text-danger">*</span>办学许可证、法人证书或登记证书</label>
+                                    {if condition="$ecr['imgurl']"}
+                                    {eq name="ecr.imgurl_is_img" value="1"}
+                                    <img src="{$ecr.imgurl|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)">
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.imgurl|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height:60px;">
+                                    {/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="newEphone" name="newEphone" placeholder="固话格式0595-xxxx" value="{$ecr.newEphone}"/>
+                                    </div>
+                                </td>
+                                <td colspan="2">
+                                    <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="newProvince" name="newProvince" onchange="EpChangeEdit.afterSelectProvince();" value="{$ecr.newProvince}">
+                                                    <option value="">---请选择---</option>
+                                                </select>
+                                            </div>
+                                            <div class="col-sm-2">
+                                                <select class="form-control" id="newCity" name="newCity" onchange="EpChangeEdit.afterSelectCity();" value="{$ecr.newCity}">
+                                                    <option value="">---请选择---</option>
+                                                </select>
+                                            </div>
+                                            <div class="col-sm-2">
+                                                <select class="form-control" id="newCounty" name="newCounty" value="{$ecr.newCounty}">
+                                                    <option value="">---请选择---</option>
+                                                </select>
+                                            </div>
+                                            <div class="col-sm-6">
+                                                <input autocomplete="off" type="text" class="form-control" id="newAddress" name="newAddress" placeholder="请填写详细地址" value="{$ecr.newAddress}"/>
+                                            </div>
+                                        </div>
+                                    </div>
+                                </td>
+                            </tr>
+                        </table>
+                    </div>
+                </div>
+                <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 autocomplete="off" type="text" class="form-control" id="newAgentName" name="newAgentName" value="{$ecr.newAgentName}"/>
+                                    </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="newAgentEmail" name="newAgentEmail" value="{$ecr.newAgentEmail}"/>
+                                    </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="newAgentPhone" name="newAgentPhone" value="{$ecr.newAgentPhone}"/>
+                                    </div>
+                                </td>
+                                <td style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#beian').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing" style="text-align: center"><span style="color: red">*</span>人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">(点击此处下载模板)</a>  </label>
+                                    {if condition="$ecr['beian']"}
+                                    {eq name="ecr.beian_is_img" value="1"}
+                                    <img src="{$ecr.beian|getStoragePath}" style="height:60px;" onclick="Feng.showImg(this)" >
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height:60px;" data-url="{$ecr.beian|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height:60px;">
+                                    {/if}
+                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
+                                </td>
+                            </tr>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_edit.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/school/enterprise_change_edit.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 202 - 0
app/enterprise/view/api/school/to_detail.html

@@ -0,0 +1,202 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+    .float-e-margins .btn{margin-bottom:0 !important;}
+    .upload-btn {
+        position: relative;
+        display: inline-block;
+        cursor: pointer;
+        background: #1ab394;
+        padding: 6px 12px;
+        color: #fff;
+        text-align: center;
+        border-radius: 3px;
+        overflow: hidden;
+        font-size: 14px;
+        font-weight: 400;
+    }
+
+    .imgs li {
+        list-style: none;
+        float: left;
+        border: 1px solid #d8d1d1;
+        text-align: center;
+        height: 30px;
+    }
+
+
+    .spacing {
+        margin-bottom: 10px;
+        padding-right: 4px;
+        padding-left: 4px;
+        height: 30px;
+    }
+    table td{
+        text-align: center;
+    }
+    .key{
+        width: 150px;
+        text-align: right;
+        background-color: #f0f9eb;
+    }
+    .value1{
+        width: 240px;
+        text-align: left;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+    span.new{font-weight:bold;color:#333;}
+    span.old{text-decoration:line-through;}
+    ul.files{list-style:none;display:flex;justify-content:center;padding:0;align-items:flex-start;}
+    ul.files li{overflow:hidden;position:relative;margin-right:10px;float:left;}
+    ul.files i.old{text-align:center;height:0;width:0;line-height:15px;color:#fff;position:absolute;right:0;bottom:0;border-top:15px solid transparent;border-right:15px solid #000;border-bottom:15px solid #000;border-left:15px solid transparent;display:block;}
+    ul.files i.new{text-align:center;height:0;width:0;line-height:15px;color:#000;position:absolute;right:0;bottom:0;border-top:15px solid transparent;border-right:15px solid #0bfd1a;border-bottom:15px solid #0bfd1a;border-left:15px solid transparent;display:block;}
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">
+        <div class="panel-body">
+            <div class="panel panel-default">
+                <input type="hidden" id="id" name="id" value="{$ecr.id}"/>
+                <input type="hidden" id="type" name="type" value="{$ecr.type}"/>
+                <input type="hidden" id="checkState" name="checkState" value="{$ecr.checkState}"/>
+                <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 word-wrap" data-old='{$ecr.oldName}' data-new='{$ecr.newName}'></td>
+                            <td class="key">
+                                统一社会信用代码
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldIdCard}' data-new='{$ecr.newIdCard}'></td>
+                            <td rowspan="3" style="border: 1px solid #c0a16b;width: 300px">
+                                <label>
+                                    办学许可证、法人证书或登记证书
+                                </label>
+                                <ul class="files yyzz">
+                                    {if condition="$ecr['oldImgurl'] eq $ecr['newImgurl']"}
+                                    <li>
+                                        {if condition="$ecr['oldImgurl_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldImgurl']"}
+                                    <li>
+                                        {if condition="$ecr['oldImgurl_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newImgurl']"}
+                                    <li>
+                                        {if condition="$ecr['newImgurl_is_img'] eq 1"}
+                                        <img src="{$ecr.newImgurl|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                法人代表
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldLegal}' data-new='{$ecr.newLegal}'>
+                                {$ep.legal}
+                            </td>
+                            <td class="key">
+                                学校电话
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldEphone}' data-new='{$ecr.newEphone}'></td>
+                        </tr>
+                        <tr>                            
+                            <td class="key">
+                                学校地址
+                            </td>
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldFullLocationName} {$ecr.oldAddress}' data-new='{$ecr.newFullLocationName} {$ecr.newAddress}'></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 word-wrap" data-old="{$ecr.oldAgentName}" data-new="{$ecr.newAgentName}"></td>
+                            <td class="key">
+                                人才联络员电话
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldAgentPhone}" data-new="{$ecr.newAgentPhone}"></td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                人才联络员邮箱
+                            </td>
+                            <td class="value1 word-wrap" data-old="{$ecr.oldAgentEmail}" data-new="{$ecr.newAgentEmail}"></td>
+                            <td class="key">
+                                人才联络员信息备案表
+                            </td>
+                            <td style="text-align: left">
+                                <ul class="files beian">
+                                    {if condition="$ecr['oldBeian'] eq $ecr['newBeian']"}
+                                    <li>
+                                        {if condition="$ecr['oldBeian_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-height:60px;">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-height:60px;">
+                                        {/if}
+                                    </li>
+                                    {else/}
+                                    {if condition="$ecr['oldBeian']"}
+                                    <li>
+                                        {if condition="$ecr['oldBeian_is_img'] eq 1"}
+                                        <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-height:60px;"><i class="old">旧</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-height:60px;"><i class="old">旧</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {if condition="$ecr['newBeian']"}
+                                    <li>
+                                        {if condition="$ecr['newBeian_is_img'] eq 1"}
+                                        <img src="{$ecr.newBeian|getStoragePath}" onclick="Feng.showImg(this)" style="max-height:60px;"/><i class="new">新</i>
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')" style="max-height:60px;"><i class="new">新</i>
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {/if}
+                                </ul>
+                            </td>
+                        </tr>
+                    </table>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<script type="text/javascript">
+    document.write('<script src="/static/modular/enterprise/enterprisechangeRecord/ep_change_record_detail.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 165 - 0
app/enterprise/view/api/school/to_update.html

@@ -0,0 +1,165 @@
+{extend name="layout/content"}
+{block name="content"}
+<style>
+    .panel-heading{
+        color:#333;
+        background-color:#f5f5f5;
+        border-color:#ddd
+    }
+    .spacing {
+        margin-bottom: 10px;
+        padding-right:4px;
+        padding-left: 4px;
+    }
+    .has-feedback label~.form-control-feedback{
+        top: 35px;
+    }
+    .table .td-label{
+        display: block;
+        text-align: left;
+        border-bottom: 1px solid #ccc;
+        margin-bottom: 10px;
+    }
+    .word-wrap{
+        width:100%;
+        white-space:normal;
+        word-wrap:break-word;
+        word-break:break-all;
+    }
+</style>
+<div class="ibox float-e-margins">
+    <div class="ibox-content">                                
+        <form id="ecr_form" class="form-horizontal" target="hiddenIframe" action="" method="post" enctype="multipart/form-data">
+            <input type="hidden" id="special" name="special" value="{$ecr.special}"/>
+            <input type="hidden" id="enterprise_id" name="enterprise_id" value="{$ecr.mainId}"/>
+            <input type="hidden" id="id" name="id" value="{$ecr.id}"/>
+            <input type="hidden" id="type" name="type" value="{$ecr.type}"/>
+            <input type="hidden" id="checkState" name="checkState" value="{$ecr.checkState}"/>
+            <input type="hidden" id="fields" name="fields" value="{$ecr.modify_fields}"/>
+            <input type="hidden" id="files" name="files" value="{$ecr.modify_files}"/>
+            <div class="form-horizontal">
+                <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 autocomplete="off" type="text" class="form-control" id="newName" name="newName" value="{$ecr.newName}"/>
+                                    </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="newIdCard" name="newIdCard"  value="{$ecr.newIdCard}"/>
+                                    </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="newLegal" name="newLegal" value="{$ecr.newLegal}"/>
+                                    </div>
+                                </td>
+                                <td rowspan="2" style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#imgurl').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing"><span class="text-danger">*</span>办学许可证、法人证书或登记证书</label>
+                                    {if condition="$ecr['newImgurl']"}
+                                    {eq name="ecr.imgurl_is_img" value="1"}
+                                    <img src="{$ecr.newImgurl|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)">
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newImgurl|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height: 60px;">
+                                    {/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="newEphone" name="newEphone" placeholder="固话格式0595-xxxx" value="{$ecr.newEphone}"/>
+                                    </div>
+                                </td>
+                                <td colspan="2">
+                                    <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="newProvince" name="newProvince" onchange="EpChangeEdit.afterSelectProvince();" value="{$ecr.newProvince}">
+                                                    <option value="">---请选择---</option>
+                                                </select>
+                                            </div>
+                                            <div class="col-sm-2">
+                                                <select class="form-control" id="newCity" name="newCity" onchange="EpChangeEdit.afterSelectCity();" value="{$ecr.newCity}">
+                                                    <option value="">---请选择---</option>
+                                                </select>
+                                            </div>
+                                            <div class="col-sm-2">
+                                                <select class="form-control" id="newCounty" name="newCounty" value="{$ecr.newCounty}">
+                                                    <option value="">---请选择---</option>
+                                                </select>
+                                            </div>
+                                            <div class="col-sm-6">
+                                                <input autocomplete="off" type="text" class="form-control" id="newAddress" name="newAddress" placeholder="请填写详细地址" value="{$ecr.newAddress}"/>
+                                            </div>
+                                        </div>
+                                    </div>
+                                </td>
+                            </tr>
+                        </table>
+                    </div>
+                </div>
+                <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 autocomplete="off" type="text" class="form-control" id="newAgentName" name="newAgentName" value="{$ecr.newAgentName}"/>
+                                    </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="newAgentEmail" name="newAgentEmail" value="{$ecr.newAgentEmail}"/>
+                                    </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="newAgentPhone" name="newAgentPhone" value="{$ecr.newAgentPhone}"/>
+                                    </div>
+                                </td>
+                                <td style="position:relative;">
+                                    <button type="button" class="btn btn-info btn-sm" style="position:absolute;right:5px;top:5px;" onclick="$('#beian').click()"><i class="fa fa-upload" aria-hidden="true"></i>上传文件</button>
+                                    <label class="control-label spacing" style="text-align: center"><span style="color: red">*</span>人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">(点击此处下载模板)</a>  </label>
+                                    {if condition="$ecr['newBeian']"}
+                                    {eq name="ecr.beian_is_img" value="1"}
+                                    <img src="{$ecr.newBeian|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
+                                    {else/}
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" data-url="{$ecr.newBeian|getStoragePath}">
+                                    {/eq}
+                                    {else/}
+                                    <img src="/static/img/yyzz.png" style="height: 60px;">
+                                    {/if}
+                                    <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
+                                </td>
+                            </tr>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+<iframe style="display: none;" id="hiddenIframe" name="hiddenIframe"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_edit.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/enterprise/school/enterprise_change_edit.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 16 - 121
app/enterprise/view/index/hospital/center_page.html

@@ -27,7 +27,7 @@
 </style>
 <div class="ibox float-e-margins">
     <div class="ibox-title">
-        <h5>机构用户中心</h5>
+        <h5>用户中心</h5>
     </div>
     <div class="ibox-content">
         <div class="form-horizontal">
@@ -36,7 +36,7 @@
                     <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-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>
@@ -44,7 +44,7 @@
                             <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-heading">医院信息</div>
                                         <div class="panel-body">
 
                                             <table style="width:100%" class="table table-bordered">
@@ -56,13 +56,13 @@
                                                         {$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}
+                                                        {$ep.name}{eq name="ep.isGeneral" value="1"}(总院){/eq}
                                                     </td>
                                                     <td rowspan="4"  style="border: 1px solid #c0a16b">
-                                                        <label>{eq name="ep.special" value="0"}营业执照{else/}事业单位法人证或批文{/eq}</label>
+                                                        <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">
@@ -74,7 +74,7 @@
                                                 </tr>
                                                 <tr>
                                                     <td class="key">
-                                                        统一社会信用代码
+                                                        登记证
                                                     </td>
                                                     <td>
                                                         {$ep.idCard}
@@ -82,138 +82,33 @@
                                                     <td class="key">
                                                         法人代表
                                                     </td>
-                                                    <td>
+                                                    <td style="border-right: 1px solid #c0a16b">
                                                         {$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}
+                                                        {$ep.medicalCommunityName}
                                                     </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}
+                                                        {$ep.ephone}
                                                     </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 colspan="3" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.fullLocationName} {$ep.address}
                                                     </td>
                                                 </tr>
                                             </table>
-                                            {/if}
-                                            {/eq}
                                         </div>
                                     </div>
                                 </div>
@@ -389,7 +284,7 @@
     </div>
 </div>
 <script type="text/javascript">
-    document.write('<script src="/static/modular/gate/enterprise/enterprise_center.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/gate/enterprise/hospital/enterprise_center.js?v=' + (new Date()).getTime() + '"><\/script>');
 </script>
 <!--<script src='{$ctxPath}/static/modular/gate/enterprise/enterprise_center.js?v='></script>-->
 {/block}

+ 12 - 6
app/enterprise/view/index/school/center_page.html

@@ -74,23 +74,29 @@
                                                 </tr>
                                                 <tr>
                                                     <td class="key">
-                                                        法人代表
+                                                        统一社会信用代码
                                                     </td>
                                                     <td>
-                                                        {$ep.legal}
+                                                        {$ep.idCard}
                                                     </td>
                                                     <td class="key">
-                                                        学校电话
+                                                        法人代表
                                                     </td>
                                                     <td style="border-right: 1px solid #c0a16b">
-                                                        {$ep.ephone}
+                                                        {$ep.legal}
                                                     </td>
                                                 </tr>
                                                 <tr>
+                                                    <td class="key">
+                                                        学校电话
+                                                    </td>
+                                                    <td>
+                                                        {$ep.ephone}
+                                                    </td>
                                                     <td class="key">
                                                         学校地址
                                                     </td>
-                                                    <td colspan="3" style="border-right: 1px solid #c0a16b">
+                                                    <td style="border-right: 1px solid #c0a16b">
                                                         {$ep.fullLocationName} {$ep.address}
                                                     </td>
                                                 </tr>
@@ -270,7 +276,7 @@
     </div>
 </div>
 <script type="text/javascript">
-    document.write('<script src="/static/modular/gate/enterprise/enterprise_center.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/gate/enterprise/school/enterprise_center.js?v=' + (new Date()).getTime() + '"><\/script>');
 </script>
 <!--<script src='{$ctxPath}/static/modular/gate/enterprise/enterprise_center.js?v='></script>-->
 {/block}

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

@@ -227,6 +227,9 @@ Register.enterpriseUserRegister = function () {
             break;
         case 'gaojiao':
             $("#tab-7 .form-control").removeAttr("disabled");
+            $('#ep_form').bootstrapValidator("addField", "idCard", {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}});
+            $('#ep_form').bootstrapValidator("addField", "legal", {validators: {notEmpty: {message: '法人代表不能为空'}}});
+            $('#ep_form').bootstrapValidator("addField", "ephone", {validators: {notEmpty: {message: '学校电话不能为空'}}});
             $('#ep_form').bootstrapValidator("addField", "province", {validators: {notEmpty: {message: '请选择学校所在省份'}}});
             $('#ep_form').bootstrapValidator("addField", "city", {validators: {notEmpty: {message: '请选择学校所在市'}}});
             $('#ep_form').bootstrapValidator("addField", "county", {
@@ -244,9 +247,6 @@ Register.enterpriseUserRegister = function () {
                 }
             });
             $('#ep_form').bootstrapValidator("addField", "address", {validators: {notEmpty: {message: '请填写学校详细地址'}}});
-            $('#ep_form').bootstrapValidator("addField", "legal", {validators: {notEmpty: {message: '法人代表不能为空'}}});
-            $('#ep_form').bootstrapValidator("addField", "ephone", {validators: {notEmpty: {message: '学校电话不能为空'}}});
-            $('#ep_form').bootstrapValidator("removeField", "idCard");
             $('#ep_form').bootstrapValidator("removeField", "street");
             var prefix = "学校";
             break;
@@ -319,6 +319,7 @@ Register.enterpriseUserRegister = function () {
             var password = $("#gj_password").val();
             var rePassword = $("#gj_re_password").val();
             var name = $("#gj_name").val();
+            var idCard = $("#gj_idCard").val();
             var legal = $("#gj_legal").val();
             var ephone = $("#gj_ephone").val();
             var province = $("#gj_province").val();

+ 10 - 1
public/static/modular/enterprise/enterprisechangeRecord/ep_change_record_examine.js

@@ -63,12 +63,21 @@ examine.unCheckAll = function () {
 }
 
 examine.toggleField = function () {
+    var type = $("#type").val();
     var checkState = $("#checkState").val();
     var checkMsg = $("#checkMsg").val();
+    var typeName = "";
+    if (type == 5) {
+        typeName = "医院";
+    } else if (type == 6) {
+        typeName = "学校";
+    } else {
+        typeName = "机构";
+    }
     if (checkState == 4) {
         $("#field").css("display", "none");
         if (checkMsg == null || checkMsg == '') {
-            $("#checkMsg").val("机构信息变更审核通过。");
+            $("#checkMsg").val(typeName + "信息变更审核通过。");
         }
     } else if (checkState == 3) {
         $("#checkMsg").val("");

+ 3 - 0
public/static/modular/enterprise/school/enterprise_list.js

@@ -12,6 +12,7 @@ Enterprise.initColumn = function () {
         {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
         {title: '账号', field: 'username', visible: true, align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '学校名称', field: 'name', visible: true, align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '统一社会信用代码', field: 'idCard', visible: true, align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '法人代表', field: 'legal', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '学校电话', field: 'ephone', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '人才联络员', field: 'agentName', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
@@ -113,6 +114,7 @@ Enterprise.search = function () {
 
 Enterprise.reset = function () {
     $("#name").val("");
+    $("#idCard").val("");
     $("#legal").val("");
     $("#ephone").val("");
     $("#agentName").val("");
@@ -384,6 +386,7 @@ Enterprise.resetPassword = function () {
 
 Enterprise.doExport = function () {
     var name = $("#name").val();
+    var idCard = $("#idCard").val();
     var legal = $("#legal").val();
     var ephone = $("#ephone").val();
     var agentName = $("#agentName").val();

+ 18 - 2
public/static/modular/enterprise/school/enterprisechangeRecord/ep_change_record_list.js

@@ -11,11 +11,21 @@ EpChange.initColumn = function () {
         {field: 'selectItem', radio: true},
         {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
         {title: '<span style="color: red">原学校名称</span>', field: 'oldName', align: 'center', width: 200, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '原统一社会信用代码', field: 'oldIdCard', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '原法人代表', field: 'oldLegal', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
-        {title: '原学校地址', field: 'oldFullAddress', align: 'center', width: 200, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '原学校地址', field: 'oldAddress', align: 'center', width: 200, valign: 'middle', 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                return row.oldProvinceName + row.oldCityName + row.oldCountyName + " " + value;
+            }
+        },
         {title: '<span style="color: red">新学校名称</span>', field: 'newName', align: 'center', width: 200, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '新统一社会信用代码', field: 'newIdCard', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '新法人代表', field: 'newLegal', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
-        {title: '新学校地址', field: 'newFullAddress', align: 'center', width: 200, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '新学校地址', field: 'newAddress', align: 'center', width: 200, valign: 'middle', 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                return row.newProvinceName + row.newCityName + row.newCountyName + " " + value;
+            }
+        },
         {title: '申请时间', field: 'createTime', align: 'center', width: 150, valign: 'middle', 'class': 'uitd_showTip'},
         {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: 100,
             formatter: function (value, row, index) {
@@ -74,8 +84,10 @@ EpChange.initColumn = function () {
 EpChange.search = function () {
     var queryData = {};
     queryData['oldName'] = $("#oldName").val();
+    queryData['oldIdCard'] = $("#oldIdCard").val();
     queryData['oldLegal'] = $("#oldLegal").val();
     queryData['newName'] = $("#newName").val();
+    queryData['newIdCard'] = $("#newIdCard").val();
     queryData['newLegal'] = $("#newLegal").val();
     queryData['checkState'] = $("#checkState").val();
 
@@ -84,8 +96,10 @@ EpChange.search = function () {
 
 EpChange.reset = function () {
     $("#oldName").val("");
+    $("#oldIdCard").val("");
     $("#oldLegal").val("");
     $("#newName").val("");
+    $("#newIdCard").val("");
     $("#newLegal").val("");
     $("#checkState").val("");
 };
@@ -235,8 +249,10 @@ EpChange.unCheckAll = function () {
 EpChange.export = function () {
     var queryData = {};
     queryData['oldName'] = $("#oldName").val();
+    queryData['oldIdCard'] = $("#oldIdCard").val();
     queryData['oldLegal'] = $("#oldLegal").val();
     queryData['newName'] = $("#newName").val();
+    queryData['newIdCard'] = $("#oldIdCard").val();
     queryData['newLegal'] = $("#newLegal").val();
     queryData['checkState'] = $("#checkState").val();
     window.location.href = Feng.setUrlParam(Feng.ctxPath + "/admin/enterpriseChangeRecord/export", queryData);

+ 308 - 0
public/static/modular/gate/enterprise/hospital/enterprise_center.js

@@ -0,0 +1,308 @@
+var EnterpriseCenter = {
+    id: "table", //表格id
+    seItem: null, //选中的条目
+    table: null,
+    layerIndex: -1
+};
+
+EnterpriseCenter.changePwd = function () {
+    var password = $("#tab-3").find("input[name='password']").val();
+    var newPassword = $("#tab-3").find("input[name='newPassword']").val();
+    var newRePassword = $("#tab-3").find("input[name='newRePassword']").val();
+    if (password == null || password == '') {
+        Feng.info("请填写原密码!");
+        return;
+    }
+    if (newPassword == null || newPassword == '') {
+        Feng.info("请填写新密码!");
+        return;
+    }
+    if (newRePassword == null || newRePassword == '') {
+        Feng.info("请填写重复新密码!");
+        return;
+    }
+    if (newPassword != newRePassword) {
+        console.log(newPassword, newRePassword)
+        Feng.info("两次新密码填写不一致!");
+        return;
+    }
+    var da = {"password": password, "newPassword": newPassword};
+    var ajax = new $ax(Feng.ctxPath + "/common/api/changePwd", function (data) {
+        Feng.info(data.msg);
+        if (data.code == 200) {
+            $("#tab-3").find("input[name='password']").val('');
+            $("#tab-3").find("input[name='newPassword']").val('');
+            $("#tab-3").find("input[name='newRePassword']").val('');
+        }
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set(da);
+    ajax.start();
+};
+
+EnterpriseCenter.initColumn = function () {
+    return [
+        {field: 'selectItem', radio: true},
+        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
+        {title: '更新单位名称', field: 'newName', align: 'left', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新统一社会信用代码', field: 'newIdCard', align: 'center', width: 160, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新产业领域', field: 'newIndustryFieldNewName', align: 'center', width: 160, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新单位标签', field: 'newEnterpriseType', align: 'left', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新法人代表', field: 'newLegal', align: 'left', width: 100, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新所属街道', field: 'newStreetName', align: 'left', width: 100, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新单位地址', field: 'newAddress', align: 'left', width: 200, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '审核状态', field: 'checkState', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (value == null || value == '') {
+                    return "";
+                } else if (value == 1) {
+                    return "保存未提交";
+                } else if (value == 2) {
+                    return "待审核";
+                } else if (value == 3) {
+                    return "审核驳回";
+                } else if (value == 4) {
+                    return "审核通过";
+                } else if (value == 5) {
+                    return "重新提交";
+                } else if (value == 6) {
+                    return "初审驳回";
+                } else if (value == 7) {
+                    return "初审通过";
+                } else {
+                    return "";
+                }
+            },
+            cellStyle: function (value, row, index) {
+                if (value == null || value == '') {
+                    return {css: {}};
+                } else if (value == 1) {
+                    return {css: {}};
+                } else if (value == 2) {
+                    return {css: {"background-color": "LightGrey"}};
+                } else if (value == 3) {
+                    return {css: {"background-color": "Orange"}};
+                } else if (value == 4) {
+                    return {css: {'background-color': 'LightGreen'}};
+                } else if (value == 5) {
+                    return {css: {'background-color': 'LightGrey'}};
+                } else if (value == 6) {
+                    return {css: {"background-color": "Orange"}};
+                } else if (value == 7) {
+                    return {css: {'background-color': 'LightBlue'}};
+                } else {
+                    return {css: {}};
+                }
+            }
+        },
+        {title: '申请时间', field: 'createTime', align: 'center', width: 170, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"EnterpriseCenter.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
+            }
+        }
+    ];
+};
+
+EnterpriseCenter.addEnterprisechangeRecord = function () {
+    //查询是否存在  未处理完的 变更申请
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/api/findUnfinishedChangeRecord", function (data) {
+        if (data == null || data.length == 0) {
+            var index = layer.open({
+                type: 2,
+                title: '申请机构信息变更',
+                area: ['930px', '600px'], //宽高
+                fix: false, //不固定
+                maxmin: true,
+                content: Feng.ctxPath + '/enterprise/api/toAdd',
+                btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+                btnAlign: 'c',
+                btn1: function (index, layero) {
+                    //按钮【按钮一】的回调
+                    var iframeWin = window[layero.find('iframe')[0]['name']];
+                    iframeWin.EpChangeEdit.addSubmit();
+                },
+                btn2: function (index, layero) {
+                    //按钮二的回调
+                    var iframeWin = window[layero.find('iframe')[0]['name']];
+                    iframeWin.EpChangeEdit.submitToCheck();
+                    return false;
+                }
+            });
+            layer.full(index);
+            EnterpriseCenter.layerIndex = index;
+        } else {
+            Feng.info("您还有 " + data.length + " 条企业变更申请没有处理完毕, 不能重新提交变更申请!");
+        }
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set(null);
+    ajax.start();
+};
+
+EnterpriseCenter.updateEnterprisechangeRecord = function () {
+    if (!EnterpriseCenter.check()) {
+        return;
+    }
+    var item = EnterpriseCenter.seItem;
+    if (item.checkState != null && item.checkState == 4) {                              //如果已经审核通过了
+        Feng.info("该申请已经审核通过,不能再修改!");
+        return;
+    }
+    var index = layer.open({
+        type: 2,
+        title: '申请机构信息变更',
+        area: ['930px', '600px'], //宽高
+        fix: false, //不固定
+        maxmin: true,
+        content: Feng.ctxPath + '/enterprise/api/toUpdate?id=' + item.id,
+        btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+        btnAlign: 'c',
+        btn1: function (index, layero) {
+            //按钮【按钮一】的回调
+            var iframeWin = window[layero.find('iframe')[0]['name']];
+            iframeWin.EpChangeEdit.addSubmit();
+        },
+        btn2: function (index, layero) {
+            //按钮二的回调
+            var iframeWin = window[layero.find('iframe')[0]['name']];
+            iframeWin.EpChangeEdit.submitToCheck();
+            return false;
+        }
+    });
+    layer.full(index);
+    EnterpriseCenter.layerIndex = index;
+};
+
+EnterpriseCenter.check = function () {
+    var selected = $('#' + EnterpriseCenter.id).bootstrapTable('getSelections');
+    if (selected.length == 0) {
+        Feng.info("请先选中表格中的一条变更记录!");
+        return false;
+    } else {
+        EnterpriseCenter.seItem = selected[0];
+        return true;
+    }
+};
+
+EnterpriseCenter.showEnterprisechangeRecordDetail = function () {
+    if (!EnterpriseCenter.check()) {
+        return;
+    }
+    var index = layer.open({
+        type: 2,
+        title: '机构信息变更详情',
+        area: ['930px', '600px'], //宽高
+        fix: false, //不固定
+        maxmin: true,
+        content: Feng.ctxPath + '/enterprise/api/toDetail?id=' + EnterpriseCenter.seItem.id,
+        btn: ['<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+        btn1: function (index, layero) {
+            layer.close(index);
+        },
+    });
+    layer.full(index);
+    EnterpriseCenter.layerIndex = index;
+};
+
+/**
+ * 显示日志
+ * @param id
+ */
+EnterpriseCenter.showLog = function (id) {
+    layer.open({
+        type: 1,
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
+        area: ['80%', '80%'],
+        maxmin: true,
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": 10, "mainId": id, "typeFileId": "", "active": 1})
+        }
+    });
+}
+
+/**
+ * 发送验证码
+ */
+EnterpriseCenter.getEnterpriseSms = function () {
+    var agentPhone = $("#tab-1").find("input[name='agentPhone']").val();
+    if (agentPhone == null || agentPhone == "") {
+        Feng.info("人才联络员手机号码为空!");
+        return;
+    }
+    agentPhone = $.trim(agentPhone);
+    if (!Feng.checkMobilePhoneNum(agentPhone)) {
+        Feng.info("手机号格式有误,请填写正确的手机号码!");
+        return;
+    }
+    EnterpriseCenter.enterpriseBtnCountDown();
+    var ajax = new $ax(Feng.ctxPath + "/api/common/verificationCode?phone=" + agentPhone + "&type=1", function (data) {
+        Feng.info(data.msg);
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set(null);
+    ajax.start();
+}
+
+var enterpriseCountDown = 0;
+EnterpriseCenter.enterpriseBtnCountDown = function () {
+    if (enterpriseCountDown == 0) {
+        enterpriseCountDown = 60;
+    } else if (enterpriseCountDown == 1) {
+        $("#enterprise_sms_btn").removeAttr("disabled");
+        $("#enterprise_sms_btn").html("获取验证码");
+        enterpriseCountDown = 0;
+        return;
+    }
+    $("#enterprise_sms_btn").attr("disabled", true);
+    $("#enterprise_sms_btn").html(enterpriseCountDown + "秒");
+    enterpriseCountDown--;
+    setTimeout("EnterpriseCenter.enterpriseBtnCountDown()", 1000);
+}
+
+/**
+ * 绑定聚才网账号
+ */
+EnterpriseCenter.bindJcAccount = function () {
+    var username = $("#username").val();
+    var password = $("#password").val();
+    var verificationCode = $("#verificationCode").val();
+    if (username == null || username == '') {
+        Feng.info("聚才网账号不能为空");
+        return;
+    }
+    if (password == null || password == '') {
+        Feng.info("聚才网账号密码不能为空");
+        return;
+    }
+    if (verificationCode == null || verificationCode == '') {
+        Feng.info("验证码不能为空");
+        return;
+    }
+    var ajax = new $ax(Feng.ctxPath + "/api/jucaiInterface/bindAccount", function (data) {
+        Feng.info(data.msg);
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.setData({"userType": 1, "username": username, "password": password, "verificationCode": verificationCode})
+    ajax.start();
+}
+
+$(function () {
+    var defaultColunms = EnterpriseCenter.initColumn();
+    var table = new BSTable(EnterpriseCenter.id, "/enterprise/api/findEnterpriseChangeByPage", defaultColunms);
+    table.setPaginationType("server");
+    EnterpriseCenter.table = table.init();
+    var type = $("#type").val();
+    if (type == 1) {
+        $("#talentType,#industryFieldNewName,#industryFieldOldName").parent().parent().attr("style", "display:block");
+    }
+
+});

+ 648 - 0
public/static/modular/gate/enterprise/hospital/enterprise_change_edit.js

@@ -0,0 +1,648 @@
+var locked = false;
+var EpChangeEdit = {
+    epChangeEditData: {},
+    validateFields1: {
+        newName: {validators: {notEmpty: {message: '企业名称不能为空'}}}, //, regexp: {regexp: /^([\u4E00-\u9FA5]|\(|\)){1,100}$/, message: "单位名称只允许中文"}
+        newIdCard: {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}},
+        newEnterpriseTag: {validators: {notEmpty: {message: '企业标签不能为空'}}},
+        newEnterpriseType: {validators: {notEmpty: {message: '企业类型不能为空'}}},
+        newLegal: {validators: {notEmpty: {message: '法人代表不能为空'}}}, //, regexp: {regexp: /^[\u4e00-\u9fa5]{1,50}$/, message: "法人代表只允许中文"}
+        newAddress: {validators: {notEmpty: {message: '企业地址不能为空'}}},
+        newStreet: {validators: {notEmpty: {message: '所属街道不能为空'}}},
+        newAgentName: {validators: {notEmpty: {message: '人才联络员不能为空'}}},
+        newEphone: {
+            validators: {
+                notEmpty: {
+                    message: '企业电话不能为空'
+                },
+                regexp: {
+                    regexp: /(^(\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})))$/,
+                    message: "企业电话格式不正确"
+                }
+            }
+        },
+        newAgentPhone: {
+            validators: {
+                notEmpty: {
+                    message: '人才联络员电话不能为空'
+                },
+                regexp: {
+                    regexp: /(^(\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})))$/,
+                    message: "人才联络员电话格式不正确"
+                }
+            }
+        },
+        newAgentEmail: {
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        },
+        newBankCard: {
+            validators: {
+                notEmpty: {
+                    message: '企业银行账号不能为空'
+                }
+            }
+        },
+        newBank: {
+            validators: {
+                notEmpty: {
+                    message: '企业开户银行不能为空'
+                }
+            }, regexp: {regexp: /^([\u4E00-\u9FA5]|\(|\)|\(|\)){1,100}$/, message: "开户银行只允许中文"}
+        },
+        newBankNetwork: {
+            validators: {notEmpty: {message: '开户银行网点不能为空'},
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*$/,
+                    message: "开户银行网点格式不正确"
+                }}
+        }
+    },
+    validateFields2: {
+        newName: {validators: {notEmpty: {message: '单位名称不能为空'}}}, //, regexp: {regexp: /^[\u4e00-\u9fa5]{1,100}$/, message: "单位名称只允许中文"}
+        newAddress: {validators: {notEmpty: {message: '单位地址不能为空'}}},
+        newStreet: {validators: {notEmpty: {message: '所属街道不能为空'}}},
+        newAgentName: {validators: {notEmpty: {message: '人才联络员不能为空'}}},
+        newEphone: {
+            validators: {
+                notEmpty: {
+                    message: '单位电话不能为空'
+                },
+                regexp: {
+                    regexp: /(^(\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})))$/,
+                    message: "单位电话格式不正确"
+                }
+            }
+        },
+        newAgentPhone: {
+            validators: {
+                notEmpty: {
+                    message: '人才联络员电话不能为空'
+                },
+                regexp: {
+                    regexp: /(^(\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})))$/,
+                    message: "人才联络员电话格式不正确"
+                }
+            }
+        },
+        newAgentEmail: {
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        }
+    }
+};
+
+/**
+ * 清除数据
+ */
+EpChangeEdit.clearData = function () {
+    this.epChangeEditData = {};
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+EpChangeEdit.set = function (key, val) {
+    this.epChangeEditData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
+    return this;
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+EpChangeEdit.get = function (key) {
+    return $("#" + key).val();
+}
+
+/**
+ * 关闭此对话框
+ */
+EpChangeEdit.close = function () {
+    parent.layer.close(window.parent.EnterpriseCenter.layerIndex);
+}
+
+/**
+ * 收集数据
+ */
+EpChangeEdit.collectData = function () {
+    this
+            .set('id')
+            .set('type')
+            .set('newAgencyType')
+            .set('newName')
+            .set('newIdCard')
+            .set('newEnterpriseTag')
+            .set('newEnterpriseType')
+            .set('newLegal')
+            .set('newStreet')
+            .set('newAddress')
+            .set('newEphone')
+            .set('newAgentName')
+            .set('newAgentPhone')
+            .set('newAgentEmail')
+            .set('newIndustryFieldNew')
+            .set('newIndustryFieldOld')
+            .set('newOrganizationTag')
+            .set('newInstitutionTag')
+            .set('newBankCard')
+            .set('newBank')
+            .set('newBankNetwork')
+            .set('enterprise_id');
+}
+
+/**
+ * 验证数据
+ */
+EpChangeEdit.validate = function () {
+    $('#ecr_form').data("bootstrapValidator").resetForm();
+    $('#ecr_form').bootstrapValidator('validate');
+    return $("#ecr_form").data('bootstrapValidator').isValid();
+}
+
+
+EpChangeEdit.initFileTable = function () {
+    $("#fileTable").bootstrapTable({
+        url: Feng.ctxPath + "/common/api/listCurrencyFileType",
+        method: 'POST',
+        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+        search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false, // 是否显示刷新按钮
+        clickToSelect: true, // 是否启用点击选中行
+        singleSelect: true, // 设置True 将禁止多选
+        striped: true, // 是否显示行间隔色
+        escape: true,
+        pagination: false, // 设置为 true 会在表格底部显示分页条
+        paginationHAlign: "left",
+        paginationDetailHAlign: "right",
+        sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        showColumns: false,
+        detailView: true, //是否显示父子表
+        pageList: [10, 30, 50],
+        queryParams: function (params) {
+            return $.extend({"type": "enterpriseChange"}, params)
+        },
+        rowStyle: function (row, index) {
+            return {classes: "info"};
+        },
+        columns: EpChangeEdit.initFileTypeColumn(),
+        onPostBody: function () {
+            $("td.uitd_showTip").bind("mouseover", function () {
+                var htm = $(this).html();
+                $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+            });
+        },
+        onLoadSuccess: function (data) {
+            $("#fileTable").bootstrapTable('expandAllRows');
+        },
+        onExpandRow: function (index, row, $detail) {
+            var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
+                if (data == null || data.length == 0) {
+                    return;
+                }
+                var checkState = $("#checkState").length > 0 ? $("#checkState").val() : 1;
+                var files = "";
+                if (checkState != 1) {
+                    files = $("#files").val().split(",");
+                }
+                var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
+                for (var key in data) {
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].ext;//data[key].url.substring(sn+1,data[key].url.length);
+                    var imgStr = "";
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS' || suffix == 'docx' || suffix == 'doc' || suffix == 'DOCX' || suffix == 'DOC') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
+                    }
+                    var btn = "<button type=\'button\' onclick=\"EpChangeEdit.checkFile('" + row.id + "','" + data[key].id + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\"><i class=\"fa fa-paste\"></i>修改</button>" +
+                            "<button type='button' onclick=\"EpChangeEdit.deleteFile('" + data[key].id + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i>删除</button>";
+                    html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
+                            '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
+                            '<li style="width: 10%;">' + imgStr + '</li>\n' +
+                            '<li style="width: 10%;padding-top: 2px;">' + (checkState == 1 ? btn : (files.indexOf(data[key].typeId.toString()) > -1 ? btn : "")) + '</li>';
+                }
+                html = html + '</ul>';
+                $detail.html(html);
+                $(".imgs").viewer({
+                    // toolbar:false,
+                    fullscreen: false
+                });
+            }, function (data) {
+                Feng.error("查询失败!" + data.responseJSON.message + "!");
+            });
+            var queryData = {};
+            queryData["mainId"] = $("#id").val();
+            queryData["typeId"] = row.id;
+            ajax.set(queryData);
+            ajax.start();
+        }
+    });
+}
+
+
+EpChangeEdit.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (row.must == 1) {
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    return '<i class="fa fa-paste"></i>' + value;
+                }
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "50%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                return '<span style="color: red">' + value + '</span>';
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"Feng.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                var checkState = $("#checkState").length > 0 ? $("#checkState").val() : 1;
+                if (checkState == 1) {
+                    return "<button type='button' onclick=\"EpChangeEdit.checkFile('" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                            "<i class=\"fa fa-upload\"></i>上传" +
+                            "</button>";
+                } else {
+                    var files = $("#files").val().split(",");
+                    if (files.indexOf(value.toString()) != -1) {
+                        return "<button type='button' onclick=\"EpChangeEdit.checkFile('" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                                "<i class=\"fa fa-upload\"></i>上传" +
+                                "</button>";
+                    } else {
+                        return "";
+                    }
+                }
+            }
+        }
+    ]
+}
+
+//选择附件并显示附件名
+EpChangeEdit.checkFile = function (fileTypeId, fileId) {
+    var checkState = $("#checkState").val();
+    if (checkState == 2) {
+        Feng.error("正在审核中,无法修改");
+        return;
+    }
+    if (checkState == 4) {
+        Feng.error("审核通过,无法修改");
+        return;
+    }
+    $("#upload_file").unbind("change");
+    $("#upload_file").change(function () {
+        if (!Feng.chkFileInvalid(this.files[0], 5, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片"))
+            return;
+        EpChangeEdit.upload(fileTypeId, fileId);
+    });
+    $('#upload_file').val("");
+    $('#upload_file').click()
+}
+//上传附件
+EpChangeEdit.upload = function (fileTypeId, fileId) {
+    if (fileId != null && fileId != 'null') {
+        $("#fileId").val(fileId)
+    } else {
+        $("#fileId").val("");
+    }
+
+    $("#mainId").val($("#id").val());
+    $("#typeId").val(fileTypeId);
+    var index = layer.load(0, {shade: false, time: 0});
+    $("#index").val(index);
+    $("#uploadForm").submit();
+}
+//删除附件
+EpChangeEdit.deleteFile = function (id) {
+    var checkState = $("#checkState").val();
+    if (checkState == 2) {
+        Feng.error("正在审核中,无法修改");
+        return;
+    }
+    if (checkState == 4) {
+        Feng.error("审核通过,无法删除");
+        return;
+    }
+    var operation = function () {
+        var ajax = new $ax("/common/api/deleteTalentCommonFile", function (data) {
+            if (data.code == 200) {
+                Feng.success(data.msg);
+                $("#fileTable").bootstrapTable("refresh", {});
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("删除失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id", id);
+        ajax.start();
+    }
+    Feng.confirm("删除后无法恢复,确认删除吗?", operation);
+}
+
+
+EpChangeEdit.addSubmit = function () {
+    this.clearData();
+    this.collectData();
+    if (!this.validate()) {
+        return;
+    }
+    var checkState = $("#checkState").val();
+    if (checkState == 2 || checkState == 5 || checkState == 7) {
+        Feng.info("正在审核中,无法修改")
+        return;
+    }
+    if (checkState == 4) {
+        Feng.info("已审核通过,无法修改")
+        return;
+    }
+    // $(".layui-layer-btn0",parent.document).css("pointer-events","none");
+    if (locked) {
+        Feng.info("保存进行中,请耐心等候")
+        return;
+    }
+    locked = true;
+    layer.load(0, {shade: false, time: 0});
+    /*var ajax = new $ax(Feng.ctxPath + "/enterprise/api/upsert", function (data) {
+     if (data.code == "200") {
+     Feng.success(data.msg);
+     $("#fileLi").removeAttr("style");
+     $("#id").val(data.obj.id);
+     $("#checkState").val(data.obj.checkState);
+     window.parent.EnterpriseCenter.table.refresh();
+     } else {
+     Feng.info(data.msg);
+     }
+     // $(".layui-layer-btn0",parent.document).css("pointer-events","block");
+     locked = false;
+     }, function (data) {
+     Feng.error("添加失败!" + data.responseJSON.msg + "!");
+     locked = false;
+     });
+     ajax.set(this.epChangeEditData);
+     ajax.start();*/
+
+    $("#ecr_form :input").removeAttr("disabled");
+    $("#ecr_form").attr("action", "/enterprise/api/upsert");
+    $("#ecr_form")[0].submit();
+};
+
+
+/**
+ * 提交审核
+ */
+EpChangeEdit.submitToCheck = function () {
+    if (locked) {
+        Feng.info("保存进行中,请耐心等候")
+        return;
+    }
+    var id = $("#id").val();
+    if (id == null || id == "") {
+        Feng.info("请先填写基础信息并上传附件");
+        return;
+    }
+    var checkState = $("#checkState").val();
+    if (checkState == 2 || checkState == 5) {
+        Feng.error("正在审核中,无法修改");
+        return;
+    }
+    if (checkState == 4) {
+        Feng.error("审核通过,无法修改");
+        return;
+    }
+    $(".layui-layer-btn1", parent.document).css("pointer-events", "none");
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/api/submitToCheck", function (data) {
+            if (data.code == 200) {
+                Feng.success(data.msg);
+                window.parent.EnterpriseCenter.table.refresh();
+                EpChangeEdit.close();
+            } else {
+                Feng.error(data.msg);
+            }
+            $(".layui-layer-btn1", parent.document).css("pointer-events", "block");
+        }, function (data) {
+            Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+            $(".layui-layer-btn1", parent.document).css("pointer-events", "block");
+        });
+        ajax.set("id", id);
+        ajax.start();
+    }
+    Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
+}
+
+EpChangeEdit.setFieldDisabled = function () {
+    var checkState = $("#checkState").length > 0 ? $("#checkState").val() : 1;
+    if (checkState != 1) {
+        $("#ecr_form :input").prop("disabled", true);
+        $("#ecr_form :button").css("display", "none");
+        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 "newImgurl":
+                    $("#imgurl").removeAttr("disabled");
+                    $("#imgurl").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newBankImg":
+                    $("#bankImg").removeAttr("disabled");
+                    $("#bankImg").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newDomainImg":
+                    $("#domainImg").removeAttr("disabled");
+                    $("#domainImg").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newTypeImg":
+                    $("#typeImg").removeAttr("disabled");
+                    $("#typeImg").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newBeian":
+                    $("#beian").removeAttr("disabled");
+                    $("#beian").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+            }
+        }
+    }
+}
+
+EpChangeEdit.callBack = function (data) {
+    layer.closeAll();
+    EpChangeEdit.setFieldDisabled();
+    locked = false;
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        $("#id").val(data.id);
+        $("input[type=file]").val("");
+        window.parent.EnterpriseCenter.table.refresh();
+    }
+};
+
+
+EpChangeEdit.downloadFile = function (id) {
+    window.location.href = Feng.ctxPath + '/enterprisechangeRecord/downloadFile?id=' + id;
+};
+
+EpChangeEdit.industryChange = function () {
+    var industryNew = $("#newIndustryFieldNew").val();
+    var arr = [{"name": "newIndustryFieldOld", "code": industryNew + "_field"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+}
+
+EpChangeEdit.changeEnterpriseType = function () {
+    var enterpriseType = $("#newEnterpriseType").val();
+    switch (enterpriseType) {
+        case "guishang":
+        case "gaoxinjishu":
+        case "zhuanjingtexin":
+            $("td.typeUploader").css("display", "table-cell");
+            break;
+        default:
+            $("td.typeUploader").css("display", "none");
+            break;
+    }
+};
+
+$("#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");
+            Feng.info("上传成功!<span style='color:red;'>*点击图标可预览</span>");
+        }
+    };
+});
+$("img").click(function () {
+    var fileInput = $(this).next("input");
+    var file = fileInput[0].files[0];
+    if (typeof file != "undefined" && file.type == "application/pdf") {
+        var url = URL.createObjectURL(file);
+        var filename = file.name;
+        //window.open(url)
+        Feng.pdfReader(url, filename);
+    } else {
+        var url = $(this).data("url");
+        if (typeof url != "undefined") {
+            Feng.showPdf(url);
+        }
+    }
+})
+EpChangeEdit.agencyTypeChange = function () {
+    var agencyType = $("#newAgencyType").val();
+    switch (agencyType) {
+        case "1":
+            $("#typeGroup").attr("style", "display:block");
+            $(".agencyType1").attr("style", "");
+            $(".agencyType2").attr("style", "");
+            break;
+        case "2":
+            $("#typeGroup").attr("style", "display:block");
+            $(".agencyType1").attr("style", "display:none");
+            $(".agencyType2").attr("style", "");
+            $("#newIndustryFieldNew").val("");
+            $("#newIndustryFieldOld").val("");
+            break;
+        default:
+            $("#typeGroup").attr("style", "display:none");
+            break;
+    }
+}
+
+$(function () {
+    EpChangeEdit.setFieldDisabled();
+    var type = $("#type").val();
+    var special = parseInt($("#special").val());
+    $('#ecr_form').bootstrapValidator({
+        feedbackIcons: {
+            valid: 'glyphicon glyphicon-ok',
+            invalid: 'glyphicon glyphicon-remove',
+            validating: 'glyphicon glyphicon-refresh'
+        },
+        group: '.rowGroup',
+        fields: special == 1 ? EpChangeEdit.validateFields2 : EpChangeEdit.validateFields1,
+        live: 'enabled',
+        message: '该字段不能为空'
+    });
+    //Feng.initValidator("ecr_form", EpChangeEdit.validateFields);
+    var industryNew = $("#newIndustryFieldNew").attr("value");
+    var arr = [
+        {"name": "newStreet", "code": "street"},
+        {"name": "newEnterpriseTag", "code": "enterprise_tag"},
+        {"name": "newOrganizationTag", "code": "organization_tag"},
+        {"name": "newInstitutionTag", "code": "institution_tag"},
+        {"name": "newEnterpriseType", "code": "enterprise_type"},
+        {"name": "newIndustryFieldNew", "code": "industry_field"},
+        {"name": "newIndustryFieldOld", "code": industryNew + "_field"},
+        {"name": "newAgencyType", "code": "agency_type"}];
+    Feng.findChildDictBatch(JSON.stringify(arr));
+    $("select").each(function () {
+        $(this).val($(this).attr("value"));
+    })
+    if (type == 1) {
+        $("#newEnterpriseTag,#newIndustryFieldNew,#newIndustryFieldOld,#newEnterpriseType").parent().parent().attr("style", "display:cell");
+        $("#newEnterpriseTag").val($("#newEnterpriseTag").attr("value"));
+        $("#newIndustryFieldNew").val($("#newIndustryFieldNew").attr("value"));
+        $("#newIndustryFieldOld").val($("#newIndustryFieldOld").attr("value"));
+    } else {
+        $("#newEnterpriseTag,#newIndustryFieldNew,#newIndustryFieldOld,#newEnterpriseType").parent().parent().attr("style", "display:none");
+        $("#newEnterpriseTag").val("");
+        $("#newIndustryFieldNew").val("");
+        $("#newBankCard").parent().find("span").css("display", "none");
+        $("#newBankNetwork").parent().find("span").css("display", "none");
+        $("#newBank").parent().find("span").css("display", "none");
+        $("#bankImg").parent().find("span").css("display", "none");
+        $('#ecr_form').bootstrapValidator("removeField", "newBankCard");
+        $('#ecr_form').bootstrapValidator("removeField", "newBankNetwork");
+        $('#ecr_form').bootstrapValidator("removeField", "newBank");
+    }
+    var id = $("#id").val();
+    if (id != null && id != '') {
+        $("#fileLi").removeAttr("style");
+    } else {
+        $("#fileLi").attr("style", "pointer-events: none");
+    }
+});

+ 309 - 0
public/static/modular/gate/enterprise/school/enterprise_center.js

@@ -0,0 +1,309 @@
+var EnterpriseCenter = {
+    id: "table", //表格id
+    seItem: null, //选中的条目
+    table: null,
+    layerIndex: -1
+};
+
+EnterpriseCenter.changePwd = function () {
+    var password = $("#tab-3").find("input[name='password']").val();
+    var newPassword = $("#tab-3").find("input[name='newPassword']").val();
+    var newRePassword = $("#tab-3").find("input[name='newRePassword']").val();
+    if (password == null || password == '') {
+        Feng.info("请填写原密码!");
+        return;
+    }
+    if (newPassword == null || newPassword == '') {
+        Feng.info("请填写新密码!");
+        return;
+    }
+    if (newRePassword == null || newRePassword == '') {
+        Feng.info("请填写重复新密码!");
+        return;
+    }
+    if (newPassword != newRePassword) {
+        console.log(newPassword, newRePassword)
+        Feng.info("两次新密码填写不一致!");
+        return;
+    }
+    var da = {"password": password, "newPassword": newPassword};
+    var ajax = new $ax(Feng.ctxPath + "/common/api/changePwd", function (data) {
+        Feng.info(data.msg);
+        if (data.code == 200) {
+            $("#tab-3").find("input[name='password']").val('');
+            $("#tab-3").find("input[name='newPassword']").val('');
+            $("#tab-3").find("input[name='newRePassword']").val('');
+        }
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set(da);
+    ajax.start();
+};
+
+EnterpriseCenter.initColumn = function () {
+    return [
+        {field: 'selectItem', radio: true},
+        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
+        {title: '更新学校名称', field: 'newName', align: 'left', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新统一社会信用代码', field: 'newIdCard', align: 'left', width: 120, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新法人代表', field: 'newLegal', align: 'left', width: 100, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '更新学校地址', field: 'newAddress', align: 'left', width: 200, valign: 'middle', 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                return row.newProvinceName + row.newCityName + row.newCountyName + " " + value;
+            }
+        },
+        {title: '审核状态', field: 'checkState', align: 'center', width: 120, valign: 'middle', 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (value == null || value == '') {
+                    return "";
+                } else if (value == 1) {
+                    return "保存未提交";
+                } else if (value == 2) {
+                    return "待审核";
+                } else if (value == 3) {
+                    return "审核驳回";
+                } else if (value == 4) {
+                    return "审核通过";
+                } else if (value == 5) {
+                    return "重新提交";
+                } else if (value == 6) {
+                    return "初审驳回";
+                } else if (value == 7) {
+                    return "初审通过";
+                } else {
+                    return "";
+                }
+            },
+            cellStyle: function (value, row, index) {
+                if (value == null || value == '') {
+                    return {css: {}};
+                } else if (value == 1) {
+                    return {css: {}};
+                } else if (value == 2) {
+                    return {css: {"background-color": "LightGrey"}};
+                } else if (value == 3) {
+                    return {css: {"background-color": "Orange"}};
+                } else if (value == 4) {
+                    return {css: {'background-color': 'LightGreen'}};
+                } else if (value == 5) {
+                    return {css: {'background-color': 'LightGrey'}};
+                } else if (value == 6) {
+                    return {css: {"background-color": "Orange"}};
+                } else if (value == 7) {
+                    return {css: {'background-color': 'LightBlue'}};
+                } else {
+                    return {css: {}};
+                }
+            }
+        },
+        {title: '申请时间', field: 'createTime', align: 'center', width: 170, valign: 'middle', 'class': 'uitd_showTip'},
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"EnterpriseCenter.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
+            }
+        }
+    ];
+};
+
+EnterpriseCenter.addEnterprisechangeRecord = function () {
+    //查询是否存在  未处理完的 变更申请
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/api/findUnfinishedChangeRecord", function (data) {
+        if (data == null || data.length == 0) {
+            var index = layer.open({
+                type: 2,
+                title: '申请学校信息变更',
+                area: ['930px', '600px'], //宽高
+                fix: false, //不固定
+                maxmin: true,
+                content: Feng.ctxPath + '/enterprise/api/toAdd',
+                btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+                btnAlign: 'c',
+                btn1: function (index, layero) {
+                    //按钮【按钮一】的回调
+                    var iframeWin = window[layero.find('iframe')[0]['name']];
+                    iframeWin.EpChangeEdit.addSubmit();
+                },
+                btn2: function (index, layero) {
+                    //按钮二的回调
+                    var iframeWin = window[layero.find('iframe')[0]['name']];
+                    iframeWin.EpChangeEdit.submitToCheck();
+                    return false;
+                }
+            });
+            layer.full(index);
+            EnterpriseCenter.layerIndex = index;
+        } else {
+            Feng.info("您还有 " + data.length + " 条变更申请没有处理完毕, 不能重新提交变更申请!");
+        }
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set(null);
+    ajax.start();
+};
+
+EnterpriseCenter.updateEnterprisechangeRecord = function () {
+    if (!EnterpriseCenter.check()) {
+        return;
+    }
+    var item = EnterpriseCenter.seItem;
+    if (item.checkState != null && item.checkState == 4) {                              //如果已经审核通过了
+        Feng.info("该申请已经审核通过,不能再修改!");
+        return;
+    }
+    var index = layer.open({
+        type: 2,
+        title: '申请学校信息变更',
+        area: ['930px', '600px'], //宽高
+        fix: false, //不固定
+        maxmin: true,
+        content: Feng.ctxPath + '/enterprise/api/toUpdate?id=' + item.id,
+        btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-check"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
+        btnAlign: 'c',
+        btn1: function (index, layero) {
+            //按钮【按钮一】的回调
+            var iframeWin = window[layero.find('iframe')[0]['name']];
+            iframeWin.EpChangeEdit.addSubmit();
+        },
+        btn2: function (index, layero) {
+            //按钮二的回调
+            var iframeWin = window[layero.find('iframe')[0]['name']];
+            iframeWin.EpChangeEdit.submitToCheck();
+            return false;
+        }
+    });
+    layer.full(index);
+    EnterpriseCenter.layerIndex = index;
+};
+
+EnterpriseCenter.check = function () {
+    var selected = $('#' + EnterpriseCenter.id).bootstrapTable('getSelections');
+    if (selected.length == 0) {
+        Feng.info("请先选中表格中的一条变更记录!");
+        return false;
+    } else {
+        EnterpriseCenter.seItem = selected[0];
+        return true;
+    }
+};
+
+EnterpriseCenter.showEnterprisechangeRecordDetail = function () {
+    if (!EnterpriseCenter.check()) {
+        return;
+    }
+    var index = layer.open({
+        type: 2,
+        title: '学校信息变更详情',
+        area: ['930px', '600px'], //宽高
+        fix: false, //不固定
+        maxmin: true,
+        content: Feng.ctxPath + '/enterprise/api/toDetail?id=' + EnterpriseCenter.seItem.id,
+        btn: ['<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+        btn1: function (index, layero) {
+            layer.close(index);
+        },
+    });
+    layer.full(index);
+    EnterpriseCenter.layerIndex = index;
+};
+
+/**
+ * 显示日志
+ * @param id
+ */
+EnterpriseCenter.showLog = function (id) {
+    layer.open({
+        type: 1,
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
+        area: ['80%', '80%'],
+        maxmin: true,
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": 10, "mainId": id, "typeFileId": "", "active": 1})
+        }
+    });
+}
+
+/**
+ * 发送验证码
+ */
+EnterpriseCenter.getEnterpriseSms = function () {
+    var agentPhone = $("#tab-1").find("input[name='agentPhone']").val();
+    if (agentPhone == null || agentPhone == "") {
+        Feng.info("人才联络员手机号码为空!");
+        return;
+    }
+    agentPhone = $.trim(agentPhone);
+    if (!Feng.checkMobilePhoneNum(agentPhone)) {
+        Feng.info("手机号格式有误,请填写正确的手机号码!");
+        return;
+    }
+    EnterpriseCenter.enterpriseBtnCountDown();
+    var ajax = new $ax(Feng.ctxPath + "/api/common/verificationCode?phone=" + agentPhone + "&type=1", function (data) {
+        Feng.info(data.msg);
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set(null);
+    ajax.start();
+}
+
+var enterpriseCountDown = 0;
+EnterpriseCenter.enterpriseBtnCountDown = function () {
+    if (enterpriseCountDown == 0) {
+        enterpriseCountDown = 60;
+    } else if (enterpriseCountDown == 1) {
+        $("#enterprise_sms_btn").removeAttr("disabled");
+        $("#enterprise_sms_btn").html("获取验证码");
+        enterpriseCountDown = 0;
+        return;
+    }
+    $("#enterprise_sms_btn").attr("disabled", true);
+    $("#enterprise_sms_btn").html(enterpriseCountDown + "秒");
+    enterpriseCountDown--;
+    setTimeout("EnterpriseCenter.enterpriseBtnCountDown()", 1000);
+}
+
+/**
+ * 绑定聚才网账号
+ */
+EnterpriseCenter.bindJcAccount = function () {
+    var username = $("#username").val();
+    var password = $("#password").val();
+    var verificationCode = $("#verificationCode").val();
+    if (username == null || username == '') {
+        Feng.info("聚才网账号不能为空");
+        return;
+    }
+    if (password == null || password == '') {
+        Feng.info("聚才网账号密码不能为空");
+        return;
+    }
+    if (verificationCode == null || verificationCode == '') {
+        Feng.info("验证码不能为空");
+        return;
+    }
+    var ajax = new $ax(Feng.ctxPath + "/api/jucaiInterface/bindAccount", function (data) {
+        Feng.info(data.msg);
+    }, function (data) {
+        Feng.error("操作失败!" + data.responseJSON.message + "!");
+    });
+    ajax.setData({"userType": 1, "username": username, "password": password, "verificationCode": verificationCode})
+    ajax.start();
+}
+
+$(function () {
+    var defaultColunms = EnterpriseCenter.initColumn();
+    var table = new BSTable(EnterpriseCenter.id, "/enterprise/api/findEnterpriseChangeByPage", defaultColunms);
+    table.setPaginationType("server");
+    EnterpriseCenter.table = table.init();
+    var type = $("#type").val();
+    if (type == 1) {
+        $("#talentType,#industryFieldNewName,#industryFieldOldName").parent().parent().attr("style", "display:block");
+    }
+
+});

+ 569 - 0
public/static/modular/gate/enterprise/school/enterprise_change_edit.js

@@ -0,0 +1,569 @@
+var locked = false;
+var EpChangeEdit = {
+    epChangeEditData: {},
+    validateFields: {
+        newName: {validators: {notEmpty: {message: '学校名称不能为空'}}}, //, regexp: {regexp: /^([\u4E00-\u9FA5]|\(|\)){1,100}$/, message: "单位名称只允许中文"}
+        newIdCard: {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}},
+        newLegal: {validators: {notEmpty: {message: '法人代表不能为空'}}}, //, regexp: {regexp: /^[\u4e00-\u9fa5]{1,50}$/, message: "法人代表只允许中文"}
+        newProvince: {validators: {notEmpty: {message: '请选择学校所在省份'}}},
+        newCity: {validators: {notEmpty: {message: '请选择学校所在市'}}},
+        newCounty: {
+            validators: {
+                callback: {
+                    message: "请选择学校所在县/区",
+                    callback: function (value, validator) {
+                        if ($("#newProvince").val() > 0 && $("#newCity").val() > 0 && $("#newCounty option").length > 1 && $("#newCounty option:selected").length == 0) {
+                            //当省市都有值时,如果县有列表,必选
+                            return false;
+                        }
+                        return true;
+                    }
+                }
+            }
+        },
+        newAddress: {validators: {notEmpty: {message: '医院地址不能为空'}}},
+        newAgentName: {validators: {notEmpty: {message: '人才联络员不能为空'}}},
+        newEphone: {
+            validators: {
+                notEmpty: {
+                    message: '学校电话不能为空'
+                },
+                regexp: {
+                    regexp: /(^(\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})))$/,
+                    message: "学校电话格式不正确"
+                }
+            }
+        },
+        newAgentPhone: {
+            validators: {
+                notEmpty: {
+                    message: '人才联络员电话不能为空'
+                },
+                regexp: {
+                    regexp: /(^(\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})))$/,
+                    message: "人才联络员电话格式不正确"
+                }
+            }
+        },
+        newAgentEmail: {
+            validators: {
+                notEmpty: {
+                    message: '电子邮箱不能为空'
+                },
+                emailAddress: {
+                    message: "电子邮箱格式不正确"
+                }
+            }
+        }
+    }
+};
+
+/**
+ * 清除数据
+ */
+EpChangeEdit.clearData = function () {
+    this.epChangeEditData = {};
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+EpChangeEdit.set = function (key, val) {
+    this.epChangeEditData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
+    return this;
+}
+
+/**
+ * 设置对话框中的数据
+ *
+ * @param key 数据的名称
+ * @param val 数据的具体值
+ */
+EpChangeEdit.get = function (key) {
+    return $("#" + key).val();
+}
+
+/**
+ * 关闭此对话框
+ */
+EpChangeEdit.close = function () {
+    parent.layer.close(window.parent.EnterpriseCenter.layerIndex);
+}
+
+/**
+ * 收集数据
+ */
+EpChangeEdit.collectData = function () {
+    this
+            .set('id')
+            .set('type')
+            .set('newName')
+            .set('newIdCard')
+            .set('newLegal')
+            .set('newProvince')
+            .set('newCity')
+            .set('newCounty')
+            .set('newAddress')
+            .set('newEphone')
+            .set('newAgentName')
+            .set('newAgentPhone')
+            .set('newAgentEmail')
+            .set('enterprise_id');
+}
+
+/**
+ * 验证数据
+ */
+EpChangeEdit.validate = function () {
+    $('#ecr_form').data("bootstrapValidator").resetForm();
+    $('#ecr_form').bootstrapValidator('validate');
+    return $("#ecr_form").data('bootstrapValidator').isValid();
+}
+
+
+EpChangeEdit.initFileTable = function () {
+    $("#fileTable").bootstrapTable({
+        url: Feng.ctxPath + "/common/api/listCurrencyFileType",
+        method: 'POST',
+        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+        search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false, // 是否显示刷新按钮
+        clickToSelect: true, // 是否启用点击选中行
+        singleSelect: true, // 设置True 将禁止多选
+        striped: true, // 是否显示行间隔色
+        escape: true,
+        pagination: false, // 设置为 true 会在表格底部显示分页条
+        paginationHAlign: "left",
+        paginationDetailHAlign: "right",
+        sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        showColumns: false,
+        detailView: true, //是否显示父子表
+        pageList: [10, 30, 50],
+        queryParams: function (params) {
+            return $.extend({"type": "enterpriseChange"}, params)
+        },
+        rowStyle: function (row, index) {
+            return {classes: "info"};
+        },
+        columns: EpChangeEdit.initFileTypeColumn(),
+        onPostBody: function () {
+            $("td.uitd_showTip").bind("mouseover", function () {
+                var htm = $(this).html();
+                $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+            });
+        },
+        onLoadSuccess: function (data) {
+            $("#fileTable").bootstrapTable('expandAllRows');
+        },
+        onExpandRow: function (index, row, $detail) {
+            var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
+                if (data == null || data.length == 0) {
+                    return;
+                }
+                var checkState = $("#checkState").length > 0 ? $("#checkState").val() : 1;
+                var files = "";
+                if (checkState != 1) {
+                    files = $("#files").val().split(",");
+                }
+                var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
+                for (var key in data) {
+                    var sn = data[key].url.lastIndexOf(".");
+                    var suffix = data[key].ext;//data[key].url.substring(sn+1,data[key].url.length);
+                    var imgStr = "";
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS' || suffix == 'docx' || suffix == 'doc' || suffix == 'DOCX' || suffix == 'DOC') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
+                    }
+                    var btn = "<button type=\'button\' onclick=\"EpChangeEdit.checkFile('" + row.id + "','" + data[key].id + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\"><i class=\"fa fa-paste\"></i>修改</button>" +
+                            "<button type='button' onclick=\"EpChangeEdit.deleteFile('" + data[key].id + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i>删除</button>";
+                    html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
+                            '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
+                            '<li style="width: 10%;">' + imgStr + '</li>\n' +
+                            '<li style="width: 10%;padding-top: 2px;">' + (checkState == 1 ? btn : (files.indexOf(data[key].typeId.toString()) > -1 ? btn : "")) + '</li>';
+                }
+                html = html + '</ul>';
+                $detail.html(html);
+                $(".imgs").viewer({
+                    // toolbar:false,
+                    fullscreen: false
+                });
+            }, function (data) {
+                Feng.error("查询失败!" + data.responseJSON.message + "!");
+            });
+            var queryData = {};
+            queryData["mainId"] = $("#id").val();
+            queryData["typeId"] = row.id;
+            ajax.set(queryData);
+            ajax.start();
+        }
+    });
+}
+
+
+EpChangeEdit.initFileTypeColumn = function () {
+    return [
+        {field: 'selectItem', checkbox: false, visible: false},
+        {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                if (row.must == 1) {
+                    return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                }
+                if (row.must == 2) {
+                    return '<i class="fa fa-paste"></i>' + value;
+                }
+            }
+        },
+        {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "50%", 'class': 'uitd_showTip',
+            formatter: function (value, row, index) {
+                return '<span style="color: red">' + value + '</span>';
+            }
+        },
+        {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                if (value == null || value == '' || value == 'null') {
+                    return '无';
+                }
+                return "<button type='button' onclick=\"Feng.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                        "<i class=\"fa fa-download\"></i>下载" +
+                        "</button>";
+            }
+        },
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
+            formatter: function (value, row, index) {
+                var checkState = $("#checkState").length > 0 ? $("#checkState").val() : 1;
+                if (checkState == 1) {
+                    return "<button type='button' onclick=\"EpChangeEdit.checkFile('" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                            "<i class=\"fa fa-upload\"></i>上传" +
+                            "</button>";
+                } else {
+                    var files = $("#files").val().split(",");
+                    if (files.indexOf(value.toString()) != -1) {
+                        return "<button type='button' onclick=\"EpChangeEdit.checkFile('" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                                "<i class=\"fa fa-upload\"></i>上传" +
+                                "</button>";
+                    } else {
+                        return "";
+                    }
+                }
+            }
+        }
+    ]
+}
+
+//选择附件并显示附件名
+EpChangeEdit.checkFile = function (fileTypeId, fileId) {
+    var checkState = $("#checkState").val();
+    if (checkState == 2) {
+        Feng.error("正在审核中,无法修改");
+        return;
+    }
+    if (checkState == 4) {
+        Feng.error("审核通过,无法修改");
+        return;
+    }
+    $("#upload_file").unbind("change");
+    $("#upload_file").change(function () {
+        if (!Feng.chkFileInvalid(this.files[0], 5, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片"))
+            return;
+        EpChangeEdit.upload(fileTypeId, fileId);
+    });
+    $('#upload_file').val("");
+    $('#upload_file').click()
+}
+//上传附件
+EpChangeEdit.upload = function (fileTypeId, fileId) {
+    if (fileId != null && fileId != 'null') {
+        $("#fileId").val(fileId)
+    } else {
+        $("#fileId").val("");
+    }
+
+    $("#mainId").val($("#id").val());
+    $("#typeId").val(fileTypeId);
+    var index = layer.load(0, {shade: false, time: 0});
+    $("#index").val(index);
+    $("#uploadForm").submit();
+}
+//删除附件
+EpChangeEdit.deleteFile = function (id) {
+    var checkState = $("#checkState").val();
+    if (checkState == 2) {
+        Feng.error("正在审核中,无法修改");
+        return;
+    }
+    if (checkState == 4) {
+        Feng.error("审核通过,无法删除");
+        return;
+    }
+    var operation = function () {
+        var ajax = new $ax("/common/api/deleteTalentCommonFile", function (data) {
+            if (data.code == 200) {
+                Feng.success(data.msg);
+                $("#fileTable").bootstrapTable("refresh", {});
+            } else {
+                Feng.error(data.msg);
+            }
+        }, function (data) {
+            Feng.error("删除失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("id", id);
+        ajax.start();
+    }
+    Feng.confirm("删除后无法恢复,确认删除吗?", operation);
+}
+
+
+EpChangeEdit.addSubmit = function () {
+    this.clearData();
+    this.collectData();
+    if (!this.validate()) {
+        return;
+    }
+    var checkState = $("#checkState").val();
+    if (checkState == 2 || checkState == 5 || checkState == 7) {
+        Feng.info("正在审核中,无法修改")
+        return;
+    }
+    if (checkState == 4) {
+        Feng.info("已审核通过,无法修改")
+        return;
+    }
+    // $(".layui-layer-btn0",parent.document).css("pointer-events","none");
+    if (locked) {
+        Feng.info("保存进行中,请耐心等候")
+        return;
+    }
+    locked = true;
+    layer.load(0, {shade: false, time: 0});
+    /*var ajax = new $ax(Feng.ctxPath + "/enterprise/api/upsert", function (data) {
+     if (data.code == "200") {
+     Feng.success(data.msg);
+     $("#fileLi").removeAttr("style");
+     $("#id").val(data.obj.id);
+     $("#checkState").val(data.obj.checkState);
+     window.parent.EnterpriseCenter.table.refresh();
+     } else {
+     Feng.info(data.msg);
+     }
+     // $(".layui-layer-btn0",parent.document).css("pointer-events","block");
+     locked = false;
+     }, function (data) {
+     Feng.error("添加失败!" + data.responseJSON.msg + "!");
+     locked = false;
+     });
+     ajax.set(this.epChangeEditData);
+     ajax.start();*/
+
+    $("#ecr_form :input").removeAttr("disabled");
+    $("#ecr_form").attr("action", "/enterprise/api/upsert");
+    $("#ecr_form")[0].submit();
+};
+
+
+/**
+ * 提交审核
+ */
+EpChangeEdit.submitToCheck = function () {
+    if (locked) {
+        Feng.info("保存进行中,请耐心等候")
+        return;
+    }
+    var id = $("#id").val();
+    if (id == null || id == "") {
+        Feng.info("请先填写基础信息并上传附件");
+        return;
+    }
+    var checkState = $("#checkState").val();
+    if (checkState == 2 || checkState == 5) {
+        Feng.error("正在审核中,无法修改");
+        return;
+    }
+    if (checkState == 4) {
+        Feng.error("审核通过,无法修改");
+        return;
+    }
+    $(".layui-layer-btn1", parent.document).css("pointer-events", "none");
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/api/submitToCheck", function (data) {
+            if (data.code == 200) {
+                Feng.success(data.msg);
+                window.parent.EnterpriseCenter.table.refresh();
+                EpChangeEdit.close();
+            } else {
+                Feng.error(data.msg);
+            }
+            $(".layui-layer-btn1", parent.document).css("pointer-events", "block");
+        }, function (data) {
+            Feng.error("提交审核失败!" + data.responseJSON.message + "!");
+            $(".layui-layer-btn1", parent.document).css("pointer-events", "block");
+        });
+        ajax.set("id", id);
+        ajax.start();
+    }
+    Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
+}
+
+EpChangeEdit.setFieldDisabled = function () {
+    var checkState = $("#checkState").length > 0 ? $("#checkState").val() : 1;
+    if (checkState != 1) {
+        $("#ecr_form :input").prop("disabled", true);
+        $("#ecr_form :button").css("display", "none");
+        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 "newImgurl":
+                    $("#imgurl").removeAttr("disabled");
+                    $("#imgurl").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newBankImg":
+                    $("#bankImg").removeAttr("disabled");
+                    $("#bankImg").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newDomainImg":
+                    $("#domainImg").removeAttr("disabled");
+                    $("#domainImg").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newTypeImg":
+                    $("#typeImg").removeAttr("disabled");
+                    $("#typeImg").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+                case "newBeian":
+                    $("#beian").removeAttr("disabled");
+                    $("#beian").parent().find("button").removeAttr("disabled").css("display", "block");
+                    break;
+            }
+        }
+    }
+}
+
+EpChangeEdit.callBack = function (data) {
+    layer.closeAll();
+    EpChangeEdit.setFieldDisabled();
+    locked = false;
+    Feng.info(data.msg);
+    if (data.code == 200) {
+        $("#id").val(data.id);
+        $("input[type=file]").val("");
+        window.parent.EnterpriseCenter.table.refresh();
+    }
+};
+
+
+EpChangeEdit.downloadFile = function (id) {
+    window.location.href = Feng.ctxPath + '/enterprisechangeRecord/downloadFile?id=' + id;
+};
+
+$("#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");
+            Feng.info("上传成功!<span style='color:red;'>*点击图标可预览</span>");
+        }
+    };
+});
+$("img").click(function () {
+    var fileInput = $(this).next("input");
+    var file = fileInput[0].files[0];
+    if (typeof file != "undefined" && file.type == "application/pdf") {
+        var url = URL.createObjectURL(file);
+        var filename = file.name;
+        //window.open(url)
+        Feng.pdfReader(url, filename);
+    } else {
+        var url = $(this).data("url");
+        if (typeof url != "undefined") {
+            Feng.showPdf(url);
+        }
+    }
+})
+
+EpChangeEdit.afterSelectProvince = function () {
+    var province = $("#newProvince").val();
+    $("#newCity").empty();
+    $("#newCounty").empty();
+    if (province == null || province == '') {
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "newCity",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/findCityByProvinceSelect/code/" + province
+    });
+}
+/**
+ * 加载县
+ */
+EpChangeEdit.afterSelectCity = function () {
+    var city = $("#newCity").val();
+    $("#newCounty").empty();
+    if (city == null || city == '') {
+        return;
+    }
+    Feng.addAjaxSelect({
+        "id": "newCounty",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/findCountyByCitySelect/code/" + city
+    });
+}
+
+$(function () {
+    EpChangeEdit.setFieldDisabled();
+    var type = $("#type").val();
+    var special = parseInt($("#special").val());
+    $('#ecr_form').bootstrapValidator({
+        feedbackIcons: {
+            valid: 'glyphicon glyphicon-ok',
+            invalid: 'glyphicon glyphicon-remove',
+            validating: 'glyphicon glyphicon-refresh'
+        },
+        group: '.rowGroup',
+        fields: EpChangeEdit.validateFields,
+        live: 'enabled',
+        message: '该字段不能为空'
+    });
+
+    //加载省份
+    Feng.addAjaxSelect({
+        "id": "newProvince",
+        "displayCode": "code",
+        "displayName": "name",
+        "type": "GET",
+        "url": Feng.ctxPath + "/common/tool/getProvinceSelect"
+    });
+
+    $("select").each(function () {
+        $(this).val($(this).attr("value"));
+        $(this).trigger("change");
+    })
+    var id = $("#id").val();
+    if (id != null && id != '') {
+        $("#fileLi").removeAttr("style");
+    } else {
+        $("#fileLi").attr("style", "pointer-events: none");
+    }
+});

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

@@ -11,8 +11,10 @@ Register.enterpriseUserRegister = function () {
     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 province = $("#province").val();
     var city = $("#city").val();
@@ -38,6 +40,14 @@ Register.enterpriseUserRegister = function () {
         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;