ticketGet.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!--pages/ticketQuery/ticketQuery.wxml-->
  2. <view class="tabBar shadow">
  3. <view bindtap="switchTab" data-index="{{0}}" class="tabItem {{tabIndex===0?'active':''}}">发票申领
  4. </view>
  5. <view bindtap="switchTab" data-index="{{1}}" class="tabItem {{tabIndex===1?'active':''}}">发票分发
  6. </view>
  7. </view>
  8. <block wx:if="{{tabIndex===0}}">
  9. <view class="formTitle" style="margin-top: 88rpx">申领发票信息</view>
  10. <view class="formArea noMargin">
  11. <picker bindchange="setStart" mode="date" class="lineGroup">
  12. <view class="lineInner">
  13. <view class="label">开始时间</view>
  14. <view class="content">
  15. <view class="diyInput hasArrow">
  16. <text wx:if="{{invoiceDateBegin!==''}}">{{invoiceDateBegin}}</text>
  17. <text wx:if="{{invoiceDateBegin===''}}" class="placeholderStyle">请选择</text>
  18. </view>
  19. <i class="iconfont icon-arrowr arrow" />
  20. </view>
  21. </view>
  22. </picker>
  23. <picker bindchange="setEnd" mode="date" class="lineGroup">
  24. <view class="lineInner">
  25. <view class="label">结束时间</view>
  26. <view class="content">
  27. <view class="diyInput hasArrow">
  28. <text wx:if="{{invoiceDateEnd!==''}}">{{invoiceDateEnd}}</text>
  29. <text wx:if="{{invoiceDateEnd===''}}" class="placeholderStyle">请选择</text>
  30. </view>
  31. <i class="iconfont icon-arrowr arrow" />
  32. </view>
  33. </view>
  34. </picker>
  35. <picker
  36. bindchange="setInvoiceType"
  37. value="{{invoiceTypeIndex}}"
  38. range="{{invoiceType}}"
  39. class="lineGroup"
  40. >
  41. <view class="lineInner">
  42. <view class="label">发票类型</view>
  43. <view class="content">
  44. <view class="diyInput hasArrow">
  45. <text wx:if="{{invoiceTypeIndex!==''}}">{{invoiceType[invoiceTypeIndex]}}</text>
  46. <text wx:if="{{invoiceTypeIndex===''}}" class="placeholderStyle">请选择</text>
  47. </view>
  48. <i class="iconfont icon-arrowr arrow" />
  49. </view>
  50. </view>
  51. </picker>
  52. <picker
  53. bindchange="setInvoiceHandType"
  54. value="{{handleStatusTypeIndex}}"
  55. range="{{handleStatusType}}"
  56. class="lineGroup"
  57. >
  58. <view class="lineInner">
  59. <view class="label">申领状态</view>
  60. <view class="content">
  61. <view class="diyInput hasArrow">
  62. <text wx:if="{{handleStatusTypeIndex!==''}}">{{handleStatusType[handleStatusTypeIndex]}}</text>
  63. <text wx:if="{{handleStatusTypeIndex===''}}" class="placeholderStyle">请选择</text>
  64. </view>
  65. <i class="iconfont icon-arrowr arrow" />
  66. </view>
  67. </view>
  68. </picker>
  69. </view>
  70. <view class="topPlaceholder" />
  71. <view class="list">
  72. <view
  73. bindtap="toDetail"
  74. data-index="{{index}}"
  75. data-hongchong="{{item.hongchongFlag}}"
  76. wx:for="{{list}}"
  77. wx:key="recordId"
  78. class="item shadow"
  79. >
  80. <view class="name">发票类别:{{item.invoiceCateName}}</view>
  81. <view class="line">申领份数:{{item.applyNum}}</view>
  82. <view class="line">申领时间:{{item.applyDate}}</view>
  83. <view class="line">处理时间:{{item.handleDate}}</view>
  84. <view wx:if="{{item.handleStatus==='0'}}" class="line">处理状态:申领中</view>
  85. <view wx:if="{{item.handleStatus==='1'}}" class="line">处理状态:成功</view>
  86. <view wx:if="{{item.handleStatus==='2'}}" class="line">处理状态:失败</view>
  87. <view class="line">处理信息:{{item.handleInformation}}</view>
  88. <view class="btnGroup">
  89. <button
  90. wx:if="{{item.handleStatus === '1' && item.resultEnterFlag === 'N'}}"
  91. catchtap="refresh"
  92. data-invoiceno="{{item.invoiceReqFlowNo}}"
  93. data-index="{{index}}"
  94. class="btn ticket"
  95. >申领确认
  96. </button>
  97. <button
  98. wx:if="{{item.handleStatus === '0'}}"
  99. catchtap="showRetry"
  100. data-invoiceno="{{item.invoiceReqFlowNo}}"
  101. data-index="{{index}}"
  102. class="btn ticket"
  103. >申领撤销
  104. </button>
  105. </view>
  106. </view>
  107. </view>
  108. <loadmore loadmore="{{pages>0&&finish===false}}" finish="{{pages>0&&finish===true}}" nodata="{{pages===0}}" />
  109. <view class="paddingBottom" />
  110. <ipx-placeholder/>
  111. <customer-bottom>
  112. <view class="btnGroup shadow">
  113. <button bindtap="applyInvoice" class="btn get">申领</button>
  114. </view>
  115. </customer-bottom>
  116. </block>
  117. <block wx:if="{{tabIndex===1}}">
  118. <view class="formArea noMargin" style="margin-top: 88rpx">
  119. <picker
  120. bindchange="setDistributeInvoiceType"
  121. value="{{distributeInvoiceTypeIndex}}"
  122. range="{{invoiceType}}"
  123. class="lineGroup"
  124. >
  125. <view class="lineInner">
  126. <view class="label">发票类型</view>
  127. <view class="content">
  128. <view class="diyInput hasArrow">
  129. <text wx:if="{{distributeInvoiceTypeIndex!==''}}">{{invoiceType[distributeInvoiceTypeIndex]}}</text>
  130. <text wx:if="{{distributeInvoiceTypeIndex===''}}" class="placeholderStyle">请选择</text>
  131. </view>
  132. <i class="iconfont icon-arrowr arrow" />
  133. </view>
  134. </view>
  135. </picker>
  136. <picker
  137. bindchange="setDistribute"
  138. value="{{distributeIndex}}"
  139. range="{{distribute}}"
  140. class="lineGroup"
  141. >
  142. <view class="lineInner">
  143. <view class="label">分发状态</view>
  144. <view class="content">
  145. <view class="diyInput hasArrow">
  146. <text wx:if="{{distributeIndex!==''}}">{{distribute[distributeIndex]}}</text>
  147. <text wx:if="{{distributeIndex===''}}" class="placeholderStyle">请选择</text>
  148. </view>
  149. <i class="iconfont icon-arrowr arrow" />
  150. </view>
  151. </view>
  152. </picker>
  153. </view>
  154. <view class="list" style="margin-top: 10rpx">
  155. <view class="list">
  156. <view
  157. bindtap="toDetail"
  158. data-index="{{index}}"
  159. wx:for="{{distributeList}}"
  160. wx:key="recordId"
  161. class="item shadow"
  162. >
  163. <view class="name">发票类别:{{item.invoiceCateName}}</view>
  164. <view class="line">发票类别:{{item.invoiceCateCode}}</view>
  165. <view class="line">发票代码:{{item.invoiceCode}}</view>
  166. <view class="line">起始号码:{{item.invoiceBeginNo}}</view>
  167. <view class="line">终止号码:{{item.invoiceEndNo}}</view>
  168. <view class="line">份数:{{item.surplusNum}}</view>
  169. <view class="line">领购日期:{{item.invoicePurchaseDate}}</view>
  170. <view class="btnGroup">
  171. <button catchtap="setDistribute" class="btn ticket">发票分发
  172. </button>
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. <loadmore loadmore="{{pagesTotal>0&&distributeFinish===false}}" finish="{{pagesTotal>0&&distributeFinish===true}}" nodata="{{pagesTotal===0}}" />
  178. </block>