1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!--pages/invoice/invoice.wxml-->
- <view class="container invoice">
- <view class="top-opt">
- <view class="title">
- <text class="{{tabIndex==0 ? 'active' : ''}} item" bindtap="change" data-current="0">开发票</text>
- <text class="{{tabIndex==1 ? 'active' : ''}} item " bindtap="change" data-current="1">我的发票</text>
- </view>
- <view class="date">
- <picker class="left" bindchange="bindPickerChange" value="{{index}}" range="{{years}}">
- <view class="picker">
- <text class="label">{{years[index]}}</text>
- <image class="icon-up" src="/static/img/icon_up.png"></image>
- </view>
- </picker>
- <view class="right" wx:if="{{tabIndex==1}}">
- <image class="icon-doubt" src="/static/img/icon_doubt.png"></image>
- <text data-url="tips" bindtap="toOtherPages">没收到发票</text>
- </view>
- </view>
- </view>
- <view class="content">
- <view wx:if="{{tabIndex==0}}">
- <view class="open-invoce" wx:for="{{InvoiceRecordInfo}}" wx:key="index">
- <view class="top">
- <view>
- <text class="bold">{{item.fee}}</text>元</view>
- <view>{{item.payWayName}}</view>
- </view>
- <view class="bottom">
- <text>{{item.tranttime}}</text>
- <view wx:if="{{item.invoiceState === 0}}" class="opening">开票中</view>
- <view wx:if="{{item.invoiceState === ''}}" class="open" data-fee="{{item.fee}}" data-payseriesno="{{item.payseriesno}}" bindtap="toInvoice">开票</view>
- <view wx:if="{{item.invoiceState === 1}}" class="alreadyopen">已开票</view>
- </view>
- </view>
- <page-tips icon="img_nodata" content="暂无相关信息" wx:if="{{InvoiceRecordInfo && !InvoiceRecordInfo.length}}"></page-tips>
- </view>
- <view wx:if="{{tabIndex==1}}">
- <view class="my-invoce" wx:for="{{InvoiceInfo}}" wx:key="index">
- <view data-invoiceId="{{item.id}}" data-invoiceState="{{item.invoiceState}}" bindtap="toDetail">
- <view class="top">
- <view class="left">
- <view><text class="bold">{{item.totalPrintAmount }}</text>元</view>
- <image class="tag" src="/static/img/tag_electronicinvoice.png"></image>
- </view>
- <image class="icon-left" src="/static/img/icon_left.png"></image>
- </view>
- <view class="bottom">
- <text>{{item.printDate}}</text>
- <view class="view" data-imgUrl="{{item.imgUrl}}" catchtap="previewImage" wx:if="{{item.invoiceState==1}}">发票预览</view>
- <view class="expired" wx:if="{{item.invoiceState==3}}">已失效</view>
- </view>
- </view>
- </view>
- <page-tips icon="img_nodata" content="暂无相关信息" wx:if="{{InvoiceInfo && !InvoiceInfo.length}}"></page-tips>
- </view>
- </view>
- </view>
|