dev
曾超新 5 years ago
parent 05fcd6660e
commit 88fd5731b3
  1. 81
      frontend/views/insurer/finance-mng.php

@ -34,23 +34,51 @@ use \common\libs\MyLib;
<table id="listTable">
<thead>
<tr>
<th width="50" data-field="id">ID</th>
<th data-field="id_man">被保险人</th>
<th data-field="link_man_phone">联系电话</th>
<th data-field="company_name">保险公司</th>
<th data-field="car_no">车牌号</th>
<th data-field="print_date">正本日期</th>
<th data-field="insurer1_no">商业保单号</th>
<th data-field="insurer2_no">交强保单号</th>
<th data-field="total_all">共计签单</th>
<th data-field="$nams">级别</th>
<th data-field="user_name">销售座席</th>
<th data-field="status_name">状态</th>
<th data-field="caiwu_status">转账状态</th>
<th data-field="pay_type">支付方式</th>
<th data-field="lock_name">当前操作</th>
<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():''?>&nbsp;</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>
@ -68,14 +96,31 @@ use \common\libs\MyLib;
var o = {};
function opFormatter(value, row, index) {
var opStr = [];
opStr.push('<a href="javascript:void(0);" onclick="view(' + row.id + ')">');
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 view(id) {
window.location.href = '/insurer/finance-mng-edit?id=' + id;
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');

Loading…
Cancel
Save