You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
4.9 KiB

  1. <image class='img' src='./../../static/images/bg.png' mode='widthFix'></image>
  2. <view class='head'>
  3. <image src='./../../static/images/reviveimg.png' mode='widthFix'></image>
  4. <view class='time'>
  5. <view>
  6. <text>开始日期</text>
  7. <picker mode="date" value="{{date}}" end="{{date2}}" bindchange="bindDateChange">
  8. <view class="picker">
  9. {{date}}
  10. </view>
  11. </picker>
  12. </view>
  13. <view>
  14. <text></text>
  15. <text>至</text>
  16. </view>
  17. <view>
  18. <text>结束日期</text>
  19. <picker mode="date" value="{{date2}}" start="{{date}}" end="2050-01-01" bindchange="bindDateChange2">
  20. <view class="picker">
  21. {{date2}}
  22. </view>
  23. </picker>
  24. </view>
  25. </view>
  26. </view>
  27. <button class='btn' hover-class='active' bindtap='search'>查询</button>
  28. <view class='acounts' wx:if="{{ type != 'pos' }}">
  29. <view class=''>
  30. <text class='title'>{{type == 'transaction' ? '核销总计(元)' : '收款总计(元)'}}</text>
  31. <text class='total'>{{amount}}</text>
  32. <text class='title'>{{total}} 笔</text>
  33. </view>
  34. </view>
  35. <view class="contents">
  36. <block wx:if="{{ type == 'transaction' }}">
  37. <view class='transaction_msg' wx:for='{{list}}' wx:key="index">
  38. <view wx:if='{{item.couponOrderStatus==0}}'>
  39. <text>券状态</text>
  40. <text style='color:#FFAE00!important'>未核销</text>
  41. </view>
  42. <view wx:if='{{item.couponOrderStatus==1}}'>
  43. <text>券状态</text>
  44. <text style='color:#52A0FD!important'>已核销</text>
  45. </view>
  46. <view wx:if='{{item.couponOrderStatus==2}}'>
  47. <text>券状态</text>
  48. <text style='color:#FF5700!important'>已过期</text>
  49. </view>
  50. <view wx:if='{{item.couponOrderStatus==3}}'>
  51. <text>券状态</text>
  52. <text style='color:#FF5700!important'>已退款</text>
  53. </view>
  54. <view>
  55. <text>券名称</text>
  56. <text>{{item.title || "无"}}</text>
  57. </view>
  58. <view>
  59. <text>券码</text>
  60. <text>{{item.id}}</text>
  61. </view>
  62. <view wx:if='{{flag}}'>
  63. <text>{{timeName}}</text>
  64. <text>{{item.createDate}}</text>
  65. </view>
  66. <view wx:if='{{item.couponOrderStatus==1}}'>
  67. <text>核销时间</text>
  68. <text>{{item.updateDate}}</text>
  69. </view>
  70. <view wx:if='{{item.couponOrderStatus==3}}'>
  71. <text>退款时间</text>
  72. <text>{{item.updateDate}}</text>
  73. </view>
  74. <view>
  75. <text>购买用户</text>
  76. <text>{{item.cuserPhone}}</text>
  77. </view>
  78. <view wx:if='{{!flag}}'>
  79. <text>核销员</text>
  80. <text>{{item.buserName}}</text>
  81. </view>
  82. <view>
  83. <text wx:if="{{item.type != 8}}">券面额</text>
  84. <text wx:if="{{item.type == 8}}">原价</text>
  85. <text>{{item.price/100}}元</text>
  86. </view>
  87. <view>
  88. <text wx:if="{{item.type != 8}}">券售价</text>
  89. <text wx:if="{{item.type == 8}}">底价</text>
  90. <text>{{item.couponPrice/100}}元</text>
  91. </view>
  92. <view wx:if='{{item.couponOrderStatus==0 && item.salePrice > 0}}'>
  93. <button id='refund' bindtap='refund' data-id='{{item.id}}'>退款</button>
  94. </view>
  95. </view>
  96. </block>
  97. <block wx:if="{{ type == 'record' }}">
  98. <view class='transaction_msg' wx:for='{{list}}' wx:key="index" wx:if="{{list.length!=0}}">
  99. <view>
  100. <text>订单编号</text>
  101. <text>{{item.id}}</text>
  102. </view>
  103. <view>
  104. <text>订单金额</text>
  105. <text>{{item.payment / 100+'元'}}</text>
  106. </view>
  107. <view>
  108. <text>交易时间</text>
  109. <text>{{item.createDate}}</text>
  110. </view>
  111. <view>
  112. <text>支付方式</text>
  113. <text>{{item.type}}</text>
  114. </view>
  115. <view>
  116. <text>支付状态</text>
  117. <text>{{item.orderStatus}}</text>
  118. </view>
  119. <view>
  120. <text>付款人</text>
  121. <text wx:if="{{item.cuserName}}">{{item.cuserName}}</text>
  122. <text wx:if="{{!item.cuserName}}">{{item.nickName}}</text>
  123. </view>
  124. <view>
  125. <text>付款人手机号</text>
  126. <text>{{item.cUserPhone}}</text>
  127. </view>
  128. <view>
  129. <text>收款人</text>
  130. <text>{{item.bUserName}}</text>
  131. </view>
  132. <view>
  133. <text>收款人手机号</text>
  134. <text>{{item.bUserPhone}}</text>
  135. </view>
  136. </view>
  137. </block>
  138. <block wx:if="{{ type == 'pos' }}">
  139. <view class='transaction_msg' wx:for='{{list}}' wx:key="index" wx:if="{{list.length!=0}}">
  140. <view>
  141. <text>交易金额</text>
  142. <text>{{item.payAmount}}</text>
  143. </view>
  144. <view>
  145. <text>退款金额</text>
  146. <text>{{item.refundAmount}}</text>
  147. </view>
  148. <view>
  149. <text>实收金额</text>
  150. <text>{{item.amount}}</text>
  151. </view>
  152. </view>
  153. </block>
  154. </view>
  155. <view class='nocontent' wx:if="{{showNocontent}}">
  156. 暂无数据
  157. </view>