You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
7.9 KiB
184 lines
7.9 KiB
<?php
|
|
use \common\libs\MyLib;
|
|
?>
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
|
<form id="searchForm">
|
|
<tr>
|
|
<td class="td_bg">
|
|
<!--新增搜索项-->
|
|
|
|
保险类型:<select name="insurer_type">
|
|
<option value="0" >所有类型</option>
|
|
<option value="1" <?= $insurer_type == 1 ? 'selected': ''?>>商业险</option>
|
|
<option value="2" <?= $insurer_type == 2 ? 'selected': ''?>>交强险</option>
|
|
</select>
|
|
车牌类型:<select name="car_no_type">
|
|
<option value="0" >所有类型</option>
|
|
<option value="1" <?= $car_no_type == 1 ? 'selected': ''?>>京牌</option>
|
|
<option value="2" <?= $car_no_type == 2 ? 'selected': ''?>>非京牌</option>
|
|
<option value="3" <?= $car_no_type == 3 ? 'selected': ''?>>特殊车辆</option>
|
|
</select>
|
|
保险公司:<select name="company_id">
|
|
<option value="0">所有公司</option>
|
|
<?php
|
|
foreach($company_items as $item) {
|
|
echo '<option value="'.$item->id.'"';
|
|
if($item->id == $company_id)
|
|
echo ' selected ';
|
|
echo '>'.$item->name.'</option>';
|
|
}
|
|
?>
|
|
</select>
|
|
|
|
<!--日期-->
|
|
出单日期:
|
|
<input type="Text" class="Wdate" name="begin_date" onclick="WdatePicker()" value="<?= $begin_date ?>" />
|
|
--
|
|
<input type="Text" class="Wdate" name="end_date" onclick="WdatePicker()" value="<?= $end_date ?>" />
|
|
商业净保费:
|
|
<input type="Text" class="" name="begin_totalclear" " value="<?= $begin_totalclear ?>" />
|
|
--
|
|
<input type="Text" class="" name="end_totalclear" " value="<?= $end_totalclear?>" />
|
|
|
|
|
|
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
|
|
|
|
|
|
|
<tr>
|
|
<td class="td_bg">
|
|
<!--新增搜索项-->
|
|
<!--完成程度-->
|
|
|
|
补点比例:<input name="budian_rate" type="text" value="<?=$budian_rate?>">
|
|
|
|
|
|
<input type="button" class="act_btn" id="save-btn" name="jisuan-btn" value="计算">
|
|
</td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
|
|
<tr>
|
|
<td width="24" align="center" class="bg_tr">序号</td>
|
|
<td align="center" class="bg_tr">车牌号</td>
|
|
<td align="center" class="bg_tr">被保险人</td>
|
|
<td align="center" class="bg_tr">保险公司</td>
|
|
<td align="center" class="bg_tr">保单号</td>
|
|
<td align="center" class="bg_tr">出单日期</td>
|
|
<td align="center" class="bg_tr">商业净保费</td>
|
|
<td align="center" class="bg_tr">保险类型</td>
|
|
<td align="center" class="bg_tr">补点比例</td>
|
|
<td align="center" class="bg_tr">补点金额</td>
|
|
</tr>
|
|
<?php
|
|
foreach($items as $index => $item) {
|
|
$start_index = $index;
|
|
|
|
|
|
$total_real = $item->total * $item->total_rate/100;
|
|
$total_clear_real = $item->total_clear * $item->total_rate/100;
|
|
$total_dis = round($total_clear_real - $item->r_total,2);
|
|
|
|
$order_caiwu_info = $item->orderCaiwu;
|
|
$order_info = $item->order;
|
|
$car_info = $order_info->car;
|
|
|
|
?>
|
|
<tr style="height:24px;" onMouseOver="overColor(this)" onMouseOut="outColor(this)">
|
|
<td align="center" class="td_bg" nowrap><?=$start_index+1?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->car_no?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->id_man?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$order_info && $order_info->company ? $order_info->company->name:''?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->insurer_no?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$order_info ? $order_info->print_date : ''?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->total_clear?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->insurer_type == 1?'商业':'交强'?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->budian_rate?></td>
|
|
<td align="center" class="td_bg" nowrap><?=$item->budian_money?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td align="center" class="td_bg" nowrap>合计</td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap><?=$total1_clear_all?></td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap></td>
|
|
<td align="center" class="td_bg" nowrap><?=$total_money_all?></td>
|
|
</tr>
|
|
<tr>
|
|
<td height="25" colspan="10" align="center" class="td_bg"><?=$page_info?></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<link href="/css/fSelect.css" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/fileupload/js/vendor/jquery.ui.widget.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/fileupload/js/jquery.iframe-transport.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/fileupload/js/jquery.fileupload.js"></script>
|
|
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611">
|
|
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605">
|
|
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605">
|
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
|
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script>
|
|
<script type="text/javascript" src="../Myfile/js/xadmin.js?v=20190612"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/ajax.js?v=2019"></script><script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
|
|
|
|
|
<script src="/gg_bd_ad_720x90.js" type="text/javascript"></script>
|
|
<script src="/follow.js" type="text/javascript"></script>
|
|
<script src="/js/fSelect.js"></script>
|
|
|
|
<script type="text/javascript" language="javascript" src="/js/artDialog/artDialog.js?skin=default"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/artDialog/plugins/iframeTools.source.js"></script>
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
function edit(id) {
|
|
var params = $('#searchForm').serialize();
|
|
window.location.href = '/finance/receipt-info?id=' + id + '&back_params=' + encodeURIComponent(params);
|
|
}
|
|
|
|
|
|
$(function () {
|
|
|
|
//搜索
|
|
$("#search-btn").click(function(){
|
|
$('#page').val(0);
|
|
var params = $('#searchForm').serialize();
|
|
window.location.href = "/finance/budian-list?" + params;
|
|
});
|
|
|
|
|
|
$("#save-btn").click(function(){
|
|
var last_url = '/finance/budian-save';
|
|
var params = $("#searchForm").serialize();
|
|
|
|
$.get(last_url,params,function(obj){
|
|
alert(obj.msg);
|
|
if(obj.success){
|
|
window.location.href = "/finance/budian-list?" + params;
|
|
}
|
|
},'json');
|
|
});
|
|
|
|
|
|
|
|
})
|
|
</script>
|