|
@@ -25,18 +25,19 @@
|
|
|
<el-table-column label="小区-分期" prop="groupDiscName" />
|
|
|
<el-table-column label="意向金流水号" prop="serialNumber" />
|
|
|
<el-table-column label="买受人" prop="buyerName" width="200" />
|
|
|
- <el-table-column label="意向金金额" prop="receivableMoney" width="200" />
|
|
|
+ <el-table-column label="意向金金额" prop="receivedAmount" width="200" />
|
|
|
<el-table-column label="状态" prop="statusStr" width="110" />
|
|
|
<el-table-column label="定金编号" prop="depositSerialNumber" />
|
|
|
<el-table-column label="认购房屋" prop="houseName" />
|
|
|
<el-table-column label="经办人" prop="createdName" />
|
|
|
<el-table-column label="经办时间" prop="createdAt" />
|
|
|
- <el-table-column header-align="center" label="操作" width="380">
|
|
|
+ <el-table-column header-align="center" label="操作" width="430">
|
|
|
<template scope="scope">
|
|
|
- <el-button :disabled="scope.row.status !== 1" size="mini" type="text" @click="handleEdit(scope.row)">转定金</el-button>
|
|
|
+ <el-button :disabled="scope.row.status !== 1" size="mini" type="text" @click="handleToDeposit(scope.row)">转定金</el-button>
|
|
|
<el-button size="mini" type="text" @click="handleView(scope.row)">查看</el-button>
|
|
|
<el-button :disabled="scope.row.status === 1" size="mini" type="text" @click="downLoad(scope.row)">意向金收据</el-button>
|
|
|
<el-button :disabled="scope.row.status === 2" size="mini" type="text" @click="handleRefund(scope.row)">退意向金</el-button>
|
|
|
+ <el-button :disabled="!(scope.row.status === 1)" size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -89,6 +90,23 @@
|
|
|
<refund-intentional-deposit v-if="dialogRefundVisible" ref="refund" @cancel="cancel" />
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!--意向金编辑-->
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="dialogIntentionalVisible"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ title=""
|
|
|
+ width="90%"
|
|
|
+ top="20px"
|
|
|
+ class="statistic_base"
|
|
|
+ :append-to-body="true"
|
|
|
+ :modal-append-to-body="true"
|
|
|
+ custom-class="tagdialog"
|
|
|
+ @close="getData"
|
|
|
+ >
|
|
|
+ <add-intentional-deposit v-if="dialogIntentionalVisible" ref="addIntentionalDeposit" @cancel="cancel" />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -97,10 +115,11 @@ import BaseData from '@/views/base/baseData'
|
|
|
import ToDeposit from '@/views/receiveRefundsManagement/intentionalDepositManagement/toDeposit.vue'
|
|
|
import RefundIntentionalDeposit from '@/views/receiveRefundsManagement/intentionalDepositManagement/refundIntentionalDeposit.vue'
|
|
|
import constant from '@/static/utils/constant'
|
|
|
+import AddIntentionalDeposit from '@/views/customerManagement/intentionalDeposit/addIntentionalDeposit.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'Index',
|
|
|
- components: { ToDeposit, RefundIntentionalDeposit },
|
|
|
+ components: { AddIntentionalDeposit, ToDeposit, RefundIntentionalDeposit },
|
|
|
mixins: [Base, BaseData],
|
|
|
data() {
|
|
|
return {
|
|
@@ -113,7 +132,8 @@ export default {
|
|
|
// 弹框相关
|
|
|
dialogVisible: false,
|
|
|
dialogTitle: '新增',
|
|
|
- dialogRefundVisible: false
|
|
|
+ dialogRefundVisible: false,
|
|
|
+ dialogIntentionalVisible: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -159,8 +179,8 @@ export default {
|
|
|
item.statusStr = this.dc_map.INTENTIONAL_DEPOSIT_STATUS[item.status]
|
|
|
return item
|
|
|
},
|
|
|
- /* 编辑*/
|
|
|
- handleEdit: function(val) {
|
|
|
+ /* 转定金*/
|
|
|
+ handleToDeposit: function(val) {
|
|
|
this.dialogVisible = true
|
|
|
val.isView = false
|
|
|
// 新vue时调用的方法
|
|
@@ -168,6 +188,17 @@ export default {
|
|
|
this.$refs.toDeposit.initData(val)
|
|
|
})
|
|
|
},
|
|
|
+ handleEdit(val) {
|
|
|
+ this.dialogIntentionalVisible = true
|
|
|
+ const postData = {
|
|
|
+ id: val.customerManagementId,
|
|
|
+ intentionalDepositId: val.id
|
|
|
+ }
|
|
|
+ // 新vue时调用的方法
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.addIntentionalDeposit.initData(postData)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleView(val) {
|
|
|
this.dialogVisible = true
|
|
|
this.dialogTitle = '查看'
|
|
@@ -192,6 +223,7 @@ export default {
|
|
|
cancel: function() {
|
|
|
this.dialogVisible = false
|
|
|
this.dialogRefundVisible = false
|
|
|
+ this.dialogIntentionalVisible = false
|
|
|
},
|
|
|
baseRequest(opUrl, postData) {
|
|
|
return this.$channel.globeRequest('IntentionalDepositController', opUrl, postData, '')
|