|
...
|
...
|
@@ -10,6 +10,7 @@ use App\Models\Inquiry\InquiryForm; |
|
|
|
use App\Models\Inquiry\PhoneData;
|
|
|
|
use App\Rules\Ids;
|
|
|
|
use App\Services\BatchExportService;
|
|
|
|
use App\Utils\LogUtils;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
use Illuminate\Support\Str;
|
|
...
|
...
|
@@ -135,7 +136,7 @@ class InquiryController extends BaseController |
|
|
|
{
|
|
|
|
if(!empty($this->param['form_id'])){
|
|
|
|
$data = $logic->getFormDataList(true);
|
|
|
|
$field = InquiryForm::getField($this->param['form_id']);
|
|
|
|
$field = InquiryForm::getField($this->param['form_id'], $this->user['project_id']);
|
|
|
|
$map = [
|
|
|
|
'submit_time' => '询盘发送时间',
|
|
|
|
];
|
|
...
|
...
|
@@ -179,8 +180,12 @@ class InquiryController extends BaseController |
|
|
|
if(!empty($this->param['form_id'])){
|
|
|
|
$item = array_merge($item, $item['data']);
|
|
|
|
}
|
|
|
|
|
|
|
|
LogUtils::info('Inquiry_export', [$map, $item]);
|
|
|
|
foreach ($map as $field => $name) {
|
|
|
|
if(empty($item[$field])){
|
|
|
|
$item[$field] = '';
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if(is_array($item[$field])){
|
|
|
|
$item[$field] = implode(',',$item[$field]);
|
|
|
|
}
|
...
|
...
|
|