parent
1fdd48ee27
commit
9dc612c31f
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,161 +1,107 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id,index) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/info?id=' + id + '&type=<?=$type?>' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params);
|
||||
<?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 data-field="state" data-checkbox="true"></th> |
||||
<th width="50" data-field="car_id">ID</th> |
||||
<th data-field="pdate">预约日期</th> |
||||
<th data-field="ptime">预约时间</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="register_date">初登日期</th> |
||||
<th data-field="insurer1_date">商业起保日期</th> |
||||
<th data-field="insurer2_date">交强起保日期</th> |
||||
<th data-field="remark">预约备注</th> |
||||
<th data-field="user_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.car_id + ')">'); |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(1); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/appointment/all?" + params; |
||||
}); |
||||
$('.invalid-btn').click(function(){ |
||||
if(confirm('是否确认收回?')) { |
||||
var params = $('#listForm').serialize(); |
||||
$.post('/appointment/invalid-a',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#assign-other-btn').click(function () { |
||||
if(confirm('是否确认平移?')) { |
||||
var params = $('#listForm').serialize(); |
||||
var user_id = $('#user_id').val(); |
||||
params = params + '&user_id=' + user_id; |
||||
$.post('/appointment/assign-other',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}) |
||||
$('#all').click(function(){ |
||||
if($(this).prop('checked')==true) { |
||||
$('input:checkbox').each(function() { |
||||
$(this).prop('checked', true); |
||||
}); |
||||
} else { |
||||
$('input:checkbox').each(function () { |
||||
$(this).prop('checked',false); |
||||
}); |
||||
function view(car_id) { |
||||
location.href = '/car/info?id=' + car_id; |
||||
} |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/appointment/all-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_man'] = $('#car_man').val(); |
||||
o['phone'] = $('#phone').val(); |
||||
o['car_no'] = $('#car_no').val(); |
||||
o['id_man'] = $('#id_man').val(); |
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
|
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" 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?>" style="width: 100px;">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>" style="width: 100px;">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width: 100px;">
|
||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
||||
排序:<select name="sort_key"> |
||||
<option value="appointment_t.pdate" <?=$sort_key=='appointment_t.pdate'?'selected':''?>>按预约时间</option>
|
||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>按初登时间</option>
|
||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>按保险时间</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
||||
</select> |
||||
预约类型:<select name="ptype"> |
||||
<option value="0">全部类型</option> |
||||
<?php foreach($list as $k=>$v){ ?> |
||||
<option value='<?= $v->code; ?>' <?php if($ptype == $v->code){ echo 'selected'; } ?> ><?= $v->name; ?></option>
|
||||
<?php } ?> |
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<?php |
||||
if($this->context->my->role_id != 5) { |
||||
?> |
||||
<input type=button class="ACT_btn invalid-btn" name="invalid-btn" value=" 回收数据 "/> |
||||
<input type="button" class="act_btn" id="assign-other-btn" name="assign-other-btn" value="批量平移到"> |
||||
业务员:<select name="user_id" id="user_id"> |
||||
<option value="0">请选择</option> |
||||
<?php |
||||
foreach($user_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $user_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->getShowName().'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
<?php |
||||
} |
||||
?> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="24" align="center" class="bg_tr"><?php |
||||
if($this->context->my->role_id==5) |
||||
echo '序号'; |
||||
else |
||||
echo '<input type="checkbox" id="all">'; |
||||
?></td> |
||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
||||
<td width="120" align="center" class="bg_tr">车主</td> |
||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
||||
<td width="30" align="center" class="bg_tr">业务员</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<form id="listForm"> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1) * 20 + $index; |
||||
$car_info = $item->car; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><?php |
||||
if($this->context->my->role_id == 5) |
||||
echo $start_index + 1; |
||||
else |
||||
echo '<input type="checkbox" name="ids[]" value="'.$item->car_id.'">'; |
||||
?></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->pdate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->ptime?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_man?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->register_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer1_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer2_date?></td>
|
||||
<td class="td_bg" ><?=MyLib::substr_cut($item->remark,40)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</form> |
||||
<tr> |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,94 +1,107 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id,index) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/info?id=' + id + '&type=<?=$type?>' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params);
|
||||
<?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 data-field="state" data-checkbox="true"></th> |
||||
<th width="50" data-field="car_id">ID</th> |
||||
<th data-field="pdate">预约日期</th> |
||||
<th data-field="ptime">预约时间</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="register_date">初登日期</th> |
||||
<th data-field="insurer1_date">商业起保日期</th> |
||||
<th data-field="insurer2_date">交强起保日期</th> |
||||
<th data-field="remark">预约备注</th> |
||||
<th data-field="user_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.car_id + ')">'); |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
|
||||
function view(car_id) { |
||||
location.href = '/car/info?id=' + car_id; |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(1); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/appointment/today?" + params; |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/appointment/today-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_man'] = $('#car_man').val(); |
||||
o['phone'] = $('#phone').val(); |
||||
o['car_no'] = $('#car_no').val(); |
||||
o['id_man'] = $('#id_man').val(); |
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
|
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" 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="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
预约类型:<select name="ptype"> |
||||
<option value="0">全部类型</option> |
||||
<?php foreach($list as $k=>$v){ ?> |
||||
<option value='<?= $v->code; ?>' <?php if($ptype == $v->code){ echo 'selected'; } ?> ><?= $v->name; ?></option>
|
||||
<?php } ?> |
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
排序:<select name="sort_key"> |
||||
<option value="appointment_t.pdate" <?=$sort_key=='appointment_t.pdate'?'selected':''?>>按预约时间</option>
|
||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>按初登时间</option>
|
||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>按商业保险时间</option>
|
||||
<option value="car_t.insurer2_date" <?=$sort_key=='car_t.insurer2_date'?'selected':''?>>按商业保险时间</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
||||
</select> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="24" align="center" class="bg_tr">序号</td> |
||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
||||
<td width="120" align="center" class="bg_tr">车主</td> |
||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
||||
<td width="30" align="center" class="bg_tr">业务员</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1) * 20 + $index; |
||||
$car_info = $item->car; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->pdate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->ptime?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_man?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->register_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer1_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer2_date?></td>
|
||||
<td class="td_bg" ><?=MyLib::substr_cut($item->remark,40)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -0,0 +1,457 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
use common\models\PriceT; |
||||
|
||||
?> |
||||
<?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"> |
||||
<form class="form-horizontal" id="orderFrm"> |
||||
<input type="hidden" name="car_id" value="<?=$order_info->car_id?>">
|
||||
<input type="hidden" name="id" value="<?=$order_info->id?>">
|
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>险种</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<?php |
||||
$len = count($insurer_type_items); |
||||
for($i = 0; $i < $len; $i++) { |
||||
$item = $insurer_type_items[$i]; |
||||
$order_id = $order_info->id; |
||||
if(!$order_id) |
||||
$order_id = 0; |
||||
$tmp_row = PriceT::find() |
||||
->where('order_id='.$order_id.' and type_id='.$item->id) |
||||
->one(); |
||||
?> |
||||
<th class="bg-warning"> |
||||
<?=$item->name?>(<?=$item->code?>)
|
||||
</th> |
||||
<td> |
||||
<?php |
||||
if($item->content != '') { |
||||
$tmp_items = explode(',',$item->content); |
||||
echo '<select name="types['.$item->id.']" class="form-control">'; |
||||
$tmp_items = explode(',',$item->content); |
||||
foreach($tmp_items as $tmp_item) { |
||||
echo '<option'; |
||||
if(!empty($tmp_row) && $tmp_row->val == $tmp_item) |
||||
echo ' selected '; |
||||
echo '>'.$tmp_item.'</option>'; |
||||
} |
||||
echo '</select>'; |
||||
} else { |
||||
echo '<input name="types['.$item->id.']" class="form-control" style="width:100px;" type="text"'; |
||||
if(!empty($tmp_row)) |
||||
echo ' value="'.$tmp_row->val.'" '; |
||||
echo '>'; |
||||
} |
||||
?> |
||||
</td> |
||||
<td> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" name="nopays[<?=$item->id?>]" id="nopays_<?=$item->id?>" value="1" <?=(!empty($tmp_row) && $tmp_row->is_nopay == 1)?'checked':''?>>
|
||||
<label for="nopays_<?=$item->id?>"> 不计免赔 </label>
|
||||
</div> |
||||
</td> |
||||
<?php |
||||
if(($i+1)%3==0) { |
||||
echo '</tr>'; |
||||
echo '<tr>'; |
||||
} |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>保费信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">商业总净保费</th> |
||||
<td><input name="total1_clear" id="total1_clear" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total1_clear?>"></td>
|
||||
<th class="bg-warning">商业含税总保费</th> |
||||
<td><input name="total1" id="total1" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total1?>"></td>
|
||||
<th class="bg-warning">车船税</th> |
||||
<td><input name="total3" id="total3" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total3?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">交强总净保费</th> |
||||
<td><input name="total2_clear" id="total2_clear" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total2_clear?>"></td>
|
||||
<th class="bg-warning">交强含税总保费</th> |
||||
<td><input name="total2" id="total2" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total2?>"></td>
|
||||
<th class="bg-warning"> </th> |
||||
<td> </td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">折扣后商业净保费</th> |
||||
<td><input name="total1_real" id="total1_real" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total1_real?>"></td>
|
||||
<th class="bg-warning">减免金额</th> |
||||
<td><input name="total1_dis" id="total1_dis" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total1_dis?>"></td>
|
||||
<th class="bg-warning">商业折扣率</th> |
||||
<td><input name="total1_percent" id="total1_percent" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total1_percent?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">共计签单</th> |
||||
<td><input name="total_all" id="total_all" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total_all?>"></td>
|
||||
<th class="bg-warning">应收</th> |
||||
<td><input name="total_real" id="total_real" class="form-control" style="width:120px;" type="text" value="<?=$order_info->total_real?>"></td>
|
||||
<th class="bg-warning"> </th> |
||||
<td> </td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">备注</th> |
||||
<td colspan="5"><input name="price_remark" id="price_remark" class="form-control" style="width:100%;" type="text" value="<?=$order_info->price_remark?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">短信</th> |
||||
<td colspan="5"> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<textarea name="sms-msg" id="sms-msg" class="form-control"></textarea> |
||||
</div> |
||||
</div> |
||||
<div class="row" style="margin-top: 8px;"> |
||||
<div class="col-sm-12 form-inline"> |
||||
<label>手机号码</label> |
||||
<input type="text" name="sms-tel" id="sms-tel" class="form-control"> |
||||
<button type="button" class="btn btn-primary sms-make-btn">生成短信</button> |
||||
<button type="button" class="btn btn-danger sms-send-btn">发送短信</button> |
||||
</div> |
||||
</div> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>订单信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">车牌号</th> |
||||
<td><input name="car_no" class="form-control" style="width:100%;" type="text" value="<?=$order_info->car_no!='' ? $order_info->car_no:$car_info->car_no?>"></td>
|
||||
<th class="bg-warning" nowrap>初登日期</th> |
||||
<td><input name="register_date" class="form-control" style="width:100%;" type="text" value="<?=$car_info->register_date?>"></td>
|
||||
<th class="bg-warning" nowrap>座位数</th> |
||||
<td><input name="seats" class="form-control" style="width:100%;" type="text" value="<?=$order_info->seats ? $order_info->seats:$car_info->seats?>"></td>
|
||||
<th class="bg-warning" nowrap>电子邮件</th> |
||||
<td><input name="email" class="form-control" style="width:100%;" type="text" value="<?=$order_info->email?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车主</th> |
||||
<td><input name="car_man" class="form-control" style="width:100%;" type="text" value="<?=$order_info->car_man!='' ? $order_info->car_man:$car_info->car_man?>"></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td> |
||||
<select name="car_man_type" class="form-control"> |
||||
<option value="身份证">身份证</option> |
||||
<option value="营业执照">营业执照</option> |
||||
</select> |
||||
</td> |
||||
<th class="bg-warning" nowrap>证件号码</th> |
||||
<td><input name="car_man_number" class="form-control" style="width:100%;" type="text" value="<?=$order_info->car_man_number!='' ? $order_info->car_man_number:$car_info->car_man_number?>"></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><input name="car_man_phone" class="form-control" style="width:100%;" type="text" value="<?=$order_info->car_man_phone!='' ? $order_info->car_man_phone:$car_info->phone?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">被保险人</th> |
||||
<td><input name="id_man" class="form-control" style="width:100%;" type="text" value="<?=$order_info->id_man!='' ? $order_info->id_man:$car_info->id_man?>"></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td> |
||||
<select name="id_man_type" class="form-control"> |
||||
<option value="身份证">身份证</option> |
||||
<option value="营业执照">营业执照</option> |
||||
</select> |
||||
</td> |
||||
<th class="bg-warning">证件号码</th> |
||||
<td><input name="id_man_number" class="form-control" style="width:100%;" type="text" value="<?=$order_info->id_man_number!='' ? $order_info->id_man_number:$car_info->id_number?>"></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><input name="id_man_phone" class="form-control" style="width:100%;" type="text" value="<?=$order_info->id_man_phone!='' ? $order_info->id_man_phone:$car_info->id_phone?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">投保人</th> |
||||
<td><input name="link_man" class="form-control" style="width:100%;" type="text" value="<?=$order_info->link_man!='' ? $order_info->link_man:''?>"></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td> |
||||
<select name="link_man_type" class="form-control"> |
||||
<option value="身份证">身份证</option> |
||||
<option value="营业执照">营业执照</option> |
||||
</select> |
||||
</td> |
||||
<th class="bg-warning">证件号码</th> |
||||
<td><input name="link_man_number" class="form-control" style="width:100%;" type="text" value="<?=$order_info->link_man_number!='' ? $order_info->link_man_number:''?>"></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><input name="link_man_phone" class="form-control" style="width:100%;" type="text" value="<?=$order_info->link_man_phone!='' ? $order_info->link_man_phone:''?>"></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>商业起保日期</th> |
||||
<td> |
||||
<div class="input-group date"> |
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||
<input type="text" name="insurer1_begin_date" class="form-control" value="<?=$order_info->insurer1_begin_date?>">
|
||||
</div> |
||||
</td> |
||||
<th class="bg-warning" nowrap>交强起保日期</th> |
||||
<td> |
||||
<div class="input-group date"> |
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||
<input type="text" name="insurer2_begin_date" class="form-control" value="<?=$order_info->insurer2_begin_date?>">
|
||||
</div> |
||||
</td> |
||||
<th class="bg-warning">保险公司</th> |
||||
<td> |
||||
<select name="company2_id" id="company2_id" class="form-control"> |
||||
<option value="0">---请选择---</option> |
||||
<?php |
||||
foreach($insurer_company2_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $order_info->company2_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
<th class="bg-warning">付款方式</th> |
||||
<td class="form-inline" nowrap> |
||||
<select name="shoufei_id" id="shoufei_id" class="form-control"> |
||||
<option value="">收费方式</option> |
||||
<option value="1">上门收费</option> |
||||
<option value="2">在线支付</option> |
||||
<option value="3">客户自上门</option> |
||||
</select> |
||||
<select name="pay_type_id" id="pay_type_id" class="form-control"> |
||||
<option value="">请选择</option> |
||||
<?php |
||||
foreach($pay_type_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $order_info->pay_type_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">领款人</th> |
||||
<td><input name="money_man" class="form-control" style="width:100%;" type="text" value="<?=$order_info->money_man?>"></td>
|
||||
<th class="bg-warning">开户行</th> |
||||
<td><input name="money_bank" class="form-control" style="width:100%;" type="text" value="<?=$order_info->money_bank?>"></td>
|
||||
<th class="bg-warning">银行账号</th> |
||||
<td><input name="money_no" class="form-control" style="width:100%;" type="text" value="<?=$order_info->money_no?>"></td>
|
||||
<th class="bg-warning" nowrap>成功理由</th> |
||||
<td> |
||||
<select name="success_id" id="success_id" class="form-control"> |
||||
<option value="0">---请选择---</option> |
||||
<?php |
||||
foreach($success_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($order_info->success_id == $item->id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>送单日期</th> |
||||
<td> |
||||
<div class="input-group date"> |
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||
<input type="text" name="send_date" class="form-control" value="<?=$order_info->send_date?>">
|
||||
</div> |
||||
</td> |
||||
<th class="bg-warning">送单地址</th> |
||||
<td colspan="5" class="form-inline"> |
||||
<select name="send_city_id" class="form-control"> |
||||
<option value="0">选择城市</option> |
||||
<?php |
||||
foreach($city_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($order_info->send_city_id == $item->id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
<select name="send_district_id" class="form-control"> |
||||
<option value="0">选择区县</option> |
||||
<?php |
||||
foreach($district_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($order_info->send_district_id == $item->id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
<input type="text" name="send_address" class="form-control" style="width:70%;" value="<?=$order_info->send_address?>">
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">备注</th> |
||||
<td colspan="7"><input name="order_remark" class="form-control" style="width:100%;" type="text" value="<?=$order_info->remark?>"></td>
|
||||
</tr> |
||||
</table> |
||||
<div> |
||||
<div class="row"> |
||||
<div class="col-md-5 col-md-offset-5"> |
||||
<button type="button" class="btn btn-primary btn-save" type="button"> |
||||
<strong>保 存</strong> |
||||
</button> |
||||
<button type="button" class="btn btn-primary btn-submit" type="button"> |
||||
<strong>提 交</strong> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script> |
||||
var o = {}; |
||||
//判断是否填写了选项 |
||||
function isNull(data){ |
||||
|
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
return false; |
||||
} |
||||
} |
||||
//报价计算 |
||||
function calc() { |
||||
var total1_clear = Number($('#total1_clear').val()); |
||||
var total1 = Number($('#total1').val()); |
||||
var total2_clear = Number($('#total2_clear').val()); |
||||
var total2 = Number($('#total2').val()); |
||||
var total3 = Number($('#total3').val()); |
||||
var total1_real = Number($('#total1_real').val()); |
||||
var total1_dis = Number($('#total1_dis').val()); |
||||
var total1_percent = Number($('#total1_percent').val()); |
||||
var total_all = Number($('#total_all').val()); |
||||
var total_real = Number($('#total_real').val()); |
||||
total1 = 1.06 * total1_clear; |
||||
total2 = 1.06 * total2_clear; |
||||
total_all = total1 + total2 + total3; |
||||
total1_dis = total1_clear - total1_real; |
||||
total_real = total_all - total1_dis; |
||||
total1_percent = parseFloat(total1_real/total1_clear); |
||||
$('#total1').val(total1.toFixed(2)); |
||||
$('#total2').val(total2.toFixed(2)); |
||||
$('#total1_dis').val(total1_dis.toFixed(2)); |
||||
$('#total1_percent').val(total1_percent.toFixed(2)); |
||||
$('#total_all').val(total_all.toFixed(2)); |
||||
$('#total_real').val(total_real.toFixed(2)); |
||||
} |
||||
//保存订单 |
||||
function saveOrder(status_id) { |
||||
var params = $('#orderFrm').serialize(); |
||||
params = params + '&status_id=' + status_id; |
||||
$.post('/car/order-save',params,function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success && status_id>1) { |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
} |
||||
|
||||
$(function() { |
||||
$('#total1_clear').blur(function(){ |
||||
calc(); |
||||
refreshCompanyGift(); |
||||
}); |
||||
$('#total2_clear').blur(function(){ |
||||
calc(); |
||||
}); |
||||
$('#total3').blur(function(){ |
||||
calc(); |
||||
}); |
||||
$('#total1_dis').blur(function(){ |
||||
calc(); |
||||
}); |
||||
$('#total1_real').blur(function(){ |
||||
calc(); |
||||
}); |
||||
$('.date').datepicker({ |
||||
todayBtn: "linked", |
||||
keyboardNavigation: false, |
||||
forceParse: false, |
||||
calendarWeeks: true, |
||||
autoclose: true |
||||
}); |
||||
//生成短信内容 |
||||
$('.sms-make-btn').click(function(){ |
||||
var params = $('#orderFrm').serialize(); |
||||
var baoxiangs=$('#company2_id').val(); |
||||
var smstel=$('#sms-tel').val(); |
||||
|
||||
if(isNull(smstel)){ |
||||
parent.layer.msg('请填写电话号码'); |
||||
return ; |
||||
} |
||||
if(baoxiangs==0){ |
||||
parent.layer.msg('请选择保险公司'); |
||||
return ; |
||||
} |
||||
|
||||
$.post('/car/sms-make',params,function(obj){ |
||||
if(obj.success) { |
||||
$('#sms-msg').val(obj.msg); |
||||
} else { |
||||
parent.layer.msg(obj.msg); |
||||
} |
||||
},'json'); |
||||
}); |
||||
//发送短信内容 |
||||
$('.sms-send-btn').click(function(){ |
||||
var tel = $('#sms-tel').val(); |
||||
var msg = $('#sms-msg').val(); |
||||
var baoxiangs=$('#company2_id').val(); |
||||
var smstel=$('#sms-tel').val(); |
||||
var smsmsg=$('#sms-msg').val(); |
||||
|
||||
if(smsmsg==''){ |
||||
parent.layer.msg('短信内容不能为空,请生成短信'); |
||||
return ; |
||||
} |
||||
if(isNull(smstel)){ |
||||
parent.layer.msg('请填写电话号码'); |
||||
return ; |
||||
} |
||||
if(baoxiangs==0){ |
||||
parent.layer.msg('请选择保险公司'); |
||||
return ; |
||||
} |
||||
|
||||
// return; |
||||
$.post('/car/sms-send',{tel:tel,msg:msg,company2_id:baoxiangs},function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
},'json'); |
||||
}); |
||||
$('.btn-save').click(function(){ |
||||
saveOrder(1); |
||||
}); |
||||
$('.btn-submit').click(function(){ |
||||
saveOrder(2); |
||||
}); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
@ -1,136 +1,104 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/insurer/finance-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
function unlock(id) { |
||||
$.post('/insurer/unlocked',{id:id},function(obj){ |
||||
if(obj.success) { |
||||
alert(obj.msg); |
||||
window.location.reload(); |
||||
} else { |
||||
alert(obj.msg); |
||||
} |
||||
<?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="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 data-formatter="opFormatter">操作</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
},'json'); |
||||
|
||||
<?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-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/insurer/finance-mng?" + params; |
||||
|
||||
function search() { |
||||
$('#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(); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!--新增搜索项--> |
||||
<!--完成程度--> |
||||
<select name="status" class="status"> |
||||
<option value=0>全部</option> |
||||
<option value=1 <?= $status==1?'selected':'' ?>>未完成</option>
|
||||
<option value=2 <?= $status==2?'selected':'' ?>>完成</option>
|
||||
</select> |
||||
被保险人:<input name="car_man" type="text" value="<?=$car_man?>">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
级别:<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> |
||||
<!--日期--> |
||||
正本日期: |
||||
<input type="Text" class="Wdate" name="begin_date" onclick="WdatePicker()" value="<?= $begin_date ?>" />
|
||||
-- |
||||
<input type="Text" class="Wdate" name="end_date" onclick="WdatePicker()" value="<?= $end_date ?>" />
|
||||
转账状态: |
||||
<select name="caiwu_status_id" class="caiwu_status_id"> |
||||
<option value=0>全部</option> |
||||
<?php |
||||
foreach($caiwu_status as $index => $item){ |
||||
echo '<option value="'.$item->id.'"'; |
||||
echo $caiwu_status_id == $item->id ? 'selected' : ''; |
||||
echo '>'.$item->name.'</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="24" align="center" class="bg_tr">序号</td> |
||||
<td width="50" align="center" class="bg_tr">被保险人</td> |
||||
<td width="60" align="center" class="bg_tr">联系电话</td> |
||||
<td width="60" align="center" class="bg_tr">保险公司</td> |
||||
<td width="60" align="center" class="bg_tr">车牌号</td> |
||||
<td width="60" align="center" class="bg_tr">正本日期</td> |
||||
<td width="60" align="center" class="bg_tr">商业保单号</td> |
||||
<td width="80" align="center" class="bg_tr">交强保单号</td> |
||||
<td width="60" align="center" class="bg_tr">共计签单</td> |
||||
<td width="60" align="center" class="bg_tr">级别</td> |
||||
<td width="60" align="center" class="bg_tr">销售座席</td> |
||||
<td width="60" align="center" class="bg_tr">状态</td> |
||||
<td width="60" align="center" class="bg_tr">转账状态</td> |
||||
<td width="60" align="center" class="bg_tr">支付方式</td> |
||||
<td width="60" align="center" class="bg_tr">当前操作</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page - 1) * 20 + $index; |
||||
$caiwu = $item->caiwu; |
||||
$users=$item->user->group; |
||||
$username=$item->user; |
||||
$nams=$users['name']; |
||||
?> |
||||
<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 class="td_bg" nowrap><?=$item->insurer1_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->insurer2_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->total_all?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$nams?></td>
|
||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
||||
<td class="td_bg" ><?=$caiwu->status->name?></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->lock?$caiwu->lock->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
<?php 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>]
|
||||
<?php } ?> |
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr > |
||||
<td height="25" colspan="16" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,481 +1,237 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
use \common\models\PriceT; |
||||
?> |
||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td height="22" colspan="2" class="td_bg"> |
||||
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable"> |
||||
<tr> |
||||
<td height="120" valign="top" class="td_bg"> |
||||
<!--保单信息--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(1) name="navcell">▼保单信息</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb1 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<form id="orderFrm"> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
|
||||
<tr> |
||||
<td width="100" height="25" class="bg_tr">车牌号</td> |
||||
<td height="25" class="td_bg"><?=$car_info->car_no?></td>
|
||||
<td width="100" height="25" class="bg_tr">厂牌型号</td> |
||||
<td height="25" class="td_bg"><?=$car_info->factory_model?></td>
|
||||
<td width="60" height="25" class="bg_tr">品牌</td> |
||||
<td width="120" height="25" class="td_bg"><?=$car_info->brand?$car_info->brand->name:''?></td>
|
||||
<td width="60" height="25" class="bg_tr">车系</td> |
||||
<td height="25" class="td_bg"><?=$car_info->series?$car_info->series->name:''?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="bg_tr">发动机号</td> |
||||
<td height="25" class="td_bg"><?=$car_info->engine_no?></td>
|
||||
<td width="100" height="25" class="bg_tr">车架号</td> |
||||
<td height="25" class="td_bg"><?=$car_info->car_frame_no?></td>
|
||||
<td width="60" height="25" class="bg_tr">初登日期</td> |
||||
<td height="25" class="td_bg"><?=$car_info->register_date?></td>
|
||||
<td width="60" height="25" class="bg_tr">排量</td> |
||||
<td height="25" class="td_bg"><?=$car_info->displacement?$car_info->displacement->name:''?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="bg_tr">车辆类型</td> |
||||
<td height="25" class="td_bg"><?=$car_info->carType?$car_info->carType->name:''?></td>
|
||||
<td width="100" height="25" class="bg_tr">运营性质</td> |
||||
<td height="25" class="td_bg"><?=$car_info->carUse?$car_info->carUse->name:''?></td>
|
||||
<td width="60" height="25" class="bg_tr">座位数</td> |
||||
<td height="25" class="td_bg"><?=$car_info->seats?></td>
|
||||
<td width="60" height="25" class="bg_tr">年份</td> |
||||
<td height="25" class="td_bg"><?=$car_info->car_year?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="bg_tr">车主</td> |
||||
<td height="25" class="td_bg"><?=$car_info->car_man?></td>
|
||||
<td width="100" height="25" class="bg_tr">联系电话</td> |
||||
<td height="25" class="td_bg"><?=$car_info->phone?></td>
|
||||
<td width="60" height="25" class="bg_tr">证件号码</td> |
||||
<td height="25" class="td_bg"><?=$car_info->car_man_number?></td>
|
||||
<td width="60" height="25" class="bg_tr">微信号</td> |
||||
<td height="25" class="td_bg"><?=$car_info->weixin?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="60" height="25" class="bg_tr">备注</td> |
||||
<td colspan="7" height="25" class="td_bg"><?=$car_info->remark?></td>
|
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
||||
<tr> |
||||
<td class="bg_tr">被保险人</td> |
||||
<td class="td_bg"><?=$order_info->id_man?></td>
|
||||
<td class="bg_tr">证件号码</td> |
||||
<td class="td_bg"><?=$order_info->id_number?></td>
|
||||
<td width="60" class="bg_tr">联系人</td> |
||||
<td class="td_bg"><?=$order_info->link_man?></td>
|
||||
<td width="60" class="bg_tr">联系电话</td> |
||||
<td class="td_bg"><?=$order_info->link_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">送单日期</td> |
||||
<td class="td_bg"><?=$order_info->send_date?></td>
|
||||
<td class="bg_tr">保险公司</td> |
||||
<td class="td_bg"><?=$order_info->company?$order_info->company->name:''?></td>
|
||||
<td class="bg_tr">付款方式</td> |
||||
<td class="td_bg"><?=$order_info->shoufei_id?MyLib::zhifufs($order_info->shoufei_id).'-':''?><?=$order_info->payType?$order_info->payType->name:''?></td>
|
||||
<td class="bg_tr">电子邮件</td> |
||||
<td class="td_bg"><?=$order_info->email?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">商业起保日期</td> |
||||
<td class="td_bg"><?=$order_info->insurer1_begin_date?></td>
|
||||
<td class="bg_tr">交强起保日期</td> |
||||
<td class="td_bg"><?=$order_info->insurer2_begin_date?></td>
|
||||
<td class="bg_tr">缴费单号</td> |
||||
<td colspan="3" class="td_bg"><?=$order_info->pay_no?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">商业保单号</td> |
||||
<td class="td_bg"><?=$order_info->insurer1_no?></td>
|
||||
<td class="bg_tr">交强保单号</td> |
||||
<td class="td_bg"><?=$order_info->insurer2_no?></td>
|
||||
<td rowspan="3" class="bg_tr" valign="center">备注</td> |
||||
<td colspan="3" rowspan="3" valign="top" class="td_bg"><?=$order_info->remark?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">送单地址</td> |
||||
<td colspan="3" class="td_bg"> |
||||
<?=$order_info->direction1?$order_info->direction1->name:''?> |
||||
<?=$order_info->range1?$order_info->range1->name:''?> |
||||
<?=$order_info->city1?$order_info->city1->name:''?> |
||||
<?=$order_info->district1?$order_info->district1->name:''?> |
||||
<?=$order_info->send_address1?> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">正本送单地址</td> |
||||
<td colspan="3" class="td_bg"> |
||||
|
||||
<?php if($order_info->send_address2):?> |
||||
<?=$order_info->direction2?$order_info->direction2->name:''?> |
||||
<?=$order_info->range2?$order_info->range2->name:''?> |
||||
<?=$order_info->city2?$order_info->city2->name:''?> |
||||
<?=$order_info->district2?$order_info->district2->name:''?> |
||||
<?=$order_info->send_address2?> |
||||
|
||||
<?php elseif($order_info->receiver_province):?> |
||||
<?=$order_info->receiver_province?> |
||||
<?=$order_info->receiver_city?> |
||||
<?=$order_info->receiver_county?> |
||||
<?=$order_info->receiver_address?> |
||||
<?php else:?> |
||||
<?php if($order_info->addr_id):?> |
||||
<?=$order_info->addr->regionP->name?> |
||||
<?=$order_info->addr->regionC->name?> |
||||
<?=$order_info->addr->regionD->name?> |
||||
<?php if(is_string($order_info->addr->regionT)):?> |
||||
<?=$order_info->addr->regionT?> |
||||
<?php else:?> |
||||
<?=$order_info->addr->regionT->name?> |
||||
<?php endif;?> |
||||
|
||||
|
||||
|
||||
<?=$order_info->addr->address?> |
||||
<?php endif;?> |
||||
<?php endif;?> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellspacing="0" cellpadding="0"> |
||||
<tr> |
||||
<td width="40%" valign="top"> |
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" class="bg_tr">险种</td> |
||||
<td align="center" class="bg_tr">内容</td> |
||||
<td align="center" class="bg_tr" nowrap>不计免赔</td> |
||||
</tr> |
||||
<?php |
||||
$len = count($insurer_type_items); |
||||
for($i = 0; $i < $len; $i++) { |
||||
$item = $insurer_type_items[$i]; |
||||
$order_id = $order_info->id; |
||||
if(!$order_id) |
||||
$order_id = 0; |
||||
$tmp_row = PriceT::find() |
||||
->where('order_id='.$order_id.' and type_id='.$item->id) |
||||
->one(); |
||||
if($tmp_row->val == '' || $tmp_row->val == '0' || $tmp_row->val == '否' || $tmp_row->val == '无') continue; |
||||
?> |
||||
<tr> |
||||
<td class="bg_tr" nowrap><?=$item->name?>(<?=$item->code?>)</td>
|
||||
<td class="td_bg"><?=$tmp_row->val?></td>
|
||||
<td align="center" class="td_bg"><?php |
||||
if($tmp_row->is_nopay == 1) { |
||||
echo '是'; |
||||
} |
||||
?> |
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
||||
</td> |
||||
<td width="10px;"> </td> |
||||
<td width="60%" valign="top"> |
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td class="bg_tr">商业总净保费</td> |
||||
<td class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
<td class="bg_tr">商业含税总保费</td> |
||||
<td class="td_bg"><?=$order_info->total1?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">交强总净保费</td> |
||||
<td class="td_bg"><?=$order_info->total2_clear?></td>
|
||||
<td class="bg_tr">交强含税总保费</td> |
||||
<td class="td_bg"><?=$order_info->total2?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">车船税</td> |
||||
<td class="td_bg"><?=$order_info->total3?></td>
|
||||
<td class="bg_tr">共计签单</td> |
||||
<td class="td_bg"><?=$order_info->total_all?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">折扣后商业净保费</td> |
||||
<td class="td_bg"><?=$order_info->total1_real?></td>
|
||||
<td class="bg_tr">减免金额</td> |
||||
<td class="td_bg"><?=$order_info->total1_dis?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">商业折扣率</td> |
||||
<td class="td_bg"><?=$order_info->total1_percent?></td>
|
||||
<td class="bg_tr">应收</td> |
||||
<td class="td_bg"><?=$order_info->total_real?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">备注</td> |
||||
<td colspan="3" class="td_bg"><?=$order_info->price_remark?></td>
|
||||
</tr> |
||||
</table> |
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
|
||||
<tr> |
||||
<td width="100" class="bg_tr">领款人</td> |
||||
<td class="td_bg"><?=$order_info->caiwu?$order_info->caiwu->money_man:''?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">银行账号</td> |
||||
<td class="td_bg"><?=$order_info->caiwu?$order_info->caiwu->money_no:''?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">开户行</td> |
||||
<td class="td_bg"><?=$order_info->caiwu?$order_info->caiwu->money_bank:''?></td>
|
||||
</tr> |
||||
|
||||
<tr> |
||||
<td class="bg_tr">转账状态</td> |
||||
<?php if($order_info->caiwu):?> |
||||
<td class="td_bg"> |
||||
|
||||
use common\models\PriceT; |
||||
|
||||
<?php if($order_info->caiwu->caiwu_status_id==0):?> |
||||
无操作 |
||||
<?php else:?> |
||||
<?=$caiwu_status[$order_info->caiwu->caiwu_status_id]?> |
||||
<?php endif;?> |
||||
</td> |
||||
<?php else:?> |
||||
<td class="td_bg"> |
||||
|
||||
</td> |
||||
<?php endif;?> |
||||
|
||||
</tr> |
||||
|
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</form> |
||||
</TD> |
||||
</TR> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="back-btn" type="button" class="ACT_btn js-back-btn" name="Submit3" value=" 返回 "> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
<!--快递信息--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(2) name="navcell">▲快递信息</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb2 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table" style="table-layout: fixed;"> |
||||
<?php if($ems_items):?> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>快递公司</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>快递单号</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>配送员电话</td> |
||||
<td width="50%" align="center" class="bg_tr" nowrap>描述</td> |
||||
<td width="130" align="center" class="bg_tr" nowrap>送单时间</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>操作员</td> |
||||
</tr> |
||||
<?php |
||||
foreach($ems_items as $index => $item) { |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" nowrap><?=$item->ems_company?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->ems_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->ems_phone?></td>
|
||||
<td class="td_bg" nowrap><?=$item->ems_remark?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->updated_at?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<?php elseif($ems_items1):?> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>快递公司</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>快递单号</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>体检卡号</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>收件人姓名</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>收件人电话</td> |
||||
<td width="130" align="center" class="bg_tr" nowrap>出单时间</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>操作员</td> |
||||
</tr> |
||||
<?php |
||||
foreach($ems_items1 as $index => $item) { |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" nowrap> |
||||
<?php if($item->ems_company==1):?> |
||||
德邦 |
||||
<?php else:?> |
||||
|
||||
<?php endif;?> |
||||
</td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->ems_no?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->physical_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->link_name?></td>
|
||||
<td class="td_bg" nowrap><?=$item->link_tel?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->send_date?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
|
||||
<?php endif;?> |
||||
</table> |
||||
</TD> |
||||
</TR> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="back-btn" type="button" class="ACT_btn js-back-btn" name="Submit3" value=" 返回 "> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
<!--礼品信息--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(3) name="navcell">▲礼品信息</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb3 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<div id="my_list_info"> |
||||
<form id="giftEditFrom"> |
||||
<input type="hidden" name="order_id" value="<?php echo $order_info->id; ?>">
|
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="x`table"> |
||||
<tr> |
||||
<?php |
||||
$index = 0; |
||||
foreach($gift_group_items as $item) { |
||||
if($index > 0 && $index%4==0) { |
||||
echo '</tr><tr>'; |
||||
} |
||||
$index++; |
||||
$sel_gift = isset($sel_gifts[$item->id])?$sel_gifts[$item->id]->gift:null; |
||||
echo '<td width="85" class="bg_tr">'.$item->name.'</td>'; |
||||
echo '<td class="td_bg">'; |
||||
echo '<select class="gifts" min="'.$item->min_money.'" max="'.$item->max_money.'" name="gifts[]" is_damage="'.$item->is_damage.'" style="width:132px;"'; |
||||
if($order_info->total1_clear == 0 && $item->min_money > 0) { |
||||
echo ' disabled '; |
||||
}elseif($item->min_money > 0 && $item->max_money == 0 && $order_info->total1_clear > 0 && ($order_info->total1_clear < $item->min_money)){ |
||||
echo ' disabled '; |
||||
}elseif($item->min_money == 0 && $item->max_money > 0 && $order_info->total1_clear > 0 && $order_info->total1_clear >= $item->max_money){ |
||||
echo ' disabled '; |
||||
} |
||||
if($sel_gift != null) |
||||
echo ' disabled '; |
||||
echo '>'; |
||||
echo '<option value="0"></option>'; |
||||
foreach($item->gifts as $gift) { |
||||
echo '<option value="'.$item->id.'_'.$gift->id.'"'; |
||||
if($sel_gift != null && $sel_gift->id == $gift->id) { |
||||
echo ' selected '; |
||||
} |
||||
echo '>'.$gift->name.'</option>'; |
||||
} |
||||
echo '</select>'; |
||||
echo '</td>'; |
||||
} |
||||
while($index%4!=0) { |
||||
echo '<td width="85" class="bg_tr"></td>'; |
||||
echo '<td class="td_bg"></td>'; |
||||
$index++; |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
</form> |
||||
</div> |
||||
</TD> |
||||
</TR> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<!--如果用户ID小于5,说明是有权限的--> |
||||
<?php if($uid <= 2){ ?> |
||||
<input id="save-btn" type="button" class="ACT_btn" name="Submit3" value=" 保存 "> |
||||
<?php } ?> |
||||
<!--如果用户ID小于5,说明是有权限的--> |
||||
<input id="back-btn" type="button" class="ACT_btn js-back-btn" name="Submit3" value=" 返回 "> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
<!--操作记录--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(4) name="navcell">▲操作记录</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb4 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<div id="car_history_list"></div> |
||||
</TD> |
||||
</TR> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="back-btn" type="button" class="ACT_btn js-back-btn" name="Submit3" value=" 返回 "> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
|
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
$(function(){ |
||||
//操作历史 |
||||
gotoPage('/car/ajax-history-index?car_id=<?=$car_info->id?>&page=1&t='+Math.random(),'car_history_list');
|
||||
//返回 |
||||
$('.js-back-btn').click(function(){ |
||||
?> |
||||
<?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"> |
||||
<form class="form-horizontal" id="orderFrm"> |
||||
<input type="hidden" name="car_id" value="<?=$order_info->car_id?>">
|
||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>险种</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<?php |
||||
$len = count($insurer_type_items); |
||||
$index = 0; |
||||
for($i = 0; $i < $len; $i++) { |
||||
$item = $insurer_type_items[$i]; |
||||
$order_id = $order_info->id; |
||||
if(!$order_id) |
||||
$order_id = 0; |
||||
$tmp_row = PriceT::find() |
||||
->where('order_id='.$order_id.' and type_id='.$item->id) |
||||
->one(); |
||||
if($tmp_row->val == '') continue; |
||||
?> |
||||
<th class="bg-warning"> |
||||
<?=$item->name?>(<?=$item->code?>)
|
||||
</th> |
||||
<td><label><?=$tmp_row->val?></label></td>
|
||||
<td><label><?=(!empty($tmp_row) && $tmp_row->is_nopay == 1)?'不计免赔':''?></label></td>
|
||||
<?php |
||||
if(($index+1)%3==0) { |
||||
echo '</tr>'; |
||||
echo '<tr>'; |
||||
} |
||||
$index++; |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>保费信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">商业总净保费</th> |
||||
<td><label><?=$order_info->total1_clear?></label></td>
|
||||
<th class="bg-warning">商业含税总保费</th> |
||||
<td><label><?=$order_info->total1?></label></td>
|
||||
<th class="bg-warning">车船税</th> |
||||
<td><label><?=$order_info->total3?></label></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">交强总净保费</th> |
||||
<td><label><?=$order_info->total2_clear?></label></td>
|
||||
<th class="bg-warning">交强含税总保费</th> |
||||
<td><label><?=$order_info->total2?></label></td>
|
||||
<th class="bg-warning"> </th> |
||||
<td> </td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">折扣后商业净保费</th> |
||||
<td><label><?=$order_info->total1_real?></label></td>
|
||||
<th class="bg-warning">减免金额</th> |
||||
<td><label><?=$order_info->total1_dis?></label></td>
|
||||
<th class="bg-warning">商业折扣率</th> |
||||
<td><label><?=$order_info->total1_percent?></label></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">共计签单</th> |
||||
<td><label><?=$order_info->total_all?></label></td>
|
||||
<th class="bg-warning">应收</th> |
||||
<td><label><?=$order_info->total_real?></label></td>
|
||||
<th class="bg-warning"> </th> |
||||
<td> </td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">备注</th> |
||||
<td colspan="5"><label><?=$order_info->price_remark?></label></td>
|
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>订单信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">车牌号</th> |
||||
<td><label><?=$order_info->car_no?></label></td>
|
||||
<th class="bg-warning" nowrap>初登日期</th> |
||||
<td><label><?=$car_info->register_date?></label></td>
|
||||
<th class="bg-warning" nowrap>座位数</th> |
||||
<td><label><?=$order_info->seats?></label></td>
|
||||
<th class="bg-warning" nowrap>电子邮件</th> |
||||
<td><label><?=$order_info->email?></label></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车型</th> |
||||
<td><label><?=$car_info->factory_model?></label></td>
|
||||
<th class="bg-warning" nowrap>发动机号</th> |
||||
<td><label><?=$order_info->engine_no?></label></td>
|
||||
<th class="bg-warning" nowrap>车架号</th> |
||||
<td><label><?=$order_info->car_frame_no?></label></td>
|
||||
<th class="bg-warning" nowrap> </th> |
||||
<td> </td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车主</th> |
||||
<td><label><?=$order_info->car_man?></label></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><label><?=$order_info->car_man_type?></label>
|
||||
</td> |
||||
<th class="bg-warning">证件号码</th> |
||||
<td><label><?=$order_info->car_man_number?></label></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><label><?=$order_info->car_man_phone?></label></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">被投保人</th> |
||||
<td><label><?=$order_info->id_man?></label></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><label><?=$order_info->id_man_type?></label>
|
||||
</td> |
||||
<th class="bg-warning">证件号码</th> |
||||
<td><label><?=$order_info->id_man_number?></label></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><label><?=$order_info->id_man_phone?></label></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">投保人</th> |
||||
<td><label><?=$order_info->link_man?></label></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><label><?=$order_info->link_man_type?></label>
|
||||
</td> |
||||
<th class="bg-warning">证件号码</th> |
||||
<td><label><?=$order_info->link_man_number?></label></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><label><?=$order_info->link_man_phone?></label></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>商业起保日期</th> |
||||
<td> |
||||
<label><?=$order_info->insurer1_begin_date?></label>
|
||||
</td> |
||||
<th class="bg-warning" nowrap>交强起保日期</th> |
||||
<td> |
||||
<label><?=$order_info->insurer2_begin_date?></label>
|
||||
</td> |
||||
<th class="bg-warning">保险公司</th> |
||||
<td> |
||||
<label><?=$order_info->company->name?></label>
|
||||
</td> |
||||
<th class="bg-warning">付款方式</th> |
||||
<td class="form-inline" nowrap> |
||||
<label><?=MyLib::zhifufs($order_info->shoufei_id)?></label>
|
||||
<label><?=$order_info->payType->name?></label>
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">领款人</th> |
||||
<td><label><?=$order_info->money_man?></label></td>
|
||||
<th class="bg-warning">开户行</th> |
||||
<td><label><?=$order_info->money_bank?></label></td>
|
||||
<th class="bg-warning">银行账号</th> |
||||
<td><label><?=$order_info->money_no?></label></td>
|
||||
<th class="bg-warning" nowrap>成功理由</th> |
||||
<td> |
||||
<label><?=$order_info->success->name?></label>
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>送单日期</th> |
||||
<td> |
||||
<label><?=$order_info->send_date?></label>
|
||||
</td> |
||||
<th class="bg-warning">送单地址</th> |
||||
<td colspan="5" class="form-inline"> |
||||
<label><?=$order_info->sendCity->name?></label>
|
||||
<label><?=$order_info->sendDistrict->name?></label>
|
||||
<label><?=$order_info->send_address?></label>
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">备注</th> |
||||
<td colspan="7"><label><?=$order_info->remark?></label></td>
|
||||
</tr> |
||||
</table> |
||||
<div> |
||||
<div class="row"> |
||||
<div class="col-md-5 col-md-offset-4"> |
||||
<button type="button" class="btn btn-primary btn-back" type="button"> |
||||
<strong>返 回</strong> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script> |
||||
var o = {}; |
||||
//判断是否填写了选项 |
||||
function isNull(data){ |
||||
|
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
return false; |
||||
} |
||||
} |
||||
|
||||
$(function() { |
||||
$('.btn-back').click(function() { |
||||
window.location.href = '/insurer/my-list'; |
||||
}); |
||||
//礼品修改 |
||||
$('#save-btn').click(function(){ |
||||
if(confirm('是否确认修改礼品?')) { |
||||
var param = $('#giftEditFrom').serialize(); |
||||
$.post('/insurer/gift-edit-save',param,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
gotoPage('/insurer/ajax-gift-info?id=<?=$order_info->id?>&t='+Math.random(),'my_list_info');
|
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
</script> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,79 +1,102 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/insurer/office-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
<?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="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="send_date">送单日期</th> |
||||
<th data-field="total_all">共计签单</th> |
||||
<th data-field="user_name">销售座席</th> |
||||
<th data-field="status_name">状态</th> |
||||
<th data-field="pay_type">支付方式</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-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/insurer/office-mng?" + params; |
||||
function search() { |
||||
$('#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(); |
||||
}); |
||||
</script> |
||||
<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="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
<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="24" align="center" class="bg_tr">序号</td> |
||||
<td width="50" align="center" class="bg_tr">被保险人</td> |
||||
<td width="60" align="center" class="bg_tr">联系电话</td> |
||||
<td width="60" align="center" class="bg_tr">保险公司</td> |
||||
<td width="60" align="center" class="bg_tr">车牌号</td> |
||||
<td width="60" align="center" class="bg_tr">车型</td> |
||||
<td width="60" align="center" class="bg_tr">提单日期</td> |
||||
<td width="80" align="center" class="bg_tr">送单日期</td> |
||||
<td width="60" align="center" class="bg_tr">共计签单</td> |
||||
<td width="60" align="center" class="bg_tr">销售座席</td> |
||||
<td width="60" align="center" class="bg_tr">状态</td> |
||||
<td width="60" align="center" class="bg_tr">支付方式</td> |
||||
<td width="60" align="center" class="bg_tr">当前操作</td> |
||||
<td width="30" align="center" class="bg_tr">操作</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"nowrap ><?=$start_index+1?></td>
|
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,30)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->link_phone?></td>
|
||||
<td class="td_bg" nowrap><?=$item->company2?$item->company2->name:''?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car?$item->car->factory_model:''?></td>
|
||||
<td class="td_bg" align="center" nowrap><?=$item->submit_date?></td>
|
||||
<td class="td_bg" align="center" nowrap><?=$item->send_date?></td>
|
||||
<td class="td_bg" align="center" nowrap><?=$item->total_all?></td>
|
||||
<td class="td_bg" align="center" nowrap><?=$item->user?$item->user->getShowName():''?> </td>
|
||||
<td class="td_bg" align="center" nowrap><?=$item->status->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" align="center" nowrap><?=$item->lock?$item->lock->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr > |
||||
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,105 +1,101 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/insurer/original-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
<?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="id">ID</th> |
||||
<th data-field="id_man">被保险人</th> |
||||
<th data-field="link_man_phone">联系电话</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="insurer1_no">商业保单号</th> |
||||
<th data-field="insurer2_no">交强保单号</th> |
||||
<th data-field="company_name">保险公司</th> |
||||
<th data-field="sms_code">验证码</th> |
||||
<th data-field="user_name">销售座席</th> |
||||
<th data-field="status_name">状态</th> |
||||
<th data-field="pay_type">支付方式</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/original-mng-edit?id=' + id; |
||||
} |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/insurer/original-mng?" + params; |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/insurer/original-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> |
||||
<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="id_man" type="text" value="<?=$id_man?>">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
收款人:<select name="payee_id" id="payee_id" style="width:100px;"> |
||||
<option value="">全部</option> |
||||
<?php |
||||
foreach($payee_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $payee_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
收款方式:<select name="payment_id" id="payment_id" style="width:100px;"> |
||||
<option value="">全部</option> |
||||
<?php |
||||
foreach($payment_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $payment_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</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="24" align="center" class="bg_tr">序号</td> |
||||
<td width="60" align="center" class="bg_tr">被保险人</td> |
||||
<td width="60" align="center" class="bg_tr">联系电话</td> |
||||
<td width="60" align="center" class="bg_tr">车牌号</td> |
||||
<td width="60" align="center" class="bg_tr">商业保单号</td> |
||||
<td width="80" align="center" class="bg_tr">交强保单号</td> |
||||
<td width="80" align="center" class="bg_tr">保险公司</td> |
||||
<td width="60" align="center" class="bg_tr">验证码</td> |
||||
<td width="60" align="center" class="bg_tr">销售座席</td> |
||||
<td width="60" align="center" class="bg_tr">状态</td> |
||||
<td width="60" align="center" class="bg_tr">支付方式</td> |
||||
<td width="60" align="center" class="bg_tr">收款人</td> |
||||
<td width="60" align="center" class="bg_tr">收款方式</td> |
||||
<td width="60" align="center" class="bg_tr">当前操作</td> |
||||
<td width="30" align="center" class="bg_tr">操作</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"nowrap ><?=$start_index+1?></td>
|
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,30)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->link_phone?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->insurer1_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->insurer2_no?></td>
|
||||
<td class="td_bg" ><?=MyLib::substr_cut($item->company?$item->company->name:'',30)?> </td>
|
||||
<td class="td_bg" nowrap><?=$item->sms_code?></td>
|
||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
||||
<td class="td_bg" ><?=$item->status->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" ><?=$item->payee_id?$item->payee->name:''?></td>
|
||||
<td class="td_bg" ><?=$item->payment_id?$item->payment->name:''?></td>
|
||||
|
||||
<td class="td_bg" ><?=$item->lock?$item->lock->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,161 +1,107 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id,index) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/info-renewal?id=' + id + '&type=<?=$type?>' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params);
|
||||
<?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 data-field="state" data-checkbox="true"></th> |
||||
<th width="50" data-field="car_id">ID</th> |
||||
<th data-field="pdate">预约日期</th> |
||||
<th data-field="ptime">预约时间</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="register_date">初登日期</th> |
||||
<th data-field="insurer1_date">商业起保日期</th> |
||||
<th data-field="insurer2_date">交强起保日期</th> |
||||
<th data-field="remark">预约备注</th> |
||||
<th data-field="user_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.car_id + ')">'); |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(1); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/renewal/all?" + params; |
||||
}); |
||||
$('.invalid-btn').click(function(){ |
||||
if(confirm('是否确认收回?')) { |
||||
var params = $('#listForm').serialize(); |
||||
$.post('/renewal/invalid-c',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#assign-other-btn').click(function () { |
||||
if(confirm('是否确认平移?')) { |
||||
var params = $('#listForm').serialize(); |
||||
var user_id = $('#user_id').val(); |
||||
params = params + '&user_id=' + user_id; |
||||
$.post('/renewal/assign-other',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}) |
||||
$('#all').click(function(){ |
||||
if($(this).prop('checked')==true) { |
||||
$('input:checkbox').each(function() { |
||||
$(this).prop('checked', true); |
||||
}); |
||||
} else { |
||||
$('input:checkbox').each(function () { |
||||
$(this).prop('checked',false); |
||||
}); |
||||
function view(car_id) { |
||||
location.href = '/car/info?id=' + car_id; |
||||
} |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/renewal/all-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_man'] = $('#car_man').val(); |
||||
o['phone'] = $('#phone').val(); |
||||
o['car_no'] = $('#car_no').val(); |
||||
o['id_man'] = $('#id_man').val(); |
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
|
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" 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?>" style="width: 100px;">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>" style="width: 100px;">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width: 100px;">
|
||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
||||
排序:<select name="sort_key"> |
||||
<option value="appointment_t.pdate" <?=$sort_key=='appointment_t.pdate'?'selected':''?>>按预约时间</option>
|
||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>按初登时间</option>
|
||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>按保险时间</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
||||
</select> |
||||
预约类型:<select name="ptype"> |
||||
<option value="0">全部类型</option> |
||||
<?php foreach($list as $k=>$v){ ?> |
||||
<option value='<?= $v->code; ?>' <?php if($ptype == $v->code){ echo 'selected'; } ?> ><?= $v->name; ?></option>
|
||||
<?php } ?> |
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<?php |
||||
if($this->context->my->role_id != 5) { |
||||
?> |
||||
<input type=button class="ACT_btn invalid-btn" name="invalid-btn" value=" 回收数据 "/> |
||||
<input type="button" class="act_btn" id="assign-other-btn" name="assign-other-btn" value="批量平移到"> |
||||
业务员:<select name="user_id" id="user_id"> |
||||
<option value="0">请选择</option> |
||||
<?php |
||||
foreach($user_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $user_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->getShowName().'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
<?php |
||||
} |
||||
?> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="24" align="center" class="bg_tr"><?php |
||||
if($this->context->my->role_id==5) |
||||
echo '序号'; |
||||
else |
||||
echo '<input type="checkbox" id="all">'; |
||||
?></td> |
||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
||||
<td width="120" align="center" class="bg_tr">车主</td> |
||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
||||
<td width="30" align="center" class="bg_tr">业务员</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<form id="listForm"> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1) * 20 + $index; |
||||
$car_info = $item->car; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><?php |
||||
if($this->context->my->role_id == 5) |
||||
echo $start_index + 1; |
||||
else |
||||
echo '<input type="checkbox" name="ids[]" value="'.$item->car_id.'">'; |
||||
?></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->pdate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->ptime?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_man?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->register_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer1_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer2_date?></td>
|
||||
<td class="td_bg" ><?=MyLib::substr_cut($item->remark,40)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</form> |
||||
<tr> |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,161 +1,107 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id,index) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/info-renewal?id=' + id + '&type=<?=$type?>' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params);
|
||||
<?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 data-field="state" data-checkbox="true"></th> |
||||
<th width="50" data-field="car_id">ID</th> |
||||
<th data-field="pdate">预约日期</th> |
||||
<th data-field="ptime">预约时间</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="register_date">初登日期</th> |
||||
<th data-field="insurer1_date">商业起保日期</th> |
||||
<th data-field="insurer2_date">交强起保日期</th> |
||||
<th data-field="remark">预约备注</th> |
||||
<th data-field="user_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.car_id + ')">'); |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(1); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/renewal/first?" + params; |
||||
}); |
||||
$('.invalid-btn').click(function(){ |
||||
if(confirm('是否确认收回?')) { |
||||
var params = $('#listForm').serialize(); |
||||
$.post('/renewal/invalid-c',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#assign-other-btn').click(function () { |
||||
if(confirm('是否确认平移?')) { |
||||
var params = $('#listForm').serialize(); |
||||
var user_id = $('#user_id').val(); |
||||
params = params + '&user_id=' + user_id; |
||||
$.post('/renewal/assign-other',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#all').click(function(){ |
||||
if($(this).prop('checked')==true) { |
||||
$('input:checkbox').each(function() { |
||||
$(this).prop('checked', true); |
||||
}); |
||||
} else { |
||||
$('input:checkbox').each(function () { |
||||
$(this).prop('checked',false); |
||||
}); |
||||
function view(car_id) { |
||||
location.href = '/car/info?id=' + car_id; |
||||
} |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/renewal/first-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_man'] = $('#car_man').val(); |
||||
o['phone'] = $('#phone').val(); |
||||
o['car_no'] = $('#car_no').val(); |
||||
o['id_man'] = $('#id_man').val(); |
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
|
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" 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?>" style="width: 100px;">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>" style="width: 100px;">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width: 100px;">
|
||||
<?php |
||||
if($this->context->my->role_id != 5) { |
||||
?> |
||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
||||
<?php |
||||
} |
||||
?> |
||||
排序:<select name="sort_key"> |
||||
<option value="appointment_t.pdate" <?=$sort_key=='appointment_t.pdate'?'selected':''?>>预约时间</option>
|
||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>初登时间</option>
|
||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>保险时间</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<?php |
||||
if($this->context->my->role_id != 5) { |
||||
?> |
||||
<input type=button class="ACT_btn invalid-btn" name="invalid-btn" value=" 回收数据 "/> |
||||
<input type="button" class="act_btn" id="assign-other-btn" name="assign-other-btn" value="批量平移到"> |
||||
业务员:<select name="user_id" id="user_id"> |
||||
<option value="0">请选择</option> |
||||
<?php |
||||
foreach($user_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $user_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->getShowName().'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
<?php |
||||
} |
||||
?> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="24" align="center" class="bg_tr"><?php |
||||
if($this->context->my->role_id==5) |
||||
echo '序号'; |
||||
else |
||||
echo '<input type="checkbox" id="all">'; |
||||
?></td> |
||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
||||
<td width="120" align="center" class="bg_tr">车主</td> |
||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
||||
<td width="30" align="center" class="bg_tr">业务员</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<form id="listForm"> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1) * 20 + $index; |
||||
$car_info = $item->car; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><?php |
||||
if($this->context->my->role_id == 5) |
||||
echo $start_index + 1; |
||||
else |
||||
echo '<input type="checkbox" name="ids[]" value="'.$item->car_id.'">'; |
||||
?></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->pdate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->ptime?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_man?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->register_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer1_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer2_date?></td>
|
||||
<td class="td_bg" ><?=MyLib::substr_cut($item->remark,40)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</form> |
||||
<tr> |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,94 +1,107 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
//详情 |
||||
function info(id,index) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/info-renewal?id=' + id + '&type=<?=$type?>' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params);
|
||||
<?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 data-field="state" data-checkbox="true"></th> |
||||
<th width="50" data-field="car_id">ID</th> |
||||
<th data-field="pdate">预约日期</th> |
||||
<th data-field="ptime">预约时间</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="register_date">初登日期</th> |
||||
<th data-field="insurer1_date">商业起保日期</th> |
||||
<th data-field="insurer2_date">交强起保日期</th> |
||||
<th data-field="remark">预约备注</th> |
||||
<th data-field="user_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.car_id + ')">'); |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
|
||||
function view(car_id) { |
||||
location.href = '/car/info?id=' + car_id; |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(1); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/renewal/today?" + params; |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/renewal/today-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_man'] = $('#car_man').val(); |
||||
o['phone'] = $('#phone').val(); |
||||
o['car_no'] = $('#car_no').val(); |
||||
o['id_man'] = $('#id_man').val(); |
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
|
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" 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="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
预约类型:<select name="ptype"> |
||||
<option value="0">全部类型</option> |
||||
<?php foreach($list as $k=>$v){ ?> |
||||
<option value='<?= $v->code; ?>' <?php if($ptype == $v->code){ echo 'selected'; } ?> ><?= $v->name; ?></option>
|
||||
<?php } ?> |
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
排序:<select name="sort_key"> |
||||
<option value="appointment_t.pdate" <?=$sort_key=='appointment_t.pdate'?'selected':''?>>按预约时间</option>
|
||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>按初登时间</option>
|
||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>按商业保险时间</option>
|
||||
<option value="car_t.insurer2_date" <?=$sort_key=='car_t.insurer2_date'?'selected':''?>>按商业保险时间</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
||||
</select> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="24" align="center" class="bg_tr">序号</td> |
||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
||||
<td width="120" align="center" class="bg_tr">车主</td> |
||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
||||
<td width="30" align="center" class="bg_tr">业务员</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1) * 20 + $index; |
||||
$car_info = $item->car; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->pdate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->ptime?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->car_man?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->register_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer1_date?></td>
|
||||
<td class="td_bg" nowrap><?=$car_info->insurer2_date?></td>
|
||||
<td class="td_bg" ><?=MyLib::substr_cut($item->remark,40)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
||||
|
Loading…
Reference in new issue