|
@@ -83,6 +83,7 @@
|
|
|
</el-row>
|
|
|
<el-row class="handle-box" style="margin-bottom: 10px">
|
|
|
<el-col :span="24" style="margin-top: 20px">
|
|
|
+ <el-button v-if="$has('contractExport')" :loading="excelFlag" size="small" class="ch-button-export" style="float: right;" @click="handleExcel"><i class="el-icon-menu" /> 导出EXCEL</el-button>
|
|
|
<el-button class="ch-button-warning" size="small" style="float: right" @click="handleReset()"><i class="el-icon-search" /> 重置</el-button>
|
|
|
<el-button class="ch-button" size="small" style="float: right" @click="handleSearch()"><i class="el-icon-search" /> 查询</el-button>
|
|
|
</el-col>
|
|
@@ -107,7 +108,7 @@
|
|
|
<el-table-column label="实测建筑面积(㎡)" prop="actualBuildArea" width="110" />
|
|
|
<el-table-column label="买卖单价(㎡)" prop="housePrice" />
|
|
|
<el-table-column label="买受人产权份额占比" prop="buyerProportionStr" />
|
|
|
- <el-table-column label="付款方式" prop="paymentMethodStr" width="100"/>
|
|
|
+ <el-table-column label="付款方式" prop="paymentMethodStr" width="100" />
|
|
|
<el-table-column label="应收房款(元)" prop="buyerMoney" />
|
|
|
<el-table-column label="应收专项维修资金(元)" prop="maintenanceTotalPrice" />
|
|
|
<el-table-column label="合同状态" prop="contractStatusStr" width="110">
|
|
@@ -120,7 +121,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="签约日期" prop="signingDate" />
|
|
|
- <el-table-column header-align="center" label="操作" width="220">
|
|
|
+ <el-table-column header-align="center" label="操作" width="250">
|
|
|
<template scope="scope">
|
|
|
<el-button :disabled="scope.row.contractStatusStr !== '认购待签约'" size="mini" type="text" @click="handleSign(scope.row)">签约</el-button>
|
|
|
<el-button size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
@@ -189,7 +190,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- dc_key: ['CONTRACT_STATUS', 'PAYMENT_METHODS'],
|
|
|
+ dc_key: ['CONTRACT_STATUS', 'PAYMENT_METHODS', 'MAPPING_INSTITUTION'],
|
|
|
// 列表相关
|
|
|
search: {
|
|
|
},
|
|
@@ -199,7 +200,8 @@ export default {
|
|
|
dialogVisible: false,
|
|
|
dialogTitle: '新增',
|
|
|
selectedRows: [],
|
|
|
- selectId: ''
|
|
|
+ selectId: '',
|
|
|
+ excelFlag: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -250,6 +252,7 @@ export default {
|
|
|
}
|
|
|
item.paymentMethodStr = this.dc_map.PAYMENT_METHODS[item.paymentMethod]
|
|
|
item.contractStatusStr = this.dc_map.CONTRACT_STATUS[item.contractStatus]
|
|
|
+ item.institutionStr = this.dc_map.MAPPING_INSTITUTION[item.institution]
|
|
|
return item
|
|
|
},
|
|
|
/* 编辑*/
|
|
@@ -306,6 +309,57 @@ export default {
|
|
|
this.selectId = val[val.length - 1].id
|
|
|
}
|
|
|
},
|
|
|
+ // 导出
|
|
|
+ handleExcel: function() {
|
|
|
+ const _this = this
|
|
|
+ _this.excelFlag = true
|
|
|
+ this.search.pageNum = this.currentPage
|
|
|
+ this.search.pageSize = this.pageSize
|
|
|
+ this.OutData = []
|
|
|
+ const title = ['网签备案号', '合同编号', '出卖人', '购房人', '房屋', '实测建筑面积(㎡)', '套内建筑面积(㎡)', '分摊共有建筑(㎡)',
|
|
|
+ '房产测绘机构', '签约日期', '备注说明', '房屋买卖单价(元/㎡)', '总价款(元)', '买受人产权份额占比为(%)', '买受人出资金额(元)',
|
|
|
+ '付款方式', '房款存入账号开户行', '房款存入账号', '住宅专项维修资金(元/㎡)', '总价款(元)'
|
|
|
+ ]
|
|
|
+ this.OutData.push(title)
|
|
|
+ const temp = []
|
|
|
+ this.baseRequest('listAll', _this.search).then(res => {
|
|
|
+ const data = res.data
|
|
|
+ data.forEach(function(item) {
|
|
|
+ const json = _this.getItemJson(item)
|
|
|
+ temp.push(json)
|
|
|
+ })
|
|
|
+ temp.forEach(function(item) {
|
|
|
+ const jsonArray = []
|
|
|
+ jsonArray.push(item.recordNumber)
|
|
|
+ jsonArray.push(item.contractNumber)
|
|
|
+ jsonArray.push('无锡市安居投资发展有限公司')
|
|
|
+ jsonArray.push(item.buyerName)
|
|
|
+ jsonArray.push(item.houseName)
|
|
|
+ jsonArray.push(item.actualBuildArea)
|
|
|
+ jsonArray.push(item.actualInternalArea)
|
|
|
+ jsonArray.push(item.actualShareArea)
|
|
|
+ jsonArray.push(item.institutionStr)
|
|
|
+ jsonArray.push(item.signingDate)
|
|
|
+ jsonArray.push(item.remark)
|
|
|
+ jsonArray.push(item.housePrice)
|
|
|
+ jsonArray.push(item.totalPrice)
|
|
|
+ jsonArray.push(item.buyerProportion)
|
|
|
+ jsonArray.push(item.buyerMoney)
|
|
|
+ jsonArray.push(item.paymentMethodStr)
|
|
|
+ jsonArray.push(item.bankName)
|
|
|
+ jsonArray.push(item.bankNumber)
|
|
|
+ jsonArray.push(item.maintenanceFunds)
|
|
|
+ jsonArray.push(item.maintenanceTotalPrice)
|
|
|
+ _this.OutData.push(jsonArray)
|
|
|
+ })
|
|
|
+ const OutSize = [{ wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 },
|
|
|
+ { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 },
|
|
|
+ { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }]
|
|
|
+ const fileName = '合同导出 ' + new Date().Format('yyyyMMddhhmm')
|
|
|
+ this.$outputXlsxFile(this.OutData, OutSize, fileName)
|
|
|
+ _this.excelFlag = false
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
baseRequest(opUrl, postData) {
|
|
|
return this.$channel.globeRequest('ContractManageController', opUrl, postData, 'project')
|