|
|
|
<?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="$('#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>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table id="listTable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="50" data-field="username1">ID</th>
|
|
|
|
<th data-field="usernamae2">被保险人</th>
|
|
|
|
<th data-field="usernamae3">联系电话</th>
|
|
|
|
<th data-field="usernamae4">保险公司</th>
|
|
|
|
<th data-field="usernamae5">车牌号</th>
|
|
|
|
<th data-field="usernamae6">正本日期</th>
|
|
|
|
<th data-field="usernamae7">级别</th>
|
|
|
|
<th data-field="usernamae8">销售座席</th>
|
|
|
|
<th data-field="usernamae9">商业净保费</th>
|
|
|
|
<th data-field="usernamae18">公司返金额</th>
|
|
|
|
<th data-field="usernamaed">业务自付</th>
|
|
|
|
<th data-field="usernamaew">实返现金额</th>
|
|
|
|
<th data-field="usernamaee">转账时间</th>
|
|
|
|
<th data-field="usernamaei">转账状态</th>
|
|
|
|
<th data-field="usernamaex">支付方式</th>
|
|
|
|
<th data-field="usernamaeo">状态</th>
|
|
|
|
<th data-field="usernamae11">当前操作</th>
|
|
|
|
<th data-formatter="opFormatter">操作</th>
|
|
|
|
</tr>
|
|
|
|
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
|
|
|
|
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
|
|
|
|
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,20)?></td>
|
|
|
|
<td class="td_bg" nowrap><?=$item->link_phone?></td>
|
|
|
|
<td class="td_bg" nowrap><?=$item->company?$item->company->name:''?></td>
|
|
|
|
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
|
|
|
<td class="td_bg" nowrap><?=$item->print_date?></td>
|
|
|
|
<td align="center" class="td_bg" nowrap><?=$nams?></td>
|
|
|
|
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
|
|
|
<td class="td_bg" ><?=$item->total1_clear?></td>
|
|
|
|
<td class="td_bg" ><?=$item->total1_dis?></td>
|
|
|
|
<td class="td_bg" ><?=$item->yuangong_money?></td>
|
|
|
|
<td class="td_bg" ><?=$item->non_total1_dis?></td>
|
|
|
|
<td class="td_bg" ><?=$item->total1_dis + $item->yuangong_money?></td>
|
|
|
|
<td class="td_bg" ><?=$caiwu->transfer_date?></td>
|
|
|
|
<td class="td_bg" ><?=$caiwu->caiwuStatus ? $caiwu->caiwuStatus->name : ''?></td>
|
|
|
|
<td class="td_bg" align="center" nowrap><?=$item->shoufei_id?MyLib::zhifufs($item->shoufei_id).'-':''?><?=$item->payType?$item->payType->name:''?></td>
|
|
|
|
<td class="td_bg" ><?=$caiwu->status->name?></td>
|
|
|
|
<td class="td_bg" ><?=$caiwu->lock?$caiwu->lock->getShowName():''?></td>
|
|
|
|
<td align="center" class="td_bg" nowrap>
|
|
|
|
<!-- //if($caiwu->status_id == 12){ ?>-->
|
|
|
|
[<a href="javascript:void(0);" onclick="unlock(<?=$item->id?>)">解锁</a>]
|
|
|
|
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
|
|
|
|
<!-- - //} ?>-->
|
|
|
|
</td>
|
|
|
|
</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>
|
|
|
|
var o = {};
|
|
|
|
function opFormatter(value, row, index) {
|
|
|
|
var opStr = [];
|
|
|
|
opStr.push('<a href="javascript:void(0);" onclick="unlock(' + row.id + ')">');
|
|
|
|
opStr.push('<i class="fa fa-unlock" title="解锁"></i>');
|
|
|
|
opStr.push('</a>');
|
|
|
|
opStr.push('<a href="javascript:void(0);" onclick="info(' + row.id + ')">');
|
|
|
|
opStr.push('<i class="fa fa-file-o" title="详情"></i>');
|
|
|
|
opStr.push('</a>');
|
|
|
|
|
|
|
|
return opStr.join(' ');
|
|
|
|
}
|
|
|
|
function info(id) {
|
|
|
|
title = '详情';
|
|
|
|
layer_show(title, '/car-type/edit?id=0');
|
|
|
|
}
|
|
|
|
function unlock(id) {
|
|
|
|
parent.layer.confirm('是否确认删除?', {
|
|
|
|
btn: ['删除','取消'], //按钮
|
|
|
|
shade: false //不显示遮罩
|
|
|
|
}, function(){
|
|
|
|
$.post('/car-type/delete',{id:id},function(data) {
|
|
|
|
parent.layer.msg(data.msg);
|
|
|
|
refreshList();
|
|
|
|
}, 'json');
|
|
|
|
}, function(){
|
|
|
|
//
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function refreshList() {
|
|
|
|
$('#listTable').bootstrapTable('refresh');
|
|
|
|
}
|
|
|
|
|
|
|
|
function search() {
|
|
|
|
$('#listTable').bootstrapTable('destroy');
|
|
|
|
$('#listTable').bootstrapTable({
|
|
|
|
url: "/insurer/finance-mng-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(); ?>
|