index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <div class=" main">
  3. <div class="search">
  4. <el-input
  5. clearable
  6. placeholder="姓名/地址/申请人"
  7. class="search-input"
  8. v-trim
  9. v-model.trim="mixins_query.key"
  10. ></el-input>
  11. <el-select
  12. placeholder="所属社区"
  13. clearable
  14. class="width120"
  15. v-model="mixins_query.communityId"
  16. >
  17. <el-option
  18. v-for="(item,indx) in communityList"
  19. :key="indx"
  20. :label="item.label"
  21. :value="item.id"
  22. >
  23. </el-option>
  24. </el-select>
  25. <el-select
  26. placeholder="审核状态"
  27. clearable
  28. class="width120"
  29. v-model="mixins_query.status"
  30. >
  31. <el-option
  32. value="1"
  33. label="审核中"
  34. ></el-option>
  35. <el-option
  36. value="2"
  37. label="审核通过"
  38. ></el-option>
  39. <el-option
  40. value="3"
  41. label="审核未通过"
  42. ></el-option>
  43. </el-select>
  44. <el-button
  45. class="search-btn"
  46. type="primary"
  47. @click="mixins_search()"
  48. icon="el-icon-search"
  49. >查询</el-button>
  50. </div>
  51. <zz-table
  52. :settings="{ showCheckbox: false, showIndex: true, stripe: true }"
  53. :cols=" cols"
  54. :data="mixins_list"
  55. :pageset="mixins_pageset"
  56. @page-change="pageChange"
  57. :selectable="selectable"
  58. @selection-change="selectionChange"
  59. >
  60. <template
  61. slot-scope="scope"
  62. slot="home"
  63. >
  64. {{scope.row.communityName+'-'+scope.row.assets}}
  65. </template>
  66. <template
  67. slot-scope="scope"
  68. slot="opt"
  69. >
  70. <div class="opt">
  71. <el-tooltip
  72. class="item"
  73. effect="light"
  74. placement="bottom"
  75. :content="scope.row.status == 1 ? '审核' : '无法审核'"
  76. >
  77. <i
  78. v-if="scope.row.status == 1"
  79. class="zoniot_font zoniot-icon-shenhe"
  80. @click="viewDetails(scope.row)"
  81. ></i>
  82. <i
  83. class="zoniot_font zoniot-icon-shenhe ashText"
  84. v-else
  85. ></i>
  86. </el-tooltip>
  87. </div>
  88. </template>
  89. </zz-table>
  90. </div>
  91. </template>
  92. <script>
  93. import list from '@/utils/list.js';
  94. export default {
  95. mixins: [list],
  96. data () {
  97. return {
  98. communityList: [],
  99. cols: [
  100. {
  101. label: '订单号',
  102. prop: 'billNumber'
  103. },
  104. {
  105. label: '姓名',
  106. prop: 'residentName'
  107. }, {
  108. label: '客户类型',
  109. prop: 'customerType',
  110. format (val) {
  111. if (val == 1) {
  112. return '房东'
  113. } else if (val == 2 || val == 3) {
  114. return '租户'
  115. }
  116. }
  117. }, {
  118. label: '地址',
  119. prop: 'home',
  120. slot: 'home'
  121. }, {
  122. label: '费用类型',
  123. prop: 'chargeType',
  124. format (val) {
  125. if (val == 1) {
  126. return '物业费'
  127. } else if (val == 2) {
  128. return '水费'
  129. } else if (val == 3) {
  130. return '电费'
  131. } else if (val == 4) {
  132. return '车位费'
  133. } else if (val == 5) {
  134. return '二次供水费'
  135. }
  136. }
  137. }, {
  138. label: '计费周期',
  139. prop: 'paymentDaysDict'
  140. }
  141. , {
  142. label: '账单金额(元)',
  143. prop: 'receivableAmount'
  144. }
  145. , {
  146. label: '原应收金额(元)',
  147. prop: 'origAmount'
  148. }
  149. , {
  150. label: '申请应收金额(元)',
  151. prop: 'applyAmount'
  152. }
  153. , {
  154. label: '申请原因',
  155. prop: 'applicantReason'
  156. }
  157. , {
  158. label: '申请人',
  159. prop: 'applicantName'
  160. }
  161. , {
  162. label: '审核状态',
  163. prop: 'status',
  164. format (val) {
  165. if (val == 3) {
  166. return '<span class="redText">审核未通过</span>';
  167. } else if (val == 2) {
  168. return '审核通过';
  169. } else if (val == 1) {
  170. return '审核中'
  171. }
  172. }
  173. }
  174. , {
  175. label: '审核人员',
  176. prop: 'reviewedBy'
  177. }
  178. , {
  179. label: '操作',
  180. slot: 'opt'
  181. }
  182. ],
  183. mixins_post: 'post',
  184. }
  185. },
  186. methods: {
  187. communityNameList () {
  188. this.communityList = [];
  189. this.$http.get('/czc-community/assets/community/list', {}).then((res) => {
  190. res.data.map((res) => {
  191. this.communityList.push({
  192. label: res.communityName,
  193. id: res.id
  194. })
  195. });
  196. });
  197. },
  198. viewDetails (row) {
  199. new Promise((resolve) => {
  200. this.$store.dispatch('addPopup', {
  201. url: '/payService/receivableExamine/detali.vue',
  202. width: '550px',
  203. height: '280px',
  204. props: {
  205. id: row.id,
  206. callback: resolve
  207. },
  208. title: '应收金额审核'
  209. });
  210. }).then(() => {
  211. this.mixins_search();
  212. });
  213. },
  214. },
  215. created () {
  216. this.mixins_dataUrl = '/czc-charge/bill/amount/audit/page'; // 分页查询接口
  217. this.mixins_query = {};
  218. this.mixins_search();
  219. // 获取社区选项
  220. this.communityNameList();
  221. }
  222. }
  223. </script>