<!--pages/company_register/company_register.wxml-->
<zyh-navigator title="{{international.Enterprise_information_entry[language]}}" title-style="white" bg-color="#2F6FD1"></zyh-navigator>
<view>
    <view class="top">
        <view class="top-area"></view>
    </view>
    <view class="top-item">
        <!-- 提示信息-步骤条 -->
        <zyh-dot-line currentIndex="{{currentIndex}}" swiperDx="{{swiperDx}}" width="100" language="{{language}}" list="{{stepsList}}"></zyh-dot-line>
        <swiper class="swiper" duration="200" bindtransition="getSwiperPercent" bindanimationfinish="changeSwiper" current="{{currentIndex}}">
            <swiper-item>
                <scroll-view class="scroll-area" scroll-y="true">
                    <!-- 企业信息 -->
                    <view class="card card-cont">
                        <view class="title">{{international.company_information[language]}}</view>

                        <van-cell border="{{ false }}" class="label-sm">
                            <view slot="title">
                                <text class="{{form.actualName?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.actual[language]}}</text>
                            </view>
                            <zyh-input value="{{form.actualName}}" placeholder="{{[international.enter_actual[language]]}}" data-type="actualName" bindchange="getValue"></zyh-input>
                        </van-cell>

                        <van-cell border="{{ false }}" class="label-sm">
                            <view slot="title">
                                <text class="{{form.actualPhone?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.person_phone[language]}}</text>
                            </view>
                            <zyh-input value="{{form.actualPhone}}" placeholder="{{[international.enter_phone[language]]}}" data-type="actualPhone" bindchange="getValue"></zyh-input>
                        </van-cell>

                        <van-cell border="{{ false }}" class="label-sm">
                            <view slot="title">
                                <text class="{{form.employeesNumber?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.employees[language]}}</text>
                            </view>
                            <zyh-picker list="{{employeesNum}}" range-key="name" placeholder="{{[international.select_employees[language]]}}" data-type="employeesNumber" bind:change="getValue"></zyh-picker>
                        </van-cell>


                        <van-cell border="{{ false }}" class="label-sm">
                            <view slot="title">
                                <text class="{{form.tenantId?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.building[language]}}</text>
                            </view>
                            <zyh-picker list="{{companyList}}" range-key="name" placeholder="{{[international.enter_premises[language]]}}" data-type="tenantId" bind:change="getValue"></zyh-picker>
                        </van-cell>


                        <!-- <van-cell title="{{international.actual[language]}}" border="{{ false }}" class="label-sm">
                            <zyh-input value="{{form.actualName}}" placeholder="{{[international.enter_actual[language]]}}" data-type="actualName" bindchange="getValue"></zyh-input>
                        </van-cell> -->
                        <!-- <van-cell title="{{international.person_phone[language]}}" border="{{ false }}" class="label-sm">
                            <zyh-input value="{{form.actualPhone}}" placeholder="{{[international.enter_phone[language]]}}" data-type="actualPhone" bindchange="getValue"></zyh-input>
                        </van-cell> -->
                        <!-- <van-cell title="{{international.employees[language]}}" border="{{ false }}" class="label-sm">
                            <zyh-picker list="{{employeesNum}}" range-key="name" placeholder="{{[international.select_employees[language]]}}" data-type="employeesNumber" bind:change="getValue"></zyh-picker>
                        </van-cell> -->
                        <!-- <van-cell title="{{international.building[language]}}" border="{{ false }}" class="label-sm">
                            <zyh-picker list="{{companyList}}" range-key="name" placeholder="{{[international.enter_premises[language]]}}" data-type="tenantId" bind:change="getValue"></zyh-picker>
                        </van-cell> -->


                        <!-- <van-cell title="{{international.floor_building[language]}}" border="{{ false }}" class="label-sm" bindtap="showBuilding">
                            <text class="{{leaseBuilding?'text-green':'text-red'}}">*</text>
                            <text>{{leaseBuilding?leaseBuilding:international.select_building[language]}} </text>
                            <van-icon class="icon" name="arrow" />
                        </van-cell>
                        <zjy-radio-checkbox list="{{storiedBuildingList}}" range-key="name" data-type="leaseBuilding" bind:change="getValue" type="radio" chooseBuilding="{{chooseBuilding}}" /> -->
                        <!-- <van-cell title="{{international.Lease_floor[language]}}" border="{{ false }}" class="label-sm" bindtap="showFloor">
                            <text class="{{leaseFloor?'text-green':'text-red'}}">*</text>
                            <text>{{leaseFloor?leaseFloor:international.select_floor[language]}}</text>
                            <van-icon class="icon" name="arrow" />
                        </van-cell>
                        <zjy-radio-checkbox list="{{floorList}}" range-key="name" data-type="floor" bind:change="getValue" type="radio" chooseBuilding="{{chooseFloor}}" /> -->
                        <!-- <van-cell title="{{international.Room_Number[language]}}" border="{{ false }}" class="label-sm" bindtap="showRoomNum">
                            <text class="{{roomNumber?'text-green':'text-red'}}">*</text>
                            <text>{{roomNumber?roomNumber:international.select_Room_Number[language]}}</text>
                            <van-icon class="icon" name="arrow" />
                        </van-cell> -->

                        <!-- 楼幢 -->
                        <van-cell border="{{ false }}" class="label-sm" bindtap="showBuilding">
                            <view slot="title">
                                <text class="{{form.leaseBuilding?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.floor_building[language]}}</text>
                            </view>
                            <text>{{form.leaseBuilding?form.leaseBuilding:international.select_building[language]}} </text>
                            <van-icon class="icon" name="arrow" />
                        </van-cell>
                        <zjy-radio-checkbox list="{{storiedBuildingList}}" range-key="name" data-type="leaseBuilding" bind:change="getValue" type="radio" chooseBuilding="{{chooseBuilding}}" />
                        <!-- 楼层 -->
                        <van-cell border="{{ false }}" class="label-sm" bindtap="showFloor">
                            <view slot="title">
                                <text class="{{form.leaseFloor?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.Lease_floor[language]}}</text>
                            </view>
                            <text>{{form.leaseFloor?form.leaseFloor:international.select_floor[language]}}</text>
                            <van-icon class="icon" name="arrow" />
                        </van-cell>
                        <zjy-radio-checkbox list="{{floorList}}" range-key="name" data-type="floor" bind:change="getValue" type="radio" chooseBuilding="{{chooseFloor}}" />

                        <!-- 房间号 -->
                        <van-cell border="{{ false }}" class="label-sm" bindtap="showRoomNum">
                            <view slot="title">
                                <text class="{{form.roomNumber?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.Room_Number[language]}}</text>
                            </view>
                            <text>{{form.roomNumber?form.roomNumber:international.select_Room_Number[language]}}</text>
                            <van-icon class="icon" name="arrow" />
                        </van-cell>
                        <zjy-radio-checkbox list="{{roomNumList}}" range-key="name" data-type="roomNumber" bind:change="getValue" chooseBuilding="{{chooseRoomNum}}" />


                        <van-cell title="{{international.Lease_valid_until[language]}}" border="{{ false }}" class="label-sm">
                            <zyh-picker type="date-time" delay="{{365*24*60*60*1000}}" placeholder="{{['请选择日期','请选择时间']}}" data-type="leaseTerm" bind:change="getValue"></zyh-picker>
                        </van-cell>
                    </view>
                </scroll-view>
                <!-- 按钮区 -->
                <view class="btn-area-one">
                    <button wx:if="{{false}}">认证</button>
                    <button bindtap="next_step" class="{{stepsList[0].complete?'bg-blue':'bg-grey'}}" disabled="{{!stepsList[0].complete}}">{{international.next_step[language]}}</button>
                </view>
            </swiper-item>
            <swiper-item>
                <scroll-view class="scroll-area" scroll-y="true">
                    <!-- 营业执照信息 -->
                    <view class="card card-cont">
                        <view class="title">{{international.Business_License_Information[language]}}
                            <zyh-ocr-license wx:if="{{!showOCR}}" bind:enterpriseOCR="getEnterpriseOCR" type="button"></zyh-ocr-license>
                        </view>
                        <zyh-ocr-license wx:if="{{showOCR}}" bind:enterpriseOCR="getEnterpriseOCR"></zyh-ocr-license>
                        <block wx:if="{{!showOCR}}">
                            <van-cell title="{{international.Enterprise_name[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.enterpriseFullName}}" placeholder="请输入企业全称" data-type="enterpriseFullName" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.Company_code[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.companyCode}}" placeholder="请输入公司代码" data-type="companyCode" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.company_person[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.legalPerson}}" placeholder="请输入公司法人" data-type="legalPerson" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.company_type[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.companyType}}" placeholder="请输入公司类型" data-type="companyType" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.registered_address[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.registrationAddress}}" placeholder="请输入注册地址" data-type="registrationAddress" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.Main_scope[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input type="textarea" value="{{form.mainBusinessScope}}" placeholder="请输入主营范围" data-type="mainBusinessScope" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.registered_capital[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.registeredCapital}}" placeholder="请输入注册资金" data-type="registeredCapital" bindchange="getValue"></zyh-input>
                            </van-cell>
                            <van-cell title="{{international.Registration_time[language]}}" border="{{ false }}" class="label-sm">
                                <zyh-input value="{{form.registrationTime}}" placeholder="请输入注册时间" data-type="registrationTime" bindchange="getValue"></zyh-input>
                            </van-cell>
                        </block>
                    </view>
                </scroll-view>
                <!-- 按钮区 -->
                <view class="btn-area-two">
                    <button class="bg-grey" bindtap="previousStep">{{international.previous_step[language]}}</button>
                    <button class="bg-blue" bindtap="next_step" class="{{stepsList[1].complete?'bg-blue':'bg-grey'}}" disabled="{{!stepsList[1].complete}}">{{international.next_step[language]}}</button>
                </view>
            </swiper-item>
            <swiper-item>
                <scroll-view class="scroll-area" scroll-y="true">
                    <!-- 登录信息 -->
                    <view class="card card-cont">
                        <view class="title">{{international.login_information[language]}}</view>

                        <van-cell border="{{ false }}" class="label-sm">
                            <view slot="title">
                                <text class="{{form.username?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.Login_account[language]}}</text>
                            </view>
                            <zyh-input value="{{form.username}}" placeholder="{{international.Please[language]}}" data-type="username" bindchange="getValue"></zyh-input>
                        </van-cell>
                        <van-cell border="{{ false }}" class="label-sm">
                            <view slot="title">
                                <text class="{{form.password?'text-green':'text-red'}}">*</text>
                                <text class="van-cell-text">{{international.password[language]}}</text>
                            </view>
                            <zyh-input value="{{form.password}}" placeholder="{{international.enter_password[language]}}" data-type="password" bindchange="getValue"></zyh-input>
                        </van-cell>
                    </view>
                    <!-- 提示 -->
                    <view class="tip-area">
                        <text>*{{international.information[language]}}</text>
                    </view>
                    <button class="sub-title bg-blue" bindtap="download">点击下载查看后台操作说明</button>
                </scroll-view>

                <!-- 按钮区 -->
                <view class="btn-area-two">
                    <button class="bg-grey" bindtap="previousStep">上一步</button>
                    <button class="bg-blue" bindtap="submit" class="{{stepsList[2].complete?'bg-blue':'bg-grey'}}" disabled="{{!stepsList[2].complete}}">{{international.Submit_audit[language]}}</button>
                </view>
            </swiper-item>
        </swiper>
    </view>
</view>