新增cp导出

master
chenzhi 4 years ago
parent bd3510581f
commit 58c8508ce4

@ -153,6 +153,7 @@ class PartnerController extends ThinkController
$value['game'] = $parseGames[$value['id']]; $value['game'] = $parseGames[$value['id']];
$value['has_advance_charge'] = $value['has_advance_charge'] ? '是' : '否'; $value['has_advance_charge'] = $value['has_advance_charge'] ? '是' : '否';
$value['is_sign_contract'] = $value['is_sign_contract'] ? '是' : '否';
$value['channel_rate'] *= 100; $value['channel_rate'] *= 100;
$value['invoice_rate'] *= 100; $value['invoice_rate'] *= 100;
@ -173,7 +174,6 @@ class PartnerController extends ThinkController
$value['row'] = empty($row2) ? 1: $row2; $value['row'] = empty($row2) ? 1: $row2;
$parseData[] = $value; $parseData[] = $value;
} }
dd($parseData);
if($is_export){ if($is_export){
$this->assign('listData', $parseData); $this->assign('listData', $parseData);
$GetData = $_GET; $GetData = $_GET;

@ -7,7 +7,9 @@
<script type="text/javascript" src="__JS__/select2.min.js"></script> <script type="text/javascript" src="__JS__/select2.min.js"></script>
<script src="__STATIC__/table2excel.js"></script> <script src="__STATIC__/table2excel.js"></script>
<style> <style>
html{
opacity: 0;
}
.select2-container--default .select2-selection--single { .select2-container--default .select2-selection--single {
color: #000; color: #000;
resize: none; resize: none;
@ -43,7 +45,7 @@
如果导出成功你也可以手动关闭此页面 如果导出成功你也可以手动关闭此页面
</div> --> </div> -->
<div class=""> <div class="">
<table border="1"> <table border="1" id="exporttable">
<!-- 表头 --> <!-- 表头 -->
<thead> <thead>
<tr> <tr>
@ -64,6 +66,21 @@
<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>
<th>联系电话</th>
<th>联系地址</th>
</tr> </tr>
</thead> </thead>
@ -98,11 +115,26 @@
<td rowspan="{$data.row}">{$data.settlement_type}</td> <td rowspan="{$data.row}">{$data.settlement_type}</td>
<td rowspan="{$data.row}">{$data.payee_name}</td> <td rowspan="{$data.row}">{$data.payee_name}</td>
<td rowspan="{$data.row}">{$data.bank_account}</td> <td rowspan="{$data.row}">&nbsp;{$data.bank_account}</td>
<td rowspan="{$data.row}">{$data.opening_bank}</td> <td rowspan="{$data.row}">{$data.opening_bank}</td>
<td rowspan="{$data.row}">{$data.has_advance_charge}</td> <td rowspan="{$data.row}">{$data.has_advance_charge}</td>
<td rowspan="{$data.row}">{$data.is_collection}</td> <td rowspan="{$data.row}">{$data.is_collection}</td>
<td rowspan="{$data.row}">{$data.advance_amount}</td>
<td rowspan="{$data.row}">{$data.is_sign_contract}</td>
<td rowspan="{$data.row}">{$data.contract_time}</td>
<td rowspan="{$data.row}">{$data.validity_time}</td>
<td rowspan="{$data.row}">{$data.invoice_rate}%</td>
<td rowspan="{$data.row}">{$data.invoice_type}</td>
<td rowspan="{$data.row}">{$data.channel_rate}%</td>
<td rowspan="{$data.row}">{$data.reg_address}</td>
<td rowspan="{$data.row}">{$data.reg_phone}</td>
<td rowspan="{$data.row}">{$data.link_man}</td>
<td rowspan="{$data.row}">{$data.link_phone}</td>
<td rowspan="{$data.row}">{$data.address}</td>
</tr> </tr>
<if condition="$data['game'][0]['row'] gt 1"> <if condition="$data['game'][0]['row'] gt 1">
<foreach name="data['game'][0]['game_ratio']" item="game_ratio" key="gamekey"> <foreach name="data['game'][0]['game_ratio']" item="game_ratio" key="gamekey">
@ -187,9 +219,9 @@
$(".select_gallery").select2(); $(".select_gallery").select2();
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
// $("#exporttable").table2excel({ $("#exporttable").table2excel({
// filename: "合作方.xls", // do include extension filename: "合作方.xls", // do include extension
// preserveColors: false // set to true if you want background colors and font colors preserved preserveColors: false // set to true if you want background colors and font colors preserved
// }); });
</script> </script>
</block> </block>

Loading…
Cancel
Save