billingRules.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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.propertyManagement}}
  12. </view>
  13. </view>
  14. <view class="rules" v-if="queryList.length">
  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.name}}
  25. </view>
  26. <view class="address">
  27. </view>
  28. <view class="contentRule1">
  29. <view>收费标准</view>
  30. <u-table>
  31. <u-th style="padding:0">
  32. <u-tr >
  33. <u-td>名称</u-td>
  34. <!-- -->
  35. <u-td>价格</u-td>
  36. <u-td>单位</u-td>
  37. </u-tr>
  38. </u-th>
  39. <template v-for="(it,j) in item.contractItemList" >
  40. <u-tr :key="j" v-if="!it.periodPriceList">
  41. <u-td>{{it.name}}</u-td>
  42. <!-- <u-td>{{it.paymentMethodN}}</u-td> -->
  43. <u-td>{{it.price}}</u-td>
  44. <u-td>{{it.unit}}</u-td>
  45. </u-tr>
  46. </template>
  47. </u-table>
  48. </view>
  49. <view class="contentRule1" style="margin-top: 20rpx;" v-for="(it,j) in item.contractItemList" v-if="it.periodPriceList">
  50. <template >
  51. <view>收费标准-{{it.name}} ({{it.unit}})</view>
  52. <u-table>
  53. <u-th style="padding:0">
  54. <u-tr >
  55. <u-td>类型 </u-td>
  56. <u-td>时段</u-td>
  57. <!-- -->
  58. <u-td>价格</u-td>
  59. </u-tr>
  60. </u-th>
  61. <u-tr :key="k" v-for="(ito,k) in it.periodPriceList" >
  62. <u-td>{{ito.periodN}}</u-td>
  63. <u-td>{{ito.startTime}}-{{ito.endTime}}</u-td>
  64. <u-td>{{ito.price}}</u-td>
  65. </u-tr>
  66. </u-table>
  67. </template>
  68. </view>
  69. <!-- 备注 -->
  70. <view class="remark" >
  71. <view class="title" v-if="false&&item.remark">
  72. 备注说明:
  73. </view>
  74. <view class="value">
  75. <view class="item" v-if="false&&item.remark">
  76. {{item.remark}}
  77. </view>
  78. <view class="item" v-if="item.address">
  79. 租住地址:{{item.address}}
  80. </view>
  81. <view class="item">
  82. 租赁期:{{thisparseUnixTime(item.contractStartTime)}} 至 {{thisparseUnixTime(item.contractEndTime)}}
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="rules" v-else>
  89. <view class="content" >
  90. <view class="address">
  91. {{queryBl?'未签订合同,请联系物业方':'加载中...'}}
  92. </view>
  93. <!-- 备注 -->
  94. </view>
  95. </view>
  96. <u-divider nonetext="没有找到相关内容"
  97. border-color="#CFD2D5">已经到底了</u-divider>
  98. </view>
  99. <!-- 规则 -->
  100. </view>
  101. </template>
  102. <script>
  103. import * as API from '@/apis/pagejs/deduction.js'
  104. import {
  105. parseUnixTime,newDate
  106. } from '@/apis/utils'
  107. export default {
  108. data() {
  109. return {
  110. formData: {
  111. pageIndex: 1,
  112. pageSize: 9999,
  113. },
  114. list: [{
  115. name: '电费'
  116. }, {
  117. name: '水费'
  118. }, {
  119. name: '租金',
  120. }, {
  121. name: '保洁费',
  122. }, {
  123. name: '物业服务费',
  124. }],
  125. current: 0,
  126. queryList: [],
  127. companyInfo:{},
  128. tenantInfo:{},
  129. queryBl:false,
  130. }
  131. },
  132. onReady() {
  133. if(this.carhelp.getPersonInfoPlus().companyInfo){
  134. this.companyInfo=this.carhelp.getPersonInfoPlus().companyInfo
  135. }
  136. this.tenantInfo=this.carhelp.getPersonInfoPlus().tenantInfo
  137. this.contractList();
  138. },
  139. methods: {
  140. thisparseUnixTime(time){
  141. return parseUnixTime(newDate(time),'{y}年{m}月{d}日')
  142. },
  143. contractList() {
  144. uni.showLoading({
  145. mask:true,title:'加载中...'
  146. })
  147. API.contractList(this.formData).then((response) => {
  148. uni.hideLoading();
  149. this.queryList = response.data.data;
  150. this.queryBl=true
  151. }).catch(error => {
  152. uni.hideLoading();
  153. uni.showToast({
  154. icon: "none",
  155. title: error
  156. })
  157. })
  158. },
  159. change(index) {
  160. this.current = index;
  161. }
  162. }
  163. }
  164. </script>
  165. <style lang="scss" scoped>
  166. .background {
  167. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(22,119,255,0) 100%);
  168. padding: 32rpx 0;
  169. height: 720rpx;
  170. .unit {
  171. background-color: #fff;
  172. margin: 0 32rpx;
  173. border-radius: 8px;
  174. padding: 32rpx;
  175. .title {
  176. color: rgba(153, 153, 153, 1);
  177. }
  178. .value {
  179. color: rgba(51, 51, 51, 1);
  180. font-size: 40rpx;
  181. margin-top: 16rpx;
  182. }
  183. }
  184. }
  185. // 规则
  186. .rules {
  187. margin: 24rpx 32rpx;
  188. background-color: #fff;
  189. padding-bottom: 24rpx;
  190. border-radius: 8px;
  191. ::v-deep.u-tabs {
  192. border-radius: 8px;
  193. }
  194. .content {
  195. padding: 24rpx;
  196. .name-title {
  197. color: #999999;
  198. }
  199. .name {
  200. margin: 16rpx 0;
  201. color: rgba(16, 16, 16, 1);
  202. font-size: 38rpx;
  203. }
  204. .address {
  205. margin: 8rpx 0;
  206. }
  207. .contentRule1 {
  208. .rule1 {
  209. //width: 298rpx;
  210. display: flex;
  211. .title {
  212. line-height: 96rpx;
  213. color: rgba(51, 51, 51, 1);
  214. font-size: 32rpx;
  215. }
  216. .value {
  217. color: rgba(51, 51, 51, 1);
  218. line-height: 96rpx;
  219. }
  220. }
  221. }
  222. }
  223. // 备注
  224. .remark {
  225. padding: 40rpx 32rpx;
  226. margin-top: 24rpx;
  227. border-radius: 8px;
  228. background-color: rgba(242, 244, 246, 1);
  229. color: rgba(16, 16, 16, 1);
  230. font-size: 24rpx;
  231. line-height: 34rpx;
  232. .value {
  233. margin-top: 16rpx;
  234. }
  235. .item {
  236. margin-bottom: 8rpx;
  237. }
  238. }
  239. }
  240. </style>