|
|
|
@ -67,13 +67,25 @@ class CompanyStatementLackController extends ThinkController
|
|
|
|
|
// $this->checkListOrCountAuthRestMap($map);//导出权限
|
|
|
|
|
|
|
|
|
|
//条件end
|
|
|
|
|
if (isset($_REQUEST['export']) && $_REQUEST['export']==1) {
|
|
|
|
|
$map['company_type'] = $_REQUEST['export_company_type'];
|
|
|
|
|
$data = $this->DBModel
|
|
|
|
|
->field("*")
|
|
|
|
|
->where($map)
|
|
|
|
|
->order("id desc")
|
|
|
|
|
->select();
|
|
|
|
|
$ids = array_column($data, 'id');
|
|
|
|
|
$ids = implode(',', $ids);
|
|
|
|
|
$this->export($ids);
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
$data = $this->DBModel
|
|
|
|
|
->field("*")
|
|
|
|
|
->where($map)
|
|
|
|
|
->page($page,$row)
|
|
|
|
|
->order("id desc")
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($data as $k => &$v) {
|
|
|
|
|
|
|
|
|
|
$v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']);
|
|
|
|
@ -93,7 +105,7 @@ class CompanyStatementLackController extends ThinkController
|
|
|
|
|
if ($page) {
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('data',$data);
|
|
|
|
|
$this->assign('count',$count);
|
|
|
|
|
$this->assign('CompanyType',$this->CompanyType);
|
|
|
|
@ -265,9 +277,12 @@ class CompanyStatementLackController extends ThinkController
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function export(){
|
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
public function export($ids=''){
|
|
|
|
|
if (!$ids) {
|
|
|
|
|
if (!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$dbres = $this->DBModel->where("id in ({$ids})")->select();
|
|
|
|
|
|
|
|
|
|
$is_export= false;
|
|
|
|
@ -411,7 +426,8 @@ class CompanyStatementLackController extends ThinkController
|
|
|
|
|
{
|
|
|
|
|
$mentBtn = [
|
|
|
|
|
"pool"=>"<a class='butn' id='pool'>发起汇总</a>",
|
|
|
|
|
"export"=>"<a class='butn' id='export'>批量导出</a>"
|
|
|
|
|
"export"=>"<a class='butn' id='export'>批量导出</a>",
|
|
|
|
|
"export_all"=>"<a class='butn' id='export_all'>导出所有</a>"
|
|
|
|
|
];
|
|
|
|
|
$resarr = [];
|
|
|
|
|
foreach ($mentBtn as $k => $v) {
|
|
|
|
|