statisticalReport.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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>813013.00</text>元,实收金额 <text>572793.00</text>元,现金收入
  21. <text>318.00</text>元,非现金收<text>572475.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: '0.00',
  74. h5Money: '0.00',
  75. pdaMoney: '0.00',
  76. cashMoney: '0.00'
  77. },
  78. {
  79. workNo: '00008',
  80. name: '运维人员',
  81. roadName: '书香府邸,文明路,桂花路',
  82. shouldMoney: '0.00',
  83. realMoney: '0.00',
  84. arrearsMoney: '0.00',
  85. h5Money: '0.00',
  86. pdaMoney: '0.00',
  87. cashMoney: '0.00'
  88. },
  89. {
  90. workNo: '00012',
  91. name: '园丁路巡查员',
  92. roadName: '园丁路',
  93. shouldMoney: '0.00',
  94. realMoney: '0.00',
  95. arrearsMoney: '0.00',
  96. h5Money: '0.00',
  97. pdaMoney: '0.00',
  98. cashMoney: '0.00'
  99. },
  100. {
  101. workNo: '00013',
  102. name: '物资路巡查员',
  103. roadName: '物资路',
  104. shouldMoney: '0.00',
  105. realMoney: '0.00',
  106. arrearsMoney: '0.00',
  107. h5Money: '0.00',
  108. pdaMoney: '0.00',
  109. cashMoney: '0.00'
  110. },
  111. {
  112. workNo: '00014',
  113. name: '丰林路巡查员',
  114. roadName: '丰林路',
  115. shouldMoney: '0.00',
  116. realMoney: '0.00',
  117. arrearsMoney: '0.00',
  118. h5Money: '0.00',
  119. pdaMoney: '0.00',
  120. cashMoney: '0.00'
  121. },
  122. {
  123. workNo: '00015',
  124. name: '可处路巡查员',
  125. roadName: '可处路二段',
  126. shouldMoney: '3.00',
  127. realMoney: '0.00',
  128. arrearsMoney: '0.00',
  129. h5Money: '0.00',
  130. pdaMoney: '0.00',
  131. cashMoney: '3.00'
  132. }
  133. ]
  134. }
  135. }
  136. },
  137. methods: {
  138. startDateConfirm(val) {
  139. console.log(val)
  140. this.form.startDate = val[0]
  141. this.startDateShow = false
  142. },
  143. endDateConfirm(val) {
  144. console.log(val)
  145. this.form.endDate = val[0]
  146. this.endDateShow = false
  147. }
  148. }
  149. }
  150. </script>
  151. <style lang="scss" scoped>
  152. .report {
  153. padding: 28rpx;
  154. font-family: PingFangSC-regular;
  155. &-header {
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. &-left {
  160. border-left: solid 4px #EC0D0D;
  161. padding-left: 10rpx;
  162. color: #101010;
  163. font-size: 30rpx;
  164. }
  165. &-right {
  166. display: flex;
  167. align-items: center;
  168. font-size: 26rpx;
  169. .int {
  170. width: 210rpx;
  171. }
  172. }
  173. }
  174. &-total {
  175. font-size: 28rpx;
  176. color: #101010;
  177. margin: 40rpx 0;
  178. line-height: 40rpx;
  179. text {
  180. color: #FFB253;
  181. }
  182. }
  183. }
  184. </style>