|  | @@ -51,6 +51,10 @@ import {
 | 
	
		
			
				|  |  |      orderRemove,
 | 
	
		
			
				|  |  |      corpequipmentarchivesList, corpequipmentarchivesRemove
 | 
	
		
			
				|  |  |  } from "@/api/basicData/EquipmentArchives";
 | 
	
		
			
				|  |  | +import {
 | 
	
		
			
				|  |  | +    allCropList,
 | 
	
		
			
				|  |  | +} from "@/api/basicData/customerInformation";
 | 
	
		
			
				|  |  | +import {getCustomerCode} from "@/enums/management-type";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "index",
 | 
	
		
			
				|  |  |    data() {
 | 
	
	
		
			
				|  | @@ -144,23 +148,9 @@ export default {
 | 
	
		
			
				|  |  |      detailsPage
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async created() {
 | 
	
		
			
				|  |  | -      this.getWorkDicts("payment_status").then(res => {
 | 
	
		
			
				|  |  | -          const arr = res.data.data.map(item => {
 | 
	
		
			
				|  |  | -              item.dictKey = Number(item.dictKey)
 | 
	
		
			
				|  |  | -              return item
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -          this.findObject(this.option.column, "actualPaymentStatus").dicData = arr
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -      this.getWorkDicts("order_status_pjjl").then(res => {
 | 
	
		
			
				|  |  | -          const arr = res.data.data.map(item => {
 | 
	
		
			
				|  |  | -              item.dictKey = Number(item.dictKey)
 | 
	
		
			
				|  |  | -              return item
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -          this.findObject(this.option.column, "status").dicData = arr
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  |      this.option = option
 | 
	
		
			
				|  |  |      this.option.height = window.innerHeight - 210;
 | 
	
		
			
				|  |  | -    this.getAllWorkDicts()
 | 
	
		
			
				|  |  | +      this.allCropListfun()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    activated() {
 | 
	
		
			
				|  |  |      this.$refs.crud.refreshTable();
 | 
	
	
		
			
				|  | @@ -174,15 +164,16 @@ export default {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | -    getAllWorkDicts() {
 | 
	
		
			
				|  |  | -      gainUser().then(res => {
 | 
	
		
			
				|  |  | -        this.findObject(this.option.column, "createUser").dicData = res.data.data;
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | -      getCorpType({ corpType: 'GYS' }).then(res => {
 | 
	
		
			
				|  |  | -        this.findObject(this.option.column, "corpType").dicData= res.data.data
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -      this.$refs.crud.init();
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | +      // 客户查询
 | 
	
		
			
				|  |  | +      allCropListfun(){
 | 
	
		
			
				|  |  | +          let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
 | 
	
		
			
				|  |  | +          allCropList({
 | 
	
		
			
				|  |  | +              corpType: "KH",
 | 
	
		
			
				|  |  | +              adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
 | 
	
		
			
				|  |  | +          }).then(res=>{
 | 
	
		
			
				|  |  | +              this.findObject(this.option.column, "corpName").dicData = res.data.data
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      searchCriteriaSwitch(type) {
 | 
	
		
			
				|  |  |        if (type) {
 | 
	
		
			
				|  |  |          this.option.height = this.option.height - 138;
 |