Ver Fonte

医院注册增加银行三个字段一个附件

sugangqiang há 1 ano atrás
pai
commit
c56f600b7a

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

@@ -766,9 +766,10 @@ class Enterprise extends AdminController {
                     "agentName" => "人才联络员姓名", "agentPhone" => "人才联络员电话", "agentEmail" => "人才联络员邮箱"];
                 $files = ["imgurl" => "企业营业执照", "bankImg" => "开户许可证/基本存款账户信息", "beian" => "人才联络员信息备案表"];
             } else if ($type == CommonConst::ENTERPRISE_WJ) {
-                $fields = ["name" => "医院名称", "idCard" => "登记号", "legal" => "法人代表", "medicalCommunityId" => "医共体", "isGeneral" => "是否总院", "ephone" => "医院电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "企业地址",
+                $fields = ["name" => "医院名称", "idCard" => "登记号", "legal" => "法人代表", "medicalCommunityId" => "医共体", "isGeneral" => "是否总院", "ephone" => "医院电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "医院地址",
+                    "bankCard" => "银行账号", "bank" => "开户银行", "bankNetwork" => "开户银行网点",
                     "agentName" => "人才联络员姓名", "agentPhone" => "人才联络员电话", "agentEmail" => "人才联络员邮箱"];
-                $files = ["imgurl" => "医疗机构执业许可证", "beian" => "人才联络员信息备案表"];
+                $files = ["imgurl" => "医疗机构执业许可证", "bankImg" => "开户许可证/基本存款账户信息", "beian" => "人才联络员信息备案表"];
             } else if ($type == CommonConst::ENTERPRISE_GJ) {
                 $fields = ["name" => "学校名称", "idCard" => "统一社会信用代码", "legal" => "法人代表", "ephone" => "学校电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "学校地址",
                     "agentName" => "人才联络员姓名", "agentPhone" => "人才联络员电话", "agentEmail" => "人才联络员邮箱"];

+ 3 - 2
app/admin/controller/EnterpriseChangeRecord.php

@@ -791,9 +791,10 @@ class EnterpriseChangeRecord extends AdminController {
                     "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
                 $files = ["newImgurl" => "企业营业执照", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员信息备案表"];
             } else if ($type == CommonConst::ENTERPRISE_WJ) {
-                $fields = ["Name" => "医院名称", "IdCard" => "登记号", "Legal" => "法人代表", "MedicalCommunityId" => "医共体", "IsGeneral" => "是否总院", "Ephone" => "医院电话", "Province" => "地址省", "City" => "地址市", "County" => "地址县\区", "Address" => "企业地址",
+                $fields = ["Name" => "医院名称", "IdCard" => "登记号", "Legal" => "法人代表", "MedicalCommunityId" => "医共体", "IsGeneral" => "是否总院", "Ephone" => "医院电话", "Province" => "地址省", "City" => "地址市", "County" => "地址县\区", "Address" => "医院地址",
+                    "BankCard" => "银行账号", "Bank" => "开户银行", "BankNetwork" => "开户银行网点",
                     "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];
-                $files = ["newImgurl" => "医疗机构执业许可证", "newBeian" => "人才联络员信息备案表"];
+                $files = ["newImgurl" => "医疗机构执业许可证", "newBankImg" => "开户许可证/基本存款账户信息", "newBeian" => "人才联络员信息备案表"];
             } else if ($type == CommonConst::ENTERPRISE_GJ) {
                 $fields = ["Name" => "学校名称", "IdCard" => "统一社会信用代码", "Legal" => "法人代表", "Ephone" => "学校电话", "Province" => "地址省", "City" => "地址市", "County" => "地址县\区", "Address" => "学校地址",
                     "AgentName" => "人才联络员姓名", "AgentPhone" => "人才联络员电话", "AgentEmail" => "人才联络员邮箱"];

+ 38 - 1
app/admin/view/enterprise/hospital/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");
@@ -123,6 +123,43 @@
                                 {$ep.fullLocationName} {$ep.address}
                             </td>
                         </tr>
+                        <tr>
+                            <td class="key">
+                                银行账号
+                            </td>
+                            <td class="value1 word-wrap">
+                                {$ep.bankCard}
+                            </td>
+                            <td class="key">
+                                开户银行
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">                                
+                                {$ep.bank}
+                            </td>
+                            <td rowspan="2" style="border: 1px solid #c0a16b;width: 300px">
+                                <label>
+                                    开户许可证/基本存款账户信息
+                                </label>
+                                <div>
+                                    {if condition="$ep['bankImg']"}
+                                    {if condition="$ep['bankImg_is_img']"}
+                                    <img onclick="Feng.showImg(this)" id="yyzz" alt="开户许可证/基本存款账户信息"
+                                         src="{$ep.bankImg|getStoragePath}" style="max-width:60px;">
+                                    {else}
+                                    <button type="button" onclick="Feng.showPdf('{$ep.bankImg|getStoragePath}', 'bankImg')" class="btn btn-xs btn-danger"><i class="fa fa-file-pdf-o" aria-hidden="true"></i></button>
+                                    {/if}
+                                    {/if}
+                                </div>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                开户银行网点
+                            </td>
+                            <td colspan="3" class="value1 word-wrap">
+                                {$ep.bankNetwork}
+                            </td>
+                        </tr>
                     </table>
                 </div>
             </div>

+ 53 - 0
app/admin/view/enterprise_change_record/hospital/goto_enterprise_change_detail_page.html

@@ -142,6 +142,59 @@
                             </td>
                             <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldProvinceName}{$ecr.oldCityName}{$ecr.oldCountyName} {$ecr.oldAddress}' data-new='{$ecr.newProvinceName}{$ecr.newCityName}{$ecr.newCountyName} {$ecr.newAddress}'></td>
                         </tr>
+                        <tr>
+                            <td class="key">
+                                银行账户
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldBankCard}' data-new='{$ecr.newBankCard}'></td>
+                            <td class="key">
+                                开户银行
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldBank}' data-new='{$ecr.newBank}'></td>
+                            <td rowspan="2" style="border: 1px solid #c0a16b;width: 300px">
+                                <label>
+                                    开户许可证/基本存款账户信息
+                                </label>
+                                <ul class="files yyzz">
+                                    {if condition="$ecr['oldBankImg'] eq $ecr['newBankImg']"}
+                                    {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">
+                                        {else/}
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-height:60px">
+                                        {/if}
+                                    </li>
+                                    {/if}
+                                    {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">
+                                开户银行网点
+                            </td>
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldBankNetwork}' data-new='{$ecr.newBankNetwork}'></td>
+                        </tr>
                     </table>                    
                 </div>
             </div>

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

@@ -216,6 +216,11 @@ class Auth extends BaseController {
                             $response_object->msg = '请上传医疗机构执业许可证';
                             return \StrUtil::back($response_object, "Register.epCallBack");
                         }
+                        if (!array_key_exists('bankImg', $files) || $files['bankImg'] == '') {
+                            $response_object->code = 500;
+                            $response_object->msg = '请上传开户许可证/基本存款账户信息';
+                            return \StrUtil::back($response_object, "Register.epCallBack");
+                        }
                         if (!array_key_exists('beian', $files) || $files['beian'] == '') {
                             $response_object->code = 500;
                             $response_object->msg = '请上传人才联络员备案表';
@@ -494,15 +499,19 @@ class Auth extends BaseController {
                     } else if ($data["type"] == CommonConst::ENTERPRISE_WJ) {
                         //卫健医院
                         validate(\app\common\validate\Hospital::class)->batch(true)->scene('change')->check($data);
+                        if (!$data["bankImg"] && !$ep->bankImg) {
+                            $response_object->code = 500;
+                            $response_object->msg = '开户许可证/基本存款账户信息不能为空';
+                            return \StrUtil::back($response_object, "Register.epCallBack");
+                        }
                         $idCardName = "医疗机构执业许可证";
-                        
+
                         if ($data["isGeneral"] == 1 || ($data["isGeneral"] == 0 && Nhc::hasGeneralHospital($data["medicalCommunityId"]))) {
                             $data["step"] = 1; //直接进入卫健复审
                             $data["checkState"] = 6; //初审通过
                         } else {
                             $data["step"] = 0;
                         }
-                        
                     } else if ($data["type"] == CommonConst::ENTERPRISE_GJ) {
                         //高教学校
                         validate(\app\common\validate\School::class)->batch(true)->scene('change')->check($data);

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

@@ -20,6 +20,9 @@ class Hospital extends Validate {
         'province' => 'require',
         'city' => 'require',
         'address' => 'require',
+        'bankCard' => 'require',
+        'bank' => 'require|regex:/^[\x{4e00}-\x{9fa5}\(\)()\da-zA-Z&]{2,50}$/u',
+        'bankNetwork' => 'require|regex:/^[\x{4e00}-\x{9fa5}\(\)()\da-zA-Z&]{2,50}$/u',
         'agentName' => 'require|regex:/^[\x{4e00}-\x{9fa5}]+$/u|max:30',
         'agentPhone' => 'require|mobile',
         'verificationCode' => 'require',
@@ -44,6 +47,11 @@ class Hospital extends Validate {
         'province.require' => '请选择医院所在省份',
         'city.require' => '请选择医院所在市',
         'address.require' => '请输入医院地址',
+        'bankCard.require' => '请输入银行账号',
+        'bank.require' => '请输入开户银行',
+        'bankNetwork.require' => '请输入开户银行网点',
+        'bank.regex' => '开户银行不正确,请检查',
+        'bankNetwork.regex' => '开户银行网点不正确,请检查',
         'agentName.require' => '请填写人才联络员',
         'agentName.max' => '人才联络员最多30个字符',
         'agentName.regex' => '人才联络员姓名只能是中文',
@@ -54,8 +62,8 @@ class Hospital extends Validate {
         'agentEmail.email' => '邮箱格式错误'
     ];
     protected $scene = [
-        'add' => ['username', 'password', 're_password', 'name', 'idCard', 'legal', 'ephone', 'medicalCommunityId', 'isGeneral', 'province', 'city', 'address', 'agentName', 'agentPhone', 'verificationCode', 'agentEmail'],
-        'change' => ['name', 'idCard', 'legal', 'ephone', 'medicalCommunityId', 'isGeneral', 'province', 'city', 'address', 'agentName', 'agentPhone', 'agentEmail'],
+        'add' => ['username', 'password', 're_password', 'name', 'idCard', 'legal', 'ephone', 'medicalCommunityId', 'isGeneral', 'province', 'city', 'address', 'bankCard', 'bank', 'bankNetwork', 'agentName', 'agentPhone', 'verificationCode', 'agentEmail'],
+        'change' => ['name', 'idCard', 'legal', 'ephone', 'medicalCommunityId', 'isGeneral', 'province', 'city', 'address', 'bankCard', 'bank', 'bankNetwork', 'agentName', 'agentPhone', 'agentEmail'],
         'changePwd' => ['password']
     ];
 

+ 36 - 3
app/common/view/auth/hospital/enterprise_edit.html

@@ -45,7 +45,7 @@
                                                 </div>
 
                                             </td>
-                                            <td rowspan="3" >
+                                            <td rowspan="4" >
                                                 <label class="control-label spacing"><span class="text-danger">*</span>医疗机构执业许可证</label>
                                                 {if condition="$ep['imgurl']"}
                                                 {if condition="$ep['imgurl_is_img'] eq 1"}
@@ -107,7 +107,7 @@
                                                 </div>
                                             </td>
                                         </tr>
-                                        
+
                                         <tr>
                                             <td colspan="3">
                                                 <div class="rowGroup">
@@ -135,9 +135,42 @@
                                                 </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="bankCard" name="bankCard" value="{$ep.bankCard}" onkeyup="value = value.replace(/\s+/g, '')"/>
+                                                </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="bank" name="bank" placeholder="XX银行" value="{$ep.bank}"/>
+                                                </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="bankNetwork" name="bankNetwork" value="{$ep.bankNetwork}" placeholder="XX银行XX支行/分行/分理处" />
+                                                </div>
+                                            </td>
+                                            <td>
+                                                <label class="control-label spacing"><span class="text-danger">*</span>开户许可证/基本存款账户信息</label>
+                                                {if condition="$ep['bankImg']"}
+                                                {if condition="$ep['bankImg_is_img'] eq 1"}
+                                                <img src="{$ep.bankImg|getStoragePath}" style="height: 60px;" onclick="$('#bankImg').click()">
+                                                {else/}
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#bankImg').click()">
+                                                {/if}
+                                                {else/}
+                                                <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#bankImg').click()" >
+                                                {/if}
+                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="bankImg" name="bankImg" />
+                                            </td>
+                                        </tr>
                                     </table>
                                 </div>
-                                
+
                                 <div class="panel-heading">人才联络员信息</div>
                                 <div class="panel-body">
                                     <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">

+ 25 - 0
app/common/view/auth/register.html

@@ -561,6 +561,31 @@
                                                                 </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="wj_bankCard" name="bankCard" onkeyup="value = value.replace(/\s+/g, '')"/>
+                                                                </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="wj_bank" name="bank" placeholder="XX银行" />
+                                                                </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="wj_bankNetwork" name="bankNetwork" placeholder="XX银行XX支行/分行/分理处" />
+                                                                </div>
+                                                            </td>
+                                                            <td>
+                                                                <label class="control-label spacing"><span class="text-danger">*</span>开户许可证/基本存款账户信息</label>
+                                                                <img id="photoImg1" src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#wj_bankImg').click()" >
+                                                                <input style="display: none" autocomplete="off" type="file" class="form-control" id="wj_bankImg" name="bankImg" />
+                                                            </td>
+                                                        </tr>
                                                     </table>
                                                 </div>
                                             </div>

+ 4 - 4
app/enterprise/controller/Api.php

@@ -345,10 +345,10 @@ class Api extends EnterpriseController {
                     throw new ValidateException("请上传营业执照");
                 }
                 if ($ep->special == 0) {
-                    if (!$record_data["newBankImg"] && $ep->type == 1) {
+                    if (!$record_data["newBankImg"] && ($ep->type == CommonConst::ENTERPRISE_NORMAL || $ep->type == CommonConst::ENTERPRISE_WJ)) {
                         throw new ValidateException("请上传开户许可证/基本存款账户信息");
                     }
-                    if ($ep->type == 1 && $data['agencyType'] == 1 && !$record_data["newDomainImg"]) {
+                    if ($ep->type == CommonConst::ENTERPRISE_NORMAL && $data['agencyType'] == 1 && !$record_data["newDomainImg"]) {
                         throw new ValidateException("请上传行业领域佐证材料");
                     }
                     if (in_array($record_data["newEnterpriseType"], ["guishang", "gaoxinjishu", "zhuanjingtexin"]) && !$record_data["newTypeImg"]) {
@@ -570,10 +570,10 @@ class Api extends EnterpriseController {
                     throw new ValidateException("请上传营业执照");
                 }
                 if ($ep->special == 0) {
-                    if (!$record["newBankImg"] && $ep->type == 1) {
+                    if (!$record["newBankImg"] && ($ep->type == CommonConst::ENTERPRISE_NORMAL || $ep->type == CommonConst::ENTERPRISE_WJ)) {
                         throw new ValidateException("请上传开户许可证/基本存款账户信息");
                     }
-                    if ($ep->type == 1 && $data["agencyType"] == 1 && !$record["newDomainImg"]) {
+                    if ($ep->type == CommonConst::ENTERPRISE_NORMAL && $data["agencyType"] == 1 && !$record["newDomainImg"]) {
                         throw new ValidateException("请上传行业领域佐证材料");
                     }
                     if ($data["agencyType"] != 1) {

+ 3 - 2
app/enterprise/controller/Hospital.php

@@ -280,9 +280,10 @@ class Hospital extends EnterpriseController {
     }
 
     private function getFieldAndFilesBySpecialAndType($special, $type) {
-        $fields = ["name" => "医院名称", "idCard" => "登记号", "legal" => "法人代表", "medicalCommunityId" => "医共体", "isGeneral" => "是否总院", "ephone" => "医院电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "企业地址",
+        $fields = ["name" => "医院名称", "idCard" => "登记号", "legal" => "法人代表", "medicalCommunityId" => "医共体", "isGeneral" => "是否总院", "ephone" => "医院电话", "province" => "地址省", "city" => "地址市", "county" => "地址县\区", "address" => "医院地址",
+            "bankCard" => "银行账号", "bank" => "开户银行", "bankNetwork" => "开户银行网点",
             "agentName" => "人才联络员姓名", "agentPhone" => "人才联络员电话", "agentEmail" => "人才联络员邮箱"];
-        $files = ["imgurl" => "医疗机构执业许可证", "beian" => "人才联络员信息备案表"];
+        $files = ["imgurl" => "医疗机构执业许可证", "bankImg" => "开户许可证/基本存款账户信息", "beian" => "人才联络员信息备案表"];
         return ["fields" => $fields, "files" => $files];
     }
 

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

@@ -129,6 +129,40 @@
                                     </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="newBankCard" name="newBankCard" value="{$ecr.newBankCard}"/>
+                                    </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="newBank" name="newBank"  value="{$ecr.newBank}"/>
+                                    </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="newBankNetwork" name="newBankNetwork" value="{$ecr.newBankNetwork}"/>
+                                    </div>
+                                </td>
+                                <td rowspan="1" 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>
                         </table>
                     </div>
                 </div>

+ 55 - 4
app/enterprise/view/api/hospital/to_detail.html

@@ -75,7 +75,7 @@
                                 登记号
                             </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">
+                            <td rowspan="4" style="border: 1px solid #c0a16b;width: 300px">
                                 <label>
                                     医疗机构执业许可证
                                 </label>
@@ -121,7 +121,7 @@
                             <td class="key">
                                 医共体
                             </td>
-                            <td class="value1 word-wrap" data-old='{$ecr.oldMedicalCommunityName}' data-new='{$ecr.newMedicalCommunityName}'>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldMedicalCommunityName}' data-new='{$ecr.newMedicalCommunityName}'>
                                 
                             </td>
                         </tr>
@@ -133,13 +133,64 @@
                             <td class="key">
                                 医院电话
                             </td>
-                            <td class="value1 word-wrap" data-old='{$ecr.oldEphone}' data-new='{$ecr.newEphone}'></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" data-old='{$ecr.oldProvinceName}{$ecr.oldCityName}{$ecr.oldCountyName} {$ecr.oldAddress}' data-new='{$ecr.newProvinceName}{$ecr.newCityName}{$ecr.newCountyName} {$ecr.newAddress}'></td>
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldProvinceName}{$ecr.oldCityName}{$ecr.oldCountyName} {$ecr.oldAddress}' data-new='{$ecr.newProvinceName}{$ecr.newCityName}{$ecr.newCountyName} {$ecr.newAddress}'></td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                银行账号
+                            </td>
+                            <td class="value1 word-wrap" data-old='{$ecr.oldBankCard}' data-new='{$ecr.newBankCard}'></td>
+                            <td class="key">
+                                开户银行
+                            </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">
+                                开户银行网点
+                            </td>
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b" data-old='{$ecr.oldBankNetwork}' data-new='{$ecr.newBankNetwork}'></td>                            
                         </tr>
                     </table>                    
                 </div>

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

@@ -132,6 +132,40 @@
                                     </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="newBankCard" name="newBankCard" value="{$ecr.newBankCard}"/>
+                                    </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="newBank" name="newBank"  value="{$ecr.newBank}"/>
+                                    </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="newBankNetwork" name="newBankNetwork" 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>
                         </table>
                     </div>
                 </div>

+ 39 - 2
app/enterprise/view/hospital/detail.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");
@@ -71,7 +71,7 @@
                                 医院名称
                             </td>
                             <td class="value1 word-wrap">
-                                {$ep.name}{if condition="$ep['isGeneral'] eq 1"}总院{/if}
+                                {$ep.name}{if condition="$ep['isGeneral'] eq 1"}总院{/if}
                             </td>
                             <td class="key">
                                 登记号
@@ -123,6 +123,43 @@
                                 {$ep.fullLocationName} {$ep.address}
                             </td>
                         </tr>
+                        <tr>
+                            <td class="key">
+                                银行账号
+                            </td>
+                            <td class="value1 word-wrap">
+                                {$ep.bankCard}
+                            </td>
+                            <td class="key">
+                                开户银行
+                            </td>
+                            <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">
+                                {$ep.bank}
+                            </td>
+                            <td style="border: 1px solid #c0a16b" rowspan="2">
+                                <label>
+                                    开户许可证/基本存款账户信息
+                                </label>
+                                <div>
+                                    {if condition="$ep['bankImg']"}
+                                    {if condition="$ep['bankImg_is_img']"}
+                                    <img onclick="Feng.showImg(this)" id="bankImg" alt="开户许可证/基本存款账户信息"
+                                         src="{$ep.bankImg|getStoragePath}" style="max-width:60px;">
+                                    {else}
+                                    <button type="button" onclick="Feng.showPdf('{$ep.bankImg|getStoragePath}', 'bankImg')" class="btn btn-xs btn-danger"><i class="fa fa-file-pdf-o" aria-hidden="true"></i></button>
+                                    {/if}
+                                    {/if}
+                                </div>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td class="key">
+                                开户银行网点
+                            </td>
+                            <td colspan="3" class="value1 word-wrap" style="border-right: 1px solid #c0a16b">
+                                {$ep.bankNetwork}
+                            </td>
+                        </tr>
                     </table>
                 </div>
             </div>

+ 33 - 1
app/enterprise/view/index/hospital/center_page.html

@@ -108,6 +108,38 @@
                                                         {$ep.fullLocationName} {$ep.address}
                                                     </td>
                                                 </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        银行账号
+                                                    </td>
+                                                    <td>
+                                                        {$ep.bankCard}
+                                                    </td>
+                                                    <td class="key">
+                                                        开户银行
+                                                    </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="yyzz" src="{$ep.bankImg|getStoragePath}" style="max-height:60px">
+                                                        {else/}
+                                                        <img onclick="Feng.showPdf('{$ep.bankImg|getStoragePath}', 'bankImg')" src="/static/img/Pdf.png" style="max-height:60px">
+                                                        {/if}
+                                                        {/if}
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <td class="key">
+                                                        开户银行网点
+                                                    </td>
+                                                    <td colspan="3" style="border-right: 1px solid #c0a16b">
+                                                        {$ep.bankNetwork} 
+                                                    </td>
+                                                </tr>
                                             </table>
                                         </div>
                                     </div>
@@ -148,7 +180,7 @@
                                                     <td class="value1">
                                                         {$ep.agentEmail}
                                                     </td>
-                                                    <td colspan="2"></td>
+                                                    <td colspan="2" style="border-right: 1px solid #c0a16b"></td>
                                                 </tr>
 
                                             </table>

+ 22 - 1
public/static/js/register.js

@@ -222,6 +222,16 @@ Register.enterpriseUserRegister = function () {
                 }
             });
             $('#ep_form').bootstrapValidator("addField", "address", {validators: {notEmpty: {message: '请填写医院详细地址'}}});
+            $('#ep_form').bootstrapValidator("addField", "bankCard", {validators: {notEmpty: {message: '银行账号不能为空'}}});
+            $('#ep_form').bootstrapValidator("addField", "bank", {validators: {notEmpty: {message: '开户银行不能为空'}, regexp: {
+                        regexp: /^[\u4e00-\u9fa5]*$/,
+                        message: "开户银行必须为中文"
+                    }}});
+            $('#ep_form').bootstrapValidator("addField", "bankNetwork", {validators: {notEmpty: {message: '开户银行网点不能为空'},
+                    regexp: {
+                        regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*$/,
+                        message: "开户银行网点格式不正确"
+                    }}});
             $('#ep_form').bootstrapValidator("removeField", "street");
             var prefix = "医院";
             break;
@@ -313,6 +323,9 @@ Register.enterpriseUserRegister = function () {
             var city = $("#wj_city").val();
             var county = $("#wj_county").val();
             var address = $("#wj_address").val();
+            var bankCard = $("#wj_bankCard").val();
+            var bank = $("#wj_bank").val();
+            var bankNetwork = $("#wj_bankNetwork").val();
             break;
         case "gaojiao":
             var username = $("#gj_username").val();
@@ -563,6 +576,14 @@ Register.enterpriseUserRegister = function () {
             if (!Feng.chkFileInvalid(document.getElementById("wj_imgurl").files[0], 5, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "医疗机构执业许可证只允许上传PDF或图片")) {
                 return;
             }
+            var xx = document.getElementById("wj_bankImg").value;
+            if (xx == "") {
+                Feng.info("请上传开户银行许可证!");
+                return;
+            }
+            if (!Feng.chkFileInvalid(document.getElementById("wj_bankImg").files[0], 5, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "开户银行许可证只允许上传PDF或图片")) {
+                return;
+            }
             break;
         case "gaojiao":
             var x = document.getElementById("gj_imgurl").value;
@@ -948,7 +969,7 @@ $(function () {
         {"name": "mf_street", "code": "street"},
         {"name": "agencyType", "code": "agency_type"}];
     Feng.findChildDictBatch(JSON.stringify(arr));
-    $("#imgurl,#sy_imgurl,#mf_imgurl,#wj_imgurl,#gj_imgurl,#bankImg,#mf_bankImg,#sy_bankImg,#beian,#domainImg,#typeImg").change(function (e) {
+    $("#imgurl,#sy_imgurl,#mf_imgurl,#wj_imgurl,#wj_bankImg,#gj_imgurl,#bankImg,#mf_bankImg,#sy_bankImg,#beian,#domainImg,#typeImg").change(function (e) {
         var that = this;
         if (!Feng.chkFileInvalid(that.files[0], 5, 10)) {
             return;

+ 25 - 1
public/static/modular/gate/enterprise/hospital/enterprise_change_edit.js

@@ -24,6 +24,27 @@ var EpChangeEdit = {
             }
         },
         newAddress: {validators: {notEmpty: {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: "开户银行网点格式不正确"
+                }}
+        },
         newAgentName: {validators: {notEmpty: {message: '人才联络员不能为空'}}},
         newEphone: {
             validators: {
@@ -111,6 +132,9 @@ EpChangeEdit.collectData = function () {
             .set('newCity')
             .set('newCounty')
             .set('newAddress')
+            .set('newBankCard')
+            .set('newBank')
+            .set('newBankNetwork')
             .set('newEphone')
             .set('newAgentName')
             .set('newAgentPhone')
@@ -550,7 +574,7 @@ $(function () {
         live: 'enabled',
         message: '该字段不能为空'
     });
-    
+
     //加载省份
     Feng.addAjaxSelect({
         "id": "newProvince",

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

@@ -23,6 +23,9 @@ Register.enterpriseUserRegister = function () {
     var city = $("#city").val();
     var county = $("#county").val();
     var address = $("#address").val();
+    var bankCard = $("#bankCard").val();
+    var bank = $("#bank").val();
+    var bankNetwork = $("#bankNetwork").val();
     var agentName = $("#agentName").val();
     var agentPhone = $("#agentPhone").val();
     var agentEmail = $("#agentEmail").val();
@@ -82,6 +85,18 @@ Register.enterpriseUserRegister = function () {
         Feng.info("请填写" + enterpriseTypeName + "地址!");
         return;
     }
+    if (bankCard == null || bankCard == '') {
+        Feng.info("请填写银行账号!");
+        return;
+    }
+    if (bank == null || bank == '') {
+        Feng.info("请填写开户银行!");
+        return;
+    }
+    if (bankNetwork == null || bankNetwork == '') {
+        Feng.info("请填写开户银行网点!");
+        return;
+    }
     if (agentName == null || agentName == '') {
         Feng.info("请填写人才联络员!");
         return;