You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
4.3 KiB
99 lines
4.3 KiB
<?php
|
|
use \common\libs\MyLib;
|
|
?>
|
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
|
|
<script type="text/javascript" language="javascript">
|
|
//详情
|
|
function info(id,oid) {
|
|
var params = $('#searchForm').serialize();
|
|
window.location.href = '/insurer/non-finance-mng-edit?id=' + id +'&oid=' + oid+ '&back_params=' + encodeURIComponent(params);
|
|
}
|
|
|
|
function unlock(id) {
|
|
$.post('/insurer/non-unlocked',{id:id},function(obj){
|
|
if(obj.success) {
|
|
alert(obj.msg);
|
|
window.location.reload();
|
|
} else {
|
|
alert(obj.msg);
|
|
}
|
|
|
|
},'json');
|
|
|
|
}
|
|
$(function(){
|
|
$("#search-btn").click(function(){
|
|
$('#page').val(0);
|
|
var params = $('#searchForm').serialize();
|
|
window.location.href = "/insurer/non-finance-mng?" + params;
|
|
});
|
|
});
|
|
</script>
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
|
<form id="searchForm">
|
|
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
|
<tr>
|
|
<td class="td_bg">
|
|
<!--新增搜索项-->
|
|
<!--完成程度-->
|
|
<select name="status" class="status">
|
|
<option value=0>全部</option>
|
|
<option value=1 <?= $status==1?'selected':'' ?>>未完成</option>
|
|
<option value=2 <?= $status==2?'selected':'' ?>>完成</option>
|
|
</select>
|
|
被保险人:<input name="id_man" type="text" value="<?=$id_man?>">
|
|
|
|
|
|
<!--日期-->
|
|
正本日期:
|
|
<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 ?>" />
|
|
|
|
<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="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->caiwu1;
|
|
?>
|
|
<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>人保</td>
|
|
<td class="td_bg" nowrap><?=$item->print_date?></td>
|
|
<td class="td_bg" nowrap><?=$item->insurer_non_no?></td>
|
|
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
|
<td class="td_bg" ><?=$caiwu->status->name?></td>
|
|
<td class="td_bg" ><?=$caiwu->lock?$caiwu->lock->getShowName():''?></td>
|
|
<td align="center" class="td_bg" nowrap>
|
|
<?php if($caiwu->status_id == 12){ ?>
|
|
[<a href="javascript:void(0);" onclick="unlock(<?=$item->id?>)">解锁</a>]
|
|
[<a href="javascript:void(0);" onclick="info(<?=$item->non_id?>,<?= $item->id ?>)">详情</a>]
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr >
|
|
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
|
|
</tr>
|
|
</table>
|
|
|