<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="https://www.thymeleaf.org ">
<head>
    <title>采美365网--医疗美容生活美容正品采购平台</title>
    <template th:replace="components/head-link"></template>
    <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/supplier-center/setting/information.css(v=${version})}" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 引用头部 -->
<template th:replace="components/header"></template>

<!-- 我的采美 -->
<div id="information">
    <div class="navLayout" >
        <div class="crumbs" v-if="isPC">
            <span>管理中心</span>
            <span>&gt;</span>
            <span>资料信息</span>
        </div>
        <div class="wrap clear">
             <!--左侧面包屑-->
            <template th:replace="supplier-center/components/tableft"></template>
             <div v-if="isRequset" class="loading">
                <img src="/img/base/loading.gif">
             </div>
            <div class="right" v-else>
                <div class="head-wrap">
                    <div class="head-top">
                        <div class="header-tabs" :class="{ current: tabCurrentIndex === 1 }" @click="checkedFn(1)">
                        <span class="line" :class="{ linestyle: tabCurrentIndex === 1 }">1</span>公司基本信息</div>
                        <div class="header-tabs" :class="{ current: tabCurrentIndex === 2 }" @click="checkedFn(2)">
                        <span class="line" :class="{ linestyle: tabCurrentIndex === 2 }">2</span>公司经营信息</div>
                        <div class="header-tabs" :class="{ current: tabCurrentIndex === 3 }" @click="checkedFn(3)">
                        <span class="line" :class="{ linestyle: tabCurrentIndex === 3 }">3</span>公司资质证明</div>
                    </div>
                </div>
                <div class="container clear" >
                    <div class="forget-form"  v-if="tabCurrentIndex == 1">
                        <form>
                            <div class="formLine" >
                                <p><em>*</em>公司名称：</p>
                                <input  class="massageBtn"  type="text" v-model.trim="params.name" placeholder="请与营业执照的注册名称保持一致" :rule="rule.name" @blur="blurHandle($event)" maxlength="30" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入公司名称"></span>
                            </div>
                            <div class="formLine rightTxt" >
                                <p>公司简称：</p>
                                <input  class="massageBtn"  type="text" v-model.trim="params.sname"  placeholder="请与营业执照的注册名称保持一致"  maxlength="10" >
                                <span class="errTips"></span>
                            </div>
                            <div class="formLine" >
                                <p><em>*</em>公司地址：</p>
                                 <select name="provinceID" id="cProvince" @change="province" v-model="params.provinceID">
                                     <option value="0">请选择</option>
                                     <option v-for="item in provinceArray" :value="item.provinceID">{{item.name}}</option>
                                 </select>
                                 <select name="cityID" id="cityID" @change="getcity($event)" v-model="params.cityID">
                                     <option value="0"  selected="">请选择</option>
                                     <option v-for="(item ,index) in cityArray" :key="index" :value="item.cityID">{{item.name}}</option>
                                 </select>
                                 <select name="townID" id="townID" @change="getcTown($event)" v-model="params.townID">
                                     <option value="0">请选择</option>
                                     <option v-for="(item ,index) in townArray" :key="index" :value="item.townID" >{{item.name}}</option>
                                 </select>
                                 <textarea placeholder="建议您如实填写详细地址，例如：街道名称，门牌号码，楼层和房间号等信息"  v-model="params.address" maxlength="25"></textarea>
                                    <i class="checked icon mIcon"></i>
                                    <span class="errTips icon mIcon" tips="请输入正确的联系地址"></span>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>联系人：</p>
                                <input type="text" v-model.trim="params.linkMan" placeholder="请输入联系人姓名" :rule="rule.name" maxlength="6" @blur="blurHandle($event)" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入正确的联系人姓名"></span>
                            </div>
                            <div class="formLine rightTxt">
                                <p>邮箱(<span>邮箱可用作登录账号，请使用公司邮箱或法人邮箱</span>)：</p>
                                <input type="text" v-model.trim="params.email" placeholder="请输入邮箱地址" maxlength="40">
                                <span class="errTips"></span>
                            </div>
                            <div class="formLine rightTxt">
                                <p>固定电话：</p>
                                <input class="massageBtn"  type="text" v-model.trim="params.contractPhone" placeholder="请在号码前加区" :rule="rule.phone" onkeyup="if(isNaN(value))execCommand('undo')"maxlength="11" >
                                <i class="checked icon mIcon"></i>
                                <span class="errTips"></span>
                            </div>
                            <div class="formLine rightTxt">
                                <p>传真：</p>
                                <input class="massageBtn"  type="text" v-model.trim="params.fax" placeholder="请输入公司传真号" onkeyup="if(isNaN(value))execCommand('undo')">
                                <i class="checked icon mIcon"></i>
                                <span class="errTips"></span>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>法人代表：</p>
                                <input type="text" v-model.trim="params.legalPerson" placeholder="请输入公司法人代表姓名" :rule="rule.name" maxlength="6" @blur="blurHandle($event)" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入法人代表姓名"></span>
                            </div>
                             <div class="formLine">
                                <p><em>*</em>注册资本：</p>
                                <input type="text" v-model.trim="params.registeredCapital" placeholder="请填写公司注册资本" :rule="rule.num" @blur="blurHandle($event)" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入注册资本"></span>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>公司性质：</p>
                                <input type="text" v-model.trim="params.nature" placeholder="请填写公司性质" :rule="rule.name"  @blur="blurHandle($event)" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入公司性质"></span>
                            </div>
                             <div class="formLine">
                                <p><em>*</em>年营业额：</p>
                                <input type="text" v-model.trim="params.turnover" placeholder="￥ 请输入公司年营业额" :rule="rule.num"  @blur="blurHandle($event)" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入年营业额"></span>
                            </div>
                             <div class="subLine">
                                <button class="btn" type="button" @click="shopSubmit" >提交</button>
                            </div>
                        </form>
                    </div>
                     <div class="forget-form"  v-if="tabCurrentIndex == 2">
                        <form>
                            <div class="formLine">
                                <p><em>*</em>公司类型：</p>
                                <label class="diyBox"><input type="radio" name="firstShopType" v-model="params2.firstShopType" value="1" ><i class="icon mIcon">医疗</i></label>
                                <label class="diyBox"><input type="radio" name="firstShopType" v-model="params2.firstShopType" value="2" checked><i class="icon mIcon">非医疗</i></label>
                                <span class="errTips icon mIcon mIcon" tips="请选择公司类型"></span>
                            </div>
                            <div v-if="params2.firstShopType == 1" class="formLine">
                                <label class="diyBox second"><input type="radio" name="secondShopType" v-model="params2.secondShopType" value="1" ><i class="icon mIcon">一类器械</i></label>
                                <label class="diyBox second"><input type="radio" name="secondShopType" v-model="params2.secondShopType" value="2" checked><i class="icon mIcon">二类器械</i></label>
                                <label class="diyBox second"><input type="radio" name="secondShopType" v-model="params2.secondShopType" value="3" ><i class="icon mIcon">三类器械</i></label>
                                <label class="diyBox second"><input type="radio" name="secondShopType" v-model="params2.secondShopType" value="4" checked><i class="icon mIcon">其他</i></label>
                                <span class="errTips icon mIcon" tips="请选择公司类型"></span>
                            </div>
                            <div class="formLine clear" v-if="params2.secondShopType == 3">
                                <div class="form-upload">
                                    <p><em>*</em>资质：</p>
                                    <div class="form-upload-image" id="uploadImage" v-if="params2.medicalPracticeLicenseImg1!=''">
                                        <img class="upload-img" :src="params2.medicalPracticeLicenseImg1" alt="" id="medicalPracticeLicenseImg1" @click="showViewerbigImage()">
                                        <i class="icon mIcon" @click="deleteMedicalImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="medicalPracticeLicenseImg1" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadzizhiImageFn">
                                        <i class="icon mIcon file-zizhi"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                                <div class="form-upload-tips">
                                    <i class="icon icon-wen mIcon"></i>
                                    <div class="wen-tips">点击图片可放大图片</div>
                                </div>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>主营产品：</p>
                                <p class="business">
                                    <label v-for="pro in mentuzCampNullList" class="diyBox second"><input type="checkbox"v-model="shopMainPros" :value="pro.name" ><i class="icon mIcon">{{pro.name}}</i></label>
                                </p>
                                <p class="addbusiness">
                                    <input type="text" placeholder="请输入自定义主营内容" v-model.trim="mainProEdit" maxlength="5" >
                                    <a href="javascript:void(0);" @click="mainProAdd()">确认添加</a>
                                </p>
                                <span class="errTips icon mIcon" tips="请选择或添加主营产品"></span>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>经营范围：</p>
                                <p class="business">
                                    <label v-for="pro in Scopelist" class="diyBox second"><input type="checkbox" name="secondShopType" v-model="shopScope" :value="pro.name" ><i class="icon mIcon">{{pro.name}}</i></label>
                                </p>
                                <p class="addbusiness">
                                    <input type="text" placeholder="请输入自定义经营范围" v-model.trim="shopScopeEdit" maxlength="5" >
                                    <a href="javascript:void(0);" @click="shopScopeAdd()">确认添加</a>
                                </p>
                                <span class="errTips icon mIcon" tips="请选择或添加主营产品"></span>
                            </div>
                             <div class="formLine info">
                                 <p><em>*</em>公司介绍：</p>
                                 <textarea placeholder="公司简介会在公司介绍页面展示，有助于机构更好的了解您， 建议从个人规模、代理产品、机构服务、荣誉资质这4方面进行介绍"  v-model="params2.info" name="info"  maxlength="2000"></textarea>
                                 <i class="checked icon mIcon"></i>
                                 <span class="errTips icon mIcon" tips="请填写公司介绍"></span>
                             </div>
                             <div class="formLine info">
                                 <p><em>*</em>主打系列商品说明：</p>
                                 <textarea placeholder="请输入主打系列商品说明"  v-model="params2.productDesc" name="info" maxlength="500"></textarea>
                                 <i class="checked icon mIcon"></i>
                                 <span class="errTips icon mIcon" tips="请填写公司介绍"></span>
                             </div>
                             <div class="subLine">
                                <button class="btn" type="button" @click="shopSubmit" >提交</button>
                            </div>
                        </form>
                    </div>
                     <div class="header"  v-if="tabCurrentIndex == 3">
                         <div class="header-p"> 本页面上传的图片仅支持JPG、GIF、PNG、JPEG和BMP格式，每张图片小于5M 荣誉证书和产品证书分别可最多上传5张</div>
                     </div>
                     <div class="forget-form"  v-if="tabCurrentIndex == 3">
                        <form>
                             <div class="formLine">
                                <p><em>*</em>营业执照编号：</p>
                                <input type="text" v-model.trim="params3.socialCreditCode" placeholder="请填写营业执照编号" :rule="rule.license" maxlength="18" @blur="blurHandle($event)" needverify>
                                <i class="checked icon mIcon"></i>
                                <span class="errTips icon mIcon" tips="请输入正确的统一社会信用代码"></span>
                             </div>
                             <div class="formLine clear" >
                                <div class="form-upload" id="businessImage">
                                    <p><em>*</em>营业执照图片：</p>
                                    <div class="form-upload-image" v-if="params3.businessLicenseImage!=''">
                                        <img class="upload-img" :src="params3.businessLicenseImage" alt="" id="businessLicenseImage" @click="showViewerImageFn()">
                                        <i class="icon mIcon" @click="deleteBusinessImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else >
                                        <input ref="businessLicenseImage" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadBusinessLicenseImageFn">
                                        <i class="icon mIcon file-biss"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                                <div class="form-upload" id="logoImage">
                                    <p><em>*</em>公司LOGO：</p>
                                    <div class="form-upload-image" v-if="params3.logo!=''">
                                        <img class="upload-img" :src="params3.logo" alt="" id="logo" @click="showViewerImageFn1()">
                                        <i class="icon mIcon" @click="deletelogoImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="logo" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadlogoImageFn">
                                        <i class="icon mIcon file-logo"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                            </div>
                            <div class="formLine clear">
                                <p><em>*</em>资质认证：</p>
                                <div class="form-upload" id="zizhiImage">
                                    <div class="form-upload-image" v-if="params3.productionLicence!=''">
                                        <img class="upload-img" :src="params3.productionLicence" alt="" id="productionLicence" @click="showViewerImageFn2()">
                                        <i class="icon mIcon" @click="deleteproducImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="productionLicence" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadproductionLicenceImageFn">
                                        <i class="icon mIcon file-produce"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                                <div class="form-upload" id="hygienicImage">
                                    <div class="form-upload-image" v-if="params3.hygienicLicense!=''">
                                        <img class="upload-img" :src="params3.hygienicLicense" alt="" id="hygienicLicense" @click="showViewerImageFn3()">
                                        <i class="icon mIcon" @click="deletehygienicImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="hygienicLicense" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadhygienicLicenseImageFn">
                                        <i class="icon mIcon file-health"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                                <div class="form-upload" id="taxImage">
                                    <div class="form-upload-image" v-if="params3.taxLicense!=''">
                                        <img class="upload-img" :src="params3.taxLicense" alt="" id="taxLicense" @click="showViewerImageFn4()">
                                        <i class="icon mIcon" @click="deletaxImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="taxLicense" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadtaxLicenseImageFn">
                                        <i class="icon mIcon file-tax"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                            </div>
                            <div class="formLine clear" >
                                <p><em>*</em>荣誉证书：</p>
                                <div class="form-upload list" id="HonorImages">
                                    <div class="form-upload-image"  v-for="(item, index) in HonorImagesList" :key="index">
                                        <img class="upload-img" :src="item" :data-image="item" alt="" id="Honor" @click="showViewerImageFn5()">
                                        <i class="icon mIcon" @click="removeGoodsImagesFn(index)"></i>
                                    </div>
                                    <div class="formLine-file" v-show="HonorImagesList.length<5">
                                        <input ref="Honor" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadHonorImageFn">
                                        <i class="icon mIcon file-honor"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                            </div>
                            <div class="formLine clear" >
                                <p><em>*</em>产品证书：</p>
                                <div class="form-upload list" id="productImages">
                                    <div class="form-upload-image"  v-for="(item, index) in productImagesList" :key="index">
                                        <img class="upload-img" :src="item" :data-image="item" alt="" id="product" @click="showViewerImageFn6()">
                                        <i class="icon mIcon" @click="removeproductImagesFn(index)"></i>
                                    </div>
                                    <div class="formLine-file" v-show="productImagesList.length<5">
                                        <input ref="product" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadproductImageFn">
                                        <i class="icon mIcon file-product"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                            </div>
                            <div class="subLine">
                                <button class="btn" type="button" @click="shopSubmit">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 引入底部 -->
<template th:replace="components/footer"></template>
<template th:replace="components/foot-link"></template>
<script charset="utf-8" type="text/javascript" th:src="@{/js/center.js(v=${version})}"></script>
<script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/supplier.service.js(v=${version})}"></script>
<script charset="utf-8" type="text/javascript" th:src="@{/js/supplier-center/setting/information.js(v=${version})}"></script>
</body>
</html>
