| 
					
				 | 
			
			
				@@ -16,7 +16,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 :clearable="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ></el-date-picker> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button type="primary" class="search-btn" @click="initSearchAll" icon="el-icon-search">查询 </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="search-icon"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-tooltip class="item" effect="light" placement="bottom" content="导出"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,7 +96,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.initSearchData(thisDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.mixins_dataUrl = '/sc-charge/charge/report/page'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.mixins_search(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.initSearchAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     mounted() {}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -130,18 +130,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (val.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let arr = [{ label: '总收费', val: val[0].totalAmount }]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     val[0].details.map((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        arr.push({ label: this.typeName(item), val: item.amount }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         this.cols.splice(5 + index, 0, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             label: this.typeName(item), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             prop: 'type' + index, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             slot: 'type' + index 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.blockArr = arr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.blockArr = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -154,6 +149,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 endTime: time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        initSearchAll() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.mixins_search(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.getTopTable(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         typeName(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let name = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             switch (item.chargeType) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -176,7 +175,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     name = item.chargeName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         exportExcel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.__exportExcel('/sc-charge/charge/report/export/excel', this.mixins_query); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,7 +187,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.mixins_query.startTime = arr[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.mixins_query.endTime = arr[1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.mixins_search(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.initSearchAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         getorgTree(resolve) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$http 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -202,11 +201,26 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .catch(function () {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        getTopTable() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$http.post('/sc-charge/charge/report/total', this.mixins_query).then(({ data, status, msg }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (status == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (!!data && data.details.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        let arr = [{ label: '总收费', val: data.totalAmount }]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        data.details.map((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            arr.push({ label: this.typeName(item), val: item.amount }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.blockArr = arr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.blockArr = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         communityChange(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.communityArr.find((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (item.id == e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.thisObjCommunit = item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.mixins_search(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.initSearchAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 |