上游导出修正
parent
b5e49e850d
commit
3c698adba9
@ -0,0 +1,376 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Controller;
|
||||
/**
|
||||
* 上下游结算单
|
||||
* @author cz
|
||||
*/
|
||||
class AggregateStatementLackController extends ThinkController
|
||||
{
|
||||
public $CompanyType = [
|
||||
"1"=>"下游公司",
|
||||
"2"=>"下游个人",
|
||||
"3"=>"上游公司"
|
||||
];
|
||||
public $IsPayment = [
|
||||
"1"=>"是",
|
||||
"2"=>"否"
|
||||
];
|
||||
|
||||
public $admininfo;
|
||||
public $DBModel;
|
||||
public function _initialize()
|
||||
{
|
||||
$this->admininfo = $_SESSION['onethink_admin']['user_auth'];
|
||||
$this->DBModel = M("AggregateLackStatementInfo","tab_");
|
||||
parent::_initialize();
|
||||
}
|
||||
public function lists() {
|
||||
$params = I('get.');
|
||||
$page = $params['p'] ? intval($params['p']) : 1;
|
||||
$row = $params['row'] ? intval($params['row']) : 10;
|
||||
//权限分配
|
||||
if(!IS_ROOT){
|
||||
$this->OpAuthList= getModuleControllerAuth();
|
||||
}
|
||||
$this->assign('menubtn',$this->menuAuth());
|
||||
|
||||
$map = [
|
||||
"is_pool"=>0
|
||||
];
|
||||
if (isset($_REQUEST['time_start']) && isset($_REQUEST['time_end'])) {
|
||||
$time_start = strtotime($_REQUEST['time_start']);
|
||||
$time_end = strtotime($_REQUEST['time_end'])+ 86399;
|
||||
$map["_string"] = "(statement_begin_time BETWEEN {$time_start} AND {$time_end}) OR (statement_end_time BETWEEN {$time_start} AND {$time_end}) OR (statement_begin_time <= {$time_end} AND statement_end_time >= {$time_end})";
|
||||
} elseif (isset($_REQUEST['time_start'])) {
|
||||
$time_start = strtotime($_REQUEST['time_start']);
|
||||
$map["_string"] = "(statement_begin_time >= {$time_start} ) OR (statement_end_time >= {$time_start})";
|
||||
} elseif (isset($_REQUEST['time_end'])) {
|
||||
$time_end = strtotime($_REQUEST['time_end'])+ 86399;
|
||||
$map["_string"] = "(statement_begin_time <= {$time_end} ) OR (statement_end_time <= {$time_end})";
|
||||
}
|
||||
|
||||
//其他
|
||||
if(isset($_REQUEST['company_type'])){
|
||||
$map['company_type'] = $_REQUEST['company_type'];
|
||||
}
|
||||
if(isset($_REQUEST['company_name'])){
|
||||
$map['company_name'] =["LIKE","%{$_REQUEST['company_name']}%"];
|
||||
}
|
||||
if(isset($_REQUEST['statement_pool_num'])){
|
||||
$map['statement_pool_num'] =["LIKE","%{$_REQUEST['statement_pool_num']}%"];
|
||||
}
|
||||
if(isset($_REQUEST['is_payment'])){
|
||||
$map['is_payment'] = $_REQUEST['is_payment'];
|
||||
}
|
||||
|
||||
// $this->checkListOrCountAuthRestMap($map);//导出权限
|
||||
|
||||
//条件end
|
||||
$data = $this->DBModel
|
||||
->field("*")
|
||||
->where($map)
|
||||
->page($page,$row)
|
||||
->select();
|
||||
|
||||
foreach($data as $k => &$v) {
|
||||
|
||||
$v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']);
|
||||
$v['statement_end_time'] = date('Y-m-d',$v['statement_end_time']);
|
||||
$v['is_payment_str'] = $this->IsPayment[$v['is_payment']];
|
||||
$v['company_type_str'] = $this->CompanyType[$v['company_type']];
|
||||
$v["valid"] = "{$v['statement_begin_time']} ~ {$v['statement_end_time']}";
|
||||
$v['oplist'] = $this->OpAuth($v);
|
||||
}
|
||||
|
||||
$count = $this->DBModel->field("count(id) count,sum(statement_money) statement_money")->where($map)->find();
|
||||
// dd($count);
|
||||
$params['p'] = $page;
|
||||
$params['row'] = $row;
|
||||
$page = set_pagination($count['count'], $row, $params);
|
||||
if ($page) {
|
||||
$this->assign('_page', $page);
|
||||
}
|
||||
|
||||
$this->assign('data',$data);
|
||||
$this->assign('count',$count);
|
||||
$this->assign('CompanyType',$this->CompanyType);
|
||||
$this->assign('IsPayment',$this->IsPayment);
|
||||
$this->display();
|
||||
|
||||
}
|
||||
//查看
|
||||
public function viewStatement()
|
||||
{
|
||||
if(!isset($_REQUEST['id'])){
|
||||
$this->error('参数错误');
|
||||
}
|
||||
$id = $_REQUEST['id'];
|
||||
$is_export= false;
|
||||
if (isset($_REQUEST['export']) && $_REQUEST['export']==1){
|
||||
$is_export = true;
|
||||
}
|
||||
//获取基本信息
|
||||
$dbres = $this->DBModel->where("id='{$id}'")->select();
|
||||
$title = $dbres[0]['company_name'];
|
||||
$this->assign("title",$title);
|
||||
|
||||
if($dbres[0]['company_type'] == 3){
|
||||
//上游
|
||||
A("AggregateStatementPool")->viewCpPool($dbres,$is_export);
|
||||
}elseif($dbres[0]['company_type'] == 1){
|
||||
//下游公司
|
||||
A("AggregateStatementPool")->viewPcPool($dbres,$is_export);
|
||||
}else{
|
||||
A("AggregateStatementPool")->viewPuPool($dbres,$is_export);
|
||||
}
|
||||
}
|
||||
|
||||
//汇总
|
||||
public function pool()
|
||||
{
|
||||
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
||||
$ids = $_REQUEST['ids'];
|
||||
$dbres = $this->DBModel->field("*")->where("id in ({$ids})")->select();
|
||||
//分单
|
||||
$basedata = [
|
||||
"pay_amount"=>0,
|
||||
"statement_money"=>0,
|
||||
"lack_statement_money"=>0,
|
||||
"platform_amount"=>0,
|
||||
"lack_platform_amount"=>0,
|
||||
"del_lack_ids"=>[],
|
||||
"info_ids"=>[],
|
||||
"statement_begin_time"=>0,
|
||||
"statement_end_time"=>0,
|
||||
"fine"=>0,
|
||||
"reward"=>0,
|
||||
"verify_status"=>0,
|
||||
"verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]),
|
||||
"op_time"=>time(),
|
||||
"company_list"=>[]
|
||||
];
|
||||
$datas = ["ups","up","downs","down","user","users"];
|
||||
//初始化数据
|
||||
foreach($datas as $k=>$v){
|
||||
if($v =="ups"){
|
||||
$basedata['company_type']=3;
|
||||
$basedata['is_payment']=1;
|
||||
}
|
||||
if($v =="up"){
|
||||
$basedata['company_type']=3;
|
||||
$basedata['is_payment']=2;
|
||||
}
|
||||
|
||||
if($v =="downs"){
|
||||
$basedata['company_type']=1;
|
||||
$basedata['is_payment']=1;
|
||||
}
|
||||
if($v =="down"){
|
||||
$basedata['company_type']=1;
|
||||
$basedata['is_payment']=2;
|
||||
}
|
||||
if($v =="users"){
|
||||
$basedata['company_type']=2;
|
||||
$basedata['is_payment']=1;
|
||||
}
|
||||
if($v =="user"){
|
||||
$basedata['company_type']=2;
|
||||
$basedata['is_payment']=2;
|
||||
}
|
||||
$datas[$v]=$basedata;
|
||||
unset($datas[$k]);
|
||||
}
|
||||
|
||||
|
||||
foreach ($dbres as $k=>$v) {
|
||||
if($v['company_type'] == 3){
|
||||
//上游
|
||||
if($v['is_payment'] == 1){
|
||||
$this->setDf($datas['ups'],$v);
|
||||
}else{
|
||||
$this->setDf($datas['up'],$v);
|
||||
}
|
||||
}elseif($v['company_type'] == 1){
|
||||
if($v['is_payment'] == 1){
|
||||
$this->setDf($datas['downs'],$v);
|
||||
}else{
|
||||
$this->setDf($datas['down'],$v);
|
||||
}
|
||||
}else{
|
||||
if($v['is_payment'] == 1){
|
||||
$this->setDf($datas['users'],$v);
|
||||
}else{
|
||||
$this->setDf($datas['user'],$v);
|
||||
}
|
||||
}
|
||||
}
|
||||
$Pool = M("aggregate_statement_pool","tab_");
|
||||
$Statemen = M("aggregate_statement","tab_");
|
||||
foreach ($datas as $k => $v) {
|
||||
if(count($v['company_list']) <= 0){continue;}
|
||||
//保存公司信息
|
||||
$company_list = $v['company_list'];
|
||||
foreach ($company_list as $ke => $va) {
|
||||
$this->addStatementInfo($va,$ke,$v,$k);
|
||||
}
|
||||
|
||||
if(empty($v['create_lack_ids']) && empty($v['del_lack_ids']) && empty($v['info_ids'])){ continue;}
|
||||
|
||||
$v['statement_num'] = "QZ_".date('Ymd').date('His').sp_random_num(3);
|
||||
|
||||
$v['del_lack_ids'] = implode(",",$v['del_lack_ids']) ?? '';
|
||||
$info = implode(",",$v['info_ids']);
|
||||
unset($v['info_ids']);
|
||||
unset($v['company_list']);
|
||||
$pool_id = $Pool->add($v);
|
||||
if($pool_id == false){
|
||||
$this->ajaxReturn(array('status' => 0,"info"=>"汇总失败"));
|
||||
}
|
||||
if(!empty($info)){
|
||||
$save["pool_id"]=$pool_id;
|
||||
M("aggregate_statement_info","tab_")->where("id in ({$info})")->save($save);
|
||||
}
|
||||
if(!empty($v['del_lack_ids'])){
|
||||
M("aggregate_lack_statement_info","tab_")->where("id in ({$v['del_lack_ids']})")->save(["is_pool"=>1]);
|
||||
}
|
||||
}
|
||||
$this->ajaxReturn(array(
|
||||
'status' => 1,
|
||||
"info"=>"汇总成功"
|
||||
));
|
||||
}
|
||||
protected function addStatementInfo($va,$ke,&$v,$k){
|
||||
if($k=="ups" || $k=='downs' || $k =="users"){
|
||||
$verify_status = 0;
|
||||
}else{
|
||||
$verify_status = 2;
|
||||
}
|
||||
|
||||
$StatementInfo = M("aggregate_statement_info","tab_");
|
||||
if($va['pay_amount'] > 0){
|
||||
//存成功
|
||||
$company =[
|
||||
"pool_id"=>0,
|
||||
"company_id"=>$ke,
|
||||
"company_type"=>$v['company_type'],
|
||||
"company_name"=>$va['company_name'],
|
||||
"company_info"=>$va['company_info'],
|
||||
"fine"=>$va['fine'],
|
||||
"reward"=>$va['reward'],
|
||||
"statement_money"=>$va['statement_money'],
|
||||
"pay_amount"=>$va['pay_amount'],
|
||||
"platform_amount"=>$va['platform_amount'],
|
||||
"statement_money"=>$va['statement_money'],
|
||||
"statement_begin_time"=>$v['statement_begin_time'],
|
||||
"statement_end_time"=>$v['statement_end_time'],
|
||||
"statement_info"=>json_encode($va['statement_info'],JSON_UNESCAPED_UNICODE),
|
||||
"statement_num"=>$va['statement_num'],
|
||||
"verify_status"=>$verify_status
|
||||
];
|
||||
$companyid = $StatementInfo->add($company);
|
||||
$v['info_ids'][] =$companyid;
|
||||
$v['statement_money'] +=$va['statement_money'];
|
||||
$v['pay_amount'] +=$va['pay_amount'];
|
||||
$v['platform_amount'] +=$va['platform_amount'];
|
||||
$v['fine'] +=$va['fine'];
|
||||
$v['reward'] +=$va['reward'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//设定组合的子操作
|
||||
protected function setDf(&$savedata,$v)
|
||||
{
|
||||
$savedata['del_lack_ids'][] = $v['id'];
|
||||
unset($v['id']);
|
||||
$v['statement_info'] = json_decode( $v['statement_info'],true);
|
||||
$fine = $v['fine'];
|
||||
$reward = $v['reward'];
|
||||
|
||||
if(isset($savedata['company_list'][$v['company_id']])){
|
||||
//存在游戏合并
|
||||
$a = &$savedata['company_list'][$v['company_id']];
|
||||
$a['fine'] += $fine;
|
||||
$a['reward'] += $reward;
|
||||
$a['statement_info'] = array_merge($a['statement_info'],$v['statement_info']);
|
||||
// dump($a['statement_info']);
|
||||
$a['platform_amount'] += $v['platform_amount'];
|
||||
$a['pay_amount'] += $v['pay_amount'];
|
||||
$a['statement_money'] += $v['statement_money'];
|
||||
}else{
|
||||
//先分配好订单号,防止重复提交
|
||||
$tdata = [
|
||||
"company_info"=>$v['company_info'],
|
||||
"company_name"=>$v['company_name'],
|
||||
"platform_amount"=>$v['platform_amount'],
|
||||
"pay_amount"=>$v['pay_amount'],
|
||||
"statement_money"=>$v['statement_money'],
|
||||
"fine"=>$fine,
|
||||
"reward"=>$reward,
|
||||
"statement_info"=>$v['statement_info'],
|
||||
"statement_num"=>"JS_".date('Ymd').date('His').$v['company_id'].sp_random_string(5)
|
||||
];
|
||||
$savedata['company_list'][$v['company_id']] = $tdata;
|
||||
}
|
||||
// $savedata['fine'] += $v['fine'];
|
||||
// $savedata['reward'] += $v['reward'];
|
||||
// $savedata['pay_amount'] += $v['pay_amount'];
|
||||
// $savedata['statement_money'] += $v['statement_money'];
|
||||
// $savedata['platform_amount'] += $v['platform_amount'];
|
||||
if($savedata['statement_begin_time'] == 0){
|
||||
$savedata['statement_begin_time'] = $v['statement_begin_time'];
|
||||
}elseif($v['statement_begin_time'] < $savedata['statement_begin_time']){
|
||||
$savedata['statement_begin_time'] = $v['statement_begin_time'];
|
||||
}
|
||||
if($savedata['statement_end_time'] == 0){
|
||||
$savedata['statement_end_time'] = $v['statement_end_time'];
|
||||
}elseif($v['statement_end_time'] > $savedata['statement_end_time']){
|
||||
$savedata['statement_end_time'] = $v['statement_end_time'];
|
||||
}
|
||||
}
|
||||
//设定并保存数据
|
||||
|
||||
|
||||
public function OpAuth($info)
|
||||
{
|
||||
$id = $info['id'];
|
||||
$type = $info['company_type'];
|
||||
//原始列表
|
||||
$opBtn = [
|
||||
"viewStatement"=>"<a class='confirm viewStatement' data-id='{$id}' data-companytype='{$type}'>查看</a>",
|
||||
];
|
||||
//操作对应菜单
|
||||
$optist = ["viewStatement"];
|
||||
$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 menuAuth()
|
||||
{
|
||||
$mentBtn = [
|
||||
"pool"=>"<a class='butn' id='pool'>发起汇总</a>",
|
||||
"export"=>"<a class='butn' id='export'>批量导出</a>"
|
||||
];
|
||||
$resarr = [];
|
||||
foreach ($mentBtn as $k => $v) {
|
||||
if(IS_ROOT){
|
||||
$resarr[] = $v;
|
||||
}else{
|
||||
if(in_array($k,$this->OpAuthList)){
|
||||
$resarr[] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $resarr;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,659 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
||||
charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0px 0px 150px;
|
||||
width: 960px;
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
|
||||
.tabcon1711 table {
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
table {
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.hidebox {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.r {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.l {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.input-list,
|
||||
.i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
<div style="display: flex;margin: auto;">
|
||||
<div class="tab-content tabcon1711" id="firstPartBaseInfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">甲方:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="first_partner_id" name="partner_id" class="select_gallery">
|
||||
<option value="{$data['first_party_info']['id']}" selected>{$data['first_party_info']['partner']}</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="first_part_bser_info_show">
|
||||
<tr>
|
||||
<td class="l">联系人:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_man" value="" placeholder="请输入联系人">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">联系电话:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_phone" value="" placeholder="请输入联系电话">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">邮寄地址:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="address" value="" placeholder="请输入地址">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">公司税号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="company_tax_no" value="" placeholder="请输入公司税号">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-content tabcon1711" id="secondPartBaseInfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">乙方:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="second_partner_id" name="partner_id" class="select_gallery">
|
||||
<option value="{$data['second_party_info']['id']}" selected>{$data['second_party_info']['partner']}</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="second_part_bser_info_show">
|
||||
<tr>
|
||||
<td class="l">联系人:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_man" value="" disabled="disabled"
|
||||
placeholder="请先选择合作公司">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">联系电话:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_phone" value="" disabled="disabled"
|
||||
placeholder="请先选择合作公司">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">邮寄地址:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="address" value="" disabled="disabled"
|
||||
placeholder="请先选择合作公司">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">公司税号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="company_tax_no" value="" disabled="disabled"
|
||||
placeholder="请先选择合作公司">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 30px 0px 10px;display: block;height:30px;">
|
||||
<div class="input-list input-list-server search_label_rehab">
|
||||
<p style="font-size: 20px;font-weight: 600;">支付给:<spen style="margin-left: 15px;font-size: 16px;">{$data.company_name}
|
||||
</spen>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="data_list box_mt" style="margin-top: 40px;">
|
||||
<div class="">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-right: solid 1px #b6cad2;">结算时间</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">产品</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">平台总额(元)</th>
|
||||
<if condition="$data['withdraw_type'] eq 2">
|
||||
<th style="border-right: solid 1px #b6cad2;">补点比例</th>
|
||||
<else />
|
||||
<th style="border-right: solid 1px #b6cad2;">分成比例</th>
|
||||
</if>
|
||||
|
||||
<th style="border-right: solid 1px #b6cad2;">税费费率</th>
|
||||
<th >结算金额(元)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody id="statementInit" class="">
|
||||
<tr style="height: 100px;">
|
||||
<td colspan=8>
|
||||
请先选择生成条件后点击生成对账数据
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tbody id="statementShow">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="partpatinfo" style="display: flex;margin: auto;">
|
||||
<div class="tab-content tabcon1711" id="skf_payinfo">
|
||||
<div class="tab-content tabcon1711" id="skf_payinfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">收款方名称:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="" disabled="disabled" placeholder="" value="{$data.payinfo.payee_name}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">银行账号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="" value="{$data.payinfo.bank_account}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">开户行:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="password" value="{$data.payinfo.opening_bank}" disabled="disabled" placeholder="请先选择支付给谁">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-content tabcon1711" id="fkf_payinfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">开票项目:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" disabled="disabled" placeholder="" name="invoice_item" value="{$data.payinfo.invoice_content}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">发票类型:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="invoice_type" name="invoice_type" class="select_gallery" disabled>
|
||||
<option value="0" <if condition="$data['payinfo']['invoice_type'] eq 0">selected</if>>无</option>
|
||||
<option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option>
|
||||
<option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search_list" style="display:flex;justify-content:flex-end;width:960px;">
|
||||
<div class="input-list" style="margin-left: 30px;float: right;">
|
||||
<a class="sch-btn" href="javascript:;" id="createStatement" style="width: 150px;">确认修改</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/html" id="partbasetpl">
|
||||
<tr>
|
||||
<td class="l">联系人:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" data-change="${type}.link_man" name="link_man" value="${link_man|nonull}" placeholder="请输入联系人">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">联系电话:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" name="link_phone" data-change="${type}.link_phone" value="${link_phone|nonull}" placeholder="请输入联系电话">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">邮寄地址:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" name="address" data-change="${type}.address" value="${address|nonull}" placeholder="请输入地址">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">公司税号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" name="company_tax_no" data-change="${type}.company_tax_no" value="${company_tax_no|nonull}" placeholder="请输入公司税号">
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
<script type="text/html" id="partpaytpl">
|
||||
<div class="tab-content tabcon1711" id="skf_payinfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">收款方名称:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" data-change="${type}.payee_name" name="payee_name" placeholder="" value="${party_info.payee_name}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">银行账号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" data-change="${type}.bank_account" name="bank_account" value="${party_info.bank_account}" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">开户行:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" data-change="${type}.opening_bank" name="opening_bank" value="${party_info.opening_bank}" placeholder="请先选择支付给谁">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-content tabcon1711" id="fkf_payinfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">开票项目:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt normalchange" data-change="${type}.invoice_content" name="invoice_content" placeholder="" value="${party_info.invoice_content}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">发票类型:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="invoice_type" name="invoice_type" data-change="${type}.invoice_type" class="select_gallery">
|
||||
{@if party_info.invoice_type==0}
|
||||
<option value="0" selected>无</option>
|
||||
<option value="1">专票</option>
|
||||
<option value="2">普票</option>
|
||||
{@/if}
|
||||
{@if party_info.invoice_type==1}
|
||||
<option value="0">无</option>
|
||||
<option value="1" selected>专票</option>
|
||||
<option value="2">普票</option>
|
||||
{@/if}
|
||||
{@if party_info.invoice_type==2}
|
||||
<option value="0">无</option>
|
||||
<option value="1">专票</option>
|
||||
<option value="2" selected>普票</option>
|
||||
{@/if}
|
||||
</select>
|
||||
</div>
|
||||
<!-- <input type="text" class="txt" disabled="disabled" placeholder="" name="invoice_type" value="{$data.payinfo.invoice_type}"> -->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/html" id="statementTpl">
|
||||
{@each statement_info as it,index}
|
||||
<tr>
|
||||
<td>${it.statement_begin_time}~${it.statement_end_time}</td>
|
||||
<td>${it.game_name}</td>
|
||||
{@if it.statement_type==1}
|
||||
<td>-${it.pay_amount}元</td>
|
||||
{@else}
|
||||
<td>${it.pay_amount}元</td>
|
||||
{@/if}
|
||||
|
||||
{@if it.statement_type==0}
|
||||
{@if withdraw_type==2}
|
||||
<td><input type="text" class="txt statementchange" name="increment_ratio" data-index ="${index}" data-change="statement_info[${index}]['increment_ratio']" value="${it.increment_ratio}" style="width: 40px;">%</td>
|
||||
{@else}
|
||||
<td><input type="text" class="txt statementchange" name="ratio" data-index ="${index}" data-change="statement_info[${index}]['ratio']" value="${it.ratio}" style="width: 40px;">%</td>
|
||||
{@/if}
|
||||
<td><input type="text" class="txt statementchange" name="fax_ratio" data-index ="${index}" data-change="statement_info[${index}]['fax_ratio']" value="${it.fax_ratio}" style="width: 40px;">%</td>
|
||||
{@else}
|
||||
<td></td>
|
||||
<td></td>
|
||||
{@/if}
|
||||
{@if it.statement_type==1}
|
||||
<td>-${it.sum_money}元</td>
|
||||
{@else}
|
||||
<td>${it.sum_money}元</td>
|
||||
{@/if}
|
||||
</tr>
|
||||
{@/each}
|
||||
|
||||
<tr>
|
||||
<td>合计</td>
|
||||
<td></td>
|
||||
<td>${pay_amount}元</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>${statement_money}元</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=5>本月分成总金额(人民币大写):</td>
|
||||
<td>${statement_money|number_chinese}</td>
|
||||
</tr>
|
||||
</script>
|
||||
<script>
|
||||
$(function () {
|
||||
TPLSHOW.juicerInit();
|
||||
$(".select_gallery").select2();
|
||||
$('#time_start').datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language: "zh-CN",
|
||||
minView: 2,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$('#datetimepicker').datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language: "zh-CN",
|
||||
minView: 2,
|
||||
autoclose: true,
|
||||
pickerPosition: 'bottom-left'
|
||||
})
|
||||
EVENT.changeCompany();
|
||||
EVENT.createStatement();
|
||||
$("#first_partner_id").change();
|
||||
// $("#second_partner_id").change();
|
||||
|
||||
});
|
||||
//基础类
|
||||
var PUBLIC = {
|
||||
postData(url, data, callback) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: data,
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
callback(data)
|
||||
}
|
||||
})
|
||||
},
|
||||
floatAdd(a,b){
|
||||
return Math.round(a*100+b*100)/100;
|
||||
},
|
||||
floatCut(a,b){
|
||||
return Math.round(a*100-b*100)/100;
|
||||
},
|
||||
CompanyKeyName:{
|
||||
id:"公司表id",
|
||||
partner:"公司名称",
|
||||
link_man:'联系人',
|
||||
link_phone:"联系电话",
|
||||
address:'邮寄地址',
|
||||
company_tax_no:'公司税号',
|
||||
payee_name:'名称',
|
||||
bank_account:"银行账号",
|
||||
opening_bank:"开户行"
|
||||
}
|
||||
}
|
||||
//数据类
|
||||
|
||||
var DATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE};
|
||||
var YDATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE};
|
||||
//事件类
|
||||
var EVENT = {
|
||||
changeCompany() {
|
||||
$("#first_partner_id").on("change", function () {
|
||||
TPLSHOW.firstPartInfo(DATAOBJ.first_party_info);
|
||||
TPLSHOW.secondPartInfo(DATAOBJ.second_party_info);
|
||||
TPLSHOW.showPartPayInfo();
|
||||
TPLSHOW.showStatementList(true);
|
||||
})
|
||||
$("#first_partner_id").on("change", function () {
|
||||
TPLSHOW.secondPartInfo(DATAOBJ.second_party_info);
|
||||
})
|
||||
},
|
||||
createStatement() {
|
||||
$("#createStatement").on("click", function () {
|
||||
//TODO:验证信息
|
||||
layer.load(2);
|
||||
PUBLIC.postData("{:U('editStatement')}",DATAOBJ,function(data){
|
||||
if(data.code == 0){
|
||||
layer.closeAll('loading');
|
||||
layer.msg('修改成功');
|
||||
setTimeout(function(){
|
||||
window.parent.reload();
|
||||
},350);
|
||||
}else{
|
||||
alert("修改失败,请联系管理员")
|
||||
}
|
||||
});
|
||||
//发送添加请求
|
||||
})
|
||||
},
|
||||
normalchange() {
|
||||
$(".normalchange").off("blur");
|
||||
$("#invoice_type").off("change");
|
||||
$(".normalchange").on("blur", function () {
|
||||
var val = $(this).val();
|
||||
var index = $(this).data("change");
|
||||
var str = "DATAOBJ." + index + "='" + val + "';";
|
||||
eval(str);
|
||||
if (val !== eval("YDATAOBJ." + index)) {
|
||||
isedit = true;
|
||||
}
|
||||
})
|
||||
$("#invoice_type").on("change",function(){
|
||||
var val = $(this).val();
|
||||
var index = $(this).data("change");
|
||||
var str = "DATAOBJ." + index + "='" + val + "';";
|
||||
eval(str);
|
||||
if (val !== eval("YDATAOBJ." + index)) {
|
||||
isedit = true;
|
||||
}
|
||||
})
|
||||
},
|
||||
statementchange() {
|
||||
$(".statementchange").off("blur");
|
||||
$(".statementchange").on("blur",function(){
|
||||
var sort = $(this).data("change");
|
||||
var val = $(this).val();
|
||||
var vdata = eval("DATAOBJ."+sort);//原先值
|
||||
var dom = $(this);
|
||||
|
||||
if(!CHECK.number.test(val)){
|
||||
layer.msg('结算单中的罚款和税率必须是数字,且不能为空');
|
||||
dom.val(vdata);
|
||||
return false;
|
||||
}
|
||||
|
||||
var str = "DATAOBJ."+sort+"='"+val+"';";
|
||||
|
||||
if(val > 100 || val < 0){
|
||||
layer.msg('结算单中的税率不允许大于100和小于0');
|
||||
dom.val(vdata);
|
||||
return false;
|
||||
}
|
||||
eval(str);
|
||||
var index = $(this).data("index");
|
||||
var td = DATAOBJ.statement_info[index];
|
||||
|
||||
var rname = $(this).attr("name");
|
||||
if( rname == "increment_ratio" || rname == "ratio"){
|
||||
var ratio = val;
|
||||
}
|
||||
DATAOBJ.statement_money = PUBLIC.floatCut(DATAOBJ.statement_money,td['sum_money']);
|
||||
td['sum_money'] = Math.round(td['pay_amount']*ratio*(100-td['fax_ratio'])/100,2)/100;
|
||||
DATAOBJ.statement_money=PUBLIC.floatAdd(DATAOBJ.statement_money,td['sum_money']);
|
||||
TPLSHOW.showStatementList(true);
|
||||
})
|
||||
}
|
||||
}
|
||||
var CHECK = {
|
||||
number: /^\d+(\.{1}\d+)?$/,
|
||||
mobile: /^1[3456789]\d{9}$/,
|
||||
BankNo: /^([1-9]{1})\d{10,19}$/,
|
||||
money: /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/
|
||||
}
|
||||
//
|
||||
var TPLSHOW = {
|
||||
juicerInit() {
|
||||
var nonull = function (data) {
|
||||
if (!data) {
|
||||
return '';
|
||||
}
|
||||
return data;
|
||||
};
|
||||
var number_chinese = function (str) {
|
||||
var num = parseFloat(str);
|
||||
var strOutput = "",
|
||||
strUnit = '仟佰拾亿仟佰拾万仟佰拾元角分';
|
||||
num += "00";
|
||||
var intPos = num.indexOf('.');
|
||||
if (intPos >= 0) {
|
||||
num = num.substring(0, intPos) + num.substr(intPos + 1, 2);
|
||||
}
|
||||
strUnit = strUnit.substr(strUnit.length - num.length);
|
||||
for (var i = 0; i < num.length; i++) {
|
||||
strOutput += '零壹贰叁肆伍陆柒捌玖'.substr(num.substr(i, 1), 1) + strUnit.substr(i, 1);
|
||||
}
|
||||
return strOutput.replace(/零角零分$/, '整').replace(/零[仟佰拾]/g, '零').replace(/零{2,}/g, '零').replace(/零([亿|万])/g, '$1').replace(/零+元/, '元').replace(/亿零{0,3}万/, '亿').replace(/^元/, "零元")
|
||||
|
||||
}
|
||||
juicer.register('nonull', nonull);
|
||||
juicer.register('number_chinese', number_chinese);
|
||||
},
|
||||
//
|
||||
firstPartInfo(data) {
|
||||
var tpl = $("#partbasetpl").html();
|
||||
data.type = "first_party_info";
|
||||
var html = juicer(tpl, data);
|
||||
$("#first_part_bser_info_show").html(html);
|
||||
TPLSHOW.pushStatementTypeOption();
|
||||
},
|
||||
secondPartInfo(data) {
|
||||
var tpl = $("#partbasetpl").html();
|
||||
data.type ="second_party_info";
|
||||
var html = juicer(tpl, data);
|
||||
$("#second_part_bser_info_show").html(html);
|
||||
TPLSHOW.pushStatementTypeOption();
|
||||
},
|
||||
//支付给公司
|
||||
pushStatementTypeOption() {
|
||||
|
||||
EVENT.normalchange();
|
||||
},
|
||||
//支付信息显示
|
||||
showPartPayInfo() {
|
||||
var data = {};
|
||||
if (DATAOBJ.pay_type == 1) {
|
||||
data.party_info = DATAOBJ.first_party_info;
|
||||
data.type ="first_party_info";
|
||||
} else {
|
||||
data.party_info = DATAOBJ.second_party_info;
|
||||
data.type ="second_party_info";
|
||||
}
|
||||
|
||||
var tpl = $("#partpaytpl").html();
|
||||
var html = juicer(tpl, data);
|
||||
$("#partpatinfo").html(html);
|
||||
EVENT.normalchange();
|
||||
|
||||
},
|
||||
//订单信息显示
|
||||
showStatementList(flag) {
|
||||
if (flag) {
|
||||
var data = DATAOBJ;
|
||||
console.log(data);
|
||||
$("#statementInit").addClass("hidebox");
|
||||
var tpl = $("#statementTpl").html();
|
||||
var html = juicer(tpl, data);
|
||||
$("#statementShow").html(html);
|
||||
EVENT.statementchange();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px;
|
||||
}
|
||||
.hide{
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="main" class="main" style="min-height: 342px;margin-top: 20px;padding-left: 50px;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr style="padding: 10px;height: 50px;">
|
||||
<td class="l">文件选择: </td>
|
||||
<td >
|
||||
<input type="file" id="fileinput" name="file" accept="image/*">
|
||||
</td>
|
||||
<td style="color: #777;font-size: 12px;">仅能添加一张凭证,重复添加将覆盖</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="jssearch search_list fl cf">
|
||||
<div class="input-list">
|
||||
<div class="sch-btn uploadfile" style="width: 100px;padding: 5px;">确认修改</div>
|
||||
<div id="delVoucher" class="sch-btn " style="width: 100px;padding: 5px;background-color: red;">删除凭证</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: block;clear: both;">
|
||||
<img id="voucher" src="{$ext_file}" class="" style="width: auto;height: 350px;margin: auto;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var id = {$id};
|
||||
$(function(){
|
||||
$(".uploadfile").on("click",function(){
|
||||
var acceptedTypes = ['image/png','image/jpeg','image/jpg','image/gif'];
|
||||
var type = document.getElementById('fileinput').files[0].type;
|
||||
if (acceptedTypes.indexOf(type) === -1) {
|
||||
layer.msg("只允许图片格式文件");
|
||||
return false;
|
||||
}
|
||||
var formData = new FormData();
|
||||
formData.append("id",id);
|
||||
formData.append("file", document.getElementById("fileinput").files[0]);
|
||||
|
||||
var index = layer.load();
|
||||
$.ajax({
|
||||
url:"{:U('saveVoucher')}",
|
||||
type:"post",
|
||||
data:formData,
|
||||
processData:false,
|
||||
contentType:false,
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status == 1){
|
||||
//file_path\
|
||||
layer.msg("上传成功");
|
||||
$('#voucher').attr("src",data.file_path).removeClass("hide");
|
||||
$('#delVoucher').removeClass("hide");
|
||||
$("#fileinput").val('');
|
||||
}else{
|
||||
layer.alert(data.info);
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
layer.alert("网络错误");
|
||||
}
|
||||
});
|
||||
})
|
||||
$("#delVoucher").on("click",function(){
|
||||
var index = layer.load();
|
||||
var formData = new FormData();
|
||||
formData.append("id",id);
|
||||
$.ajax({
|
||||
url:"{:U('delVoucher')}",
|
||||
type:"post",
|
||||
data:formData,
|
||||
processData:false,
|
||||
contentType:false,
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status == 1){
|
||||
//file_path\
|
||||
layer.msg("删除成功");
|
||||
$('#voucher').attr("src",'').addClass("hide");
|
||||
$('#delVoucher').addClass("hide");
|
||||
$("#fileinput").val('');
|
||||
}else{
|
||||
layer.alert(data.info);
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
layer.alert("网络错误");
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,249 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
||||
charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0px 10px 150px;
|
||||
/* width: 960px; */
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
|
||||
.tabcon1711 table {
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
table {
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.hidebox {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.r {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.l {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.input-list,
|
||||
.i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 20px;">
|
||||
<div class="">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-right: solid 1px #b6cad2;">序号</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">合作公司</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">支付宝真实名称</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">支付宝账号</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">关联结算汇总单订单号</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">金额(元)</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<foreach name="CompanyInfo" item="vo" >
|
||||
<if condition="$vo['pay_status'] neq 1">
|
||||
<tr>
|
||||
<td>{$key-0+1}</td>
|
||||
<td>{$vo.company_name}</td>
|
||||
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="ali_user" value="{$vo.company_info.ali_user}" placeholder="支付宝真实名称"></td>
|
||||
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="ali_account" value="{$vo.company_info.ali_account}" placeholder="支付宝账号"></td>
|
||||
<td>{$vo.statement_num}</td>
|
||||
<td>{$vo.statement_money}</td>
|
||||
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="remark" value="{$vo.remark}" placeholder="备注"></td>
|
||||
</tr>
|
||||
<else />
|
||||
<tr>
|
||||
<td>{$key-0+1}</td>
|
||||
<td>{$vo.company_name}</td>
|
||||
<td>{$vo.company_info.ali_user}</td>
|
||||
<td>{$vo.company_info.ali_account}</td>
|
||||
<td>{$vo.statement_num}</td>
|
||||
<td>{$vo.statement_money}</td>
|
||||
<td>{$vo.remark}</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
</foreach>
|
||||
<tr>
|
||||
<td colspan="2">合计:</td>
|
||||
<td colspan="5">打款总金额:{$CompanyInfo[0]['all_money']}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search_list" style="display:flex;justify-content:flex-end;width:100%;margin-top: 30px;">
|
||||
<div class="input-list" style="margin-left: 30px;float: right;">
|
||||
<a class="sch-btn" href="javascript:;" id="setPayment" style="width: 150px;">确认提交</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$("#setPayment").on("click",function(){
|
||||
var sendObj = {};
|
||||
var url = "{:U('editPayment')}"
|
||||
$("input[name='ali_user']").map(function(index,elem) {
|
||||
var id = $(elem).data("id");
|
||||
var to = {
|
||||
"ali_user":$(elem).val(),
|
||||
"ali_account":'',
|
||||
"remark":''
|
||||
}
|
||||
sendObj[id]=to;
|
||||
});
|
||||
$("input[name='ali_account']").map(function(index,elem) {
|
||||
var id = $(elem).data("id");
|
||||
|
||||
if(id in sendObj){
|
||||
sendObj[id]['ali_account']=$(elem).val();
|
||||
}else{
|
||||
var to = {
|
||||
"ali_account":$(elem).val(),
|
||||
"ali_user":'',
|
||||
"remark":''
|
||||
}
|
||||
sendObj[id]=to;
|
||||
}
|
||||
|
||||
});
|
||||
$("input[name='remark']").map(function(index,elem) {
|
||||
var id = $(elem).data("id");
|
||||
|
||||
if(id in sendObj){
|
||||
sendObj[id]['remark']=$(elem).val();
|
||||
}else{
|
||||
var to = {
|
||||
"remark":$(elem).val(),
|
||||
"ali_user":'',
|
||||
"ali_account":''
|
||||
}
|
||||
sendObj[id]=to;
|
||||
}
|
||||
});
|
||||
layer.confirm("若支付宝账号及真实姓名不全的公司,将无法进行打款。请认真核对,点击取消返回",{title:false}, function(index){
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: {info:sendObj,pool_id:{$id}},
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.parent.reload();
|
||||
},1000);
|
||||
}else{
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
function cancelPoolAjax(opurl,senddata){
|
||||
//执行
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: opurl,
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: senddata,
|
||||
success:function(data){
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}else{
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px;
|
||||
}
|
||||
.hide{
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="main" class="main" style="min-height: 342px;margin-top: 20px;padding-left: 50px;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr style="padding: 10px;height: 50px;">
|
||||
<td class="l">文件选择: </td>
|
||||
<td >
|
||||
<input type="file" id="fileinput" name="file" accept="image/*">
|
||||
</td>
|
||||
<td style="color: #777;font-size: 12px;">仅能添加一张凭证,重复添加将覆盖</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="jssearch search_list fl cf">
|
||||
<div class="input-list">
|
||||
<div class="sch-btn uploadfile" style="width: 100px;padding: 5px;">确认添加</div>
|
||||
<div id="delVoucher" class="sch-btn hide" style="width: 100px;padding: 5px;background-color: red;">删除凭证</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: block;clear: both;">
|
||||
<img id="voucher" src="" class="hide" style="width: auto;height: 350px;margin: auto;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var id = {$id};
|
||||
$(function(){
|
||||
$(".uploadfile").on("click",function(){
|
||||
var acceptedTypes = ['image/png','image/jpeg','image/jpg','image/gif'];
|
||||
var type = document.getElementById('fileinput').files[0].type;
|
||||
if (acceptedTypes.indexOf(type) === -1) {
|
||||
layer.msg("只允许图片格式文件");
|
||||
return false;
|
||||
}
|
||||
var formData = new FormData();
|
||||
formData.append("id",id);
|
||||
formData.append("file", document.getElementById("fileinput").files[0]);
|
||||
|
||||
var index = layer.load();
|
||||
$.ajax({
|
||||
url:"{:U('saveVoucher')}",
|
||||
type:"post",
|
||||
data:formData,
|
||||
processData:false,
|
||||
contentType:false,
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status == 1){
|
||||
//file_path\
|
||||
layer.msg("上传成功");
|
||||
$('#voucher').attr("src",data.file_path).removeClass("hide");
|
||||
$('#delVoucher').removeClass("hide");
|
||||
$("#fileinput").val('');
|
||||
}else{
|
||||
layer.alert(data.info);
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
layer.alert("网络错误");
|
||||
}
|
||||
});
|
||||
})
|
||||
$("#delVoucher").on("click",function(){
|
||||
var index = layer.load();
|
||||
var formData = new FormData();
|
||||
formData.append("id",id);
|
||||
$.ajax({
|
||||
url:"{:U('delVoucher')}",
|
||||
type:"post",
|
||||
data:formData,
|
||||
processData:false,
|
||||
contentType:false,
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status == 1){
|
||||
//file_path\
|
||||
layer.msg("删除成功");
|
||||
$('#voucher').attr("src",'').addClass("hide");
|
||||
$('#delVoucher').addClass("hide");
|
||||
$("#fileinput").val('');
|
||||
}else{
|
||||
layer.alert(data.info);
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
layer.alert("网络错误");
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,194 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 10px 150px 10px;
|
||||
/* width: 960px; */
|
||||
margin: auto;
|
||||
}
|
||||
/* .tabcon1711 table{
|
||||
width: 480px;
|
||||
} */
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
tr{
|
||||
border-bottom: dotted 1px #c7c7c7;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div class="">
|
||||
<table id="exporttable">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">合作公司</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">平台</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">结算日期</th>
|
||||
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">产品</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">平台流水</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">未结算平台流水</th>
|
||||
|
||||
<th colspan=2 style="border-right: solid 1px #b6cad2;">分成比例</th>
|
||||
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">渠道费率</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">税费费率</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">合作方待结算分成</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">违规罚款</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">奖励</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">合作待结算金额</th>
|
||||
<th rowspan="2" style="border-right: solid 1px #b6cad2;">备注</th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-right: solid 1px #b6cad2;min-width: 50px;">合作方</th>
|
||||
<th style="min-width: 50px;">我方</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<foreach name="data" item="com">
|
||||
<tr>
|
||||
<td rowspan="{$com.statement_count}">{$com.company_name}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.matche_platform}</td>
|
||||
<!-- <td rowspan="{$com.statement_count}">{$com.statement_begin_time} ~ {$com.statement_end_time}</td> -->
|
||||
<td>{$com['statement_info'][0]['statement_begin_time']} - {$com['statement_info'][0]['statement_end_time']}</td>
|
||||
|
||||
<td>{$com['statement_info'][0]['game_name']}</td>
|
||||
<td>{$com['statement_info'][0]['pay_amount']}</td>
|
||||
<td>{$com['statement_info'][0]['pay_amount']}</td>
|
||||
<td>{$com['statement_info'][0]['ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['company_ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['promote_ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['fax_ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['d_statement_money']}</td>
|
||||
|
||||
<td rowspan="{$com.statement_count}">{$com.fine}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.reward}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.statement_money}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.renark}</td>
|
||||
</tr>
|
||||
<foreach name="com.statement_info" item="it" key="k">
|
||||
<if condition="$k neq 0">
|
||||
<tr>
|
||||
<td>{$it['statement_begin_time']} - {$it['statement_end_time']}</td>
|
||||
<td>{$it['game_name']}</td>
|
||||
<td>{$it['pay_amount']}</td>
|
||||
<td>{$it['pay_amount']}</td>
|
||||
<td>{$it['ratio']}%</td>
|
||||
<td>{$it['company_ratio']}%</td>
|
||||
<td>{$it['promote_ratio']}%</td>
|
||||
<td>{$it['fax_ratio']}%</td>
|
||||
<td>{$it['d_statement_money']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
</foreach>
|
||||
</foreach>
|
||||
<tr>
|
||||
<td colspan=4 >合计:</td>
|
||||
<td>{$count.platform_amount}</td>
|
||||
<td>{$count.platform_amount2}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{$count.d_statement_money}</td>
|
||||
<td>{$count.fine}</td>
|
||||
<td>{$count.reward}</td>
|
||||
<td>{$count.statement_money}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
<if condition="$is_export">
|
||||
$(function(){
|
||||
$("#exporttable").table2excel({
|
||||
filename: "{$title}.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
});
|
||||
</if>
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
||||
charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0px 10px 150px;
|
||||
/* width: 960px; */
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
|
||||
.tabcon1711 table {
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
table {
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.hidebox {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.r {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.l {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.input-list,
|
||||
.i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 20px;">
|
||||
<div class="">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-right: solid 1px #b6cad2;">序号</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">合作公司</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">支付宝真实名称</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">支付宝账号</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">关联结算汇总单订单号</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">金额(元)</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">备注</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">打款状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<foreach name="CompanyInfo" item="vo" >
|
||||
|
||||
<tr>
|
||||
<td>{$key-0+1}</td>
|
||||
<td>{$vo.company_name}</td>
|
||||
<td>{$vo.company_info.ali_user}</td>
|
||||
<td>{$vo.company_info.ali_account}</td>
|
||||
<td>{$vo.statement_num}</td>
|
||||
<td>{$vo.statement_money}</td>
|
||||
<td>{$vo.remark}</td>
|
||||
<td>{$vo.verify_status_str}</td>
|
||||
</tr>
|
||||
|
||||
</foreach>
|
||||
<tr>
|
||||
<td colspan="2">合计:</td>
|
||||
<td colspan="6">打款总金额:{$CompanyInfo[0]['all_money']}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$("#setPayment").on("click",function(){
|
||||
var sendObj = {};
|
||||
var url = "{:U('editPayment')}"
|
||||
$("input[name='ali_user']").map(function(index,elem) {
|
||||
var id = $(elem).data("id");
|
||||
var to = {
|
||||
"ali_user":$(elem).val(),
|
||||
"ali_account":'',
|
||||
"remark":''
|
||||
}
|
||||
sendObj[id]=to;
|
||||
});
|
||||
$("input[name='ali_account']").map(function(index,elem) {
|
||||
var id = $(elem).data("id");
|
||||
|
||||
if(id in sendObj){
|
||||
sendObj[id]['ali_account']=$(elem).val();
|
||||
}else{
|
||||
var to = {
|
||||
"ali_account":$(elem).val(),
|
||||
"ali_user":'',
|
||||
"remark":''
|
||||
}
|
||||
sendObj[id]=to;
|
||||
}
|
||||
|
||||
});
|
||||
$("input[name='remark']").map(function(index,elem) {
|
||||
var id = $(elem).data("id");
|
||||
|
||||
if(id in sendObj){
|
||||
sendObj[id]['remark']=$(elem).val();
|
||||
}else{
|
||||
var to = {
|
||||
"remark":$(elem).val(),
|
||||
"ali_user":'',
|
||||
"ali_account":''
|
||||
}
|
||||
sendObj[id]=to;
|
||||
}
|
||||
});
|
||||
layer.confirm("若支付宝账号及真实姓名不全的公司,将无法进行打款。请认真核对,点击取消返回",{title:false}, function(index){
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: {info:sendObj,pool_id:{$id}},
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.parent.reload();
|
||||
},1000);
|
||||
}else{
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
function cancelPoolAjax(opurl,senddata){
|
||||
//执行
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: opurl,
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: senddata,
|
||||
success:function(data){
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}else{
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,177 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 10px 150px 10px;
|
||||
/* width: 960px; */
|
||||
margin: auto;
|
||||
}
|
||||
/* .tabcon1711 table{
|
||||
width: 480px;
|
||||
} */
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
tr{
|
||||
border-bottom: dotted 1px #c7c7c7;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div class="">
|
||||
<table id="exporttable">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>公司名称</th>
|
||||
<th>合作产品名称</th>
|
||||
<th>平台总额(元)</th>
|
||||
<th>下游内团分成比例</th>
|
||||
<th>补点比例</th>
|
||||
<th>税费费率</th>
|
||||
<th>分成金额/元</th>
|
||||
<th>罚款</th>
|
||||
<th>奖励</th>
|
||||
<th>合计/元</th>
|
||||
<th>对账人</th>
|
||||
<th>结算日期</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<foreach name="data" item="com">
|
||||
<tr>
|
||||
<td rowspan="{$com.statement_count}">{$key-0+1}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.company_name}</td>
|
||||
<td>{$com['statement_info'][0]['game_name']}</td>
|
||||
<td>{$com['statement_info'][0]['pay_amount']}</td>
|
||||
<td>{$com['statement_info'][0]['ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['increment_ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['fax_ratio']}%</td>
|
||||
<td>{$com['statement_info'][0]['d_statement_money']}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.fine}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.reward}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.statement_money}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.settlement_contact}</td>
|
||||
<td>{$com['statement_info'][0]['statement_begin_time']} - {$com['statement_info'][0]['statement_end_time']}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.renark}</td>
|
||||
</tr>
|
||||
|
||||
<foreach name="com.statement_info" item="it" key="k">
|
||||
<if condition="$k neq 0">
|
||||
<tr>
|
||||
<td>{$it['game_name']}</td>
|
||||
<td>{$it['pay_amount']}</td>
|
||||
<td>{$it['ratio']}%</td>
|
||||
<td>{$it['increment_ratio']}%</td>
|
||||
<td>{$it['fax_ratio']}%</td>
|
||||
<td>{$it['d_statement_money']}</td>
|
||||
<td>{$it['statement_begin_time']} - {$it['statement_end_time']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</foreach>
|
||||
</foreach>
|
||||
<tr>
|
||||
<td colspan=3 >合计:</td>
|
||||
<td>{$count.platform_amount}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{$count.d_statement_money}</td>
|
||||
<td>{$count.fine}</td>
|
||||
<td>{$count.reward}</td>
|
||||
<td>{$count.statement_money}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
<if condition="$is_export">
|
||||
$(function(){
|
||||
$("#exporttable").table2excel({
|
||||
filename: "{$title}.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
});
|
||||
</if>
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,306 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 0px 150px;
|
||||
width: 960px;
|
||||
margin: auto;
|
||||
}
|
||||
.tabcon1711 table{
|
||||
width: 480px;
|
||||
}
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
<div style="display: flex;margin: auto;">
|
||||
<if condition="$data['first_party_info']">
|
||||
<div class="tab-content tabcon1711" id="firstPartBaseInfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">甲方:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="first_partner_id" name="partner_id" class="select_gallery">
|
||||
<option value="{$data['first_party_info']['id']}" selected>{$data['first_part_company']}</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="first_part_bser_info_show">
|
||||
<tr>
|
||||
<td class="l">联系人:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_man" value="{$data['first_party_info']['link_man']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">联系电话:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_phone" value="{$data['first_party_info']['link_phone']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">邮寄地址:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="address" value="{$data['first_party_info']['address']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">公司税号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="company_tax_no" disabled="disabled" value="{$data['first_party_info']['company_tax_no']}" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</if>
|
||||
<if condition="$data['second_party_info']">
|
||||
<div class="tab-content tabcon1711" id="secondPartBaseInfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">乙方:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="second_partner_id" name="partner_id" class="select_gallery">
|
||||
<option value="{$data['second_party_info']['id']}" selected>{$data['second_part_company']}</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="second_part_bser_info_show">
|
||||
<tr>
|
||||
<td class="l">联系人:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_man" value="{$data['second_party_info']['link_man']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">联系电话:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="link_phone" value="{$data['second_party_info']['link_phone']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">邮寄地址:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="address" value="{$data['second_party_info']['address']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">公司税号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="company_tax_no" value="{$data['second_party_info']['company_tax_no']}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</if>
|
||||
</div>
|
||||
<if condition="$data['company']">
|
||||
<div style="padding: 30px 0px 10px;display: block;height:30px;">
|
||||
<div class="input-list input-list-server search_label_rehab">
|
||||
<p style="font-size: 20px;font-weight: 600;">支付给:<spen style="margin-left: 15px;font-size: 16px;">{$data.company}
|
||||
</spen>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</if>
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div class="">
|
||||
<table>
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-right: solid 1px #b6cad2;">结算时间</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">产品</th>
|
||||
<th style="border-right: solid 1px #b6cad2;">平台总额(元)</th>
|
||||
<if condition="$data['withdraw_type'] eq 2">
|
||||
<th style="border-right: solid 1px #b6cad2;">补点比例</th>
|
||||
<else />
|
||||
<th style="border-right: solid 1px #b6cad2;">分成比例</th>
|
||||
</if>
|
||||
|
||||
<th style="border-right: solid 1px #b6cad2;">税费费率</th>
|
||||
<th >结算金额(元)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<foreach name="data.statement_info" item="it" >
|
||||
<tr>
|
||||
<td>{$it.statement_begin_time}~{$it.statement_end_time}</td>
|
||||
<td>{$it.game_name}</td>
|
||||
<if condition="$it['statement_type'] eq 1">
|
||||
<td>-{$it.pay_amount}</td>
|
||||
<else />
|
||||
<td>{$it.pay_amount}</td>
|
||||
</if>
|
||||
<if condition="$it['statement_type'] eq 0">
|
||||
<if condition="$data['withdraw_type'] eq 2">
|
||||
<td>{$it.increment_ratio}%</td>
|
||||
<else />
|
||||
<td>{$it.ratio}%</td>
|
||||
</if>
|
||||
<td>{$it.fax_ratio}%</td>
|
||||
<else />
|
||||
<td></td>
|
||||
<td></td>
|
||||
</if>
|
||||
<if condition="$it['statement_type'] eq 1">
|
||||
<td>-{$it.sum_money}</td>
|
||||
<else />
|
||||
<td>{$it.sum_money}</td>
|
||||
</if>
|
||||
</tr>
|
||||
<!-- {$key}|{$vo} -->
|
||||
</foreach>
|
||||
|
||||
<tr>
|
||||
<td>合计</td>
|
||||
<td></td>
|
||||
<td>{$data.statement_count.pay_amount}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{$data.statement_count.statement_money}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=5>本月分成总金额(人民币大写):</td>
|
||||
<td>{$data.statement_count.big_ratio_money}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<if condition="$data['payinfo']">
|
||||
<div id="partpatinfo" style="display: flex;margin: auto;">
|
||||
<div class="tab-content tabcon1711" id="skf_payinfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">收款方名称:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="" disabled="disabled" placeholder="" value="{$data.payinfo.payee_name}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">银行账号:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="" value="{$data.payinfo.bank_account}" disabled="disabled" placeholder="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">开户行:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" name="password" value="{$data.payinfo.opening_bank}" disabled="disabled" placeholder="请先选择支付给谁">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-content tabcon1711" id="fkf_payinfo">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">开票项目:</td>
|
||||
<td class="r">
|
||||
<input type="text" class="txt" disabled="disabled" placeholder="" name="invoice_item" value="{$data.payinfo.invoice_content}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">发票类型:</td>
|
||||
<td class="r">
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="invoice_type" name="invoice_type" class="select_gallery" disabled>
|
||||
<option value="0" <if condition="$data['payinfo']['invoice_type'] eq 0">selected</if>>无</option>
|
||||
<option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option>
|
||||
<option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- <input type="text" class="txt" disabled="disabled" placeholder="" name="invoice_type" value="{$data.payinfo.invoice_type}"> -->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</if>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,268 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 10px 150px 10px;
|
||||
/* width: 960px; */
|
||||
margin: auto;
|
||||
}
|
||||
/* .tabcon1711 table{
|
||||
width: 480px;
|
||||
} */
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
tr{
|
||||
border-bottom: dotted 1px #c7c7c7;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div class="">
|
||||
<table id="exporttable">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>归属团体</th>
|
||||
<th>下游名称</th>
|
||||
<th>下游性质</th>
|
||||
<th>产品</th>
|
||||
<th>产品类型</th>
|
||||
<th>结算时间</th>
|
||||
<th>推广流水</th>
|
||||
<th>分成比例</th>
|
||||
<th>税率</th>
|
||||
<th>奖励</th>
|
||||
<th>罚款</th>
|
||||
<th>结算金额</th>
|
||||
<if condition="$is_payment eq 2">
|
||||
<th>开户名</th>
|
||||
<th>银行卡号</th>
|
||||
<th>开户支行</th>
|
||||
<th>帐户类型</th>
|
||||
</if>
|
||||
<if condition="$is_payment eq 1">
|
||||
<th>支付宝真实姓名</th>
|
||||
<th>支付宝账号</th>
|
||||
</if>
|
||||
|
||||
<th>备注</th>
|
||||
<th>是否结算</th>
|
||||
<if condition="!$is_export">
|
||||
<th>操作</th>
|
||||
</if>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<foreach name="data" item="com">
|
||||
<tr>
|
||||
<td rowspan="{$com.statement_count}">{$com.company_belong_name}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.company_name}</td>
|
||||
|
||||
<td rowspan="{$com.statement_count}">聚合</td>
|
||||
|
||||
<td>{$com['statement_info'][0]['game_name']}</td>
|
||||
<td>{$com['statement_info'][0]['game_type_name']}</td>
|
||||
<td>{$com['statement_info'][0]['begintime']} - {$com['statement_info'][0]['endtime']}</td>
|
||||
<td>{$com['statement_info'][0]['money']}</td>
|
||||
<if condition="$com['statement_info'][0]['statement_type'] neq 0">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<else />
|
||||
<td>{$com['statement_info'][0]['ratio']|default=0}%</td>
|
||||
<td>{$com['statement_info'][0]['fax_ratio']|default=0}%</td>
|
||||
</if>
|
||||
|
||||
<!-- <td>{$com['statement_info'][0]['reward']}</td>-->
|
||||
<!-- <td>{$com['statement_info'][0]['fine']}</td>-->
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>{$com['statement_info'][0]['ratio_money']}</td>
|
||||
|
||||
<if condition="$is_payment eq 2">
|
||||
<td rowspan="{$com.statement_count}">{$com.company_info.payee_name}</td>
|
||||
<td rowspan="{$com.statement_count}"> {$com.company_info.bank_account}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.company_info.opening_bank}</td>
|
||||
<td rowspan="{$com.statement_count}">企业账户</td>
|
||||
</if>
|
||||
|
||||
<if condition="$is_payment eq 1">
|
||||
<td rowspan="{$com.statement_count}">{$com.company_info.ali_user}</td>
|
||||
<td rowspan="{$com.statement_count}">{$com.company_info.ali_account}</td>
|
||||
</if>
|
||||
|
||||
<td rowspan="{$com.statement_count}">{$com.remark}</td>
|
||||
<td rowspan="{$com.statement_count}"><if condition="$com['st'] eq 0">否 <else /> 是 </if></td>
|
||||
<if condition="!$is_export">
|
||||
<td rowspan="{$com.statement_count}">
|
||||
<if condition="($com['st'] eq 1 ) AND ($pool_status lt 1)">
|
||||
<a data-id="{$com['id']}" class='butn no_statement' style="cursor:pointer">不结算</a>
|
||||
</if>
|
||||
</td>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<foreach name="com.statement_info" item="it" key="k">
|
||||
<if condition="$k neq 0">
|
||||
<tr>
|
||||
<td>{$it['game_name']}</td>
|
||||
<td>{$it['game_type_name']}</td>
|
||||
<td>{$it['begintime']} - {$it['endtime']}</td>
|
||||
<td>{$it['money']}</td>
|
||||
|
||||
<if condition="$it['statement_type'] neq 0">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<else />
|
||||
<td>{$it['ratio']|default=0}%</td>
|
||||
<td>{$it['fax_ratio']|default=0}%</td>
|
||||
</if>
|
||||
|
||||
<!-- <td>{$it['reward']}</td>-->
|
||||
<!-- <td>{$it['fine']}</td>-->
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>{$it['ratio_money']}</td>
|
||||
|
||||
</tr>
|
||||
</if>
|
||||
</foreach>
|
||||
</foreach>
|
||||
<tr>
|
||||
<td colspan=6 >合计:</td>
|
||||
<td>{$count.platform_amount|default=0}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{$count.sum_money|default=0}</td>
|
||||
<if condition="$is_payment eq 2">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</if>
|
||||
<if condition="$is_payment eq 1">
|
||||
<td></td>
|
||||
<td></td>
|
||||
</if>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<if condition="!$is_export">
|
||||
<td></td>
|
||||
</if>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
<if condition="$is_export">
|
||||
$(function(){
|
||||
$("#exporttable").table2excel({
|
||||
filename: "{$title}.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
});
|
||||
</if>
|
||||
$(".no_statement").on("click",function(){
|
||||
var id = $(this).data('id');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{:U('cancelStatement')}",
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: {id:id},
|
||||
success:function(data){
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}else{
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</html>
|
Loading…
Reference in New Issue