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.
 
 
 
 
simple-yewu/frontend/views/insurer/non-financial-settlement-de...

283 lines
15 KiB

<?php
use \common\libs\MyLib;
use \common\models\PriceT;
?>
<link href="/css/tabs.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td height="22" colspan="2" class="td_bg">
<form id="orderFrm">
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable">
<tr>
<td height="120" valign="top" class="td_bg">
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(1) name="navcell">▼非车险信息</TD>
</tr>
</tbody>
</table>
<TABLE id=tb1 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<TR>
<TD vAlign=top>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<tr>
<td width="100" height="25" class="bg_tr">被保险人姓名</td>
<td height="25" class="td_bg"><?=$info->insurant_name?></td>
<td width="100" height="25" class="bg_tr">证件号</td>
<td height="25" class="td_bg"><?=$info->insurant_number?></td>
<td width="100" height="25" class="bg_tr">电话</td>
<td height="25" class="td_bg"><?=$info->insurant_phone?><?php if($info->insurant_phone1): ?>,<?=$info->insurant_phone1?><?php endif;?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">投保人姓名</td>
<td height="25" class="td_bg"><?=$info->policy_holder_name?></td>
<td width="100" height="25" class="bg_tr">证件号</td>
<td height="25" class="td_bg"><?=$info->policy_holder_number?></td>
<td width="100" height="25" class="bg_tr">电话</td>
<td height="25" class="td_bg"><?=$info->policy_holder_phone?><?php if($info->policy_holder_phone1): ?>,<?=$info->policy_holder_phone1?><?php endif;?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">受益人姓名</td>
<td height="25" class="td_bg"><?=$info->beneficiary_name?></td>
<td width="100" height="25" class="bg_tr">证件号</td>
<td height="25" class="td_bg"><?=$info->beneficiary_number?></td>
<td width="100" height="25" class="bg_tr">电话</td>
<td height="25" class="td_bg"><?=$info->beneficiary_phone?><?php if($info->beneficiary_phone1): ?>,<?=$info->beneficiary_phone1?><?php endif;?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">产品方案</td>
<td height="25" class="td_bg">
<?=$info->scheme_id?$info->sche->name:''?>
</td>
<td width="100" height="25" class="bg_tr">总保额</td>
<td height="25" class="td_bg baoer"></td>
<td width="100" height="25" class="bg_tr">保险费用</td>
<td height="25" class="td_bg feiyong"></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">起保日期</td>
<td height="25" class="td_bg"><?=$info->insurer_date_start?></td>
<td width="100" height="25" class="bg_tr">投保份数</td>
<td height="25" class="td_bg"><?=$info->num?></td>
<td width="100" height="25" class="bg_tr">座位数</td>
<td height="25" class="td_bg"><?=$info->seat?></td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<!--保单信息-->
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(2) name="navcell">▼核保信息</TD>
</tr>
</tbody>
</table>
<TABLE id=tb2 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<TR>
<TD vAlign=top>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
<tr>
<td width="100" height="25" class="bg_tr">非车险终止日期</td>
<td height="25" class="td_bg"><input type="text" value="<?=$order_info->insurer_date_end?>" name="insurer_date_end" onClick="WdatePicker()" /></td>
<td width="100" height="25" class="bg_tr">非车险保单号</td>
<td height="25" class="td_bg"><input type="text" value="<?=$order_info->insurer_non_no?>" name="insurer_non_no" /></td>
<td width="100" height="25" class="bg_tr">电子保单发送状态</td>
<td height="25" class="td_bg">未发<input type="radio" value="1" name="el_insurance" <?php if($order_info->el_insurance==1) echo 'checked'?>/>已发<input type="radio" value="2" name="el_insurance" <?php if($order_info->el_insurance==2) echo 'checked'?>/></td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(5) name="navcell">▼财务信息</TD>
</tr>
</tbody>
</table>
<TABLE id=tb5 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<tr>
<td valign="top">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td class="bg_tr" align="center">非车险销售:<?=$order_info->user->getShowName()?></td>
<?php
if($order_info->op1_id > 0) {
echo '<td class="bg_tr" align="center">核保:'.$order_info->op1->getShowName().'</td>';
}
?>
</tr>
<tr>
<td class="bg_tr" align="center">销售比例</td>
<?php if($order_info->op1_id > 0) { ?>
<td class="bg_tr" align="center">核保比例</td>
<?php } ?>
</tr>
<tr>
<td class="td_bg" align="center"><input name="rate1" id="rate1" type="text" value="<?=$caiwu_info->rate1?>" style="width:50px;" onblur="cal_money('rate1','<?=$order_info->non_baofei?>','money1','<?=$order_info->total1_dis?>')">%</td>
<?php if($order_info->op1_id > 0) { ?>
<td class="td_bg" align="center"><input name="rate4" id="rate4" type="text" value="<?=$caiwu_info->rate4?>" style="width:100px;" onblur="cal_money('rate4','<?=$order_info->non_baofei?>','money4','0')">%</td>
<?php } ?>
</tr>
<tr>
<td class="bg_tr" align="center">非车险销售提成</td>
<?php if($order_info->op1_id > 0) { ?>
<td class="bg_tr" align="center">核保提成</td>
<?php } ?>
</tr>
<tr>
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->money1?>" style="width:100px;" readonly>元</td>
<?php if($order_info->op1_id > 0) { ?>
<td class="td_bg" align="center"><input name="money4" id="money4" type="text" value="<?=$caiwu_info->money4?>" style="width:100px;" onblur="cal_rate('money4','<?=$order_info->non_baofei?>','rate4','0')">元</td>
<?php } ?>
</tr>
</table>
</td>
</tr>
</TABLE>
<!--操作记录-->
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(6) name="navcell">▲操作记录</TD>
</tr>
</tbody>
</table>
<TABLE id=tb6 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
<TR>
<TD vAlign=top>
<div id="car_history_list"></div>
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="22" colspan="2" align="center" class="td_bg">
<?php
if($caiwu_info->status_id != 10)
{
?>
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/>
&nbsp;&nbsp;
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/>
&nbsp;&nbsp;
<?php
}
?>
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/>
&nbsp;&nbsp;
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 ">
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript" src="/js/common2.js"></script>
<script type="text/javascript" language="javascript">
//计算提成
function cal_money(obj1,val,obj2) {
var total = Number($('#' + obj1).val())/100 * Number(val);
$('#' + obj2).val(total.toFixed(2));
}
//计算
function cal_money2(obj1,obj2,obj3,dis) {
var total = Number($('#'+obj2).val())/100 * Number($('#' + obj1).val());
$('#' + obj3).val(total.toFixed(2));
}
function cal_rate(obj1,val,obj3,dis) {
if(Number(val) == 0) {
$('#' + obj3).val('0.00');
return;
}
var rate = (Number($('#' + obj1).val()))/Number(val) * 100 ;
$('#' + obj3).val(rate.toFixed(2));
}
//保单处理
function SaveOrder(status_id) {
var param = $('#orderFrm').serialize();
param = param + '&status_id=' + status_id;
$.post('/insurer/non-financial-settlement-save',param,function(obj){
if(obj.success) {
if(status_id == 10)
$('#back-btn').click();
else
alert(obj.msg);
} else {
alert(obj.msg);
}
},'json');
}
$(function(){
var schemeid=<?=$info->scheme_id?>;
if(schemeid){
$.post('/scheme/chaxun',{id:schemeid},function(obj){
if(obj.success) {
$('.baoer').html(obj.info.baoer);
$('.feiyong').html(obj.info.baofei);
}else{
$('.baoer').html('');
$('.feiyong').html('');
}
},'json');
}
//操作历史
gotoPage('/non-auto-insurance/ajax-history-index?non_id=<?=$info->id?>&page=1&t='+Math.random(),'car_history_list');
//放弃处理
$('#cancel-btn').click(function(){
if(confirm('是否确认放弃处理?')) {
$.post('/insurer/non-finance-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
if(obj.success) {
$('#back-btn').click();
} else {
alert(obj.msg);
}
},'json');
}
});
//保存
$('#save-btn').click(function(){
SaveOrder(13);
});
//提交
$('#submit-btn').click(function(){
if(confirm('是否提交此保单?')) {
SaveOrder(10);
}
});
//返回
$('#back-btn').click(function(){
window.location.href = '/insurer/non-financial-settlement-list?<?=$back_params?>';
});
});
</script>