billingRules.vue 4.6 KB

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