|  | @@ -7,6 +7,7 @@
 | 
	
		
			
				|  |  |        :page.sync="page"
 | 
	
		
			
				|  |  |        :search.sync="search"
 | 
	
		
			
				|  |  |        :table-loading="loading"
 | 
	
		
			
				|  |  | +      :summary-method="summaryMethod"
 | 
	
		
			
				|  |  |        @row-del="rowDel"
 | 
	
		
			
				|  |  |        @row-update="rowUpdate"
 | 
	
		
			
				|  |  |        @row-save="rowSave"
 | 
	
	
		
			
				|  | @@ -62,6 +63,8 @@
 | 
	
		
			
				|  |  |    import option from "./configuration/mainList.json";
 | 
	
		
			
				|  |  |    import { getList,deleteMain } from "@/api/workManagement/mainProject";
 | 
	
		
			
				|  |  |    import reportDialog from "@/components/report-dialog/main";
 | 
	
		
			
				|  |  | +  import { micrometerFormat } from "@/util/validate";
 | 
	
		
			
				|  |  | +  import _ from "lodash";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    data() {
 | 
	
	
		
			
				|  | @@ -89,10 +92,10 @@ export default {
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    // option.height = window.innerHeight - 380 ;
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  | -    option.height = window.innerHeight - 380 ;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    components: {
 | 
	
		
			
				|  |  |      reportDialog
 | 
	
	
		
			
				|  | @@ -142,9 +145,8 @@ export default {
 | 
	
		
			
				|  |  |        this.getList(this.page, params);
 | 
	
		
			
				|  |  |        done();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    refreshChange(params,done) {
 | 
	
		
			
				|  |  | +    refreshChange(params) {
 | 
	
		
			
				|  |  |        this.getList(this.page,params);
 | 
	
		
			
				|  |  | -      done();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //删除列表后面的删除按钮触发触发(row, index, done)
 | 
	
		
			
				|  |  |      rowDel(row, index, done) {
 | 
	
	
		
			
				|  | @@ -189,6 +191,32 @@ export default {
 | 
	
		
			
				|  |  |      saveColumn(row, column) {
 | 
	
		
			
				|  |  |        console.log(row, column);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    summaryMethod({ columns, data }) {
 | 
	
		
			
				|  |  | +      const sums = [];
 | 
	
		
			
				|  |  | +      if (columns.length > 0) {
 | 
	
		
			
				|  |  | +        columns.forEach((item, index) => {
 | 
	
		
			
				|  |  | +          sums[0] = "合计";
 | 
	
		
			
				|  |  | +          if (
 | 
	
		
			
				|  |  | +            item.property == "debitAmount" ||
 | 
	
		
			
				|  |  | +            item.property == "settlmentAmount"
 | 
	
		
			
				|  |  | +          ) {
 | 
	
		
			
				|  |  | +            let qtySum = 0;
 | 
	
		
			
				|  |  | +            let instoreSum = 0;
 | 
	
		
			
				|  |  | +            data.forEach(e => {
 | 
	
		
			
				|  |  | +              qtySum = _.add(qtySum, Number(e.debitAmount));
 | 
	
		
			
				|  |  | +              instoreSum = _.add(instoreSum, Number(e.settlmentAmount));
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            if (item.property == "debitAmount") {
 | 
	
		
			
				|  |  | +              sums[index] = micrometerFormat(qtySum);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (item.property == "settlmentAmount") {
 | 
	
		
			
				|  |  | +              sums[index] = micrometerFormat(instoreSum);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      return sums;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      //打开详情页
 | 
	
		
			
				|  |  |      beforeOpenPage(row, index) {
 | 
	
		
			
				|  |  |        this.$router.push({
 |