|
@@ -26,25 +26,25 @@ class ThreadsExport implements FromCollection,WithHeadings
|
|
$contact = $item->contact?$item->contact->phone:'暂无联系人信息';
|
|
$contact = $item->contact?$item->contact->phone:'暂无联系人信息';
|
|
$qq = $item->contact?$item->contact->qq:'';
|
|
$qq = $item->contact?$item->contact->qq:'';
|
|
$email = $item->contact?$item->contact->email:'';
|
|
$email = $item->contact?$item->contact->email:'';
|
|
- $companyName = $item->company->companyName;
|
|
|
|
|
|
+ $company_name = $item->company->company_name;
|
|
$ower_name = $item->ower->real_name;
|
|
$ower_name = $item->ower->real_name;
|
|
$companyWebsite = $item->company->website;
|
|
$companyWebsite = $item->company->website;
|
|
- $legalPerson = $item->company->legalPerson;
|
|
|
|
- $regCapital = $item->company->regCapital;
|
|
|
|
- $regAddr = $item->company->regAddr;
|
|
|
|
|
|
+ $legal_person = $item->company->legal_person;
|
|
|
|
+ $reg_capital = $item->company->reg_capital;
|
|
|
|
+ $reg_addr = $item->company->reg_addr;
|
|
$lastest = $item->latestProgress();
|
|
$lastest = $item->latestProgress();
|
|
$created_at = $item->created_at;
|
|
$created_at = $item->created_at;
|
|
|
|
|
|
- $base_coll = [$companyName,$contact];
|
|
|
|
|
|
+ $base_coll = [$company_name,$contact];
|
|
|
|
|
|
if(substr_count($this->field,'qq')) array_push($base_coll,$qq);
|
|
if(substr_count($this->field,'qq')) array_push($base_coll,$qq);
|
|
if(substr_count($this->field,'email')) array_push($base_coll,$email);
|
|
if(substr_count($this->field,'email')) array_push($base_coll,$email);
|
|
|
|
|
|
if(substr_count($this->field,'ower_name')) array_push($base_coll,$ower_name);
|
|
if(substr_count($this->field,'ower_name')) array_push($base_coll,$ower_name);
|
|
if(substr_count($this->field,'website')) array_push($base_coll,$companyWebsite);
|
|
if(substr_count($this->field,'website')) array_push($base_coll,$companyWebsite);
|
|
- if(substr_count($this->field,'legalPerson')) array_push($base_coll,$legalPerson);
|
|
|
|
- if(substr_count($this->field,'regCapital')) array_push($base_coll, $regCapital);
|
|
|
|
- if(substr_count($this->field,'regAddr')) array_push($base_coll,$regAddr);
|
|
|
|
|
|
+ if(substr_count($this->field,'legal_person')) array_push($base_coll,$legal_person);
|
|
|
|
+ if(substr_count($this->field,'reg_capital')) array_push($base_coll, $reg_capital);
|
|
|
|
+ if(substr_count($this->field,'reg_addr')) array_push($base_coll,$reg_addr);
|
|
if(substr_count($this->field,'lastest')) array_push($base_coll, $lastest);
|
|
if(substr_count($this->field,'lastest')) array_push($base_coll, $lastest);
|
|
if(substr_count($this->field,'created_at')) array_push($base_coll,$created_at);
|
|
if(substr_count($this->field,'created_at')) array_push($base_coll,$created_at);
|
|
|
|
|
|
@@ -62,10 +62,10 @@ class ThreadsExport implements FromCollection,WithHeadings
|
|
|
|
|
|
if(substr_count($this->field,'ower_name')) array_push($head,'线索拥有者');
|
|
if(substr_count($this->field,'ower_name')) array_push($head,'线索拥有者');
|
|
if(substr_count($this->field,'website')) array_push($head,'企业网站');
|
|
if(substr_count($this->field,'website')) array_push($head,'企业网站');
|
|
- if(substr_count($this->field,'legalPerson')) array_push($head,'法人');
|
|
|
|
|
|
+ if(substr_count($this->field,'legal_person')) array_push($head,'法人');
|
|
|
|
|
|
- if(substr_count($this->field,'regCapital')) array_push($head,'注册资本(万)');
|
|
|
|
- if(substr_count($this->field,'regAddr')) array_push($head,'注册地址');
|
|
|
|
|
|
+ if(substr_count($this->field,'reg_capital')) array_push($head,'注册资本(万)');
|
|
|
|
+ if(substr_count($this->field,'reg_addr')) array_push($head,'注册地址');
|
|
|
|
|
|
if(substr_count($this->field,'lastest')) array_push($head,'最新跟进');
|
|
if(substr_count($this->field,'lastest')) array_push($head,'最新跟进');
|
|
if(substr_count($this->field,'created_at')) array_push($head,'领取时间');
|
|
if(substr_count($this->field,'created_at')) array_push($head,'领取时间');
|