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.
108 lines
4.5 KiB
108 lines
4.5 KiB
<?php
|
|
use \common\libs\MyLib;
|
|
?>
|
|
<?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>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<table id="listTable">
|
|
<thead>
|
|
<tr>
|
|
<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>
|
|
</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 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');
|
|
}
|
|
function edit(id) {
|
|
var title = '详情';
|
|
layer_show(title, '/finance/receipt-info?id=' + id);
|
|
}
|
|
function refreshList() {
|
|
$('#listTable').bootstrapTable('refresh');
|
|
}
|
|
|
|
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;
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
|
|
$(function() {
|
|
search();
|
|
});
|
|
</script>
|
|
<?php $this->endBlock(); ?>
|
|
|