From 1139b37a50b4daf41a7f2257f6d70ac94c497503 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 22 May 2020 18:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E5=8F=B8=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyRelationController.class.php | 128 +++++ .../View/CompanyRelation/addRelation.html | 538 ++++++++++++++++++ .../Admin/View/CompanyRelation/editRatio.html | 435 ++++++++++++++ .../Admin/View/CompanyRelation/index.html | 360 ++++++++++++ .../Admin/View/CompanyRelation/lists.html | 364 ++++++++++++ 5 files changed, 1825 insertions(+) create mode 100644 Application/Admin/Controller/CompanyRelationController.class.php create mode 100644 Application/Admin/View/CompanyRelation/addRelation.html create mode 100644 Application/Admin/View/CompanyRelation/editRatio.html create mode 100644 Application/Admin/View/CompanyRelation/index.html create mode 100644 Application/Admin/View/CompanyRelation/lists.html diff --git a/Application/Admin/Controller/CompanyRelationController.class.php b/Application/Admin/Controller/CompanyRelationController.class.php new file mode 100644 index 000000000..34be47beb --- /dev/null +++ b/Application/Admin/Controller/CompanyRelationController.class.php @@ -0,0 +1,128 @@ +"管理员拒绝", + "-1"=>"市场部拒绝", + "0"=>"待审核", + "1"=>"市场部通过", + "2"=>"管理员通过" + ]; + public $CompanyType = [ + "0"=>"己方公司", + "1"=>"上游cp公司", + "2"=>"联运下游渠道公司" + ]; + public function _initialize() + { + $this->admininfo = $_SESSION['onethink_admin']['user_auth']; + $this->DBlogModel = M("company_relation_log","tab_"); + $this->DBModel = M("company_relation","tab_"); + parent::_initialize(); + } + //生效列表 + public function index() + { + + } + //审核列表 + public function lists() + { + + $this->display(); + } + + public function marketAgree(){ + + } + public function marketRefuse(){ + + } + public function adminRefuse(){ + + } + //管理员成功 + public function adminAgree(){ + + } + + public function addRelation() + { + $this->assign('companyType',$this->CompanyType); + $this->display(); + } + public function editRelation() + { + + } + public function delRelation() + { + + } + public function menuAuth() + { + $addurl = U("addRelation"); + $mentBtn = [ + "addRelation"=>"新增推广游戏分成", + "marketAgree"=>"市场部审批通过", + "marketRefuse"=>"市场部审核拒绝", + "adminAgree"=>"管理员审核通过", + "adminRefuse"=>"管理员审核拒绝" + ]; + $resarr = []; + foreach ($mentBtn as $k => $v) { + if(IS_ROOT){ + $resarr[] = $v; + }else{ + if(in_array($k,$this->OpAuthList)){ + $resarr[] = $v; + } + } + } + return $resarr; + } + public function OpAuth($info) + { + $id = $info['id']; + //原始列表 + $opBtn = [ + "editRelation"=>"编辑", + "delRelation"=>"删除", + ]; + //操作对应菜单 + + if($info['status'] == 2){ + $optist = []; + }else{ + $optist = ["editRatio","delRatio"]; + } + // + $resarr = []; + foreach ($optist as $k => $v) { + if(IS_ROOT){ + $resarr[] = $opBtn[$v]; + }else{ + if(in_array($v,$this->OpAuthList)){ + $resarr[] = $opBtn[$v]; + } + } + } + return $resarr; + } + + public function error($data) + { + header('Content-Type:application/json; charset=utf-8'); + $data =json_encode(['msg'=>$data,"code"=>4000],JSON_UNESCAPED_UNICODE); + exit($data); + } + + +} \ No newline at end of file diff --git a/Application/Admin/View/CompanyRelation/addRelation.html b/Application/Admin/View/CompanyRelation/addRelation.html new file mode 100644 index 000000000..e236ab7b4 --- /dev/null +++ b/Application/Admin/View/CompanyRelation/addRelation.html @@ -0,0 +1,538 @@ + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
*甲方公司类型: + + +
*甲方公司: + +
内外团: + 请先选择甲方公司 +
公司性质: + 请先选择甲方公司 +
开发类型: + 请先选择甲方公司 +
联系人: + 请先选择甲方公司 +
联系电话: + 请先选择甲方公司 +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
*乙方公司类型: + + +
*乙方公司: + +
内外团: + 请先选择乙方公司 +
公司性质: + 请先选择乙方公司 +
开发类型: + 请先选择乙方公司 +
联系人: + 请先选择乙方公司 +
联系电话: + 请先选择乙方公司 +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
*结算周期: + + +
*开票类型: + + +
是否有打款流程: + + + + + 选择否将不能进行线上打款 +
*收款方: + + +
备注: + + +
+
+
+ + + 返回 + +
+
+
+
+
+ + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + + diff --git a/Application/Admin/View/CompanyRelation/editRatio.html b/Application/Admin/View/CompanyRelation/editRatio.html new file mode 100644 index 000000000..3a208e093 --- /dev/null +++ b/Application/Admin/View/CompanyRelation/editRatio.html @@ -0,0 +1,435 @@ + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
推广公司: + {$data.company_name} + +
现包名: + {$data.relation_game_name} + +
原包名: + {$data.original_package_name} + +
*分成比例设定: + + + % + 当前需要修改成的分成比例 +
+
+
+ + + +
+ +
+ + +
+ + +
+ +
+ + % + +
+
+
+
+ +
*生效期限: +
+ + - + +
+ 结束时间不填则默认永久。 +
备注: + + +
+
+ + +
+ + + 返回 + +
+
+
+
+ + + +
+ + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + + diff --git a/Application/Admin/View/CompanyRelation/index.html b/Application/Admin/View/CompanyRelation/index.html new file mode 100644 index 000000000..b4d48f323 --- /dev/null +++ b/Application/Admin/View/CompanyRelation/index.html @@ -0,0 +1,360 @@ + + + + + + + + + + + + + +
+ + + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ +
+ 搜索 +
+
+ +
+
+
+ + {$vo} + +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 公司名称内外团结算周期游戏类型原游戏名称现游戏名称生效时间原比例申请比例创建记录市场部审批管理员审批备注操作
aOh! 暂时还没有内容!
+ + {$data.company_name}{$data.company_belong}{$data.settlement_type}{$data.game_type_name}{$data.original_package_name}{$data.relation_game_name}{$data.valid} +
+ {$data.last_turnover_ratio_str} +
+
+
+ {$data.turnover_ratio_str} +
+
+
+ {$data.create} +
+
+ + +
+ {$data.market} +
+ +
+ {$data.market} +
+
+
+ +
+ {$data.admin} +
+ +
+ {$data.admin} +
+
+
+ {$data.remark} + + + {$vo} + +
+
+ +
+ +
+ + 导出 + + {$_page|default=''} +
+ +
+
+
    +
  1. +
    + 备注: + +
    +
    拒绝
    +
  2. +
+
+
+
+ + + + + + diff --git a/Application/Admin/View/CompanyRelation/lists.html b/Application/Admin/View/CompanyRelation/lists.html new file mode 100644 index 000000000..53229954b --- /dev/null +++ b/Application/Admin/View/CompanyRelation/lists.html @@ -0,0 +1,364 @@ + + + + + + + + + + + + + +
+ + + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ +
+ 搜索 +
+
+ +
+
+
+ + {$vo} + +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 公司名称内外团结算周期游戏类型原游戏名称现游戏名称生效时间原比例申请比例创建记录市场部审批管理员审批备注操作
aOh! 暂时还没有内容!
+ + {$data.company_name}{$data.company_belong}{$data.settlement_type}{$data.game_type_name}{$data.original_package_name}{$data.relation_game_name}{$data.valid} +
+ {$data.last_turnover_ratio_str} +
+
+
+ {$data.turnover_ratio_str} +
+
+
+ {$data.create} +
+
+ + +
+ {$data.market} +
+ +
+ {$data.market} +
+
+
+ +
+ {$data.admin} +
+ +
+ {$data.admin} +
+
+
+ {$data.remark} + + + {$vo} + +
+
+ +
+ +
+ + 导出 + + {$_page|default=''} +
+ +
+
+
    +
  1. +
    + 备注: + +
    +
    拒绝
    +
  2. +
+
+
+
+ + + + + +