|
@@ -153,7 +153,7 @@ export default {
|
|
|
let cObj = {
|
|
|
house_type_name: arrToObj(this.$dictData.house_type)[v],
|
|
|
house_type_val: v,
|
|
|
- area_list: [{img_url: '', area: ''}]
|
|
|
+ area_list: [{img_url: '', area: '0'}]
|
|
|
}
|
|
|
houseTypeList.forEach((h, hIndex) =>{
|
|
|
if (v === String(h.house_type_val)) {
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
},
|
|
|
roomAreaAdd (one, two) {
|
|
|
let productData = [...this.productData]
|
|
|
- productData[one].house_type_list[two].area_list.push({img_url: '', area: ''})
|
|
|
+ productData[one].house_type_list[two].area_list.push({img_url: '', area: '0'})
|
|
|
this.productData = [...productData]
|
|
|
},
|
|
|
roomAreaUploadImg (one, two, three) {
|
|
@@ -273,7 +273,7 @@ export default {
|
|
|
{ label: '楼栋数', key: 'seat_sum', class: 'c-3', type: 'inputFont', appendFont: '栋' },
|
|
|
{ label: '产权年限', key: 'ownership', class: 'c-3' },
|
|
|
{ label: '初次交付时间', key: 'deliver_time', class: 'c-3', type: 'datePicker', type2: 'month', valueFormat: 'yyyy-MM'},
|
|
|
- { label: '单价区间', key: 'price_range', class: 'c-3', type: 'inputFont', appendFont: '/㎡' },
|
|
|
+ { label: '单价区间', key: 'price_range', class: 'c-3', type: 'inputFont', appendFont: '/㎡', rules: 1 },
|
|
|
{ label: '户型面积区间', key: 'built_area', class: 'c-3', type: 'inputFont', appendFont: '㎡' },
|
|
|
{ label: '产品类型', key: 'product_type', type: 'select', options: this.$dictData.product_type, multiple: true, changeHandle: this.productTypeChange},
|
|
|
// { label: '房型', key: 'house_type', type: 'select', options: this.$dictData.house_type, multiple: true},
|
|
@@ -315,9 +315,19 @@ export default {
|
|
|
if (newForm.park_type) newForm.park_type = newForm.park_type.join(',')
|
|
|
if (newForm.metro_line) newForm.metro_line = newForm.metro_line.join(',')
|
|
|
if (newForm.metro_type) newForm.metro_type = newForm.metro_type.join(',')
|
|
|
- let productData = this.productData || []
|
|
|
newForm.custom_tag = newForm.custom_tag.replace(',', ',')
|
|
|
newForm.stairs_rate = newForm.stairs_rate.replace(',', ',')
|
|
|
+ let productData = this.productData || []
|
|
|
+ let pFlag = false
|
|
|
+ productData.forEach(pOne => {
|
|
|
+ if (!pOne.price_min || !pOne.price_max || !pOne.house_type_list_val) {
|
|
|
+ pFlag = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (pFlag) {
|
|
|
+ this.$msg('请输入输入完整的产品最高单价、最低单价、户型图!')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (productData.length === 0) {
|
|
|
newForm.area_data = ''
|
|
|
} else {
|