|  | @@ -33,7 +33,7 @@
 | 
	
		
			
				|  |  |            }}</span>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot="whetherSettlementSearch">
 | 
	
		
			
				|  |  | -          <el-checkbox v-model="search.whetherSettlement" :true-label="1" :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  | +          <el-checkbox v-model="search.whetherSettlement" :true-label="0" :false-label="1"></el-checkbox>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |        </avue-crud>
 | 
	
		
			
				|  |  |      </basic-container>
 | 
	
	
		
			
				|  | @@ -52,6 +52,7 @@ import _ from "lodash";
 | 
	
		
			
				|  |  |  import reportDialog from "@/components/report-dialog/main";
 | 
	
		
			
				|  |  |  import { gainUser } from "@/api/basicData/customerInquiry";
 | 
	
		
			
				|  |  |  import detail from "./detail";
 | 
	
		
			
				|  |  | +import {defaultDate3} from "@/util/date";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "index",
 | 
	
	
		
			
				|  | @@ -73,7 +74,11 @@ export default {
 | 
	
		
			
				|  |  |            prop: "cost",
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            id: 3,
 | 
	
		
			
				|  |  | -          label: "利润",
 | 
	
		
			
				|  |  | +          label: "运费",
 | 
	
		
			
				|  |  | +          prop: "freight",
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  | +          id: 4,
 | 
	
		
			
				|  |  | +          label: "毛利",
 | 
	
		
			
				|  |  |            prop: "profit",
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        ],
 | 
	
	
		
			
				|  | @@ -84,6 +89,7 @@ export default {
 | 
	
		
			
				|  |  |        form: {},
 | 
	
		
			
				|  |  |        search: {
 | 
	
		
			
				|  |  |          whetherSettlement: 0,
 | 
	
		
			
				|  |  | +        businesDateList:defaultDate3()
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        dataList: [],
 | 
	
		
			
				|  |  |        loading: false,
 | 
	
	
		
			
				|  | @@ -197,7 +203,13 @@ export default {
 | 
	
		
			
				|  |  |              overHidden: true,
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            label: "利润",
 | 
	
		
			
				|  |  | +            label: "运费",
 | 
	
		
			
				|  |  | +            prop: "freight",
 | 
	
		
			
				|  |  | +            search: false,
 | 
	
		
			
				|  |  | +            overHidden: true,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            label: "毛利",
 | 
	
		
			
				|  |  |              prop: "profit",
 | 
	
		
			
				|  |  |              search: false,
 | 
	
		
			
				|  |  |              overHidden: true,
 | 
	
	
		
			
				|  | @@ -234,15 +246,15 @@ export default {
 | 
	
		
			
				|  |  |        this.userList = res.data.data;
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    let i = 0;
 | 
	
		
			
				|  |  | -    this.option.column.forEach(item => {
 | 
	
		
			
				|  |  | -      if (item.search) i++
 | 
	
		
			
				|  |  | -    })
 | 
	
		
			
				|  |  | -    if (i % 3 !== 0) {
 | 
	
		
			
				|  |  | -      const num = 3 - Number(i % 3)
 | 
	
		
			
				|  |  | -      this.option.searchMenuSpan = num * 8;
 | 
	
		
			
				|  |  | -      this.option.searchMenuPosition = "right";
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    // let i = 0;
 | 
	
		
			
				|  |  | +    // this.option.column.forEach(item => {
 | 
	
		
			
				|  |  | +    //   if (item.search) i++
 | 
	
		
			
				|  |  | +    // })
 | 
	
		
			
				|  |  | +    // if (i % 3 !== 0) {
 | 
	
		
			
				|  |  | +    //   const num = 3 - Number(i % 3)
 | 
	
		
			
				|  |  | +    //   this.option.searchMenuSpan = num * 8;
 | 
	
		
			
				|  |  | +    //   this.option.searchMenuPosition = "right";
 | 
	
		
			
				|  |  | +    // }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      cellStyle() {
 | 
	
	
		
			
				|  | @@ -275,6 +287,7 @@ export default {
 | 
	
		
			
				|  |  |        this.page.pageSize = val;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      onLoad(page, params) {
 | 
	
		
			
				|  |  | +      this.search=this.deepClone(this.search)
 | 
	
		
			
				|  |  |        this.search.customerId = this.search.customerName
 | 
	
		
			
				|  |  |        this.sysitemType = localStorage.getItem('sysitemType');
 | 
	
		
			
				|  |  |        if (this.sysitemType == 999) {
 | 
	
	
		
			
				|  | @@ -327,7 +340,7 @@ export default {
 | 
	
		
			
				|  |  |                this.itemloading = false;
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |            if (this.page.total) {
 | 
	
		
			
				|  |  | -            this.option.height = window.innerHeight - 230;
 | 
	
		
			
				|  |  | +            this.option.height = window.innerHeight - 330;
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .finally(() => {
 |