|
@@ -124,7 +124,7 @@
|
|
|
</el-row>
|
|
|
<el-row class="lineheight20">
|
|
|
<el-col :span="24">
|
|
|
- <el-button size="small" v-if="$has('roomExport')" class="ch-button-export" style="float: right; margin-top: 4px" @click="handleExcel"><i class="el-icon-menu" /> 导出详情</el-button>
|
|
|
+ <el-button v-if="$has('roomExport')" :loading="excelFlag" size="small" class="ch-button-export" style="float: right; margin-top: 4px" @click="handleExcel"><i class="el-icon-menu" /> 导出EXCEL</el-button>
|
|
|
<el-button size="small" class="ch-button-export" style="float: right;margin-top: 4px" @click="batchImport()"><i class="el-icon-menu" /> 批量导入</el-button>
|
|
|
<el-button size="small" class="ch-button-add" style="float: right; margin-right: 10px; margin-top: 4px" @click="handleAdd()"><i class="el-icon-menu" /> 新增房间</el-button>
|
|
|
<el-button size="small" class="ch-button" style="float: right;margin-top: 4px" @click="handleSearch()"><i class="el-icon-menu" /> 查询</el-button>
|
|
@@ -531,7 +531,8 @@ export default {
|
|
|
importType: '',
|
|
|
importTitle: '',
|
|
|
uploadTitle: [],
|
|
|
- loadingFlag: false
|
|
|
+ loadingFlag: false,
|
|
|
+ excelFlag: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -549,6 +550,7 @@ export default {
|
|
|
// 导出
|
|
|
handleExcel: function() {
|
|
|
const _this = this
|
|
|
+ _this.excelFlag = true
|
|
|
_this.queryParam.pageNum = _this.currentPage
|
|
|
_this.queryParam.pageSize = _this.pageSize
|
|
|
_this.queryParam.roomUseStr = _this.roomUse.join(',')
|
|
@@ -556,8 +558,10 @@ export default {
|
|
|
_this.queryParam.soldStatusStr = _this.soldStatus.join(',')
|
|
|
_this.queryParam.decorationSituationStr = _this.decorationSituation.join(',')
|
|
|
this.OutData = []
|
|
|
- const title = ['单元/楼栋号', '所在层', '户室号', '套内面积', '建筑面积', '用途', '装修情况',
|
|
|
- '可售状态', '已售状态']
|
|
|
+ const title = ['小区', '分期', '单元/楼栋号', '户室号', '所在层', '预测套内面积(㎡)', '预测分摊面积(㎡)', '预测建筑面积(㎡)', '预测土地面积(㎡)',
|
|
|
+ '实测套内面积(㎡)', '实测分摊面积(㎡)', '实测建筑面积(㎡)', '实测土地面积(㎡)', '用途', '房屋代码', '装修情况', '2.2米以上面积',
|
|
|
+ '户型', '房屋性质', '备注', '可售状态'
|
|
|
+ ]
|
|
|
this.OutData.push(title)
|
|
|
const temp = []
|
|
|
this.baseRequest('excelList', _this.queryParam).then(res => {
|
|
@@ -568,21 +572,35 @@ export default {
|
|
|
})
|
|
|
temp.forEach(function(item) {
|
|
|
const jsonArray = []
|
|
|
+ jsonArray.push(item.groupName)
|
|
|
+ jsonArray.push(item.discName)
|
|
|
jsonArray.push(item.buildName)
|
|
|
- jsonArray.push(item.floor)
|
|
|
jsonArray.push(item.roomNo)
|
|
|
+ jsonArray.push(item.floor)
|
|
|
+ jsonArray.push(item.predictionInternalArea)
|
|
|
+ jsonArray.push(item.predictionShareArea)
|
|
|
+ jsonArray.push(item.predictionBuildArea)
|
|
|
+ jsonArray.push(item.predictionLandArea)
|
|
|
jsonArray.push(item.actualInternalArea)
|
|
|
+ jsonArray.push(item.actualShareArea)
|
|
|
jsonArray.push(item.actualBuildArea)
|
|
|
+ jsonArray.push(item.actualLandArea)
|
|
|
jsonArray.push(item.roomUseStr)
|
|
|
+ jsonArray.push(item.roomNumber)
|
|
|
jsonArray.push(item.decorationSituationStr)
|
|
|
+ jsonArray.push(item.twoPointTwo)
|
|
|
+ jsonArray.push(item.houseTypeStr)
|
|
|
+ jsonArray.push(item.natureStr)
|
|
|
+ jsonArray.push(item.remark)
|
|
|
jsonArray.push(item.saleStatusStr)
|
|
|
- jsonArray.push(item.soldStatusStr)
|
|
|
_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 }, { wch: 15 }, { wch: 15 }, { wch: 15 }]
|
|
|
const fileName = '房间导出 ' + new Date().Format('yyyyMMddhhmm')
|
|
|
this.$outputXlsxFile(this.OutData, OutSize, fileName)
|
|
|
+ _this.excelFlag = false
|
|
|
})
|
|
|
},
|
|
|
|