| 
					
				 | 
			
			
				@@ -115,18 +115,24 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getDef (str) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let params = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       params = { ...this.cObj } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (str === 'edit') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params = {...this.$refs.ruleForm.baseForm, ...params} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (params.estate_id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.formData = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '房源标题', key: 'title'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '所属楼盘', key: 'estate_id', rules: 1, class: 'c-3', type: 'selectRemote', changeHandle: this.estateChange, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            remoteOptions: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              { keyRO: params.estate_name, valRO: params.estate_id } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '区域', key: 'area_type', class: 'c-3', type: 'select', options: this.$dictData.area_type}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '产品类型', key: 'product_type', class: 'c-3', type: 'select', options: this.$dictData.product_type}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: `产品户型`, key: `HT`, class: 'c-3', rules: 1, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: `产品户型`, label2: `快捷选择工具`, key: `HT`, class: 'c-3', type: 'select', options: this.roomAreaList, changeHandle: this.htChange,}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '面积', key: 'area', class: 'c-3', type: 'inputFont', appendFont: '㎡'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '房源户型', key: 'house_type', class: 'c-3', type: 'select', options: this.$dictData.house_type}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '户型图', key: 'hxt', class: 'c-3', type: 'upload' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '房源标题', key: 'title'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '户型图', key: 'house_img', class: 'c-3', type: 'upload' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '房源主图', key: 'pri_image', rules: 1, class: 'c-3', type: 'cuImg', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             options: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               w: 375, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -135,19 +141,18 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           },  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '房源地址', key: 'address' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '详细地址', label2: '如:1栋2单元305室', class: 'c-3s', key: 'xxxxxxx' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '满几年', key: 'xxxxxxxx', class: 'c-3', type: 'select', options: this.$dictData.house_room_year }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '详细地址', label2: '如:1栋2单元305室', class: 'c-3s', key: 'detail_address' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '满几年', key: 'how_many_year', class: 'c-3', type: 'select', options: this.$dictData.house_room_year }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '总价', key: 'price', class: 'c-3'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '层高', label2: '如:6/7', class: 'c-3', key: 'xxxxxxx' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '是否装修', key: 'xxxxxxxx', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '业主称呼', class: 'c-3', key: 'xxxxxxx' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '业主电话', class: 'c-3', key: 'xxxxxxx' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '自定义标签', class: 'c-3', key: 'xxxxxxx' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '层高', label2: '如:6/7', class: 'c-3', key: 'floor_height' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '是否装修', key: 'is_dec', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '业主称呼', class: 'c-3', key: 'owner' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '业主电话', class: 'c-3', key: 'phone' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { label: '自定义标签', class: 'c-3', key: 'custom_tag' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '备注', key: 'remarked', type: 'textarea' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.formData = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { label: '房源标题', key: 'title'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { label: '所属楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', changeHandle: this.estateChange, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -157,30 +162,32 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setDefaultValue(params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     estateChange (estate_id, op, cur) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$api.house.admestatehousearealist({estate_id}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const list = res.list || [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const htObj = arrToObj(this.$dictData.house_type) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const ptObj = arrToObj(this.$dictData.product_type) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        list.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.key = `${htObj[item.house_type]}${item.area}㎡-${ptObj[item.product_type]}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.key2 = `${htObj[item.house_type]}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.val = item.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (estate_id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$api.house.admestatehousearealist({estate_id}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const list = res.list || [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const htObj = arrToObj(this.$dictData.house_type) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const ptObj = arrToObj(this.$dictData.product_type) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          list.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.key = `${htObj[item.house_type]}${item.area}㎡-${ptObj[item.product_type]}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.key2 = `${htObj[item.house_type]}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.val = item.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.roomAreaList = [...list] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.estate_id = estate_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.area_type = cur.area_type 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.address = cur.address 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.latitude = cur.latitude 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.longitude = cur.longitude 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.estate_name = cur.estate_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.title = `${cur.estate_name}-${arrToObj(this.$dictData.area_type)[cur.area_type]}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.product_type = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.house_type = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.area = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.house_img = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.HT = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getDef('edit') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.roomAreaList = [...list] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.estate_id = estate_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.area_type = cur.area_type 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.address = cur.address 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.latitude = cur.latitude 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.longitude = cur.longitude 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.estate_name = cur.estate_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.title = `${cur.estate_name}-${arrToObj(this.$dictData.area_type)[cur.area_type]}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.product_type = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.house_type = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.area = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.hxt = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cObj.HT = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getDef() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     htChange (val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.roomAreaList.forEach(ra => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,10 +195,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.cObj.product_type = ra.product_type 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.cObj.house_type = ra.house_type 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.cObj.area = ra.area 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.cObj.hxt = ra.pri_image 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cObj.house_img = ra.pri_image 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.cObj.HT = val 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.cObj.title = `${ra.key}-${this.cObj.estate_name}(${arrToObj(this.$dictData.area_type)[this.cObj.area_type]})` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.getDef() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getDef('edit') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 |