invoice.wxml 2.09 KB
<view class="contailer">
    <view class="invoice-type">
        <view>发票类型 电子发票
            <text class="iconfont icon-wenhao notice-btn" catchtap="showInvoceNotice"></text>
        </view>
        <view class="tip">
            <text class="iconfont icon-warn-fill"></text>
            <text>电子发票与纸质发票具备同等法律效力,可支持报销入账</text>
        </view>
    </view>
    <view class="invoice-title">发票信息</view>
    <view class="invoice-info">
        <view class="title-type">
            <text class="iconfont {{invoiceCompany ? 'icon-round' : 'icon-round-checked'}}" data-type="personal" catchtap="changeTitleType"></text>
            <text class="type-name" data-type="personal" catchtap="changeTitleType">个人</text>
            <text class="iconfont {{invoiceCompany ? 'icon-round-checked' : 'icon-round'}}" data-type="company" catchtap="changeTitleType"></text>
            <text class="type-name" data-type="company" catchtap="changeTitleType">单位</text>
        </view>
        <view class="info-item">
            <text class="left-cell">发票抬头</text>
            <input class="right-cell" placeholder="{{invoiceCompany ? '请输入单位名称' : '个人(可修改)'}}" data-name="reciver" maxlength="18" bindinput="changeTitle" value="{{invoiceTitle}}"/>
        </view>
        <view class="info-item {{invoiceCompany ? '' : 'hide'}}">
            <text class="left-cell">税号</text>
            <input class="right-cell" placeholder="请输入正确的纳税人识别号" data-name="reciver" maxlength="18" bindinput="changeTaxNumber" value="{{taxNumber}}"/>
        </view>
    </view>
    <view class="invoice-title">收票人信息</view>
    <view class="invoice-reciver">
        <text class="left-cell">手机号</text>
        <input class="right-cell" placeholder="可通过手机号在发票服务平台查询" data-name="reciver" maxlength="18"  type="number" bindinput="changeReceiver" value="{{receiver}}"/>
    </view>

    <button class="submit-btn {{canSubmit ? '' : 'disabled'}}" bindtap="invoiceSubmit">确认</button>
</view>