billingRules.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <view>
  3. <u-navbar title="计费规则" title-color="#101010"></u-navbar>
  4. <view class="background">
  5. <!-- 单位 -->
  6. <view class="unit">
  7. <view class="title">
  8. 物业方:
  9. </view>
  10. <view class="value">
  11. {{companyInfo.fullName}}
  12. </view>
  13. </view>
  14. <view class="rules">
  15. <view class="tabs" v-if="false">
  16. <u-tabs font-size="24" :gutter="30" :item-width="100" :list="list" :is-scroll="false" :current="current"
  17. @change="change"></u-tabs>
  18. </view>
  19. <view class="content" v-for="(item,i) in queryList" :key="i">
  20. <view class="name-title">
  21. 承租方:
  22. </view>
  23. <view class="name">
  24. {{tenantInfo.fullName}}
  25. </view>
  26. <view class="address">
  27. 地址:{{item.address}}
  28. </view>
  29. <view class="address">
  30. 租赁期:{{thisparseUnixTime(item.contractStartTime)}} 至 {{thisparseUnixTime(item.contractEndTime)}}
  31. </view>
  32. <view class="contentRule1">
  33. <u-table>
  34. <u-th>
  35. <u-tr>
  36. <u-td>名称</u-td>
  37. <!-- -->
  38. <u-td>价格</u-td>
  39. <u-td>单位</u-td>
  40. </u-tr>
  41. </u-th>
  42. <template v-for="(it,j) in item.contractItemList" >
  43. <u-tr :key="j">
  44. <u-td>{{it.name}}</u-td>
  45. <!-- <u-td>{{it.paymentMethodN}}</u-td> -->
  46. <u-td>{{it.price}}</u-td>
  47. <u-td>元{{it.unit?'/'+it.unit:''}}</u-td>
  48. </u-tr>
  49. </template>
  50. </u-table>
  51. </view>
  52. </view>
  53. <!-- 备注 -->
  54. <view class="remark" v-if="false">
  55. <view class="title">
  56. 备注说明:
  57. </view>
  58. <view class="value">
  59. <view class="item">
  60. 1.计费规则仅展示租赁合同中的计算方式,最终扣费金额以账单中的实际扣费金额为准。
  61. </view>
  62. <view class="item">
  63. 2.本次租约有效期:2024年2月1日至2024年7月31日
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 规则 -->
  70. </view>
  71. </template>
  72. <script>
  73. import * as API from '@/apis/pagejs/deduction.js'
  74. import {
  75. parseUnixTime
  76. } from '@/apis/utils'
  77. export default {
  78. data() {
  79. return {
  80. formData: {
  81. pageIndex: 1,
  82. pageSize: 9999,
  83. },
  84. list: [{
  85. name: '电费'
  86. }, {
  87. name: '水费'
  88. }, {
  89. name: '租金',
  90. }, {
  91. name: '保洁费',
  92. }, {
  93. name: '物业服务费',
  94. }],
  95. current: 0,
  96. queryList: [],
  97. companyInfo:{},
  98. tenantInfo:{}
  99. }
  100. },
  101. onReady() {
  102. this.companyInfo=this.carhelp.getPersonInfoPlus().companyInfo
  103. this.tenantInfo=this.carhelp.getPersonInfoPlus().tenantInfo
  104. this.contractList();
  105. },
  106. methods: {
  107. thisparseUnixTime(time){
  108. return parseUnixTime(new Date(time),'{y}年{m}月{d}日')
  109. },
  110. contractList() {
  111. API.contractList(this.formData).then((response) => {
  112. uni.hideLoading();
  113. this.queryList = response.data.data;
  114. }).catch(error => {
  115. uni.hideLoading();
  116. })
  117. },
  118. change(index) {
  119. this.current = index;
  120. }
  121. }
  122. }
  123. </script>
  124. <style lang="scss" scoped>
  125. .background {
  126. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(22,119,255,0) 100%);
  127. padding: 32rpx 0;
  128. height: 720rpx;
  129. .unit {
  130. background-color: #fff;
  131. margin: 0 32rpx;
  132. border-radius: 8px;
  133. padding: 32rpx;
  134. .title {
  135. color: rgba(153, 153, 153, 1);
  136. }
  137. .value {
  138. color: rgba(51, 51, 51, 1);
  139. font-size: 40rpx;
  140. margin-top: 16rpx;
  141. }
  142. }
  143. }
  144. // 规则
  145. .rules {
  146. margin: 24rpx 32rpx;
  147. background-color: #fff;
  148. padding-bottom: 24rpx;
  149. border-radius: 8px;
  150. /deep/.u-tabs {
  151. border-radius: 8px;
  152. }
  153. .content {
  154. padding: 24rpx;
  155. .name-title {
  156. color: #999999;
  157. }
  158. .name {
  159. margin: 16rpx 0;
  160. color: rgba(16, 16, 16, 1);
  161. font-size: 38rpx;
  162. }
  163. .address {
  164. margin: 8rpx 0;
  165. }
  166. .contentRule1 {
  167. .rule1 {
  168. //width: 298rpx;
  169. display: flex;
  170. .title {
  171. line-height: 96rpx;
  172. color: rgba(51, 51, 51, 1);
  173. font-size: 32rpx;
  174. }
  175. .value {
  176. color: rgba(51, 51, 51, 1);
  177. line-height: 96rpx;
  178. }
  179. }
  180. }
  181. }
  182. // 备注
  183. .remark {
  184. padding: 40rpx 32rpx;
  185. margin: 0 24rpx;
  186. border-radius: 8px;
  187. background-color: rgba(242, 244, 246, 1);
  188. color: rgba(16, 16, 16, 1);
  189. font-size: 24rpx;
  190. line-height: 34rpx;
  191. .value {
  192. margin-top: 16rpx;
  193. }
  194. .item {
  195. margin-bottom: 8rpx;
  196. }
  197. }
  198. }
  199. </style>