statisticalReport.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <view class="report">
  3. <view class="report-header">
  4. <view class="report-header-left">
  5. 收费员业绩统计
  6. </view>
  7. <view class="report-header-right">
  8. <view class="int">
  9. <u--input placeholder="开始日期" border="surround" v-model="form.startDate" :readonly="true" @focus="startDateShow = true">
  10. </u--input>
  11. <u-calendar :show="startDateShow" @confirm="startDateConfirm" @close="startDateShow = false"></u-calendar>
  12. </view>至
  13. <view class="int">
  14. <u--input placeholder="结束日期" border="surround" v-model="form.endDate" :readonly="true" @focus="endDateShow = true"></u--input>
  15. <u-calendar :show="endDateShow" @confirm="endDateConfirm" @close="endDateShow = false"></u-calendar>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="report-total">
  20. <view>应收金额 <text>447437.00</text>元,实收金额 <text>301719.00</text>元,现金收入
  21. <text>285.00</text>元,非现金收<text>301434.00</text>元
  22. </view>
  23. </view>
  24. <view class="report-table">
  25. <t-table>
  26. <t-tr style="width: 1270rpx; background-color: #e6e6e6;">
  27. <t-th v-for="(item, index) in table.header" :key="index" style="width: 140rpx;">{{ item }}</t-th>
  28. </t-tr>
  29. <t-tr style="width: 1270rpx;background-color: #fff;" v-for="(item, index) in table.list" :key="index"
  30. :class="{'last-child': index === table.list.length - 1}">
  31. <t-td style="width: 140rpx;">{{ item.workNo }}</t-td>
  32. <t-td style="width: 140rpx;">{{ item.name }}</t-td>
  33. <t-td style="width: 140rpx;">{{ item.roadName }}</t-td>
  34. <t-td style="width: 140rpx;">{{ item.shouldMoney }}</t-td>
  35. <t-td style="width: 140rpx;">{{ item.realMoney }}</t-td>
  36. <t-td style="width: 140rpx;">{{ item.arrearsMoney }}</t-td>
  37. <t-td style="width: 140rpx;">{{ item.h5Money }}</t-td>
  38. <t-td style="width: 140rpx;">{{ item.pdaMoney }}</t-td>
  39. <t-td style="width: 140rpx;">{{ item.cashMoney }}</t-td>
  40. </t-tr>
  41. </t-table>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import tTable from '@/components/t-table/t-table.vue';
  47. import tTh from '@/components/t-table/t-th.vue';
  48. import tTr from '@/components/t-table/t-tr.vue';
  49. import tTd from '@/components/t-table/t-td.vue';
  50. export default {
  51. components: {
  52. tTable,
  53. tTh,
  54. tTr,
  55. tTd
  56. },
  57. data() {
  58. return {
  59. form: {
  60. startDate: '',
  61. endDate: ''
  62. },
  63. startDateShow: false,
  64. endDateShow: false,
  65. table: {
  66. header: ['工号', '姓名', '所属路段', '应收金额(元)', '实收金额(元)', '欠费金额(元)', '移动端支付(元)', 'PDA扫码收入(元)', '现金收入(元)'],
  67. list: [{
  68. workNo: '00001',
  69. name: '张政林',
  70. roadName: '丰林路',
  71. shouldMoney: '0.00',
  72. realMoney: '0.00',
  73. arrearsMoney: '2.00',
  74. h5Money: '3.00',
  75. pdaMoney: '6.00',
  76. cashMoney: '0.00'
  77. },
  78. {
  79. workNo: '00008',
  80. name: '运维人员',
  81. roadName: '玉兔山路',
  82. shouldMoney: '0.00',
  83. realMoney: '0.00',
  84. arrearsMoney: '2.00',
  85. h5Money: '3.00',
  86. pdaMoney: '6.00',
  87. cashMoney: '0.00'
  88. },
  89. {
  90. workNo: '00012',
  91. name: '陈静',
  92. roadName: '教育路',
  93. shouldMoney: '0.00',
  94. realMoney: '0.00',
  95. arrearsMoney: '2.00',
  96. h5Money: '3.00',
  97. pdaMoney: '6.00',
  98. cashMoney: '0.00'
  99. },
  100. {
  101. workNo: '00013',
  102. name: '孟大顺',
  103. roadName: '党固路三段',
  104. shouldMoney: '0.00',
  105. realMoney: '0.00',
  106. arrearsMoney: '2.00',
  107. h5Money: '3.00',
  108. pdaMoney: '6.00',
  109. cashMoney: '0.00'
  110. },
  111. {
  112. workNo: '00014',
  113. name: '田志英',
  114. roadName: '本杰路',
  115. shouldMoney: '0.00',
  116. realMoney: '0.00',
  117. arrearsMoney: '2.00',
  118. h5Money: '3.00',
  119. pdaMoney: '6.00',
  120. cashMoney: '0.00'
  121. }
  122. ]
  123. }
  124. }
  125. },
  126. methods: {
  127. startDateConfirm(val) {
  128. console.log(val)
  129. this.form.startDate = val[0]
  130. this.startDateShow = false
  131. },
  132. endDateConfirm(val) {
  133. console.log(val)
  134. this.form.endDate = val[0]
  135. this.endDateShow = false
  136. }
  137. }
  138. }
  139. </script>
  140. <style lang="scss" scoped>
  141. .report {
  142. padding: 28rpx;
  143. font-family: PingFangSC-regular;
  144. &-header {
  145. display: flex;
  146. justify-content: space-between;
  147. align-items: center;
  148. &-left {
  149. border-left: solid 4px #EC0D0D;
  150. padding-left: 10rpx;
  151. color: #101010;
  152. font-size: 30rpx;
  153. }
  154. &-right {
  155. display: flex;
  156. align-items: center;
  157. font-size: 26rpx;
  158. .int {
  159. width: 210rpx;
  160. }
  161. }
  162. }
  163. &-total {
  164. font-size: 28rpx;
  165. color: #101010;
  166. margin: 40rpx 0;
  167. line-height: 40rpx;
  168. text {
  169. color: #FFB253;
  170. }
  171. }
  172. }
  173. </style>