|
|
@ -78,7 +78,8 @@ class CompanyRelationController extends AdminController
|
|
|
|
if(isset($params['status'])){
|
|
|
|
if(isset($params['status'])){
|
|
|
|
$where['status'] = $params['status'];
|
|
|
|
$where['status'] = $params['status'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$dbres = $this->DBlogModel->where($where);
|
|
|
|
$this->checkListOrCountAuthRestMap($where);//导出权限
|
|
|
|
|
|
|
|
$dbres = $this->DBlogModel->where($where)->order("FIELD(status,0,1,-1,-2,2),id desc");;
|
|
|
|
if(isset($params['export'])){
|
|
|
|
if(isset($params['export'])){
|
|
|
|
$dbres = $dbres->select();
|
|
|
|
$dbres = $dbres->select();
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
@ -123,6 +124,28 @@ class CompanyRelationController extends AdminController
|
|
|
|
$v['oplist'] = $this->OpAuth($v);
|
|
|
|
$v['oplist'] = $this->OpAuth($v);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['export'])){
|
|
|
|
|
|
|
|
$GetData = $_GET;
|
|
|
|
|
|
|
|
unset($GetData['export']);
|
|
|
|
|
|
|
|
addOperationLog(['op_type'=>3,'key'=>getNowDate(),"op_name"=>"导出",'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData)]);
|
|
|
|
|
|
|
|
data2csv($dbres,'公司绑定审核列表',array(
|
|
|
|
|
|
|
|
"first_company_name"=>"甲方公司类型",
|
|
|
|
|
|
|
|
"first_company_type"=>"甲方公司",
|
|
|
|
|
|
|
|
"second_company_name"=>"乙方公司",
|
|
|
|
|
|
|
|
"second_company_type"=>"乙方公司类型",
|
|
|
|
|
|
|
|
"settlement_type"=>"结算周期",
|
|
|
|
|
|
|
|
"invoice_type"=>"开票类型",
|
|
|
|
|
|
|
|
"invoice_content"=>"开票内容",
|
|
|
|
|
|
|
|
"is_payment"=>"打款流程",
|
|
|
|
|
|
|
|
"collection"=>"收款方",
|
|
|
|
|
|
|
|
"create"=>"创建记录",
|
|
|
|
|
|
|
|
"market"=>"市场部审批",
|
|
|
|
|
|
|
|
"admin"=>"管理员审批",
|
|
|
|
|
|
|
|
"remark"=>"备注"
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$count = $this->DBlogModel->field("count(id) count")->where($where)->find()['count'];
|
|
|
|
$count = $this->DBlogModel->field("count(id) count")->where($where)->find()['count'];
|
|
|
|
$this->assign('data', $dbres);
|
|
|
|
$this->assign('data', $dbres);
|
|
|
|
$page = set_pagination($count, $row);
|
|
|
|
$page = set_pagination($count, $row);
|
|
|
@ -237,7 +260,7 @@ class CompanyRelationController extends AdminController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$addurl = U("addRelation");
|
|
|
|
$addurl = U("addRelation");
|
|
|
|
$mentBtn = [
|
|
|
|
$mentBtn = [
|
|
|
|
"addRelation"=>"<a class='butn' href='{$addurl}'>新增推广游戏分成</a>",
|
|
|
|
"addRelation"=>"<a class='butn' href='{$addurl}'>新增公司绑定</a>",
|
|
|
|
"marketAgree"=>"<a class='butn' id='marketAgree'>市场部审批通过</a>",
|
|
|
|
"marketAgree"=>"<a class='butn' id='marketAgree'>市场部审批通过</a>",
|
|
|
|
"marketRefuse"=>"<a class='butn' id='marketRefuse' style='background-color: red;'>市场部审核拒绝</a>",
|
|
|
|
"marketRefuse"=>"<a class='butn' id='marketRefuse' style='background-color: red;'>市场部审核拒绝</a>",
|
|
|
|
"adminAgree"=>"<a class='butn' id='adminAgree'>管理员审核通过</a>",
|
|
|
|
"adminAgree"=>"<a class='butn' id='adminAgree'>管理员审核通过</a>",
|
|
|
@ -268,7 +291,7 @@ class CompanyRelationController extends AdminController
|
|
|
|
if($info['status'] == 2){
|
|
|
|
if($info['status'] == 2){
|
|
|
|
$optist = [];
|
|
|
|
$optist = [];
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$optist = ["editRatio","delRatio"];
|
|
|
|
$optist = ["editRelation","delRelation"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
//
|
|
|
|
$resarr = [];
|
|
|
|
$resarr = [];
|
|
|
|