| 
					
				 | 
			
			
				@@ -6,7 +6,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :wrapper-closable="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :close-on-press-escape="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :visible.sync="isShow" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      size="960px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size="1100px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       custom-class="xl-drawer" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       direction="rtl" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     > 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,6 +24,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :columns="listConfig" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :current-page="currentPage" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :page-size="-1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :operationsDefaultLength="4" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="xl-form"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="xl-form-footer fixed" style="width:960px;padding-top: 20px;border-top: 1px solid #dcdcdc;right:0;"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,13 +33,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <rpt-edit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :isShow="isREShow" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :curObj="reObj" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :roomAreaList="roomAreaList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @close="closeREPopup" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { arrToObj } from '@/utils' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import baseTable from '_m/baseTable.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import RptEdit from './RoomPriceTypeEdit.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  components: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RptEdit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mixins: [...mixins, baseTable], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   props: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     isShow: Boolean, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -55,6 +65,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       cObj: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       searchData: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       roomAreaList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      isREShow: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      reObj: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   computed: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -78,11 +90,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { label: '套内面积(㎡)', prop: 'space', type: 'input', width: '80px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { label: '毛坯单价(元/㎡)', prop: 'blank', type: 'input', width: '90px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { label: '装修单价(元/㎡)', prop: 'decoration', type: 'input', width: '90px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { label: '户型名', prop: 'house_type', type: 'input', width: '120px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '户型名', prop: 'house_type', width: '100px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { label: '户型图', prop: 'houseImg', type: 'img'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { label: '操作', width: 120, type: 'handle2', operations: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '操作', width: 200, type: 'handle2', operations: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { label: '保存', func: this.saveHandle, btnType: 'primary', hide: 'noCan' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { label: '修改户型', func: this.openREPopup, btnType: 'success', hide: 'noCan' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { label: '删除', func: this.delHandle, btnType: 'danger' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -92,7 +105,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   watch: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     isShow: function(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log(this.curObj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.type === 'edit') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.getData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,6 +124,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    openREPopup(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.reObj = row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isREShow = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    closeREPopup(obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isREShow = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getData () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$api.house.admestatelotterypricelist({estate_id: this.curObj.estate_id}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let list = res.list || [] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -191,7 +214,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             space = newForm[f] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        curArr.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        curArr.unshift({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ...n, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           storey: rowIndex, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           room: `${rowIndex}0${colIndex}`, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -200,6 +223,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           house_type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           house_img, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           houseImg, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          blank: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.tableData = [...curArr] 
			 |