|  | @@ -47,7 +47,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import option from './config/mainList.json';
 | 
	
		
			
				|  |  | -import {getList, overpaymentDetail} from '@/api/maintenance/overpayment';
 | 
	
		
			
				|  |  | +import {customerList} from "@/api/basicData/customerInformation";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "index",
 | 
	
	
		
			
				|  | @@ -97,26 +97,23 @@ export default {
 | 
	
		
			
				|  |  |        this.page.currentPage = 1;
 | 
	
		
			
				|  |  |        this.onLoad(this.page, this.search);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    onLoad(page, params) {
 | 
	
		
			
				|  |  | +    onLoad(page, params = { parentId: 0 }) {
 | 
	
		
			
				|  |  |        this.dataList.forEach(item => {
 | 
	
		
			
				|  |  |          this.$refs.crud.toggleRowExpansion(item, false)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | +      let queryParams = Object.assign({}, params, {
 | 
	
		
			
				|  |  | +        size: page.pageSize,
 | 
	
		
			
				|  |  | +        current: page.currentPage,
 | 
	
		
			
				|  |  | +        corpsTypeId: '',
 | 
	
		
			
				|  |  | +        corpType: 'KH'
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  |        this.loading = true;
 | 
	
		
			
				|  |  | -      getList(page.currentPage, page.pageSize, params)
 | 
	
		
			
				|  |  | -        .then(res => {
 | 
	
		
			
				|  |  | -          this.dataList = res.data.data.records ? res.data.data.records : [];
 | 
	
		
			
				|  |  | -          this.page.total = res.data.data.total;
 | 
	
		
			
				|  |  | -          if (this.page.total) {
 | 
	
		
			
				|  |  | -            this.option.height = window.innerHeight - 260;
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          this.dataList.forEach(item => {
 | 
	
		
			
				|  |  | -            this.$set(item,'insideList',[])
 | 
	
		
			
				|  |  | -            this.$set(item,'loading', true)
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        .finally(() => {
 | 
	
		
			
				|  |  | -          this.loading = false;
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | +      customerList(queryParams).then(res => {
 | 
	
		
			
				|  |  | +        this.dataList = res.data.data.records;
 | 
	
		
			
				|  |  | +        this.page.total = res.data.data.total;
 | 
	
		
			
				|  |  | +      }).finally(() => {
 | 
	
		
			
				|  |  | +        this.loading = false;
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 表格展开触发
 | 
	
		
			
				|  |  |      expandChange(row, index) {
 |