@ -1,184 +1,79 @@ |
||||
<?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> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>补点设置</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<form role="form" class="form-inline" onsubmit="return search();"> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">补点比例</label> |
||||
<input type="text" id="name" name="name" class="form-control"> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary mb-8">计算</button> |
||||
</form> |
||||
</table> |
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<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>
|
||||
<th data-field="id">ID</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="id_man">被保险人</th> |
||||
<th data-field="company_name">保险公司</th> |
||||
<th data-field="insurer_no">保单号</th> |
||||
<th data-field="print_date">出单日期</th> |
||||
<th data-field="total_clear">商业净保费</th> |
||||
<th data-field="insurer_type">保险类型</th> |
||||
<th data-field="budian_rate">补点比例</th> |
||||
<th data-field="budian_money">补点金额</th> |
||||
</tr> |
||||
<?php |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||
<script> |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
?> |
||||
<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() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/finance/budian-list-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
params.type_id = $('#type_id').val(); |
||||
params.name = $('#name').val(); |
||||
return 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; |
||||
return false; |
||||
} |
||||
},'json'); |
||||
}); |
||||
|
||||
|
||||
|
||||
}) |
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -0,0 +1,85 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link rel="stylesheet" type="text/css" href="/assets/css/plugins/webuploader/webuploader.css"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||
<div class="form-group"> |
||||
<label class="control-label col-sm-2">导入文件</label> |
||||
<div class="col-sm-6"> |
||||
<div class="input-group"> |
||||
<input type="text" name="urlfile" id="urlfile" class="form-control" value=""> |
||||
<a href="javascript:void(0);" class="input-group-addon" id="upload"> |
||||
上传文件 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div> |
||||
<div class="row"> |
||||
<div class="col-sm-5 col-sm-offset-5"> |
||||
<button class="btn btn-primary btn-save" type="button"> |
||||
<strong>导 入</strong> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script src="/assets/js/plugins/webuploader/webuploader.min.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
layui.use(['upload'], function(){ |
||||
var upload = layui.upload; |
||||
var uploadInst = upload.render({ |
||||
elem: '#upload' //绑定元素 |
||||
,url: '/common/upload' //上传接口 |
||||
,accept: 'file' |
||||
,done: function(res){ |
||||
//上传完毕回调 |
||||
if(res.status == 'SUCCESS') { |
||||
$('#urlfile').val(res.fileUrl); |
||||
} |
||||
} |
||||
,error: function(){ |
||||
//请求异常回调 |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
$(function () { |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/finance/receipt-process',params,function(obj){ |
||||
if(obj.success) { |
||||
parent.layer.msg('保存成功'); |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} else { |
||||
parent.layer.msg(data.msg); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -1,263 +1,108 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<link rel="stylesheet" href="/js/fileupload/css/jquery.fileupload.css"> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<tr> |
||||
<td align="center" width="100" height="25" class="td_bg">导入类型</td> |
||||
<td height="25" class="td_bg">手续费导入</td> |
||||
</tr> |
||||
<tr> |
||||
<td align="center" width="100" height="25" class="td_bg">保险公司</td> |
||||
<td height="25" class="td_bg"> |
||||
<select name="company"> |
||||
<option>人保</option> |
||||
<option>太平洋</option> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td align="center" width="100" height="25" class="td_bg">批对日期</td> |
||||
<td height="25" class="td_bg"> |
||||
<input type="text" name="urlfile" id="urlfile" style="width: 300px;"> |
||||
<input id="fileupload" type="file" name="file"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input type="button" class="ACT_btn" name="Submit3" value=" 刷新 " onclick="window.location.reload();"> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!--新增搜索项--> |
||||
<!--完成程度--> |
||||
<select name="status" class="status"> |
||||
<option value=0>全部</option> |
||||
<option value=1 <?= $status==1?'selected':'' ?>>未匹配</option>
|
||||
<option value=2 <?= $status==2?'selected':'' ?>>已完成</option>
|
||||
<option value=3 <?= $status==3?'selected':'' ?>>匹配差额</option>
|
||||
</select> |
||||
保单号:<input name="insurer_no" type="text" value="<?=$insurer_no?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
工号:<input name="username" type="text" value="<?=$username?>">
|
||||
<!--日期--> |
||||
出单日期: |
||||
<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="Wdate" name="r_begin_date" onclick="WdatePicker()" value="<?= $r_begin_date ?>" />
|
||||
-- |
||||
<input type="Text" class="Wdate" name="r_end_date" onclick="WdatePicker()" value="<?= $r_end_date ?>" />
|
||||
保险公司:<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> |
||||
级别:<select name="group_id"> |
||||
<option value="0">全部</option> |
||||
<?php |
||||
foreach($group_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $group_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
排序: |
||||
<select name="sort_key"> |
||||
<option value="0">请选择</option> |
||||
<option value="print_date" <?= $sort_key == 'print_date' ? 'selected' : ''?>>出单日期</option>
|
||||
<option value="total" <?= $sort_key == 'total' ? 'selected' : ''?>>商业总保费</option>
|
||||
<option value="total_clear" <?= $sort_key == 'total_clear' ? 'selected' : ''?>>商业净保费</option>
|
||||
<option value="total_rate" <?= $sort_key == 'total_rate' ? 'selected' : ''?>>手续费比例</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="0">请选择</option> |
||||
<option value="ASC" <?= $sort_value == 'ASC' ? 'selected' : ''?>>正序</option>
|
||||
<option value="DESC" <?= $sort_value == 'DESC' ? 'selected' : ''?>>倒序</option>
|
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<!-- <input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出">--> |
||||
</td> |
||||
</tr> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>回单匹配</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="importDlg()"> |
||||
<i class="fa fa-plus"></i> 手续费导入 |
||||
</a> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<form role="form" class="form-inline" onsubmit="return search();"> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">名称</label> |
||||
<input type="text" id="name" name="name" class="form-control"> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<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> |
||||
<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> |
||||
<td align="center" class="bg_tr">编辑</td> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="id_man">被保险人</th> |
||||
<th data-field="company_name">保险公司</th> |
||||
<th data-field="username">工号</th> |
||||
<th data-field="nams">级别</th> |
||||
<th data-field="payer">付款人</th> |
||||
<th data-field="insurer_no">保单号</th> |
||||
<th data-field="submit_date">提单日期</th> |
||||
<th data-field="print_date">出单日期</th> |
||||
<th data-field="total">商业总保费</th> |
||||
<th data-field="total_clear">商业净保费</th> |
||||
<th data-field="total_rate">手续费比例</th> |
||||
<th data-field="total_real">应得金额</th> |
||||
<th data-field="total_clear_real">实得金额</th> |
||||
<th data-field="total_real_dis">税差</th> |
||||
<th data-field="r_total">回款金额</th> |
||||
<th data-field="r_total_dis">回款差额</th> |
||||
<th data-field="r_date">回款日期</th> |
||||
<th data-formatter="opFormatter">操作</th> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1)*20+$index; |
||||
$order = $item->order; |
||||
$users=$item->user->group; |
||||
$username=$item->user; |
||||
$uname=$username['name']; |
||||
$nams=$users['name']; |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
$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); |
||||
?> |
||||
<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 && $order->company ? $order->company->name:''?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->user->username?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$uname?>-<?=$nams?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$order && $order->payer? MyLib::payers($order->payer):''?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->insurer_no?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$order ? $order->submit_date : ''?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$order ? $order->print_date : ''?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total_clear?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total_rate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=sprintf("%.2f",$total_real)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=sprintf("%.2f",$total_clear_real)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=sprintf("%.2f",$total_real - $total_clear_real)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->r_total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total_dis?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->r_date?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">维护</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||
<script> |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||
opStr.push('<i class="fa fa-edit" title="编辑"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
function importDlg(id) { |
||||
var title = '手续费导入'; |
||||
layer_show(title, '/finance/receipt-import'); |
||||
} |
||||
?> |
||||
<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></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><?=number_format($sum_total,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($sum_total_clear,2)?></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><?=number_format($sum_r_total,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($sum_total_dis,2)?></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>--> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" colspan="20" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<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> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.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); |
||||
var title = '详情'; |
||||
layer_show(title, '/finance/receipt-info?id=' + id); |
||||
} |
||||
|
||||
$(function () { |
||||
//上传按钮 |
||||
$('#upload-btn').click(function(){ |
||||
$('#fileupload').click(); |
||||
}); |
||||
|
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var urlfile = $("#urlfile").val(); |
||||
var import_type = $(".import_type").val(); |
||||
|
||||
if(urlfile == ''){ |
||||
alert('请先选择文件!'); |
||||
return false; |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
var last_url = '/finance/receipt-process'; |
||||
var params = $("#theFrm").serialize(); |
||||
|
||||
$.post(last_url,params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success){ |
||||
$('#theFrm')[0].reset(); |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/finance/receipt-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
params.type_id = $('#type_id').val(); |
||||
params.name = $('#name').val(); |
||||
return params; |
||||
} |
||||
}); |
||||
//上传 |
||||
$('#fileupload').fileupload({ |
||||
url: '/finance/receipt-upload', |
||||
dataType: 'json', |
||||
done: function (e, data) { |
||||
var file_info = data.result.files[0]; |
||||
$('#urlfile').val(file_info.url); |
||||
$('#submit-btn').removeAttr('disabled'); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
//搜索 |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/receipt?" + params; |
||||
}); |
||||
//导出 |
||||
$("#output-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/receipt-output?" + params; |
||||
}); |
||||
}) |
||||
</script> |
||||
<style> |
||||
input[type="text"] { |
||||
width: 134px; |
||||
} |
||||
|
||||
</style> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,70 +1,96 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<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/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id,index) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/info?id=' + id + '&type=4' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/insurer/my-return-list?" + params; |
||||
}); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
出单日期:从<input name="date_begin" type="text" value="<?=$date_begin?>" style="width:100px;" onclick="WdatePicker()">到<input name="date_end" type="text" value="<?=$date_end?>" style="width:100px;" onclick="WdatePicker()">截止
|
||||
退单日期:从<input name="date2_begin" type="text" value="<?=$date2_begin?>" style="width:100px;" onclick="WdatePicker()">到<input name="date2_end" type="text" value="<?=$date2_end?>" style="width:100px;" onclick="WdatePicker()">截止
|
||||
车主:<input name="car_man" type="text" value="<?=$car_man?>">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
||||
</tr> |
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>我的退单</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<form role="form" class="form-inline" onsubmit="return search();"> |
||||
<div class="form-group"> |
||||
<label>车主</label> |
||||
<input type="text" name="car_man" id="car_man" class="form-control"> |
||||
<label>电话</label> |
||||
<input type="text" name="phone" id="phone" class="form-control"> |
||||
<label>车牌</label> |
||||
<input type="text" name="car_no" id="car_no" class="form-control"> |
||||
<label>被保险人</label> |
||||
<input type="text" name="id_man" id="id_man" class="form-control"> |
||||
<button type="submit" class="btn btn-primary">搜索</button> |
||||
</div> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<td width="30" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="60" align="center" class="bg_tr" nowrap>车牌号</td> |
||||
<td width="50" align="center" class="bg_tr" nowrap>车主</td> |
||||
<td width="60" align="center" class="bg_tr" nowrap>联系人</td> |
||||
<td width="60" align="center" class="bg_tr" nowrap>联系电话</td> |
||||
<td width="60" align="center" class="bg_tr" nowrap>退回时间</td> |
||||
<td width="50%" align="center" class="bg_tr" nowrap>备注</td> |
||||
<td width="30" align="center" class="bg_tr" nowrap>操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page - 1) * 20 + $index; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"n owrap ><?=$start_index + 1?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car_man?></td>
|
||||
<td class="td_bg" nowrap><?=$item->link_man?></td>
|
||||
<td class="td_bg" nowrap><?=$item->link_phone?></td>
|
||||
<td class="td_bg" nowrap><?=date('Y-m-d H:i:s',$item->return_time)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->return_remark?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index+1?>)">详情</a>]
|
||||
</td> |
||||
<th width="50" data-field="id">ID</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="link_man">联系人</th> |
||||
<th data-field="link_man_phone">联系电话</th> |
||||
<th data-field="return_time">退回时间</th> |
||||
<th data-field="return_remark">备注</th> |
||||
<th data-formatter="opFormatter">操作</th> |
||||
</tr> |
||||
<?php |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||
<script> |
||||
var o = {}; |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="view(' + row.car_id + ')">'); |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
?> |
||||
<tr > |
||||
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
function view(id) { |
||||
window.location.href = '/car/info?id=' + id; |
||||
} |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/insurer/my-return-list-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -0,0 +1,54 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/clockpicker/clockpicker.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||
<input type="hidden" name="op" value="add" /> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">选择返现</label> |
||||
<div class="col-sm-6"> |
||||
<select name="fanxian_id" id="fanxian_id" class="form-control"> |
||||
<?php |
||||
foreach($items as $item) { |
||||
echo '<option value="'.$item->id.'">客户返现:'.$item->fanxian_rate.'%,最高返现:'.$item->max_cashback.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</div> |
||||
</div> |
||||
<div> |
||||
<div class="row"> |
||||
<div class="col-sm-5 col-sm-offset-5"> |
||||
<button class="btn btn-primary btn-save" type="button"> |
||||
<strong>选 择</strong> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
$(function () { |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.selectFanxian($('#fanxian_id').val()); |
||||
layer_close(); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -0,0 +1,2 @@ |
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */ |
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 277 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 777 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.2 KiB |