|
@@ -11,8 +11,9 @@
|
|
|
direction="rtl"
|
|
|
>
|
|
|
<div v-if="this.type === 'add'" class="scoped-top">
|
|
|
- <base-form slot="content" ref="ruleForm" :data="searchData" :noLabel="false" labelWidth="100px" :insertSlotArr="[5]">
|
|
|
- <div slot="OI5" class="scoped-tips">以下为销控表数据,可以为空不管,仅录一房一价忽略</div>
|
|
|
+ <base-form slot="content" ref="ruleForm" :data="searchData" :noLabel="false" labelWidth="100px" :insertSlotArr="[3,6]">
|
|
|
+ <div slot="OI3" class="scoped-tips">以下为销控表数据,可以为空不管,仅录一房一价忽略</div>
|
|
|
+ <div slot="OI6" class="scoped-tips">不知道套内面积,就填建筑面积(得房率100%)</div>
|
|
|
<div slot="footer">
|
|
|
<el-button icon="el-icon-Plus" class="xl-form-btn bgc2" @click="batchAdd">批量添加</el-button>
|
|
|
</div>
|
|
@@ -88,13 +89,12 @@ export default {
|
|
|
this.listConfig = {
|
|
|
rows: [
|
|
|
{ label: '楼栋', prop: 'building_num', type: 'input', width: '100px'},
|
|
|
- { label: '层高', prop: 'floor_height', type: 'input', width: '60px'},
|
|
|
{ label: '楼层', prop: 'storey', type: 'input', width: '60px'},
|
|
|
{ label: '房号', prop: 'room', type: 'input', width: '60px'},
|
|
|
{ label: '建筑面积(㎡)', prop: 'built', type: 'input', width: '80px'},
|
|
|
{ label: '套内面积(㎡)', prop: 'space', type: 'input', width: '80px'},
|
|
|
- { label: '毛坯单价(元/㎡)', prop: 'blank', type: 'input', width: '90px'},
|
|
|
- { label: '装修单价(元/㎡)', prop: 'decoration', type: 'input', width: '90px'},
|
|
|
+ { label: '基础单价(元/㎡)', prop: 'blank', type: 'input', width: '90px'},
|
|
|
+ { label: '装修增值单价(元/㎡)', prop: 'decoration', type: 'input', width: '90px'},
|
|
|
{ label: '销控状态', prop: 'house_sale_state', type: 'tag', tags: arrToObj(this.$dictData.house_sale_state), width: '90px'},
|
|
|
{ label: '真实折扣', prop: 'house_discount', type: 'input', width: '90px'},
|
|
|
{ label: '销控备注', prop: 'house_sale_remark', type: 'input', width: '90px'},
|
|
@@ -170,6 +170,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getDef (str) {
|
|
|
+ const bnStr = this.curObj.building_num || ''
|
|
|
+ const bnArr = bnStr.split(',').map(item => {
|
|
|
+ return {
|
|
|
+ key: item,
|
|
|
+ val: item,
|
|
|
+ }
|
|
|
+ })
|
|
|
if (str === 'col') {
|
|
|
let params = {...this.$refs.ruleForm.baseForm}
|
|
|
let addArr = []
|
|
@@ -180,11 +187,11 @@ export default {
|
|
|
addArr.push({ label: `${itemIndex + 1}-户型`, key: `${itemIndex + 1}-HT`, type: 'select', options: this.roomAreaList})
|
|
|
})
|
|
|
this.searchData = [
|
|
|
+ { label: '楼栋名', key: 'building_num', type: 'select', options: bnArr },
|
|
|
{ label: '每层户数', key: 'batchCol', changeHandle: this.colChange },
|
|
|
{ label: '多少层', key: 'batchRow' },
|
|
|
- { label: '楼栋名', key: 'building_num' },
|
|
|
- { label: '层高', key: 'floor_height' },
|
|
|
- { label: '装修单价', key: 'decoration' },
|
|
|
+ // { label: '层高', key: 'floor_height' },
|
|
|
+ // { label: '装修单价', key: 'decoration' },
|
|
|
{ label: '销控状态', key: 'house_sale_state', type: 'select', options: this.$dictData.house_sale_state },
|
|
|
{ label: '真实折扣', label2: '如: *0.95,-20000', key: 'house_discount' },
|
|
|
{ label: '销控备注', key: 'house_sale_remark' },
|
|
@@ -193,11 +200,11 @@ export default {
|
|
|
this.setDefaultValue(params, 'searchData')
|
|
|
} else {
|
|
|
this.searchData = [
|
|
|
+ { label: '楼栋名', key: 'building_num', type: 'select', options: bnArr },
|
|
|
{ label: '每层户数', key: 'batchCol', changeHandle: this.colChange },
|
|
|
{ label: '多少层', key: 'batchRow' },
|
|
|
- { label: '楼栋名', key: 'building_num' },
|
|
|
- { label: '层高', key: 'floor_height' },
|
|
|
- { label: '装修单价', key: 'decoration' },
|
|
|
+ // { label: '层高', key: 'floor_height' },
|
|
|
+ // { label: '装修单价', key: 'decoration' },
|
|
|
{ label: '销控状态', key: 'house_sale_state', type: 'select', options: this.$dictData.house_sale_state },
|
|
|
{ label: '真实折扣', label2: '如: *0.95,-20000', key: 'house_discount' },
|
|
|
{ label: '销控备注', key: 'house_sale_remark' },
|
|
@@ -248,7 +255,7 @@ export default {
|
|
|
house_type,
|
|
|
house_img,
|
|
|
houseImg,
|
|
|
- blank: 1,
|
|
|
+ blank: '',
|
|
|
})
|
|
|
})
|
|
|
this.tableData = [...curArr]
|
|
@@ -317,9 +324,7 @@ export default {
|
|
|
padding-bottom: 50px;
|
|
|
}
|
|
|
::v-deep .el-form-item {
|
|
|
- &:nth-child(5) {
|
|
|
- margin-right: 300px;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.scoped-tips {
|