parent
49ed13a465
commit
c36cbec507
@ -1,136 +1,132 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
<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="refreshList();"> |
||||||
|
<i class="fa fa-refresh"></i> 刷新 |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<form role="form" id="search" class="form-inline" onsubmit="return search();"> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="username">车主</label> |
||||||
|
<input type="text" id="car_man" name="car_man" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="id_man">被保险人</label> |
||||||
|
<input type="text" id="id_man" name="id_man" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="phone">电话</label> |
||||||
|
<input type="text" id="phone" name="phone" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="car_no">车牌</label> |
||||||
|
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="datepicker1">初登日期</label> |
||||||
|
<div class="input-group" id="datepicker1"> |
||||||
|
<input type="text" class="form-control" id="date_begin" name="date_begin" autocomplete="off" /> |
||||||
|
<div class="input-group-addon">-</div> |
||||||
|
<input type="text" class="form-control" id="date_end" name="date_end" autocomplete="off" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="datepicker3">正本日期</label> |
||||||
|
<div class="input-group" id="datepicker3"> |
||||||
|
<input type="text" class="form-control" id="date2_begin" name="date2_begin" autocomplete="off" /> |
||||||
|
<div class="input-group-addon">-</div> |
||||||
|
<input type="text" class="form-control" id="date2_end" name="date2_end" autocomplete="off" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="datepicker2">起保日期</label> |
||||||
|
<div class="input-group" id="datepicker2"> |
||||||
|
<input type="text" class="form-control" id="date3_begin" name="date3_begin" autocomplete="off" /> |
||||||
|
<div class="input-group-addon">-</div> |
||||||
|
<input type="text" class="form-control" id="date3_end" name="date3_end" autocomplete="off" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<button type="submit" class="btn btn-primary">搜索</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_man">车主</th> |
||||||
|
<th data-field="id_man">被保险人</th> |
||||||
|
<th data-field="submit_date">提单日期</th> |
||||||
|
<th data-field="car_no">车牌号</th> |
||||||
|
<th data-field="factory_model">厂牌型号</th> |
||||||
|
<th data-field="total_all">共计签单</th> |
||||||
|
<th data-field="total_real">应收</th> |
||||||
|
<th data-field="status">状态</th> |
||||||
|
<th data-field="username">业务员</th> |
||||||
|
<th data-field="company_name">保险公司</th> |
||||||
|
<th data-field="file_status">上传状态</th> |
||||||
|
<th data-field="lock_name">当前操作</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="info(' + row.id + ')">'); |
||||||
|
opStr.push('<i class="fa fa-plus" title="详情"> 详情</i>'); |
||||||
|
opStr.push('</a>'); |
||||||
|
|
||||||
|
return opStr.join(' '); |
||||||
|
} |
||||||
|
|
||||||
function info(id) { |
function info(id) { |
||||||
window.open('/insurer/info?id=' + id); |
window.open('/insurer/info?id=' + id); |
||||||
} |
} |
||||||
function infos(id,oid) { |
|
||||||
window.open('/non-auto-insurance/bd-info-search?id=' + id +'&oid=' + oid); |
function refreshList() { |
||||||
// window.location.href = ; |
$('#listTable').bootstrapTable('refresh'); |
||||||
} |
} |
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
function search() { |
||||||
$('#page').val(0); |
$('#listTable').bootstrapTable('destroy'); |
||||||
var params = $('#searchForm').serialize(); |
$('#listTable').bootstrapTable({ |
||||||
window.location.href = "/insurer/search?" + params; |
url: "/insurer/search-json", |
||||||
}); |
pagination: true, |
||||||
|
sidePagination: 'server', |
||||||
|
queryParams: function(params) { |
||||||
|
$('#search').find(':input:not(input[type=button],input[type=submit],button)').each(function(index,item){ |
||||||
|
params[$(item).attr('name')] = $(item).val(); |
||||||
}); |
}); |
||||||
</script> |
return params; |
||||||
<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="car_man" type="text" value="<?=$car_man?>">
|
|
||||||
被保险人:<input name="id_man" type="text" value="<?=$id_man?>">
|
|
||||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
|
||||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
|
||||||
提单日期:从<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="date3_begin" type="text" value="<?=$date3_begin?>" style="width:100px;" onclick="WdatePicker()">到<input name="date3_end" type="text" value="<?=$date3_end?>" style="width:100px;" onclick="WdatePicker()">截止
|
|
||||||
<!-- |
|
||||||
级别:<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="company_id"> |
|
||||||
<option value="">全部</option> |
|
||||||
<?php |
|
||||||
foreach($company_items as $item) { |
|
||||||
echo '<option value="'.$item->id.'"'; |
|
||||||
if($item->id == $company_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$item->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
}); |
||||||
</select> |
return false; |
||||||
险种类型:<select name="insurance_status"> |
|
||||||
<option value="">全部</option> |
|
||||||
<option value="1" <?php if($insurance_status==1) echo ' selected ';?>>车险</option>
|
|
||||||
<option value="2" <?php if($insurance_status==2) echo ' selected ';?>>非车险</option>
|
|
||||||
<option value="3" <?php if($insurance_status==3) echo ' selected ';?>>车险和非车险</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</table> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td width="30" align="center" class="bg_tr" nowrap>序号</td> |
|
||||||
<td width="50" 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="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="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="60" align="center" class="bg_tr" nowrap>上传状态</td> |
|
||||||
<td width="60" 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><?=MyLib::substr_cut($item->car_man,15)?></td>
|
|
||||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,15)?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->submit_date?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->send_date?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->car?MyLib::substr_cut($item->car->factory_model,15):''?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->total_all?></td>
|
|
||||||
<td class="td_bg" ><?=$item->total_real?> </td>
|
|
||||||
<td class="td_bg" ><?=$item->status->name?></td>
|
|
||||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?></td>
|
|
||||||
<td class="td_bg" > |
|
||||||
<?php if($item->company):?> |
|
||||||
<?=$item->company->name?$item->company->name:''?> |
|
||||||
<?php endif;?> |
|
||||||
</td> |
|
||||||
<td class="td_bg" > |
|
||||||
<?php if($item->shangye_src || $item->jiaoqiang_src):?> |
|
||||||
保单已上传 |
|
||||||
<?php else:?> |
|
||||||
未上传 |
|
||||||
<?php endif;?> |
|
||||||
</td> |
|
||||||
<td class="td_bg" ><?=$item->lock?$item->lock->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap> |
|
||||||
<?php if($item->insurance_status==1 || $item->insurance_status==3):?> |
|
||||||
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
|
|
||||||
<?php elseif($item->insurance_status==2):?> |
|
||||||
[<a href="javascript:void(0);" onclick="infos(<?=$item->non_id?>,<?= $item->id ?>)">非车险详情</a>]
|
|
||||||
<?php endif;?> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
} |
||||||
?> |
|
||||||
<tr> |
$(function() { |
||||||
<td class="td_bg" align="right" colspan="7">净保费总和</td> |
search(); |
||||||
<td class="td_bg" align="left" colspan="7"><?=$sum?></td>
|
}); |
||||||
</tr> |
</script> |
||||||
<tr > |
<?php $this->endBlock(); ?> |
||||||
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
|
Loading…
Reference in new issue