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.
135 lines
5.6 KiB
135 lines
5.6 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="$('#listTable').bootstrapTable('refresh');">
|
|
<i class="fa fa-refresh"></i> 刷新
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
|
|
<input type="hidden" name="type" id="type" value="0">
|
|
<div class="form-group" style="margin-bottom: 8px;">
|
|
<label for="car_man">车主</label>
|
|
<input type="text" name="car_man" id="car_man" class="form-control">
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 8px;">
|
|
<label for="phone">电话</label>
|
|
<input type="text" name="phone" id="phone" class="form-control">
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 8px;">
|
|
<label for="car_no">车牌</label>
|
|
<input type="text" name="car_no" id="car_no" class="form-control">
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 8px;">
|
|
<label>保险公司</label>
|
|
<select name="company2_id" id="company2_id" class="form-control">
|
|
<option value="0">---请选择---</option>
|
|
<?php
|
|
foreach($insurer_company_items as $item) {
|
|
echo '<option value="'.$item->id.'"';
|
|
if($item->id == $order_info->company2_id)
|
|
echo ' selected ';
|
|
echo '>'.$item->name.'</option>';
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary mb-8">搜索</button>
|
|
</form>
|
|
<div class="row mb-8">
|
|
<div class="btn-group" role="group">
|
|
<button class="btn btn-white btn-type" data-type="0" type="button">全部</button>
|
|
<button class="btn btn-white btn-type" data-type="1" type="button">待审核</button>
|
|
<button class="btn btn-white btn-type" data-type="2" type="button">已审核,待付款</button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<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="factory_model">车型</th>
|
|
<th data-field="submit_date">提单日期</th>
|
|
<th data-field="total_all">共计签单</th>
|
|
<th data-field="user_name">销售座席</th>
|
|
<th data-field="status_name">状态</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>
|
|
var o = {};
|
|
function opFormatter(value, row, index) {
|
|
var opStr = [];
|
|
opStr.push('<a href="javascript:void(0);" onclick="view(' + 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/office-mng-edit?id=' + id;
|
|
}
|
|
function refreshList() {
|
|
$('#listTable').bootstrapTable('refresh');
|
|
}
|
|
|
|
function search() {
|
|
o = {};
|
|
var params = $("#searchFrm").serializeArray();
|
|
$.each(params, function(index) {
|
|
o[this['name']] = this['value'];
|
|
});
|
|
$('#listTable').bootstrapTable('destroy');
|
|
$('#listTable').bootstrapTable({
|
|
url: "/insurer/office-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();
|
|
|
|
$('.btn-type').click(function() {
|
|
var type = $(this).data('type');
|
|
$('#type').val(type);
|
|
search();
|
|
});
|
|
});
|
|
</script>
|
|
<?php $this->endBlock(); ?>
|
|
|