選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

report.vue 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <template>
  2. <view class="content">
  3. <view class="time_wrap">
  4. <text>推送日期:</text>
  5. <view class="time">
  6. <uni-datetime-picker type="date" :clear-icon="false" v-model="state.dateTime" @change="change" />
  7. </view>
  8. <view class="button_wrap">
  9. <button size="mini" style="color: #ffffff;
  10. backgroundColor: rgb(118, 200, 77);
  11. borderColor: rgb(118, 200, 77);
  12. font-size: 26rpx;
  13. flex-shrink: 1;">搜索</button>
  14. <button size="mini" style="color: #ffffff;
  15. backgroundColor: rgb(232, 171, 79);
  16. borderColor: rgb(232, 171, 79);
  17. font-size: 26rpx;
  18. flex-shrink: 1;margin: 6rpx 0;">重置</button>
  19. <button size="mini" style="color: #ffffff;
  20. backgroundColor: rgb(232, 171, 79);
  21. borderColor: rgb(232, 171, 79);
  22. font-size: 26rpx;
  23. flex-shrink: 1;">导出</button>
  24. </view>
  25. </view>
  26. <view>
  27. <view class="uni-container">
  28. <uni-table ref="table" border stripe>
  29. <uni-tr v-for="(item,index) in state.list" :key="index">
  30. <uni-td align="center" width="300">{{item.name}}</uni-td>
  31. <uni-td align="center" width="300">{{item.value}}</uni-td>
  32. </uni-tr>
  33. </uni-table>
  34. </view>
  35. </view>
  36. <view class="uni-container" @click="goDetails()">
  37. <uni-table ref="table" border stripe type="selection" emptyText="暂无更多数据">
  38. <uni-tr>
  39. <uni-th align="center">序号</uni-th>
  40. <uni-th align="center">渠道名称</uni-th>
  41. <uni-th align="center">填写人</uni-th>
  42. <uni-th align="center">推送日期</uni-th>
  43. <uni-th align="center">通行费推送总额</uni-th>
  44. <uni-th align="center">小额推送总额</uni-th>
  45. <uni-th align="center">通行费回盘总额</uni-th>
  46. <uni-th align="center">小额回盘总额</uni-th>
  47. <uni-th align="center">通行费回款总额</uni-th>
  48. <uni-th align="center">小额回款总额</uni-th>
  49. <uni-th align="center">通行费推送回盘剩余</uni-th>
  50. <uni-th align="center">小额推送回盘剩余</uni-th>
  51. <uni-th align="center">通行费推送回教剩余</uni-th>
  52. <uni-th align="center">小额送回款剩余</uni-th>
  53. <uni-th align="center">剩余说明(结算组填写)</uni-th>
  54. <uni-th align="center">应付金额</uni-th>
  55. <uni-th align="center">操作</uni-th>
  56. </uni-tr>
  57. <uni-tr>
  58. <uni-td align="center">1</uni-td>
  59. <uni-td align="center">1</uni-td>
  60. <uni-td align="center">1</uni-td>
  61. <uni-td align="center">1</uni-td>
  62. <uni-td align="center">1</uni-td>
  63. <uni-td align="center">1</uni-td>
  64. <uni-td align="center">1</uni-td>
  65. <uni-td align="center">1</uni-td>
  66. <uni-td align="center">1</uni-td>
  67. <uni-td align="center">1</uni-td>
  68. <uni-td align="center">1</uni-td>
  69. <uni-td align="center">1</uni-td>
  70. <uni-td align="center">1</uni-td>
  71. <uni-td align="center">1</uni-td>
  72. <uni-td align="center">1</uni-td>
  73. <uni-td align="center">1</uni-td>
  74. <uni-td>
  75. <!-- <view class="uni-group">
  76. <button class="uni-button" size="mini" type="primary">修改</button>
  77. <button class="uni-button" size="mini" type="warn">删除</button>
  78. </view> -->
  79. </uni-td>
  80. </uni-tr>
  81. </uni-table>
  82. <view class="uni-pagination-box"><uni-pagination show-icon :page-size="state.pageSize"
  83. :current="state.pageCurrent" :total="state.total" @change="change" /></view>
  84. </view>
  85. </view>
  86. </template>
  87. <script setup lang="ts">
  88. import { reactive } from "vue";
  89. const state = reactive({
  90. dateTime: Date.now(), //日期
  91. list: [
  92. { "name": "清分通知书-应付金额", "value": 0 },
  93. { "name": "总条数", "value": 0 },
  94. { "name": "通行费推送总额", "value": 0 },
  95. { "name": "小额推送总额", "value": 0 },
  96. { "name": "通行费回盘总额", "value": 0 },
  97. { "name": "小额回盘总额", "value": 0 },
  98. { "name": "通行费回款总额", "value": 0 },
  99. { "name": "小额回款总额", "value": 0 },
  100. { "name": "通行费推送回盘剩余", "value": 0 },
  101. { "name": "小额推送回盘剩余", "value": 0 },
  102. { "name": "通行费推送回教剩余", "value": 0 },
  103. { "name": "小额送回款剩余", "value": 0 },
  104. ],
  105. // 每页数据量
  106. pageSize: 10,
  107. // 当前页
  108. pageCurrent: 1,
  109. // 数据总量
  110. total: 0,
  111. })
  112. const change = (e) => {
  113. console.log("e")
  114. }
  115. const goDetails = () => {
  116. uni.navigateTo({
  117. url: "/subpackage/after-sale/report/report-details"
  118. })
  119. }
  120. </script>
  121. <style scoped>
  122. .content {
  123. font-size: 32rpx;
  124. }
  125. .time_wrap {
  126. display: flex;
  127. align-items: center;
  128. margin: 20rpx 30rpx;
  129. }
  130. .time {
  131. width: 40%;
  132. margin-left: 30rpx;
  133. }
  134. /deep/.uni-date__x-input {
  135. font-size: 13px !important;
  136. height: 30px !important;
  137. line-height: 30px !important;
  138. }
  139. .mini-btn {
  140. color: #ffffff;
  141. backgroundColor: rgb(118, 200, 77);
  142. borderColor: rgb(118, 200, 77);
  143. font-size: 26rpx;
  144. flex-shrink: 1;
  145. }
  146. .mini-btn1 {
  147. color: #ffffff;
  148. backgroundColor: rgb(232, 171, 79);
  149. borderColor: rgb(232, 171, 79);
  150. font-size: 26rpx;
  151. flex-shrink: 1;
  152. }
  153. .table_wrap {
  154. font-size: 14rpx;
  155. margin: 40rpx auto;
  156. width: 700rpx;
  157. height: auto
  158. }
  159. /* table {
  160. border-collapse: collapse;
  161. border: 1rpx solid red;
  162. }
  163. tr {
  164. display: flex;
  165. }
  166. td {
  167. border: 1rpx solid red;
  168. } */
  169. .uni-container {
  170. margin: 50rpx 30rpx;
  171. }
  172. /deep/.uni-table-th,
  173. /deep/.uni-table-td {
  174. padding: 0 !important;
  175. font-size: 12px !important;
  176. }
  177. /deep/.uni-pagination-box {
  178. font-size: 30rpx;
  179. display: flex;
  180. justify-content: flex-end;
  181. }
  182. /deep/.uni-pagination__num-current-text.data-v-88b7506d {
  183. font-size: 30rpx;
  184. }
  185. .button_wrap {
  186. display: flex;
  187. flex-direction: column;
  188. margin-left: 50rpx;
  189. }
  190. </style>