parkRoomIndexDetail.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <template>
  2. <div>
  3. <el-row>
  4. <el-tabs v-model="activeName" style="font-size: 16px" @tab-click="handleClick">
  5. <el-tab-pane label="概览" name="概览">
  6. <park-room-index-edit ref="parkRoomIndexEdit" />
  7. </el-tab-pane>
  8. <el-tab-pane label="认购" name="认购">
  9. <el-row>
  10. <el-col :span="24">
  11. <el-table v-loading="tabLoading" :data="tableData" style="width: 100%" size="mini">
  12. <el-table-column type="index" width="60" />
  13. <el-table-column label="小区-分期" prop="groupDiscName" width="150" />
  14. <el-table-column label="买受人" prop="buyerName" width="200" />
  15. <el-table-column label="定金金额" prop="receivableMoney" width="100" />
  16. <el-table-column label="定金流水号" prop="serialNumber" width="100" />
  17. <el-table-column label="认购房屋" prop="houseName" />
  18. <el-table-column label="状态" prop="statusStr" width="110" />
  19. <el-table-column label="经办时间" prop="createdName" />
  20. <el-table-column label="经办人" prop="createdAt" />
  21. <el-table-column header-align="center" label="操作" width="180">
  22. <template scope="scope">
  23. <el-button size="mini" type="text" @click="depositView(scope.row)">查看</el-button>
  24. </template>
  25. </el-table-column>
  26. </el-table>
  27. </el-col>
  28. </el-row>
  29. </el-tab-pane>
  30. <el-tab-pane label="签约" name="签约">
  31. <el-row>
  32. <el-col :span="24">
  33. <el-table v-loading="tabLoading" :data="tableData" style="width: 100%" size="mini">
  34. <el-table-column type="index" width="60" />
  35. <el-table-column label="合同编号" prop="contractNumber" />
  36. <el-table-column label="网签备案号" prop="recordNumber" />
  37. <el-table-column label="买受人" prop="buyerName" width="200" />
  38. <el-table-column label="房屋" prop="houseName" width="200" />
  39. <el-table-column label="实测建筑面积(㎡)" prop="actualBuildArea" width="110" />
  40. <el-table-column label="买卖单价(㎡)" prop="housePrice" />
  41. <el-table-column label="买受人产权份额占比" prop="buyerProportionStr" />
  42. <el-table-column label="付款方式" prop="paymentMethodStr" />
  43. <el-table-column label="应收房款(元)" prop="buyerMoney" />
  44. <el-table-column label="应收专项维修资金(元)" prop="maintenanceTotalPrice" />
  45. <el-table-column label="合同状态" prop="contractStatusStr" width="110">
  46. <template scope="scope">
  47. <span
  48. :style="{'color':scope.row.contractStatusStr==='已退房'?'red':scope.row.contractStatusStr==='已签约'?'green':'gray'}"
  49. >
  50. {{ scope.row.contractStatusStr }}
  51. </span>
  52. </template>
  53. </el-table-column>
  54. <el-table-column label="签约日期" prop="signingDate" />
  55. <el-table-column header-align="center" label="操作" width="180">
  56. <template scope="scope">
  57. <el-button size="mini" type="text" @click="contractView(scope.row)">查看</el-button>
  58. </template>
  59. </el-table-column>
  60. </el-table>
  61. </el-col>
  62. </el-row>
  63. </el-tab-pane>
  64. <el-tab-pane label="房款" name="房款">
  65. <el-row>
  66. <el-col :span="24">
  67. <el-table ref="multipleTable" v-loading="tabLoading" :data="tableData" style="width: 100%" size="mini">
  68. <el-table-column label="合同编号" prop="contractNumber" />
  69. <el-table-column label="买受人" prop="buyerName" width="200" />
  70. <el-table-column label="房屋" prop="houseName" width="200" />
  71. <el-table-column label="实测建筑面积(㎡)" prop="actualBuildArea" width="110" />
  72. <el-table-column label="买卖单价(㎡)" prop="housePrice" />
  73. <el-table-column label="买受人产权份额占比" prop="buyerProportion" />
  74. <el-table-column label="付款方式" prop="paymentMethodStr" />
  75. <el-table-column label="应收房款(元)" prop="buyerMoney" />
  76. <el-table-column label="已收房款(元)" prop="receivedMoney" />
  77. <el-table-column label="尚欠房款(元)" prop="arrears" />
  78. <el-table-column label="收款状态" prop="collectionStatusStr" width="110">
  79. <template scope="scope">
  80. <span
  81. :style="{'color':scope.row.collectionStatusStr==='已退款'?'red':scope.row.collectionStatusStr==='完全收款'?'green':'gray'}"
  82. >
  83. {{ scope.row.collectionStatusStr }}
  84. </span>
  85. </template>
  86. </el-table-column>
  87. <el-table-column header-align="center" label="操作" width="200">
  88. <template scope="scope">
  89. <el-button size="mini" type="text" @click="payLogView(scope.row)">查看</el-button>
  90. </template>
  91. </el-table-column>
  92. </el-table>
  93. </el-col>
  94. </el-row>
  95. </el-tab-pane>
  96. <el-tab-pane label="专项维修资金" name="专项维修资金">
  97. <el-row>
  98. <el-col :span="24">
  99. <el-table ref="multipleTable" v-loading="tabLoading" :data="tableData" style="width: 100%" size="mini">
  100. <el-table-column type="index" width="60" />
  101. <el-table-column label="合同编号" prop="contractNumber" />
  102. <el-table-column label="买受人" prop="buyerName" width="200" />
  103. <el-table-column label="房屋" prop="houseName" width="200" />
  104. <el-table-column label="实测建筑面积(㎡)" prop="actualBuildArea" width="110" />
  105. <el-table-column label="专项维修资金单价(元/㎡)" prop="maintenanceFunds" />
  106. <el-table-column label="应收专项维修资金(元)" prop="maintenanceTotalPrice" />
  107. <el-table-column label="已收专项维修资金(元)" prop="receivedMoney" />
  108. <el-table-column label="收款状态" prop="fundCollectionStatusStr" width="110">
  109. <template scope="scope">
  110. <span
  111. :style="{'color':scope.row.fundCollectionStatusStr==='已退款'?'red':scope.row.fundCollectionStatusStr==='已收款'?'green':'gray'}"
  112. >
  113. {{ scope.row.fundCollectionStatusStr }}
  114. </span>
  115. </template>
  116. </el-table-column>
  117. <el-table-column header-align="center" label="操作" width="180">
  118. <template scope="scope">
  119. <el-button size="mini" type="text" @click="fundView(scope.row)">查看</el-button>
  120. </template>
  121. </el-table-column>
  122. </el-table>
  123. </el-col>
  124. </el-row>
  125. </el-tab-pane>
  126. </el-tabs>
  127. </el-row>
  128. <el-divider />
  129. <el-row class="handle-box">
  130. <el-col :span="24">
  131. <span class="card_title">交易历史</span>
  132. </el-col>
  133. </el-row>
  134. <!--定金查看-->
  135. <el-dialog
  136. :visible.sync="dialogDepositVisible"
  137. :close-on-click-modal="false"
  138. :close-on-press-escape="false"
  139. title=""
  140. width="90%"
  141. top="20px"
  142. class="statistic_base"
  143. :append-to-body="true"
  144. :modal-append-to-body="true"
  145. custom-class="tagdialog"
  146. >
  147. <add-subscribe v-if="dialogDepositVisible" ref="addSubscribe" @cancel="cancel" />
  148. </el-dialog>
  149. <!--合同签约/修改-->
  150. <el-dialog
  151. :visible.sync="dialogContractVisible"
  152. :close-on-click-modal="false"
  153. :close-on-press-escape="false"
  154. :title="dialogContractTitle"
  155. width="90%"
  156. top="20px"
  157. class="statistic_base"
  158. :append-to-body="true"
  159. :modal-append-to-body="true"
  160. custom-class="tagdialog"
  161. >
  162. <contract-add ref="contractAdd" @cancel="cancel" />
  163. </el-dialog>
  164. <!-- 预收款登记 -->
  165. <el-dialog
  166. :visible.sync="dialogPayLogVisible"
  167. :close-on-click-modal="false"
  168. :close-on-press-escape="false"
  169. title=""
  170. width="90%"
  171. top="20px"
  172. class="statistic_base"
  173. :append-to-body="true"
  174. :modal-append-to-body="true"
  175. custom-class="tagdialog"
  176. >
  177. <payment-registration v-if="dialogPayLogVisible" ref="paymentRegistration" @cancel="cancel" />
  178. </el-dialog>
  179. <!-- 收款登记 -->
  180. <el-dialog
  181. :visible.sync="dialogFundVisible"
  182. :close-on-click-modal="false"
  183. :close-on-press-escape="false"
  184. title=""
  185. width="90%"
  186. top="20px"
  187. class="statistic_base"
  188. :append-to-body="true"
  189. :modal-append-to-body="true"
  190. custom-class="tagdialog"
  191. >
  192. <add-funds v-if="dialogFundVisible" ref="addFunds" @cancel="cancel" />
  193. </el-dialog>
  194. </div>
  195. </template>
  196. <script>
  197. import ParkRoomIndexEdit from '@/views/reportForms/components/parkRoomIndexEdit.vue'
  198. import Base from '@/views/base/base.vue'
  199. import BaseData from '@/views/base/baseData.vue'
  200. import ContractAdd from '@/views/signingManagement/contractManagement/contractAdd.vue'
  201. import AddSubscribe from '@/views/customerManagement/subscribe/addSubscribe.vue'
  202. import PaymentRegistration from '@/views/receiveRefundsManagement/paymentManagement/paymentRegistration.vue'
  203. import AddFunds from '@/views/receiveRefundsManagement/maintenanceFundsManagement/addFunds.vue'
  204. export default {
  205. name: 'ParkRoomIndexDetailVue',
  206. components: { ContractAdd, ParkRoomIndexEdit, AddSubscribe, PaymentRegistration, AddFunds },
  207. mixins: [Base, BaseData],
  208. data() {
  209. return {
  210. dc_key: ['DEPOSIT_STATUS', 'PAYMENT_METHODS', 'CONTRACT_STATUS', 'HOUSE_PAYMENT_STATUS', 'MAINTENANCE_FUNDS_STATUS'],
  211. activeName: '概览',
  212. houseId: '',
  213. tableData: [],
  214. tabLoading: false,
  215. dialogDepositVisible: false,
  216. dialogDepositTitle: '',
  217. dialogContractVisible: false,
  218. dialogContractTitle: '',
  219. dialogPayLogVisible: false,
  220. dialogFundVisible: false
  221. }
  222. },
  223. methods: {
  224. initData(data) {
  225. this.initDict(this.dc_key).then((res) => {
  226. this.activeName = '概览'
  227. this.houseId = data.id
  228. if (data.activeName) {
  229. this.activeName = data.activeName
  230. }
  231. this.$nextTick(() => {
  232. this.$refs.parkRoomIndexEdit.initData(this.houseId)
  233. })
  234. })
  235. },
  236. handleClick(tab, event) {
  237. this.tableData = []
  238. if (tab.name === '概览') {
  239. this.$nextTick(() => {
  240. this.$refs.parkRoomIndexEdit.initData(this.houseId)
  241. })
  242. } else if (tab.name === '认购') {
  243. this.getDepositData()
  244. } else if (tab.name === '签约') {
  245. this.getContractData()
  246. } else if (tab.name === '房款') {
  247. this.getPaymentData()
  248. } else if (tab.name === '专项维修资金') {
  249. this.getFundData()
  250. } else if (tab.name === '开票') {
  251. }
  252. },
  253. getDepositData() {
  254. const _this = this
  255. _this.tabLoading = true
  256. const postData = {
  257. houseId: this.houseId
  258. }
  259. this.baseDepositRequest('roomSelectionListAll', postData).then((res) => {
  260. if (res.data) {
  261. res.data.forEach(function(item) {
  262. const json = _this.getDepositItemJson(item)
  263. _this.tableData.push(json)
  264. })
  265. }
  266. _this.tabLoading = false
  267. }).catch((e) => {
  268. // console.log(e)
  269. })
  270. },
  271. getContractData: function() {
  272. const _this = this
  273. _this.tabLoading = true
  274. const postData = {
  275. houseId: this.houseId
  276. }
  277. this.baseContractRequest('listAll', postData).then((res) => {
  278. if (res.data) {
  279. res.data.forEach(function(item) {
  280. const json = _this.getContractItemJson(item)
  281. _this.tableData.push(json)
  282. })
  283. }
  284. _this.tabLoading = false
  285. }).catch((e) => {
  286. // console.log(e)
  287. })
  288. },
  289. getPaymentData: function() {
  290. const _this = this
  291. _this.tabLoading = true
  292. const postData = {
  293. houseId: this.houseId
  294. }
  295. this.basePaymentRequest('listAll', postData).then((res) => {
  296. if (res.data) {
  297. res.data.forEach(function(item) {
  298. const json = _this.getPaymentJson(item)
  299. _this.tableData.push(json)
  300. })
  301. }
  302. _this.tabLoading = false
  303. }).catch((e) => {
  304. // console.log(e)
  305. })
  306. },
  307. getFundData: function() {
  308. const _this = this
  309. _this.tabLoading = true
  310. const postData = {
  311. houseId: this.houseId
  312. }
  313. this.baseFundRequest('listAll', postData).then((res) => {
  314. if (res.data) {
  315. res.data.forEach(function(item) {
  316. const json = _this.getFundJson(item)
  317. _this.tableData.push(json)
  318. })
  319. }
  320. _this.tabLoading = false
  321. }).catch((e) => {
  322. // console.log(e)
  323. })
  324. },
  325. getDepositItemJson: function(item) {
  326. item.houseName = item.buildName + '-' + item.roomNo
  327. item.statusStr = this.dc_map.DEPOSIT_STATUS[item.status]
  328. return item
  329. },
  330. getContractItemJson: function(item) {
  331. if (item.buyerProportion) {
  332. item.buyerProportionStr = item.buyerProportion + '%'
  333. }
  334. item.paymentMethodStr = this.dc_map.PAYMENT_METHODS[item.paymentMethod]
  335. item.contractStatusStr = this.dc_map.CONTRACT_STATUS[item.contractStatus]
  336. return item
  337. },
  338. getPaymentJson: function(item) {
  339. item.paymentMethodStr = this.dc_map.PAYMENT_METHODS[item.paymentMethod]
  340. item.collectionStatusStr = this.dc_map.HOUSE_PAYMENT_STATUS[item.collectionStatus]
  341. return item
  342. },
  343. getFundJson: function(item) {
  344. item.fundCollectionStatusStr = this.dc_map.MAINTENANCE_FUNDS_STATUS[item.fundCollectionStatus]
  345. return item
  346. },
  347. depositView(val) {
  348. this.dialogDepositVisible = true
  349. this.dialogDepositTitle = '查看'
  350. val.isView = true
  351. // 新vue时调用的方法
  352. this.$nextTick(() => {
  353. this.$refs.addSubscribe.initData(val)
  354. })
  355. },
  356. contractView(val) {
  357. this.dialogContractVisible = true
  358. this.dialogContractTitle = '查看'
  359. val.isView = true
  360. // 新vue时调用的方法
  361. this.$nextTick(() => {
  362. this.$refs.contractAdd.initData(val)
  363. })
  364. },
  365. payLogView(val) {
  366. this.dialogPayLogVisible = true
  367. val.isView = true
  368. // 新vue时调用的方法
  369. this.$nextTick(() => {
  370. this.$refs.paymentRegistration.initData(val)
  371. })
  372. },
  373. fundView(val) {
  374. this.dialogFundVisible = true
  375. val.isView = true
  376. // 新vue时调用的方法
  377. this.$nextTick(() => {
  378. this.$refs.addFunds.initData(val)
  379. })
  380. },
  381. cancel: function() {
  382. this.dialogContractVisible = false
  383. this.dialogDepositVisible = false
  384. this.dialogPayLogVisible = false
  385. this.dialogFundVisible = false
  386. },
  387. baseDepositRequest(opUrl, postData) {
  388. return this.$channel.globeRequest('RoomSelectionInfoController', opUrl, postData, 'project')
  389. },
  390. baseContractRequest(opUrl, postData) {
  391. return this.$channel.globeRequest('ContractManageController', opUrl, postData, 'project')
  392. },
  393. basePaymentRequest(opUrl, postData) {
  394. return this.$channel.globeRequest('PayLogController', opUrl, postData, 'project')
  395. },
  396. baseFundRequest(opUrl, postData) {
  397. return this.$channel.globeRequest('MaintenanceFundsManagementController', opUrl, postData, 'project')
  398. }
  399. }
  400. }
  401. </script>
  402. <style scoped lang="scss">
  403. </style>