<?php
/** 
 * 导入配置
 */
return [
	'formatCell' => [
        /*格式化单元格的值 [
            类, 
            类的创建参数, 默认[]
            方法, 
            参数,  ['@innum','@outnum',123,true] @表示使用导入数据中的列中的值 ,'@'表示自己 
            如果结果是数组指定返回哪个键 默认null
        ]*/
	    
	    //通过中英文找品名
        'cate'=>[\model\pro\cate::class,[],'eqname',['@','@pcate', 1],null],
		//后台账号ID
		'auser'=>[\model\user::class,[],'getAdminAuid',['@'],null],
		//部门
		'adepa'=>[\model\collocation::class,[],'checkOidByName',['@', 4],null],
		//业务员区域
		'aarea'=>[\model\collocation::class,[],'checkOidByName',['@', 3],null],
		//可销售区域
		'sarea'=>[\model\collocation::class,[],'getOidByName',['@', 1],null],
		//号码找产品ID 
		'p_idLinkInnum'=>[\model\pro\pro::class,[],'getLinkPidByInnum',['@'],null],
		//'p_id'=>[\model\pro\pro::class,[],'getPidByNumber',['@', '3'],null],
		//'p_idByInnum'=>[\model\pro\pro::class,[],'getPidByNumber',['@', '3'],null],
		//ncv+outnum
		//'p_idBygspncv'=>[\model\pro\pro::class,[],'getPidByGspNcv',['@'],null],
		//p_code
		'pc_id'=>[\model\pro\pro::class,[],'getPcId',['@'],null],
	    
	    //编码补充规则
		'pro_code_ext'=>[\model\element::class,['pro_code_ext'],'eqname',['@'],null],
        'pro_code_a'=>[\model\element::class,['pro_code_a'],'eqname',['@'],null], 
        'pro_code_b'=>[\model\element::class,['pro_code_b'],'eqname',['@'],null],
        'pro_code_c'=>[\model\element::class,['pro_code_c'],'eqname',['@'],null],

		//找厂商ID
		'pf_id'=>[\model\pro\factory::class,[],'getFacId',['@'],null],
		'pf_id_gsp'=>[\model\pro\factory::class,[],'getFacId',['@','gsp'],null],
		//区域
		'ma_id'=>[\model\element::class,['m_area'],'eqname',['@'],null],
		//车型品牌
		'mk_id'=>[\model\carmodel::class,[],'getMakeIdByName',['@'],null],
		//小车型
		'ms_id'=>[\model\carmodel::class,[],'mseqname',['@mk_id','@'],null],
		'chkmm_id'=>[\model\carmodel::class,[],'chkMmid',['@'],null],
		//OE品牌[/分隔] AUDI/VW
		'mk_ids'=>[\model\carmodel::class,[],'getOeMakeIds',['@'],null],
		//数据版本 北美,目录排版...
		'tags'=>[\model\tags::class,[],'getTidsStrByNames',['@'],null],
		//区域 支持:全球,欧洲...
		'areas'=>[\model\carmodel::class,[],'getEndAreasIds',['@'],null],
		//适用国家 支持:全球,欧洲...
		'sale_coun'=>[\model\country::class,[],'getCountryIdsByTxt',['@'],null],
		//object 数据来源
		'coll1'=>[\model\collocation::class,[],'getOidByName',['@', 1],null],
		'coll2'=>[\model\collocation::class,[],'getOidByName',['@', 2],null],
		'coll5'=>[\model\collocation::class,[],'getOidByName',['@', 5],null],
		'coll6'=>[\model\collocation::class,[],'getOidByName',['@', 6],null],
		//object 关联类型
		'coll23'=>[\model\collocation::class,[],'getOidByName',['@', 23],null],
		//车系
		'coll22'=>[\model\collocation::class,[],'getOidByName',['@', 22],null],
		//生产国
		'coll25'=>[\model\collocation::class,[],'getOidByName',['@', 25],null],
		'coll17'=>[\model\collocation::class,[],'getOidByName',['@', 17],null],
		'coll15'=>[\model\collocation::class,[],'getOidByName',['@', 15],null],
		'coll18'=>[\model\collocation::class,[],'getOidByName',['@', 18],null],
		'coll16'=>[\model\collocation::class,[],'getOidByName',['@', 16],null],
		'coll24'=>[\model\collocation::class,[],'getOidByName',['@', 24],null],
		'coll3'=>[\model\collocation::class,[],'getOidByName',['@', 3],null],
		
		/**
		 * 样品相关
		 */
		//通过流水号找样品ID
		's_id_byseq'=>[\model\sample\sample::class,[],'getRowByFieldValue',['s_plmseq','@'], 's_id'],
		//子状态
		's_state_sub'=>[\model\sample\sample::class,[],'get_s_state_sub',['@'], null],
		//客户
		'customer'=>[\model\customer::class,[],'eqname',['@','@s_customer_code'],null],
		//申请类型
		'coll5'=>[\model\collocation::class,[],'getOidByName',['@', 5],null],
		//可销售区域
		'coll1'=>[\model\collocation::class,[],'getOidByName',['@', 1],null],
		//车型来源
		'coll6'=>[\model\collocation::class,[],'getOidByName',['@', 6],null],
		//保有量来源
		'coll7'=>[\model\collocation::class,[],'getOidByName',['@', 7],null],
		//采购状态
		'coll9'=>[\model\collocation::class,[],'getOidByName',['@', 9],null],
		//采购渠道
		'coll10'=>[\model\collocation::class,[],'getOidByName',['@', 10],null],
		//币种
		'coll11'=>[\model\collocation::class,[],'getOidByName',['@', 11],null],
		//来样方式
		'coll12'=>[\model\collocation::class,[],'getOidByName',['@', 12],null],
		//到样地点
		'coll13'=>[\model\collocation::class,[],'getOidByName',['@', 13],null],
		//核对类型
		'coll14'=>[\model\collocation::class,[],'getOidByName',['@', 14],null],
		/**
		 * oppo相关
		 */
		//国家id
		'country_id'=>[\model\oppo\oppo::class,[],'getCountryIdByName',['@'],null],
		//区域id
		'area_id'=>[\model\oppo\oppo::class,[],'getAreaIdByName',['@'],null],
		//品牌
		'brand_id'=>[\model\oppo\oppo::class,[],'getBrandIdByName',['@'],null],
		//公司id
		'bussiness_id'=>[\model\oppo\oppo::class,[],'getBussinessIdByName',['@'],null],
		//品牌维度
		'brand_dimension_id'=>[\model\oppo\oppo::class,[],'getDimensionIdByName',['@'],null],	
	]
];