|  | @@ -15,7 +15,9 @@
 | 
	
		
			
				|  |  |                 @refresh-change="refreshChange"
 | 
	
		
			
				|  |  |                 @on-load="onLoad">
 | 
	
		
			
				|  |  |        <template slot="flagSearch">
 | 
	
		
			
				|  |  | -        <el-select   v-model="search.flag"  placeholder="" >
 | 
	
		
			
				|  |  | +        <el-select
 | 
	
		
			
				|  |  | +          v-model="search.flag"
 | 
	
		
			
				|  |  | +          placeholder="" >
 | 
	
		
			
				|  |  |            <el-option
 | 
	
		
			
				|  |  |              v-for="item in flagOptions"
 | 
	
		
			
				|  |  |              :key="item.value"
 | 
	
	
		
			
				|  | @@ -24,6 +26,29 @@
 | 
	
		
			
				|  |  |            </el-option>
 | 
	
		
			
				|  |  |          </el-select>
 | 
	
		
			
				|  |  |        </template>
 | 
	
		
			
				|  |  | +      <template slot="userNameSearch">
 | 
	
		
			
				|  |  | +        <el-select
 | 
	
		
			
				|  |  | +          v-model="search.userName"
 | 
	
		
			
				|  |  | +          remote
 | 
	
		
			
				|  |  | +          filterable
 | 
	
		
			
				|  |  | +          clearable
 | 
	
		
			
				|  |  | +          :remote-method="userNameRemoteMethod"
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  | +          <el-option
 | 
	
		
			
				|  |  | +            v-for="item in userNameOptions"
 | 
	
		
			
				|  |  | +            :key="item.value"
 | 
	
		
			
				|  |  | +            :label="item.realName"
 | 
	
		
			
				|  |  | +            :value="item.realName">
 | 
	
		
			
				|  |  | +          </el-option>
 | 
	
		
			
				|  |  | +        </el-select>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="corpNamesSearch">
 | 
	
		
			
				|  |  | +        <crop-select
 | 
	
		
			
				|  |  | +          v-model="search.corpNames"
 | 
	
		
			
				|  |  | +          corpType="KH"
 | 
	
		
			
				|  |  | +          style="width: 100%"
 | 
	
		
			
				|  |  | +        ></crop-select>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  |      </avue-crud>
 | 
	
		
			
				|  |  |    </basic-container>
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -32,18 +57,18 @@
 | 
	
		
			
				|  |  |    import option from "./config/mainList.json";
 | 
	
		
			
				|  |  |    import clientOption from "./config/clientList.json";
 | 
	
		
			
				|  |  |    import { performanceAnalysis } from "@/api/workManagement/mainProject";
 | 
	
		
			
				|  |  | +  import { getUserList } from "@/api/workManagement/mainProject";
 | 
	
		
			
				|  |  |    import _ from "lodash";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    export default {
 | 
	
		
			
				|  |  |      data() {
 | 
	
		
			
				|  |  |        return {
 | 
	
		
			
				|  |  | -        loading : false,
 | 
	
		
			
				|  |  |          form: {},
 | 
	
		
			
				|  |  |          search:{},
 | 
	
		
			
				|  |  | -        detailData:{},
 | 
	
		
			
				|  |  |          option: option,
 | 
	
		
			
				|  |  | -        parentId:0,
 | 
	
		
			
				|  |  | +        loading:false,
 | 
	
		
			
				|  |  |          dataList: [],
 | 
	
		
			
				|  |  | +        userNameOptions:[],
 | 
	
		
			
				|  |  |          flagOptions:[{
 | 
	
		
			
				|  |  |            value: '1',
 | 
	
		
			
				|  |  |            label: '制单人'
 | 
	
	
		
			
				|  | @@ -56,36 +81,26 @@
 | 
	
		
			
				|  |  |            pagerCount: 5,
 | 
	
		
			
				|  |  |            total: 0,
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        query:{},
 | 
	
		
			
				|  |  | -        configuration:{
 | 
	
		
			
				|  |  | -          multipleChoices:false,
 | 
	
		
			
				|  |  | -          multiple:false,
 | 
	
		
			
				|  |  | -          disabled:false,
 | 
	
		
			
				|  |  | -          searchShow:true,
 | 
	
		
			
				|  |  | -          collapseTags:false,
 | 
	
		
			
				|  |  | -          clearable:true,
 | 
	
		
			
				|  |  | -          placeholder:'请点击右边按钮选择',
 | 
	
		
			
				|  |  | -          dicData:[]
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        breakConfiguration:{
 | 
	
		
			
				|  |  | -          multipleChoices:false,
 | 
	
		
			
				|  |  | -          multiple:false,
 | 
	
		
			
				|  |  | -          disabled:false,
 | 
	
		
			
				|  |  | -          searchShow:true,
 | 
	
		
			
				|  |  | -          collapseTags:false,
 | 
	
		
			
				|  |  | -          clearable:true,
 | 
	
		
			
				|  |  | -          placeholder:'请点击右边按钮选择',
 | 
	
		
			
				|  |  | -          dicData:[]
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      created() {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +      getUserList().then(res=>{
 | 
	
		
			
				|  |  | +        res.data.data.map((item,index)=>{
 | 
	
		
			
				|  |  | +          if(index <= 20){
 | 
	
		
			
				|  |  | +            this.userNameOptions.push(item)
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      mounted() {
 | 
	
		
			
				|  |  | -      // option.height = window.innerHeight - 200 ;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      methods: {
 | 
	
		
			
				|  |  | +      userNameRemoteMethod(val){
 | 
	
		
			
				|  |  | +        getUserList({realName : val}).then(res=>{
 | 
	
		
			
				|  |  | +          this.userNameOptions = res.data.data
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |        //新单打开
 | 
	
		
			
				|  |  |        addReceipt(row){
 | 
	
		
			
				|  |  |          console.log(1)
 | 
	
	
		
			
				|  | @@ -110,16 +125,23 @@
 | 
	
		
			
				|  |  |          this.onLoad(this.page,params);
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        //点击搜索按钮触发
 | 
	
		
			
				|  |  | -      searchChange(params) {
 | 
	
		
			
				|  |  | +      searchChange(params,done) {
 | 
	
		
			
				|  |  |          this.onLoad(this.page, params);
 | 
	
		
			
				|  |  | +        done()
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        paramsAdjustment(params) {
 | 
	
		
			
				|  |  |          params = Object.assign({}, this.search);
 | 
	
		
			
				|  |  |          if(!params.flag){
 | 
	
		
			
				|  |  | -          params.flag = 1
 | 
	
		
			
				|  |  | +          params.flag = "1"
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if(!params.year){
 | 
	
		
			
				|  |  | -          params.year = 2021
 | 
	
		
			
				|  |  | +          params.year = "2021"
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if(params.flag == 1){
 | 
	
		
			
				|  |  | +          this.option = option
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.option = clientOption
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return params
 | 
	
		
			
				|  |  |        },
 | 
	
	
		
			
				|  | @@ -128,6 +150,20 @@
 | 
	
		
			
				|  |  |          this.loading = true;
 | 
	
		
			
				|  |  |          params = this.paramsAdjustment(params)
 | 
	
		
			
				|  |  |          performanceAnalysis(page.currentPage, page.pageSize,params).then(res=>{
 | 
	
		
			
				|  |  | +          res.data.data.records.forEach((item)=>{
 | 
	
		
			
				|  |  | +            item.total =parseFloat(item.jan)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.feb)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.mar)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.apr)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.may)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.june)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.july)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.aug)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.sept)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.oct)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.nov)  +
 | 
	
		
			
				|  |  | +              parseFloat(item.dece)
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  |            this.dataList = res.data.data.records
 | 
	
		
			
				|  |  |            this.page.total = res.data.data.total
 | 
	
		
			
				|  |  |          }).finally(()=>{
 |