|
@@ -274,7 +274,7 @@ export default {
|
|
|
if (str === 'edit') {
|
|
|
params = {...this.$refs.ruleForm.baseForm, ...params}
|
|
|
}
|
|
|
- if (!params.custom_tag) params.custom_tag = '洪楼房源'
|
|
|
+ // if (!params.custom_tag) params.custom_tag = '洪楼房源'
|
|
|
if (params.estate_id) {
|
|
|
this.estate_id = params.estate_id
|
|
|
this.formData = [
|
|
@@ -284,7 +284,7 @@ export default {
|
|
|
{ keyRO: params.estate_name, valRO: params.estate_id }
|
|
|
]
|
|
|
},
|
|
|
- // { label: `面积产品户型`, label2: `快捷选择工具`, class: 'c-3', key: `HT`, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
|
|
|
+ { label: `面积产品户型`, label2: `快捷选择工具`, key: `HT`, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
|
|
|
|
|
|
{ label: '房源标题', key: 'title', rules: 1},
|
|
|
{ label: '户型图', key: 'house_img', class: 'c-3', type: 'uploads' },
|
|
@@ -337,7 +337,7 @@ export default {
|
|
|
{ keyRO: params.sale_name, valRO: params.sale_id }
|
|
|
]
|
|
|
},
|
|
|
- { label: '销售状态', key: 'is_sold', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
|
|
|
+ // { label: '销售状态', key: 'is_sold', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
|
|
|
{ label: '(对外展示)房源简介', key: 'introduce', type: 'textarea' },
|
|
|
{ label: '备注', key: 'remarked', type: 'textarea' },
|
|
|
]
|
|
@@ -351,6 +351,8 @@ export default {
|
|
|
params.pri_image = this.IMadd(params.pri_image)
|
|
|
this.setDefaultValue(params)
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
estateChange (estate_id, op, cur) {
|
|
|
if (estate_id) {
|
|
|
this.estate_id = estate_id
|
|
@@ -359,8 +361,7 @@ export default {
|
|
|
const htObj = arrToObj(this.$dictData.house_type)
|
|
|
const ptObj = arrToObj(this.$dictData.product_type)
|
|
|
list.map(item => {
|
|
|
- item.key = `${item.area}㎡-${ptObj[item.product_type]}-${htObj[item.house_type]}`
|
|
|
- item.key2 = `${htObj[item.house_type]}`
|
|
|
+ item.key = `${ptObj[item.product_type]}-${htObj[item.house_type]}-${item.area}㎡`
|
|
|
item.val = item.id
|
|
|
})
|
|
|
this.roomAreaList = [...list]
|
|
@@ -388,10 +389,15 @@ export default {
|
|
|
this.cObj.product_type = ra.product_type
|
|
|
this.cObj.house_type = ra.house_type
|
|
|
this.cObj.area = ra.area
|
|
|
- this.cObj.house_img = ra.pri_image
|
|
|
+ this.cObj.house_img = ra.pri_image + '_adm0'
|
|
|
this.cObj.HT = val
|
|
|
this.cObj.title = `${ra.key}(${arrToObj(this.$dictData.area_type)[this.cObj.area_type]})`
|
|
|
+
|
|
|
this.getDef('edit')
|
|
|
+ const hType = ra.house_type ? ra.house_type.split('') : []
|
|
|
+ this.diyFormObj.hType1 = hType[0]
|
|
|
+ this.diyFormObj.hType2= hType[1]
|
|
|
+ this.diyFormObj.hType3 = hType[2]
|
|
|
}
|
|
|
return
|
|
|
})
|
|
@@ -428,6 +434,8 @@ export default {
|
|
|
this.$msg('请输入楼层')
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ if (this.cObj.product_type) newForm.product_type = this.cObj.product_type
|
|
|
if (this.cObj.video) newForm.video = this.cObj.video
|
|
|
// newForm.longitude = this.cObj.longitude
|
|
|
// newForm.latitude = this.cObj.latitude
|
|
@@ -444,6 +452,16 @@ export default {
|
|
|
this.$api.house[apiStr](newForm).then(data => {
|
|
|
this.$msgs(newForm.id ? '编辑成功' : '新增成功')
|
|
|
this.productData = []
|
|
|
+ this.diyFormObj = {
|
|
|
+ addr1: '',
|
|
|
+ addr2: '',
|
|
|
+ addr3: '',
|
|
|
+ hType1: '',
|
|
|
+ hType2: '',
|
|
|
+ hType3: '',
|
|
|
+ sRate1: '',
|
|
|
+ sRate2: '',
|
|
|
+ }
|
|
|
this.$emit('close', newForm)
|
|
|
})
|
|
|
}
|
|
@@ -451,6 +469,16 @@ export default {
|
|
|
} else {
|
|
|
this.$emit('close')
|
|
|
this.productData = []
|
|
|
+ this.diyFormObj = {
|
|
|
+ addr1: '',
|
|
|
+ addr2: '',
|
|
|
+ addr3: '',
|
|
|
+ hType1: '',
|
|
|
+ hType2: '',
|
|
|
+ hType3: '',
|
|
|
+ sRate1: '',
|
|
|
+ sRate2: '',
|
|
|
+ }
|
|
|
this.setDefaultValue()
|
|
|
}
|
|
|
},
|