@using MySystem.Models;
@{MerchantAddInfo editData = ViewBag.data as MerchantAddInfo;}
@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;
    string Id = ViewBag.Id as string;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>商户进件资料(修改)</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <script src="/admin/js/jquery-1.10.1.min.js"></script>
    <script src="/admin/js/LAreaData2.js"></script>
    <style>
        .layui-form-label{
            width:200px !important;
        }
        .layui-form-item .layui-input-inline{
            width:390px !important;
        }
        .layui-input-block{
            margin-left: 230px !important;
        }
    </style>
</head>
<body>

    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
        <input type="hidden" name="Id" value="@Id" />
        
        <div class="layui-card">
          <div class="layui-card-body">
            <div class="layui-tab" lay-filter="mytabbar">
                <ul class="layui-tab-title">
                    <li class="layui-this" lay-id="2">超级管理员信息</li><li lay-id="7">主体资料</li><li lay-id="34">经营资料</li><li lay-id="57">结算规则</li><li lay-id="62">结算银行账户</li>
                </ul>
                <div class="layui-tab-content mt20">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">管理员姓名</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="ContactName" name="ContactName"
                                    value="@editData.ContactName" maxlength="30" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入管理员姓名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">管理员身份证件号码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="ContactIdNumber" name="ContactIdNumber"
                                    value="@editData.ContactIdNumber" maxlength="18" lay-verify="required|identity|"
                                    autocomplete="off" placeholder="请输入管理员身份证件号码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">管理员微信openid</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="OpenId" name="OpenId"
                                    value="@editData.OpenId" maxlength="50" lay-verify="required|" autocomplete="off"
                                    placeholder="请输入管理员微信openid">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">联系手机</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="MobilePhone" name="MobilePhone"
                                    value="@editData.MobilePhone" maxlength="11" lay-verify="required|phone|"
                                    autocomplete="off" placeholder="请输入联系手机">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">联系邮箱</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="ContactEmail" name="ContactEmail"
                                    value="@editData.ContactEmail" maxlength="50" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入联系邮箱">
                            </div>
                        </div>

                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">主体类型</label>
                            <div class="layui-input-inline">
                                <select id="SubjectType" name="SubjectType" lay-search="">
                                    <option value="">请选择</option>
                                    <option value="SUBJECT_TYPE_INDIVIDUAL">个体户</option>
                                    <option value="SUBJECT_TYPE_ENTERPRISE">企业</option>
                                    <option value="SUBJECT_TYPE_INSTITUTIONS">党政、机关及事业单位</option>
                                    <option value="SUBJECT_TYPE_OTHERS">其他组织</option>
                                </select>
                                <script>
                                    $("#SubjectType").val("@editData.SubjectType");
                                </script>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">营业执照照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="LicenseCopy" name="LicenseCopy"
                                        value="@editData.LicenseCopy">
                                    <button class="layui-btn" type="button" id="LicenseCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoLicenseCopy"))</div>
                                </div>
                                <div style="margin-top:10px;" id="LicenseCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.LicenseCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.LicenseCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.LicenseCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">统一社会信用代码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="LicenseNumber" name="LicenseNumber"
                                    value="@editData.LicenseNumber" maxlength="32" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入统一社会信用代码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">个体户经营者/法人姓名</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="LegalPerson" name="LegalPerson"
                                    value="@editData.LegalPerson" maxlength="20" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入个体户经营者/法人姓名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">登记证书照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="CertCopy" name="CertCopy" value="@editData.CertCopy">
                                    <button class="layui-btn" type="button" id="CertCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoCertCopy"))</div>
                                </div>
                                <div style="margin-top:10px;" id="CertCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.CertCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.CertCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.CertCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">登记证书类型</label>
                            <div class="layui-input-inline">
                                <select id="CertType" name="CertType" lay-search="">
                                    <option value="">请选择</option>
                                    <option value="CERTIFICATE_TYPE_2388">事业单位法人证书</option>
                                    <option value="CERTIFICATE_TYPE_2389">统一社会信用代码证书</option>
                                    <option value="CERTIFICATE_TYPE_2390">有偿服务许可证（军队医院适用）</option>
                                    <option value="CERTIFICATE_TYPE_2391">医疗机构执业许可证（军队医院适用）</option>
                                    <option value="CERTIFICATE_TYPE_2392">企业营业执照（挂靠企业的党组织适用）</option>
                                    <option value="CERTIFICATE_TYPE_2393">组织机构代码证（政府机关适用）</option>
                                    <option value="CERTIFICATE_TYPE_2394">社会团体法人登记证书</option>
                                    <option value="CERTIFICATE_TYPE_2395">民办非企业单位登记证书</option>
                                    <option value="CERTIFICATE_TYPE_2396">基金会法人登记证书</option>
                                    <option value="CERTIFICATE_TYPE_2397">慈善组织公开募捐资格证书</option>
                                    <option value="CERTIFICATE_TYPE_2398">农民专业合作社法人营业执照</option>
                                    <option value="CERTIFICATE_TYPE_2399">宗教活动场所登记证</option>
                                    <option value="CERTIFICATE_TYPE_2400">其他证书/批文/证明</option>
                                </select>
                                <script>
                                    $("#CertType").val("@editData.CertType");
                                </script>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">证书号</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="CertNumber" name="CertNumber"
                                    value="@editData.CertNumber" maxlength="32" lay-verify="" autocomplete="off"
                                    placeholder="请输入证书号">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">商户名称</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="CertMerchantName" name="CertMerchantName"
                                    value="@editData.CertMerchantName" maxlength="30" lay-verify="" autocomplete="off"
                                    placeholder="请输入商户名称">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">注册地址</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="CompanyAddress" name="CompanyAddress"
                                    value="@editData.CompanyAddress" maxlength="50" lay-verify="" autocomplete="off"
                                    placeholder="请输入注册地址">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">法人姓名</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="CertLegalPerson" name="CertLegalPerson"
                                    value="@editData.CertLegalPerson" maxlength="20" lay-verify="" autocomplete="off"
                                    placeholder="请输入法人姓名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">有效期限开始日期</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="PeriodBegin" name="PeriodBegin"
                                    value="@(editData.PeriodBegin == null ? "" : editData.PeriodBegin.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入有效期限开始日期">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">有效期限结束日期</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="PeriodEnd" name="PeriodEnd"
                                    value="@(editData.PeriodEnd == null ? "" : editData.PeriodEnd.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入有效期限结束日期">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">组织机构代码证照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="OrganizationCopy" name="OrganizationCopy"
                                        value="@editData.OrganizationCopy">
                                    <button class="layui-btn" type="button" id="OrganizationCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoOrganizationCopy"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="OrganizationCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.OrganizationCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.OrganizationCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.OrganizationCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">组织机构代码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="OrganizationCode" name="OrganizationCode"
                                    value="@editData.OrganizationCode" maxlength="32" lay-verify="" autocomplete="off"
                                    placeholder="请输入组织机构代码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">组织机构代码证有效期开始日期</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="OrgPeriodBegin" name="OrgPeriodBegin"
                                    value="@(editData.OrgPeriodBegin == null ? "" : editData.OrgPeriodBegin.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入组织机构代码证有效期开始日期">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">组织机构代码证有效期结束日期</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="OrgPeriodEnd" name="OrgPeriodEnd"
                                    value="@(editData.OrgPeriodEnd == null ? "" : editData.OrgPeriodEnd.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入组织机构代码证有效期结束日期">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">单位证明函照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="CertificateLetterCopy" name="CertificateLetterCopy"
                                        value="@editData.CertificateLetterCopy">
                                    <button class="layui-btn" type="button" id="CertificateLetterCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoCertificateLetterCopy"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="CertificateLetterCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.CertificateLetterCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.CertificateLetterCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.CertificateLetterCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">证件类型</label>
                            <div class="layui-input-inline">
                                <select id="IdDocType" name="IdDocType" lay-search="">
                                    <option value="">请选择</option>
                                    <option value="IDENTIFICATION_TYPE_IDCARD">中国大陆居民_身份证</option>
                                    <option value="IDENTIFICATION_TYPE_OVERSEA_PASSPORT">其他国家或地区居民_护照</option>
                                    <option value="IDENTIFICATION_TYPE_HONGKONG_PASSPORT">中国香港居民_来往内地通行证</option>
                                    <option value="IDENTIFICATION_TYPE_MACAO_PASSPORT">中国澳门居民_来往内地通行证</option>
                                    <option value="IDENTIFICATION_TYPE_TAIWAN_PASSPORT">中国台湾居民_来往大陆通行证</option>
                                </select>
                                <script>
                                    $("#IdDocType").val("@editData.IdDocType");
                                </script>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证人像面照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="IdCardCopy" name="IdCardCopy" value="@editData.IdCardCopy">
                                    <button class="layui-btn" type="button" id="IdCardCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoIdCardCopy"))</div>
                                </div>
                                <div style="margin-top:10px;" id="IdCardCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.IdCardCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.IdCardCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.IdCardCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证国徽面照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="IdCardNational" name="IdCardNational"
                                        value="@editData.IdCardNational">
                                    <button class="layui-btn" type="button" id="IdCardNationalBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoIdCardNational"))</div>
                                </div>
                                <div style="margin-top:10px;" id="IdCardNationalImage">
                                    @if (!string.IsNullOrEmpty(editData.IdCardNational))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.IdCardNational"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.IdCardNational')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证姓名</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="IdCardName" name="IdCardName"
                                    value="@editData.IdCardName" maxlength="20" lay-verify="" autocomplete="off"
                                    placeholder="请输入身份证姓名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证号码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="IdCardNumber" name="IdCardNumber"
                                    value="@editData.IdCardNumber" maxlength="18" lay-verify="" autocomplete="off"
                                    placeholder="请输入身份证号码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证有效期开始时间</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="CardPeriodBegin" name="CardPeriodBegin"
                                    value="@(editData.CardPeriodBegin == null ? "" : editData.CardPeriodBegin.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入身份证有效期开始时间">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证有效期结束时间</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="CardPeriodEnd" name="CardPeriodEnd"
                                    value="@(editData.CardPeriodEnd == null ? "" : editData.CardPeriodEnd.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入身份证有效期结束时间">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">经营者/法人是否为受益人</label>
                            <div class="layui-input-inline">
                                <input type="checkbox" id="Owner" name="Owner" value="1" @(editData.Owner==1 ? "checked=checked" : "" ) lay-skin="switch" lay-filter="switchTest" title="开关">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最终受益人证件类型</label>
                            <div class="layui-input-inline">
                                <select id="UboInfoIdType" name="UboInfoIdType" lay-search="">
                                    <option value="">请选择</option>
                                    <option value="IDENTIFICATION_TYPE_IDCARD">中国大陆居民_身份证</option>
                                    <option value="IDENTIFICATION_TYPE_OVERSEA_PASSPORT">其他国家或地区居民_护照</option>
                                    <option value="IDENTIFICATION_TYPE_HONGKONG_PASSPORT">中国香港居民_来往内地通行证</option>
                                    <option value="IDENTIFICATION_TYPE_MACAO_PASSPORT">中国澳门居民_来往内地通行证</option>
                                    <option value="IDENTIFICATION_TYPE_TAIWAN_PASSPORT">中国台湾居民_来往大陆通行证</option>
                                </select>
                                <script>
                                    $("#UboInfoIdType").val("@editData.UboInfoIdType");
                                </script>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最终受益人身份证人像面照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="UboInfoIdCardCopy" name="UboInfoIdCardCopy"
                                        value="@editData.UboInfoIdCardCopy">
                                    <button class="layui-btn" type="button" id="UboInfoIdCardCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoUboInfoIdCardCopy"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="UboInfoIdCardCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.UboInfoIdCardCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.UboInfoIdCardCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.UboInfoIdCardCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证国徽面照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="UboInfoIdCardNational" name="UboInfoIdCardNational"
                                        value="@editData.UboInfoIdCardNational">
                                    <button class="layui-btn" type="button" id="UboInfoIdCardNationalBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoUboInfoIdCardNational"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="UboInfoIdCardNationalImage">
                                    @if (!string.IsNullOrEmpty(editData.UboInfoIdCardNational))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.UboInfoIdCardNational"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.UboInfoIdCardNational')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最终受益人证件照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="UboInfoIdDocCopy" name="UboInfoIdDocCopy"
                                        value="@editData.UboInfoIdDocCopy">
                                    <button class="layui-btn" type="button" id="UboInfoIdDocCopyBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoUboInfoIdDocCopy"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="UboInfoIdDocCopyImage">
                                    @if (!string.IsNullOrEmpty(editData.UboInfoIdDocCopy))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.UboInfoIdDocCopy"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.UboInfoIdDocCopy')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">受益人姓名</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="UboInfoName" name="UboInfoName"
                                    value="@editData.UboInfoName" maxlength="20" lay-verify="" autocomplete="off"
                                    placeholder="请输入受益人姓名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最终受益人证件号码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="UboInfoIdNumber" name="UboInfoIdNumber"
                                    value="@editData.UboInfoIdNumber" maxlength="30" lay-verify="" autocomplete="off"
                                    placeholder="请输入最终受益人证件号码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">证件有效期开始时间</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="UboInfoIdPeriodBegin"
                                    name="UboInfoIdPeriodBegin"
                                    value="@(editData.UboInfoIdPeriodBegin == null ? "" : editData.UboInfoIdPeriodBegin.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入证件有效期开始时间">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">证件有效期结束时间</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="UboInfoIdPeriodEnd" name="UboInfoIdPeriodEnd"
                                    value="@(editData.UboInfoIdPeriodEnd == null ? "" : editData.UboInfoIdPeriodEnd.Value.ToString("yyyy-MM-dd"))" lay-verify="" autocomplete="off" placeholder="请输入证件有效期结束时间">
                            </div>
                        </div>

                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商户简称</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="MerchantShortname" name="MerchantShortname"
                                    value="@editData.MerchantShortname" maxlength="50" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入商户简称">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">客服电话</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="ServicePhone" name="ServicePhone"
                                    value="@editData.ServicePhone" maxlength="30" lay-verify="" autocomplete="off"
                                    placeholder="请输入客服电话">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">经营场景类型</label>
                            <div class="layui-input-block">
                                <input type="hidden" id="SalesScenesType" name="SalesScenesType" value="@editData.SalesScenesType" />
                                <div id="SalesScenesTypeTransfer" class="demo-transfer"></div>
                                @{
                                    string SalesScenesTypeJson = "[";
                                    SalesScenesTypeJson += "{\"value\": \"SALES_SCENES_STORE\", \"title\": \"线下门店\"},";
                                    SalesScenesTypeJson += "{\"value\": \"SALES_SCENES_MP\", \"title\": \"公众号\"},";
                                    SalesScenesTypeJson += "{\"value\": \"SALES_SCENES_MINI_PROGRAM\", \"title\": \"小程序\"},";
                                    SalesScenesTypeJson += "{\"value\": \"SALES_SCENES_WEB\", \"title\": \"PC网站\"},";
                                    SalesScenesTypeJson += "{\"value\": \"SALES_SCENES_APP\", \"title\": \"APP\"},";
                                    SalesScenesTypeJson += "{\"value\": \"SALES_SCENES_WEWORK\", \"title\": \"企业微信\"},";
                                    SalesScenesTypeJson = SalesScenesTypeJson.TrimEnd(',');
                                    SalesScenesTypeJson += "]";
                                }
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">门店名称</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BizStoreName" name="BizStoreName"
                                    value="@editData.BizStoreName" maxlength="50" lay-verify=""
                                    autocomplete="off" placeholder="请输入门店名称">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">门店省市编码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BizAddressCode" name="BizAddressCode"
                                    value="@editData.BizAddressCode" maxlength="10" lay-verify=""
                                    autocomplete="off" placeholder="请输入门店省市编码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">门店地址</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BizStoreAddress" name="BizStoreAddress"
                                    value="@editData.BizStoreAddress" maxlength="50" lay-verify=""
                                    autocomplete="off" placeholder="请输入门店地址">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">门店门头照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="StoreEntrancePic" name="StoreEntrancePic"
                                        value="@editData.StoreEntrancePic">
                                    <button class="layui-btn" type="button" id="StoreEntrancePicBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoStoreEntrancePic"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="StoreEntrancePicImage">
                                    @if (!string.IsNullOrEmpty(editData.StoreEntrancePic))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.StoreEntrancePic"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.StoreEntrancePic')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">店内环境照片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="IndoorPic" name="IndoorPic" value="@editData.IndoorPic">
                                    <button class="layui-btn" type="button" id="IndoorPicBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoIndoorPic"))</div>
                                </div>
                                <div style="margin-top:10px;" id="IndoorPicImage">
                                    @if (!string.IsNullOrEmpty(editData.IndoorPic))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.IndoorPic"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.IndoorPic')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">线下场所对应的商家APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BizSubAppid" name="BizSubAppid"
                                    value="@editData.BizSubAppid" maxlength="32" lay-verify="" autocomplete="off"
                                    placeholder="请输入线下场所对应的商家APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">服务商公众号APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="MpAppid" name="MpAppid"
                                    value="@editData.MpAppid" maxlength="50" lay-verify="" autocomplete="off"
                                    placeholder="请输入服务商公众号APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">商家公众号APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="MpSubAppid" name="MpSubAppid"
                                    value="@editData.MpSubAppid" maxlength="50" lay-verify=""
                                    autocomplete="off" placeholder="请输入商家公众号APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">公众号页面截图</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="MpPics" name="MpPics" value="@editData.MpPics">
                                    <button class="layui-btn" type="button" id="MpPicsBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoMpPics"))</div>
                                </div>
                                <div style="margin-top:10px;" id="MpPicsImage">
                                    @if (!string.IsNullOrEmpty(editData.MpPics))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.MpPics"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.MpPics')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">服务商小程序APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="MiniProgramAppid" name="MiniProgramAppid"
                                    value="@editData.MiniProgramAppid" maxlength="50" lay-verify=""
                                    autocomplete="off" placeholder="请输入服务商小程序APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">商家小程序APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="MiniProgramSubAppid"
                                    name="MiniProgramSubAppid" value="@editData.MiniProgramSubAppid" maxlength="50"
                                    lay-verify="" autocomplete="off" placeholder="请输入商家小程序APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">小程序截图</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="MiniProgramPics" name="MiniProgramPics"
                                        value="@editData.MiniProgramPics">
                                    <button class="layui-btn" type="button" id="MiniProgramPicsBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoMiniProgramPics"))</div>
                                </div>
                                <div style="margin-top:10px;" id="MiniProgramPicsImage">
                                    @if (!string.IsNullOrEmpty(editData.MiniProgramPics))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.MiniProgramPics"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.MiniProgramPics')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">服务商应用APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="AppAppid" name="AppAppid"
                                    value="@editData.AppAppid" maxlength="50" lay-verify="" autocomplete="off"
                                    placeholder="请输入服务商应用APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">商家应用APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="AppSubAppid" name="AppSubAppid"
                                    value="@editData.AppSubAppid" maxlength="50" lay-verify=""
                                    autocomplete="off" placeholder="请输入商家应用APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">APP截图</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="AppPics" name="AppPics" value="@editData.AppPics">
                                    <button class="layui-btn" type="button" id="AppPicsBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoAppPics"))</div>
                                </div>
                                <div style="margin-top:10px;" id="AppPicsImage">
                                    @if (!string.IsNullOrEmpty(editData.AppPics))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.AppPics"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.AppPics')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">互联网网站域名</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="WebDomain" name="WebDomain"
                                    value="@editData.WebDomain" maxlength="50" lay-verify="" autocomplete="off"
                                    placeholder="请输入互联网网站域名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">网站授权函</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="WebAuthorisation" name="WebAuthorisation"
                                        value="@editData.WebAuthorisation">
                                    <button class="layui-btn" type="button" id="WebAuthorisationBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoWebAuthorisation"))
                                    </div>
                                </div>
                                <div style="margin-top:10px;" id="WebAuthorisationImage">
                                    @if (!string.IsNullOrEmpty(editData.WebAuthorisation))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.WebAuthorisation"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.WebAuthorisation')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">互联网网站对应的商家APPID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="WebAppId" name="WebAppId"
                                    value="@editData.WebAppId" maxlength="50" lay-verify="" autocomplete="off"
                                    placeholder="请输入互联网网站对应的商家APPID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">商家企业微信CorpID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="SubCorpId" name="SubCorpId"
                                    value="@editData.SubCorpId" maxlength="50" lay-verify="" autocomplete="off"
                                    placeholder="请输入商家企业微信CorpID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">企业微信页面截图</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="WeworkPics" name="WeworkPics" value="@editData.WeworkPics">
                                    <button class="layui-btn" type="button" id="WeworkPicsBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoWeworkPics"))</div>
                                </div>
                                <div style="margin-top:10px;" id="WeworkPicsImage">
                                    @if (!string.IsNullOrEmpty(editData.WeworkPics))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.WeworkPics"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.WeworkPics')">
                                    }
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">入驻结算规则ID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="SettlementId" name="SettlementId"
                                    value="@editData.SettlementId" maxlength="3" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入入驻结算规则ID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">所属行业</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="QualificationType" name="QualificationType"
                                    value="@editData.QualificationType" maxlength="30" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入所属行业">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">特殊资质图片</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="Qualifications" name="Qualifications"
                                        value="@editData.Qualifications">
                                    <button class="layui-btn" type="button" id="QualificationsBtn">选择图片</button>
                                    <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("MerchantAddInfoQualifications"))</div>
                                </div>
                                <div style="margin-top:10px;" id="QualificationsImage">
                                    @if (!string.IsNullOrEmpty(editData.Qualifications))
                                    {
                                    <img src="@(MySystem.OssHelper.Instance.SourceHost)@editData.Qualifications"
                                        class="layui-upload-img" style="max-width:85px; max-height:85px;"
                                        onclick="showBigPic('@(MySystem.OssHelper.Instance.SourceHost)@editData.Qualifications')">
                                    }
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">优惠费率活动ID</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="ActivitiesId" name="ActivitiesId"
                                    value="@editData.ActivitiesId" maxlength="32" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入优惠费率活动ID">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">优惠费率活动值</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="ActivitiesRate" name="ActivitiesRate"
                                    value="@editData.ActivitiesRate" maxlength="20" lay-verify="" autocomplete="off"
                                    placeholder="请输入优惠费率活动值">
                            </div>
                        </div>

                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">账户类型</label>
                            <div class="layui-input-inline">
                                <select id="BankAccountType" name="BankAccountType" lay-search="">
                                    <option value="">请选择</option>
                                    <option value="BANK_ACCOUNT_TYPE_CORPORATE">对公银行账户</option>
                                    <option value="BANK_ACCOUNT_TYPE_PERSONAL">经营者个人银行卡</option>
                                </select>
                                <script>
                                    $("#BankAccountType").val("@editData.BankAccountType");
                                </script>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开户名称</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="AccountName" name="AccountName"
                                    value="@editData.AccountName" maxlength="50" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入开户名称">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开户银行</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="AccountBank" name="AccountBank"
                                    value="@editData.AccountBank" maxlength="30" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入开户银行">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开户银行省市编码</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BankAddressCode" name="BankAddressCode"
                                    value="@editData.BankAddressCode" maxlength="20" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入开户银行省市编码">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开户银行联行号</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BankBranchId" name="BankBranchId"
                                    value="@editData.BankBranchId" maxlength="20" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入开户银行联行号">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开户银行全称</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="BankName" name="BankName"
                                    value="@editData.BankName" maxlength="50" lay-verify="required|" autocomplete="off"
                                    placeholder="请输入开户银行全称">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">银行账号</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" id="AccountNumber" name="AccountNumber"
                                    value="@editData.AccountNumber" maxlength="50" lay-verify="required|"
                                    autocomplete="off" placeholder="请输入银行账号">
                            </div>
                        </div>

                    </div>
                    <div class="layui-tab-item">

                    </div>

                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <input type="button" lay-submit lay-filter="LAY-list-front-submit" id="LAY-list-front-submit" value="确认">
            </div>
          </div>
        </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script src="/other/oss/upload-min@(MySystem.OssHelper.Instance.OssStatus ? "-oss" : "").js"></script>
    <script src="/other/mybjq/kindeditor-min.js"></script>
    <script src="/other/mybjq/lang/zh_CN.js"></script>
    <script>
        
        
        //编辑器
        KindEditor.ready(function (K) {
            
        });

        var ids = "";
        function getChildren(obj) {
            $.each(obj, function (index, value) {
                var id = obj[index].id;
                ids += id + ",";
                var children = obj[index].children;
                if (children) {
                    getChildren(children);
                }
            });
        }

        function AreasProvinceInit(tagId, areasVal, form) {
            for (var i = 0; i < provs_data.length; i++) {
                var sel = "";
                if (areasVal.indexOf(provs_data[i].text) > -1) {
                    sel = " selected=selected";
                }
                $("#" + tagId + "Province").append('<option value="' + provs_data[i].value + '"' + sel + '>' + provs_data[i].text + '</option>');
            }
            form.render();
        }

        function AreasProvinceSelected(tagId, areasVal, form, value) {
            $("#" + tagId + "City").html('<option value="">市</option>');
            var list = citys_data[value];
            for (var i = 0; i < list.length; i++) {
                var sel = "";
                if (areasVal.indexOf(list[i].text) > -1) {
                    sel = " selected=selected";
                }
                $("#" + tagId + "City").append('<option value="' + list[i].value + '"' + sel + '>' + list[i].text + '</option>');
            }
            $("#" + tagId + "Area").html('<option value="">县/区</option>');
            form.render();
            $("#" + tagId + "").val($("#" + tagId + "Province option:selected").text() + "," + $("#" + tagId + "City option:selected").text() + "," + $("#" + tagId + "Area option:selected").text());
        }

        function AreasCitySelected(tagId, areasVal, form, value) {
            $("#" + tagId + "Area").html('<option value="">县/区</option>');
            var list = dists_data[value];
            for (var i = 0; i < list.length; i++) {
                var sel = "";
                if (areasVal.indexOf(list[i].text) > -1) {
                    sel = " selected=selected";
                }
                $("#" + tagId + "Area").append('<option value="' + list[i].value + '"' + sel + '>' + list[i].text + '</option>');
            }
            form.render();
            $("#" + tagId + "").val($("#" + tagId + "Province option:selected").text() + "," + $("#" + tagId + "City option:selected").text() + "," + $("#" + tagId + "Area option:selected").text());
        }

        function AreasAreaSelected(tagId, form) {
            form.render();
            $("#" + tagId + "").val($("#" + tagId + "Province option:selected").text() + "," + $("#" + tagId + "City option:selected").text() + "," + $("#" + tagId + "Area option:selected").text());
        }
        function movePrev(obj, tagId) {
            $(obj).parent().prev().insertAfter($(obj).parent());
            checkPics(tagId);
        }
        function moveNext(obj, tagId) {
            $(obj).parent().next().insertBefore($(obj).parent());
            checkPics(tagId);
        }
        function deletePic(obj, tagId) {
            $(obj).parent().remove();
            checkPics(tagId);
        }
        function checkPics(tagId) {
            var pics = "";
            var texts = "";
            $("#" + tagId + "Image div img").each(function (i) {
                pics += $(this).attr("src").replace(osshost, '') + "|";
            });
            $("#" + tagId + "Image div input").each(function (i) {
                texts += $(this).val() + "|";
            });
            if (pics == "") {
                $("#" + tagId).val("");
            } else {
                pics = pics.substring(0, pics.length - 1);
                texts = texts.substring(0, pics.length - 1);
                $("#" + tagId).val(pics + "#cut#" + texts);
            }
        }
        function checkBox(tagId) {
            var text = "";
            $("input[type=checkbox][name=" + tagId + "List]:checked").each(function (i) {
                text += $(this).val() + ",";
            });
            $("#" + tagId).val(text);
        }
        function showBigPic(picpath) {
            parent.layer.open({
                type: 1,
                title: false,
                closeBtn: 0,
                shadeClose: true,
                area: ['auto', 'auto'],
                content: '<img src="' + picpath + '" style="max-width:800px; max-height:800px;" />'
            });
        }

        var tree;
        var element;
        var upload;
        layui.config({
            base: '/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
            var $ = layui.$
                , form = layui.form
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate
                , croppers = layui.croppers
                , transfer = layui.transfer
                , util = layui.util;
            tree = layui.tree;
            element = layui.element;
            upload = layui.upload;
        
            //Hash地址的定位
            var layid = location.hash.replace(/^#test=/, '');
            element.tabChange('test', layid);
            element.on('tab(test)', function (elem) {
                location.hash = 'test=' + $(this).attr('lay-id');
            });
    
            //日期
            laydate.render({
            elem: '#PeriodBegin',
            trigger: 'click'
            });
            laydate.render({
            elem: '#PeriodEnd',
            trigger: 'click'
            });
            laydate.render({
            elem: '#OrgPeriodBegin',
            trigger: 'click'
            });
            laydate.render({
            elem: '#OrgPeriodEnd',
            trigger: 'click'
            });
            laydate.render({
            elem: '#UboInfoIdPeriodBegin',
            trigger: 'click'
            });
            laydate.render({
            elem: '#UboInfoIdPeriodEnd',
            trigger: 'click'
            });
            laydate.render({
            elem: '#CardPeriodBegin',
            trigger: 'click'
            });
            laydate.render({
            elem: '#CardPeriodEnd',
            trigger: 'click'
            });


            //上传文件
            WebUploadJs('LicenseCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoLicenseCopy"))), function (filename) {
            $('#LicenseCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#LicenseCopy').val(filename);
            });
            WebUploadJs('CertCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoCertCopy"))), function (filename) {
            $('#CertCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#CertCopy').val(filename);
            });
            WebUploadJs('OrganizationCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoOrganizationCopy"))), function (filename) {
            $('#OrganizationCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#OrganizationCopy').val(filename);
            });
            WebUploadJs('CertificateLetterCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoCertificateLetterCopy"))), function (filename) {
            $('#CertificateLetterCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#CertificateLetterCopy').val(filename);
            });
            WebUploadJs('UboInfoIdCardCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoUboInfoIdCardCopy"))), function (filename) {
            $('#UboInfoIdCardCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#UboInfoIdCardCopy').val(filename);
            });
            WebUploadJs('UboInfoIdCardNationalBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoUboInfoIdCardNational"))), function (filename) {
            $('#UboInfoIdCardNationalImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#UboInfoIdCardNational').val(filename);
            });
            WebUploadJs('UboInfoIdDocCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoUboInfoIdDocCopy"))), function (filename) {
            $('#UboInfoIdDocCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#UboInfoIdDocCopy').val(filename);
            });
            WebUploadJs('StoreEntrancePicBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoStoreEntrancePic"))), function (filename) {
            $('#StoreEntrancePicImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#StoreEntrancePic').val(filename);
            });
            WebUploadJs('IndoorPicBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoIndoorPic"))), function (filename) {
            $('#IndoorPicImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#IndoorPic').val(filename);
            });
            WebUploadJs('MpPicsBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoMpPics"))), function (filename) {
            $('#MpPicsImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#MpPics').val(filename);
            });
            WebUploadJs('MiniProgramPicsBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoMiniProgramPics"))), function (filename) {
            $('#MiniProgramPicsImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#MiniProgramPics').val(filename);
            });
            WebUploadJs('AppPicsBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoAppPics"))), function (filename) {
            $('#AppPicsImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#AppPics').val(filename);
            });
            WebUploadJs('WebAuthorisationBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoWebAuthorisation"))), function (filename) {
            $('#WebAuthorisationImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#WebAuthorisation').val(filename);
            });
            WebUploadJs('WeworkPicsBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoWeworkPics"))), function (filename) {
            $('#WeworkPicsImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#WeworkPics').val(filename);
            });
            WebUploadJs('QualificationsBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoQualifications"))), function (filename) {
            $('#QualificationsImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#Qualifications').val(filename);
            });
            WebUploadJs('IdCardCopyBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoIdCardCopy"))), function (filename) {
            $('#IdCardCopyImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#IdCardCopy').val(filename);
            });
            WebUploadJs('IdCardNationalBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload', @(Html.Raw(new MySystem.PublicFunction().GetUploadParam("MerchantAddInfoIdCardNational"))), function (filename) {
            $('#IdCardNationalImage').html('<img src="' + osshost + filename + '" class="layui-upload-img" style="max-width:85px; max-height:85px;" onclick="showBigPic(\'' + osshost + filename + '\')">')
            $('#IdCardNational').val(filename);
            });


            //穿梭框
            transfer.render({
            elem: '#SalesScenesTypeTransfer'
            , data: @Html.Raw(SalesScenesTypeJson)
            , title: ['待选项', '选中项']
            , value: ["@Html.Raw(Library.function.CheckNull(editData.SalesScenesType).Replace(",", "\",\""))"]
            , showSearch: true
            , onchange: function (obj, index) {
            if (index == 0) {
            var source = $("#SalesScenesType").val();
            $.each(obj, function (index, value) {
            var val = obj[index].value;                        
            if (source != "") {
            source += "," + val;
            } else {
            source += val;
            }
            });
            $("#SalesScenesType").val(source);
            } else if (index == 1) {
            var source = "," + $("#SalesScenesType").val() + ",";
            $.each(obj, function (index, value) {
            var val = obj[index].value;
            source = source.replace("," + val + ",", ",");
            });
            if (source != "") {
            if (source == ",") {
            source = "";
            } else {
            source = source.substring(1, source.length - 1);
            }
            }
            $("#SalesScenesType").val(source);
            }
            }
            });


            //TreeView，比如权限管理
            

            //省市区
            
        });

    </script>
</body>
</html>