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 |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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);
|
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(1); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>全部预约</h5> |
||||||
window.location.href = "/appointment/all?" + params; |
<div class="ibox-tools"> |
||||||
}); |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
$('.invalid-btn').click(function(){ |
<i class="fa fa-refresh"></i> 刷新 |
||||||
if(confirm('是否确认收回?')) { |
</a> |
||||||
var params = $('#listForm').serialize(); |
</div> |
||||||
$.post('/appointment/invalid-a',params,function(obj){ |
</div> |
||||||
alert(obj.msg); |
<div class="ibox-content"> |
||||||
if(obj.success) { |
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
window.location.reload(); |
<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(' '); |
||||||
} |
} |
||||||
},'json'); |
|
||||||
|
function view(car_id) { |
||||||
|
location.href = '/car/info?id=' + car_id; |
||||||
} |
} |
||||||
}); |
|
||||||
$('#assign-other-btn').click(function () { |
function refreshList() { |
||||||
if(confirm('是否确认平移?')) { |
$('#listTable').bootstrapTable('refresh'); |
||||||
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'); |
|
||||||
|
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; |
||||||
} |
} |
||||||
}) |
|
||||||
$('#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); |
|
||||||
}); |
}); |
||||||
|
return false; |
||||||
} |
} |
||||||
}); |
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
|
|
||||||
}); |
}); |
||||||
</script> |
</script> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<?php $this->endBlock(); ?> |
||||||
<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> |
|
||||||
|
@ -1,94 +1,107 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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);
|
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(1); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>今日预约</h5> |
||||||
window.location.href = "/appointment/today?" + params; |
<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> 刷新 |
||||||
</script> |
</a> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
</div> |
||||||
<form id="searchForm"> |
</div> |
||||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
<div class="ibox-content"> |
||||||
<tr> |
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
<td class="td_bg"> |
<div class="form-group"> |
||||||
车主:<input name="car_man" type="text" value="<?=$car_man?>">
|
<label>车主</label> |
||||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
<input type="text" name="car_man" id="car_man" class="form-control"> |
||||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
<label>电话</label> |
||||||
预约类型:<select name="ptype"> |
<input type="text" name="phone" id="phone" class="form-control"> |
||||||
<option value="0">全部类型</option> |
<label>车牌</label> |
||||||
<?php foreach($list as $k=>$v){ ?> |
<input type="text" name="car_no" id="car_no" class="form-control"> |
||||||
<option value='<?= $v->code; ?>' <?php if($ptype == $v->code){ echo 'selected'; } ?> ><?= $v->name; ?></option>
|
<label>被保险人</label> |
||||||
<?php } ?> |
<input type="text" name="id_man" id="id_man" class="form-control"> |
||||||
</select> |
<button type="submit" class="btn btn-primary">搜索</button> |
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
</div> |
||||||
</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> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="24" align="center" class="bg_tr">序号</td> |
<th data-field="state" data-checkbox="true"></th> |
||||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
<th width="50" data-field="car_id">ID</th> |
||||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
<th data-field="pdate">预约日期</th> |
||||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
<th data-field="ptime">预约时间</th> |
||||||
<td width="120" align="center" class="bg_tr">车主</td> |
<th data-field="car_no">车牌号</th> |
||||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
<th data-field="car_man">车主</th> |
||||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
<th data-field="register_date">初登日期</th> |
||||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
<th data-field="insurer1_date">商业起保日期</th> |
||||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
<th data-field="insurer2_date">交强起保日期</th> |
||||||
<td width="30" align="center" class="bg_tr">业务员</td> |
<th data-field="remark">预约备注</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
<th data-field="user_name">业务员</th> |
||||||
</tr> |
<th data-formatter="opFormatter">操作</th> |
||||||
<?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> |
</tr> |
||||||
<?php |
</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(' '); |
||||||
} |
} |
||||||
?> |
|
||||||
<tr> |
function view(car_id) { |
||||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
location.href = '/car/info?id=' + car_id; |
||||||
</tr> |
} |
||||||
</table> |
|
||||||
|
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> |
||||||
|
<?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 |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
//详情 |
<div class="ibox float-e-margins"> |
||||||
function info(id) { |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>我的提单</h5> |
||||||
window.location.href = '/insurer/finance-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
<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> |
||||||
|
|
||||||
|
|
||||||
|
<?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 unlock(id) { |
function view(id) { |
||||||
$.post('/insurer/unlocked',{id:id},function(obj){ |
window.location.href = '/insurer/office-mng-edit?id=' + id; |
||||||
if(obj.success) { |
} |
||||||
alert(obj.msg); |
function refreshList() { |
||||||
window.location.reload(); |
$('#listTable').bootstrapTable('refresh'); |
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
} |
||||||
|
|
||||||
},'json'); |
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; |
||||||
} |
} |
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/insurer/finance-mng?" + params; |
|
||||||
}); |
}); |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
}); |
}); |
||||||
</script> |
</script> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<?php $this->endBlock(); ?> |
||||||
<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> |
|
||||||
|
@ -1,79 +1,102 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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); |
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(0); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>内勤核保</h5> |
||||||
window.location.href = "/insurer/office-mng?" + params; |
<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> 刷新 |
||||||
</script> |
</a> |
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
</div> |
||||||
<form id="searchForm"> |
</div> |
||||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
<div class="ibox-content"> |
||||||
<tr> |
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
<td class="td_bg"> |
<div class="form-group"> |
||||||
车主:<input name="car_man" type="text" value="<?=$car_man?>">
|
<label>车主</label> |
||||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
<input type="text" name="car_man" id="car_man" class="form-control"> |
||||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
<label>电话</label> |
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
<input type="text" name="phone" id="phone" class="form-control"> |
||||||
</tr> |
<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> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="24" align="center" class="bg_tr">序号</td> |
<th width="50" data-field="id">ID</th> |
||||||
<td width="50" align="center" class="bg_tr">被保险人</td> |
<th data-field="id_man">被保险人</th> |
||||||
<td width="60" align="center" class="bg_tr">联系电话</td> |
<th data-field="link_man_phone">联系电话</th> |
||||||
<td width="60" align="center" class="bg_tr">保险公司</td> |
<th data-field="company_name">保险公司</th> |
||||||
<td width="60" align="center" class="bg_tr">车牌号</td> |
<th data-field="car_no">车牌号</th> |
||||||
<td width="60" align="center" class="bg_tr">车型</td> |
<th data-field="factory_model">车型</th> |
||||||
<td width="60" align="center" class="bg_tr">提单日期</td> |
<th data-field="submit_date">提单日期</th> |
||||||
<td width="80" align="center" class="bg_tr">送单日期</td> |
<th data-field="send_date">送单日期</th> |
||||||
<td width="60" align="center" class="bg_tr">共计签单</td> |
<th data-field="total_all">共计签单</th> |
||||||
<td width="60" align="center" class="bg_tr">销售座席</td> |
<th data-field="user_name">销售座席</th> |
||||||
<td width="60" align="center" class="bg_tr">状态</td> |
<th data-field="status_name">状态</th> |
||||||
<td width="60" align="center" class="bg_tr">支付方式</td> |
<th data-field="pay_type">支付方式</th> |
||||||
<td width="60" align="center" class="bg_tr">当前操作</td> |
<th data-field="lock_name">当前操作</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
<th data-formatter="opFormatter">操作</th> |
||||||
</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> |
</tr> |
||||||
<?php |
</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) { |
||||||
<tr > |
window.location.href = '/insurer/office-mng-edit?id=' + id; |
||||||
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
|
} |
||||||
</tr> |
function refreshList() { |
||||||
</table> |
$('#listTable').bootstrapTable('refresh'); |
||||||
|
} |
||||||
|
|
||||||
|
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> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
@ -1,105 +1,101 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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); |
|
||||||
} |
|
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/insurer/original-mng?" + params; |
|
||||||
}); |
|
||||||
}); |
|
||||||
</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="搜索"> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
</td> |
<div class="ibox float-e-margins"> |
||||||
</tr> |
<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> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="24" align="center" class="bg_tr">序号</td> |
<th width="50" data-field="id">ID</th> |
||||||
<td width="60" align="center" class="bg_tr">被保险人</td> |
<th data-field="id_man">被保险人</th> |
||||||
<td width="60" align="center" class="bg_tr">联系电话</td> |
<th data-field="link_man_phone">联系电话</th> |
||||||
<td width="60" align="center" class="bg_tr">车牌号</td> |
<th data-field="car_no">车牌号</th> |
||||||
<td width="60" align="center" class="bg_tr">商业保单号</td> |
<th data-field="insurer1_no">商业保单号</th> |
||||||
<td width="80" align="center" class="bg_tr">交强保单号</td> |
<th data-field="insurer2_no">交强保单号</th> |
||||||
<td width="80" align="center" class="bg_tr">保险公司</td> |
<th data-field="company_name">保险公司</th> |
||||||
<td width="60" align="center" class="bg_tr">验证码</td> |
<th data-field="sms_code">验证码</th> |
||||||
<td width="60" align="center" class="bg_tr">销售座席</td> |
<th data-field="user_name">销售座席</th> |
||||||
<td width="60" align="center" class="bg_tr">状态</td> |
<th data-field="status_name">状态</th> |
||||||
<td width="60" align="center" class="bg_tr">支付方式</td> |
<th data-field="pay_type">支付方式</th> |
||||||
<td width="60" align="center" class="bg_tr">收款人</td> |
<th data-field="lock_name">当前操作</th> |
||||||
<td width="60" align="center" class="bg_tr">收款方式</td> |
<th data-formatter="opFormatter">操作</th> |
||||||
<td width="60" align="center" class="bg_tr">当前操作</td> |
|
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
|
||||||
</tr> |
</tr> |
||||||
<?php |
</thead> |
||||||
foreach($items as $index => $item) { |
</table> |
||||||
$start_index = ($page - 1) * 20 + $index; |
</div> |
||||||
?> |
</div> |
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
</div> |
||||||
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
|
</div> |
||||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,30)?></td>
|
</div> |
||||||
<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> |
<?php $this->beginBlock('footer_js'); ?> |
||||||
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
</td> |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
</tr> |
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
<?php |
<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) { |
||||||
<tr> |
window.location.href = '/insurer/original-mng-edit?id=' + id; |
||||||
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
|
} |
||||||
</tr> |
function refreshList() { |
||||||
</table> |
$('#listTable').bootstrapTable('refresh'); |
||||||
|
} |
||||||
|
|
||||||
|
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> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
@ -1,161 +1,107 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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);
|
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(1); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>全部预约</h5> |
||||||
window.location.href = "/renewal/all?" + params; |
<div class="ibox-tools"> |
||||||
}); |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
$('.invalid-btn').click(function(){ |
<i class="fa fa-refresh"></i> 刷新 |
||||||
if(confirm('是否确认收回?')) { |
</a> |
||||||
var params = $('#listForm').serialize(); |
</div> |
||||||
$.post('/renewal/invalid-c',params,function(obj){ |
</div> |
||||||
alert(obj.msg); |
<div class="ibox-content"> |
||||||
if(obj.success) { |
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
window.location.reload(); |
<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(' '); |
||||||
} |
} |
||||||
},'json'); |
|
||||||
|
function view(car_id) { |
||||||
|
location.href = '/car/info?id=' + car_id; |
||||||
} |
} |
||||||
}); |
|
||||||
$('#assign-other-btn').click(function () { |
function refreshList() { |
||||||
if(confirm('是否确认平移?')) { |
$('#listTable').bootstrapTable('refresh'); |
||||||
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'); |
|
||||||
|
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; |
||||||
} |
} |
||||||
}) |
|
||||||
$('#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); |
|
||||||
}); |
}); |
||||||
|
return false; |
||||||
} |
} |
||||||
}); |
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
|
|
||||||
}); |
}); |
||||||
</script> |
</script> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<?php $this->endBlock(); ?> |
||||||
<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> |
|
||||||
|
@ -1,161 +1,107 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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);
|
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(1); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>首拨</h5> |
||||||
window.location.href = "/renewal/first?" + params; |
<div class="ibox-tools"> |
||||||
}); |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
$('.invalid-btn').click(function(){ |
<i class="fa fa-refresh"></i> 刷新 |
||||||
if(confirm('是否确认收回?')) { |
</a> |
||||||
var params = $('#listForm').serialize(); |
</div> |
||||||
$.post('/renewal/invalid-c',params,function(obj){ |
</div> |
||||||
alert(obj.msg); |
<div class="ibox-content"> |
||||||
if(obj.success) { |
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
window.location.reload(); |
<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(' '); |
||||||
} |
} |
||||||
},'json'); |
|
||||||
|
function view(car_id) { |
||||||
|
location.href = '/car/info?id=' + car_id; |
||||||
} |
} |
||||||
}); |
|
||||||
$('#assign-other-btn').click(function () { |
function refreshList() { |
||||||
if(confirm('是否确认平移?')) { |
$('#listTable').bootstrapTable('refresh'); |
||||||
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'); |
|
||||||
|
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; |
||||||
} |
} |
||||||
}); |
}); |
||||||
$('#all').click(function(){ |
return false; |
||||||
if($(this).prop('checked')==true) { |
|
||||||
$('input:checkbox').each(function() { |
|
||||||
$(this).prop('checked', true); |
|
||||||
}); |
|
||||||
} else { |
|
||||||
$('input:checkbox').each(function () { |
|
||||||
$(this).prop('checked',false); |
|
||||||
}); |
|
||||||
} |
} |
||||||
}); |
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
|
|
||||||
}); |
}); |
||||||
</script> |
</script> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<?php $this->endBlock(); ?> |
||||||
<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> |
|
||||||
|
@ -1,94 +1,107 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<?php $this->endBlock(); ?> |
||||||
<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);
|
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(1); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>今日预约</h5> |
||||||
window.location.href = "/renewal/today?" + params; |
<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> 刷新 |
||||||
</script> |
</a> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
</div> |
||||||
<form id="searchForm"> |
</div> |
||||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
<div class="ibox-content"> |
||||||
<tr> |
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
<td class="td_bg"> |
<div class="form-group"> |
||||||
车主:<input name="car_man" type="text" value="<?=$car_man?>">
|
<label>车主</label> |
||||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
<input type="text" name="car_man" id="car_man" class="form-control"> |
||||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
<label>电话</label> |
||||||
预约类型:<select name="ptype"> |
<input type="text" name="phone" id="phone" class="form-control"> |
||||||
<option value="0">全部类型</option> |
<label>车牌</label> |
||||||
<?php foreach($list as $k=>$v){ ?> |
<input type="text" name="car_no" id="car_no" class="form-control"> |
||||||
<option value='<?= $v->code; ?>' <?php if($ptype == $v->code){ echo 'selected'; } ?> ><?= $v->name; ?></option>
|
<label>被保险人</label> |
||||||
<?php } ?> |
<input type="text" name="id_man" id="id_man" class="form-control"> |
||||||
</select> |
<button type="submit" class="btn btn-primary">搜索</button> |
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
</div> |
||||||
</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> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="24" align="center" class="bg_tr">序号</td> |
<th data-field="state" data-checkbox="true"></th> |
||||||
<td width="50" align="center" class="bg_tr">预约日期</td> |
<th width="50" data-field="car_id">ID</th> |
||||||
<td width="50" align="center" class="bg_tr">预约时间</td> |
<th data-field="pdate">预约日期</th> |
||||||
<td width="70" align="center" class="bg_tr">车牌号</td> |
<th data-field="ptime">预约时间</th> |
||||||
<td width="120" align="center" class="bg_tr">车主</td> |
<th data-field="car_no">车牌号</th> |
||||||
<td width="70" align="center" class="bg_tr">初登日期</td> |
<th data-field="car_man">车主</th> |
||||||
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td> |
<th data-field="register_date">初登日期</th> |
||||||
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td> |
<th data-field="insurer1_date">商业起保日期</th> |
||||||
<td width="200" align="center" class="bg_tr">预约备注</td> |
<th data-field="insurer2_date">交强起保日期</th> |
||||||
<td width="30" align="center" class="bg_tr">业务员</td> |
<th data-field="remark">预约备注</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
<th data-field="user_name">业务员</th> |
||||||
</tr> |
<th data-formatter="opFormatter">操作</th> |
||||||
<?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> |
</tr> |
||||||
<?php |
</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(' '); |
||||||
} |
} |
||||||
?> |
|
||||||
<tr> |
function view(car_id) { |
||||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
location.href = '/car/info?id=' + car_id; |
||||||
</tr> |
} |
||||||
</table> |
|
||||||
|
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> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
Loading…
Reference in new issue