<!--pages/invoice/editInvoice/editInvoice.wxml-->
<wxs module="money" src="../../../filter/money.wxs"></wxs>
<view class="page-edit">
    <!-- <view class="contract-step">
        <view class="img-wrap">
            <image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/step-02.png"></image>
        </view>
    </view> -->
    <view class="planer-box">
        <view class="planer-header">
            <view class="name">服务费发票信息</view>
        </view>
        <view class="planer-content">
            <view class="form-box">
                <view hidden="{{isShowInvoiceBuyList}}">
                    <view  class="form-list">
                        <view class="form-label">增值税普通发票</view>
                        <input class="input-text" value="普通发票" disabled placeholder="请选择" type="text" />
                    </view>
                    <view bindtap="goSaleList" class="form-list">
                        <view class="form-label">销售方</view>
                        <input class="input-text"  value="上海珈旻文化艺术中心"  disabled placeholder="请选择" type="text" />
                        <view class="icon-arrow"><image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/icon-form-arrow.png"></image></view>
                    </view>
                </view>
                <view  class="form-list">
                    <view class="form-label">税号</view>
                    <input class="input-text" disabled value="91310120MA1HRT529W" placeholder="请输入" type="text" />
                </view>
                <view  class="form-list">
                    <view class="form-label">开票金额</view>
                    <input class="input-text" disabled data-number="pointNum" value="{{money.money(invoiceInfo.servicePrice)}}" placeholder="请输入" type="digit" />
                </view>
            </view>
        </view>
    </view>

    <view class="planer-box">
        <view class="planer-header">
            <view class="name">购买方信息</view>
        </view>
        <view class="planer-content">
            <view class="form-box">
                <picker  class="form-list" bindchange="bindPickerChangeKind" value="{{pickerInvoiceKindIndex}}" range-key="name" range="{{pickerInvoiceKind}}">
                    <view class="form-label">发票抬头</view>
                    <input class="input-text" value="{{pickerInvoiceKind[pickerInvoiceKindIndex].name}}" disabled placeholder="请选择" type="text" />
                    <view class="icon-arrow"><image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/icon-form-arrow.png"></image></view>
                </picker>
                <view  wx:if="{{pickerInvoiceKindIndex==0}}">
                    <view class="form-list">
                        <view class="form-label">姓名</view>
                        <input class="input-text" id="formData.buyName" bindchange="changeInput" value="{{formData.buyName}}" placeholder="姓名" type="text" />
                    </view>
                </view>
                <view wx:if="{{pickerInvoiceKindIndex==1}}">
                    <view class="form-list">
                        <view class="form-label">单位名称</view>
                        <input class="input-text"  id="formData.buyName" bindchange="changeInput" value="{{formData.buyName}}" placeholder="请输入" type="text" />
                    </view>
                    <view class="form-list">
                        <view class="form-label">纳税人识别号</view>
                        <input class="input-text"  id="formData.buyIdNumber" bindchange="changeInput" value="{{formData.buyIdNumber}}" placeholder="请输入" type="text" />
                    </view>
                </view>
            </view>
            <!-- <view  bindtap="changeAgreement" class="read-deal">
                <i class="icon"> <image class="img-full" src="{{agreement?'https://resource.artouchstone.com/miniapp/artist/images/icon-input-check-active.png':'https://resource.artouchstone.com/miniapp/artist/images/icon-input-check-default.png'}}"></image></i>
                我已阅读法律申明和免责申明</view> -->
            <view  bindtap="saveData" class="default-btn primary">确认</view>
        </view>
    </view>

    <!--<view  class="planer-box">
        <view class="planer-header">
            <view class="name">发票收货地址</view>
        </view>
        <view class="planer-content">
            <view bindtap="getAddress" class="form-box none">
                <view class="form-list">
                    <view class="form-label">姓名</view>
                    <input class="input-text" value="{{formData.receiverName}}"  disabled placeholder="请输入" type="text" />
                </view>
                <view class="form-list">
                    <view class="form-label">手机号</view>
                    <input class="input-text" value="{{formData.receiverPhoneNumber}}" disabled placeholder="请输入" type="text" />
                    <view class="icon-arrow"><image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/icon-form-arrow.png"></image></view>
                </view>
                <view class="form-list">
                    <view class="form-label">地址</view>
                    <input class="input-text" value="{{formData.receiverAddress}}" disabled placeholder="请输入" type="text" />
                </view>
            </view>
            <view  bindtap="changeAgreement" class="read-deal">
              <i class="icon"> <image class="img-full" src="{{agreement?'https://resource.artouchstone.com/miniapp/artist/images/icon-input-check-active.png':'https://resource.artouchstone.com/miniapp/artist/images/icon-input-check-default.png'}}"></image></i>
            我已阅读法律申明和免责申明</view>
            <view  bindtap="saveData" class="default-btn primary">确认</view>
        </view>
    </view>-->
</view>