|
|
@ -1,268 +1,235 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
use \common\libs\MyLib; |
|
|
|
use \common\libs\MyLib; |
|
|
|
use \common\models\PriceT; |
|
|
|
use common\models\PriceT; |
|
|
|
|
|
|
|
|
|
|
|
?> |
|
|
|
?> |
|
|
|
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
|
|
|
<?php $this->beginBlock('header_css'); ?> |
|
|
|
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
|
|
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
|
|
|
<tr> |
|
|
|
<?php $this->endBlock(); ?> |
|
|
|
<td height="22" colspan="2" class="td_bg"> |
|
|
|
|
|
|
|
<form id="orderFrm"> |
|
|
|
<div class="wrapper wrapper-content animated fadeInRight"> |
|
|
|
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable"> |
|
|
|
<form class="form-horizontal" id="orderFrm"> |
|
|
|
<tr> |
|
|
|
<input type="hidden" name="car_id" value="<?=$order_info->car_id?>">
|
|
|
|
<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;"> |
|
|
|
|
|
|
|
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">车牌号</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->car_no?></td>
|
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">厂牌型号</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->factory_model?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">品牌</td> |
|
|
|
|
|
|
|
<td width="120" height="25" class="td_bg"><?=$car_info->brand?$car_info->brand->name:''?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">车系</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->series?$car_info->series->name:''?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">发动机号</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->engine_no?></td>
|
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">车架号</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->car_frame_no?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">初登日期</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->register_date?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">排量</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->displacement?$car_info->displacement->name:''?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">车辆类型</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->carType?$car_info->carType->name:''?></td>
|
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">运营性质</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->carUse?$car_info->carUse->name:''?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">座位数</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->seats?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">年份</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->car_year?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">车主</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->car_man?></td>
|
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">联系电话</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$car_info->phone?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">证件号码</td> |
|
|
|
|
|
|
|
<td colspan="3" height="25" class="td_bg"><?=$car_info->car_man_number?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">备注</td> |
|
|
|
|
|
|
|
<td colspan="3" height="25" class="td_bg"><?=$car_info->remark?></td>
|
|
|
|
|
|
|
|
<td width="100" height="25" class="bg_tr">业务员</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$order_info->user?$order_info->user->getShowName():''?></td>
|
|
|
|
|
|
|
|
<td width="60" height="25" class="bg_tr">联系电话</td> |
|
|
|
|
|
|
|
<td height="25" class="td_bg"><?=$order_info->user?$order_info->user->phone:''?></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?>">
|
|
|
|
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
|
|
|
<tr> |
|
|
|
<input type="hidden" name="celuo_id" value="<?=$order_info->celuo_id?>">
|
|
|
|
<td class="bg_tr">被保险人</td> |
|
|
|
<input type="hidden" name="fanxian_id" value="<?=$order_info->fanxian_id?>">
|
|
|
|
<td class="td_bg"><?=$order_info->id_man?></td>
|
|
|
|
<div class="ibox float-e-margins"> |
|
|
|
<td class="bg_tr">证件号码</td> |
|
|
|
<div class="ibox-title"> |
|
|
|
<td class="td_bg"><?=$order_info->id_number?></td>
|
|
|
|
<h5>保单信息</h5> |
|
|
|
<td width="60" class="bg_tr">联系人</td> |
|
|
|
</div> |
|
|
|
<td class="td_bg"><?=$order_info->link_man?></td>
|
|
|
|
<div class="ibox-content"> |
|
|
|
<td width="60" class="bg_tr">联系电话</td> |
|
|
|
<table class="table table-bordered"> |
|
|
|
<td class="td_bg"><?=$order_info->link_phone?></td>
|
|
|
|
<tr> |
|
|
|
</tr> |
|
|
|
<th class="bg-warning">车牌号</th> |
|
|
|
<tr> |
|
|
|
<td><?=$order_info->car_no?></td>
|
|
|
|
<td class="bg_tr">保险公司</td> |
|
|
|
<th class="bg-warning" nowrap>初登日期</th> |
|
|
|
<td class="td_bg"><?=$order_info->company?$order_info->company->name:''?></td>
|
|
|
|
<td><?=$car_info->register_date?></td>
|
|
|
|
<td class="bg_tr">付款方式</td> |
|
|
|
<th class="bg-warning" nowrap>座位数</th> |
|
|
|
<td class="td_bg"><?=$order_info->shoufei_id?MyLib::zhifufs($order_info->shoufei_id).'-':''?><?=$order_info->payType?$order_info->payType->name:''?></td>
|
|
|
|
<td><?=$order_info->seats?></td>
|
|
|
|
<td class="bg_tr">电子邮件</td> |
|
|
|
<th class="bg-warning" nowrap>电子邮件</th> |
|
|
|
<td class="td_bg"><?=$order_info->email?></td>
|
|
|
|
<td><?=$order_info->email?></td>
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td class="bg_tr">商业起保日期</td> |
|
|
|
<th class="bg-warning">车型</th> |
|
|
|
<td class="td_bg"><?=$order_info->insurer1_begin_date?></td>
|
|
|
|
<td><?=$order_info->factory_model?></td>
|
|
|
|
<td class="bg_tr">交强起保日期</td> |
|
|
|
<th class="bg-warning" nowrap>发动机号</th> |
|
|
|
<td class="td_bg"><?=$order_info->insurer2_begin_date?></td>
|
|
|
|
<td><?=$order_info->engine_no?></td>
|
|
|
|
<td class="bg_tr">缴费单号</td> |
|
|
|
<th class="bg-warning" nowrap>车架号</th> |
|
|
|
<td colspan="3" class="td_bg"><?=$order_info->pay_no?></td>
|
|
|
|
<td><?=$order_info->car_frame_no?></td>
|
|
|
|
</tr> |
|
|
|
<th class="bg-warning" nowrap>新车购置价</th> |
|
|
|
<tr> |
|
|
|
<td><?=$order_info->purchase_price?></td>
|
|
|
|
<td class="bg_tr">商业保单号</td> |
|
|
|
</tr> |
|
|
|
<td class="td_bg"><?=$order_info->insurer1_no?></td>
|
|
|
|
<tr> |
|
|
|
<td class="bg_tr">交强保单号</td> |
|
|
|
<th class="bg-warning">车主</th> |
|
|
|
<td class="td_bg"><?=$order_info->insurer2_no?></td>
|
|
|
|
<td><?=$order_info->car_man?></td>
|
|
|
|
<td rowspan="3" class="bg_tr" valign="center">备注</td> |
|
|
|
<th class="bg-warning">证件类型</th> |
|
|
|
<td colspan="3" rowspan="3" valign="top" class="td_bg"><?=$order_info->remark?></td>
|
|
|
|
<td><?=$order_info->car_man_type?></td>
|
|
|
|
</tr> |
|
|
|
<th class="bg-warning">证件号码</th> |
|
|
|
<tr> |
|
|
|
<td><?=$order_info->car_man_number?></td>
|
|
|
|
<td class="bg_tr">送单地址</td> |
|
|
|
<th class="bg-warning">联系电话</th> |
|
|
|
<td colspan="3" class="td_bg"> |
|
|
|
<td><?=$order_info->car_man_phone?></td>
|
|
|
|
<?=$order_info->send_address?> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning">被投保人</th> |
|
|
|
|
|
|
|
<td><?=$order_info->id_man?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">证件类型</th> |
|
|
|
|
|
|
|
<td><?=$order_info->id_man_type?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">证件号码</th> |
|
|
|
|
|
|
|
<td><?=$order_info->id_man_number?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">联系电话</th> |
|
|
|
|
|
|
|
<td><?=$order_info->id_man_phone?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning">投保人</th> |
|
|
|
|
|
|
|
<td><?=$order_info->link_man?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">证件类型</th> |
|
|
|
|
|
|
|
<td><?=$order_info->link_man_type?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">证件号码</th> |
|
|
|
|
|
|
|
<td><?=$order_info->link_man_number?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">联系电话</th> |
|
|
|
|
|
|
|
<td><?=$order_info->link_man_phone?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning" nowrap>商业起保日期</th> |
|
|
|
|
|
|
|
<td><?=$order_info->insurer1_begin_date?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning" nowrap>交强起保日期</th> |
|
|
|
|
|
|
|
<td><?=$order_info->insurer2_begin_date?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">保险公司</th> |
|
|
|
|
|
|
|
<td><?=$order_info->company->name?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">车辆使用性质</th> |
|
|
|
|
|
|
|
<td><?=$order_info->car->carUse->name?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning" nowrap>商业保单号</th> |
|
|
|
|
|
|
|
<td><?=$order_info->insurer1_no?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning" nowrap>商业PDF文件</th> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<?php if($order_info->shangye_src != '') { ?> |
|
|
|
|
|
|
|
<a href="<?=$order_info->shangye_src?>"><i class="fa fa-image">保单</i></a>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if($order_info->fapiao_src != '') { ?> |
|
|
|
|
|
|
|
<a href="<?=$order_info->fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<th class="bg-warning">交强保单号</th> |
|
|
|
|
|
|
|
<td><?=$order_info->insurer2_no?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">交强PDF文件</th> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<?php if($order_info->jiaoqiang_src != '') { ?> |
|
|
|
|
|
|
|
<a href="<?=$order_info->jiaoqiang_src?>"><i class="fa fa-image">保单</i></a>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if($order_info->jq_fapiao_src != '') { ?> |
|
|
|
|
|
|
|
<a href="<?=$order_info->jq_fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
</TD> |
|
|
|
</div> |
|
|
|
</TR> |
|
|
|
</div> |
|
|
|
</TABLE> |
|
|
|
<div class="ibox float-e-margins"> |
|
|
|
<table> |
|
|
|
<div class="ibox-title"> |
|
|
|
<tbody> |
|
|
|
<h5>险种</h5> |
|
|
|
<tr> |
|
|
|
</div> |
|
|
|
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(3) name="navcell">▼险种信息</TD> |
|
|
|
<div class="ibox-content"> |
|
|
|
</tr> |
|
|
|
<table class="table table-bordered"> |
|
|
|
</tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
<TABLE id=tb3 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
|
|
|
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td valign="top"> |
|
|
|
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout:fixed;"> |
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
|
$xianzhong = '<tr><td class="bg_tr">险种</td>'; |
|
|
|
$len = count($insurer_type_items); |
|
|
|
$neirong = '<tr><td class="bg_tr">内容</td>'; |
|
|
|
$index = 0; |
|
|
|
$bujimianpei = '<tr><td class="bg_tr">不计免赔</td>'; |
|
|
|
for($i = 0; $i < $len; $i++) { |
|
|
|
foreach ($new_array as $k=>$v){ |
|
|
|
$item = $insurer_type_items[$i]; |
|
|
|
$xianzhong .= "<td align='center' class='bg_tr'>".$v['zl']."</td>"; |
|
|
|
$order_id = $order_info->id; |
|
|
|
$neirong .= "<td align='center' class='td_bg'>".$v['neir']."</td>"; |
|
|
|
if(!$order_id) |
|
|
|
$bujimianpei .= "<td align='center' class='td_bg'>".$v['bjmp']."</td>"; |
|
|
|
$order_id = 0; |
|
|
|
|
|
|
|
$tmp_row = PriceT::find() |
|
|
|
|
|
|
|
->where('order_id='.$order_id.' and type_id='.$item->id) |
|
|
|
|
|
|
|
->one(); |
|
|
|
|
|
|
|
if(!$tmp_row || $tmp_row->val == '' || $tmp_row->val == '否') continue; |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<th class="bg-warning"> |
|
|
|
|
|
|
|
<?=$item->name?>(<?=$item->code?>)
|
|
|
|
|
|
|
|
</th> |
|
|
|
|
|
|
|
<td><?=$tmp_row->val?></td>
|
|
|
|
|
|
|
|
<td><?=($tmp_row->is_nopay == 1)?'不计免赔':''?></td>
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
if(($index+1)%3==0) { |
|
|
|
|
|
|
|
echo '</tr>'; |
|
|
|
|
|
|
|
echo '<tr>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$index++; |
|
|
|
} |
|
|
|
} |
|
|
|
echo $xianzhong.'</tr>'.$neirong.'</tr>'.$bujimianpei.'</tr>'; |
|
|
|
|
|
|
|
?> |
|
|
|
?> |
|
|
|
</table> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</TABLE> |
|
|
|
|
|
|
|
<table> |
|
|
|
|
|
|
|
<tbody> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(4) name="navcell">▼保费信息</TD> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
<TABLE id=tb4 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td valign="top"> |
|
|
|
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout:fixed;"> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="bg_tr">商业总净保费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total1_clear?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">商业含税总保费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total1?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">交强总净保费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total2_clear?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">交强含税总保费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total2?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="bg_tr">车船税</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total3?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">共计签单</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total_all?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">折扣后商业净保费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total1_real?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">减免金额</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total1_dis?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="bg_tr">商业折扣率</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total1_percent?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">应收</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total_real?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">商业手续费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total1_rate?></td>
|
|
|
|
|
|
|
|
<td class="bg_tr">交强手续费</td> |
|
|
|
|
|
|
|
<td class="td_bg"><?=$order_info->total2_rate?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="bg_tr">备注</td> |
|
|
|
|
|
|
|
<td colspan="7" class="td_bg"><?=$order_info->price_remark?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
|
|
</div> |
|
|
|
<tr> |
|
|
|
</div> |
|
|
|
<td class="bg_tr">商业补点比例</td> |
|
|
|
<div class="ibox float-e-margins"> |
|
|
|
<td class="td_bg"><input type="Text" name="budian_rate" id="budian_rate" value="<?=$caiwu_info->budian_rate?>" class="supplement_proportion" onblur="cal_money('budian_rate','<?=$order_info->total1_clear?>','budian_money');"/>%</td>
|
|
|
|
<div class="ibox-title"> |
|
|
|
<td class="bg_tr">商业补点手续费</td> |
|
|
|
<h5>保费信息</h5> |
|
|
|
<td class="td_bg"><input type="Text" name="budian_money" id="budian_money" value="<?=$caiwu_info->budian_money?>" readonly class="supplement_servicecharge" /></td>
|
|
|
|
</div> |
|
|
|
<td class="bg_tr"></td> |
|
|
|
<div class="ibox-content"> |
|
|
|
<td class="td_bg"></td> |
|
|
|
<table class="table table-bordered"> |
|
|
|
<td class="bg_tr"></td> |
|
|
|
<tr> |
|
|
|
<td class="td_bg"></td> |
|
|
|
<th class="bg-warning">商业总净保费</th> |
|
|
|
</tr> |
|
|
|
<td><?=$order_info->total1_clear?></td>
|
|
|
|
<tr> |
|
|
|
<th class="bg-warning">商业含税总保费</th> |
|
|
|
<td class="bg_tr">商业退保保费</td> |
|
|
|
<td><?=$order_info->total1?></td>
|
|
|
|
<td class="td_bg"><input type="Text" name="business_back_money" id="business_back_money" value="<?=$caiwu_info->business_back_money?>" class="sy_tb_retreat" onblur="cal_money2('business_back_money','business_back_rate','business_back_routine');"/></td>
|
|
|
|
<th class="bg-warning">车船税</th> |
|
|
|
<td class="bg_tr">退保手续费比例</td> |
|
|
|
<td><?=$order_info->total3?></td>
|
|
|
|
<td class="td_bg"><input type="Text" name="business_back_rate" id="business_back_rate" value="<?=$caiwu_info->business_back_rate?>" class="sy_tb_bili" onblur="cal_money2('business_back_money','business_back_rate','business_back_routine');"/>%</td>
|
|
|
|
</tr> |
|
|
|
<td class="bg_tr">商业退保手续费</td> |
|
|
|
<tr> |
|
|
|
<td class="td_bg"><input type="Text" name="business_back_routine" id="business_back_routine" value="<?=$caiwu_info->business_back_routine?>" class="jq_tb_routine" readonly /></td>
|
|
|
|
<th class="bg-warning">交强总净保费</th> |
|
|
|
<td class="bg_tr">商业退保日期</td> |
|
|
|
<td><?=$order_info->total2_clear?></td>
|
|
|
|
<td class="td_bg"><input type="Text" name="business_back_date" id="business_back_date" value="<?=$caiwu_info->business_back_date?>" class="Wdate" onClick="WdatePicker()" /></td>
|
|
|
|
<th class="bg-warning">交强含税总保费</th> |
|
|
|
</tr> |
|
|
|
<td><?=$order_info->total2?></td>
|
|
|
|
<tr> |
|
|
|
<th class="bg-warning">业务自付金额</th> |
|
|
|
<td class="bg_tr">交强退保保费</td> |
|
|
|
<td><?=$order_info->yuangong_money?></td>
|
|
|
|
<td class="td_bg"><input type="Text" name="force_back_money" id="force_back_money" value="<?=$caiwu_info->force_back_money?>" class="jq_tb_retreat" onblur="cal_money2('force_back_money','force_back_rate','force_back_routine');"/></td>
|
|
|
|
</tr> |
|
|
|
<td class="bg_tr">退保手续费比例</td> |
|
|
|
<tr> |
|
|
|
<td class="td_bg"><input type="Text" name="force_back_rate" id="force_back_rate" value="<?=$caiwu_info->force_back_rate?>" class="jq_tb_bili" onblur="cal_money2('force_back_money','force_back_rate','force_back_routine');"/>%</td>
|
|
|
|
<th class="bg-warning">折扣后商业净保费</th> |
|
|
|
<td class="bg_tr">交强退保手续费</td> |
|
|
|
<td><?=$order_info->total1_real?></td>
|
|
|
|
<td class="td_bg"><input type="Text" name="force_back_routine" id="force_back_routine" value="<?=$caiwu_info->force_back_routine?>" class="jq_tb_routine" readonly /></td>
|
|
|
|
<th class="bg-warning">减免金额</th> |
|
|
|
<td class="bg_tr">交强退保日期</td> |
|
|
|
<td><?=$order_info->total1_dis?></td>
|
|
|
|
<td class="td_bg"><input type="Text" name="force_back_date" id="force_back_date" value="<?=$caiwu_info->force_back_date?>" class="Wdate" onClick="WdatePicker()" /></td>
|
|
|
|
<th class="bg-warning">商业折扣率</th> |
|
|
|
|
|
|
|
<td><?=$order_info->total1_percent?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning">共计签单</th> |
|
|
|
|
|
|
|
<td><?=$order_info->total_all?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">应收</th> |
|
|
|
|
|
|
|
<td><?=$order_info->total_real?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">支付方式</th> |
|
|
|
|
|
|
|
<td><?=$order_info->payType ? $order_info->payType->name : ''?></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning">备注</th> |
|
|
|
|
|
|
|
<td colspan="5"><?=$order_info->price_remark?></td>
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</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><?=$order_info->total1_dis?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">业务自付金额</th> |
|
|
|
|
|
|
|
<td><?=$order_info->yuangong_money?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning">实返金额</th> |
|
|
|
|
|
|
|
<td><?=number_format($order_info->total1_dis + $order_info->yuangong_money,2)?></td>
|
|
|
|
|
|
|
|
<th class="bg-warning"></th> |
|
|
|
|
|
|
|
<td></td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th class="bg-warning">领款人</th> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<input type="text" name="money_man" value="<?=$caiwu_info->money_man?>" class="form-control">
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<th class="bg-warning">开户行</th> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<input type="text" name="money_bank" value="<?=$caiwu_info->money_bank?>" class="form-control">
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<th class="bg-warning">银行账号</th> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<input type="text" name="money_no" value="<?=$caiwu_info->money_no?>" class="form-control">
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<th class="bg-warning">转账日期</th> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<input type="text" name="transfer_date" id="transfer_date" value="<?=$caiwu_info->transfer_date?>" class="form-control">
|
|
|
|
</td> |
|
|
|
</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" style="table-layout:fixed;"> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="bg_tr"><span style="color:#ff0000">*</span>领款人</td> |
|
|
|
|
|
|
|
<td class="td_bg"><input name="money_man" id="money_man" type="text" value="<?=$caiwu_info->money_man?>" style="width:120px;"></td>
|
|
|
|
|
|
|
|
<td class="bg_tr"><span style="color:#ff0000">*</span>银行账号</td> |
|
|
|
|
|
|
|
<td class="td_bg"><input name="money_no" id="money_no" type="text" value="<?=$caiwu_info->money_no?>" style="width:120px;"></td>
|
|
|
|
|
|
|
|
<td class="bg_tr"><span style="color:#ff0000">*</span>开户行</td> |
|
|
|
|
|
|
|
<td class="td_bg"><input name="money_bank" id="money_bank" type="text" value="<?=$caiwu_info->money_bank?>" style="width:120px;"></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td class="bg_tr">转账日期</td> |
|
|
|
<th class="bg-warning">转账金额</th> |
|
|
|
<td class="td_bg"><input class="Wdate" name="transfer_date" id="transfer_date" type="text" value="<?=$caiwu_info->transfer_date?>" style="width:120px;" onClick="WdatePicker()"></td>
|
|
|
|
<td> |
|
|
|
<td class="bg_tr">转账金额</td> |
|
|
|
<input type="text" name="transfer_money" value="<?=$caiwu_info->transfer_money>0?$caiwu_info->transfer_money:round($order_info->total1_dis+$order_info->yuangong_money,2)?>" class="form-control">
|
|
|
|
<td class="td_bg"><input name="transfer_money" id="transfer_money" type="text" value="<?=$caiwu_info->transfer_money>0?$caiwu_info->transfer_money:$order_info->total1_dis?>" style="width:120px;"></td>
|
|
|
|
</td> |
|
|
|
<td class="bg_tr">转账银行</td> |
|
|
|
<th class="bg-warning">转账银行</th> |
|
|
|
<td class="td_bg"> |
|
|
|
<td> |
|
|
|
<select name="transfer_bank_id"> |
|
|
|
<select name="transfer_bank_id" class="form-control"> |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
foreach($banks as $bank) { |
|
|
|
foreach($banks as $bank) { |
|
|
|
echo '<option value="'.$bank->id.'"'; |
|
|
|
echo '<option value="'.$bank->id.'"'; |
|
|
@ -273,13 +240,13 @@ use \common\models\PriceT; |
|
|
|
?> |
|
|
|
?> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<th class="bg-warning">银行流水号</th> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<td class="bg_tr">银行流水号</td> |
|
|
|
<input type="text" name="transfer_bank_no" value="<?=$caiwu_info->transfer_bank_no?>" class="form-control">
|
|
|
|
<td colspan="3" class="td_bg"><input name="transfer_bank_no" id="transfer_bank_no" type="text" value="<?=$caiwu_info->transfer_bank_no?>" style="width:200px;"></td>
|
|
|
|
</td> |
|
|
|
<td class="bg_tr">转账状态</td> |
|
|
|
<th class="bg-warning">转账状态</th> |
|
|
|
<td class="td_bg"> |
|
|
|
<td> |
|
|
|
<select name="caiwu_status_id"> |
|
|
|
<select name="caiwu_status_id" class="form-control"> |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
echo '<option value="0">无操作</option>'; |
|
|
|
echo '<option value="0">无操作</option>'; |
|
|
|
foreach($caiwu_status as $item){ |
|
|
|
foreach($caiwu_status as $item){ |
|
|
@ -292,280 +259,124 @@ use \common\models\PriceT; |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
|
|
<div> |
|
|
|
<tr> |
|
|
|
<div class="row"> |
|
|
|
<td class="bg_tr" align="center">新保:<?=$car_info->op_user1?></td>
|
|
|
|
<div class="col-sm-12 text-center"> |
|
|
|
<?php |
|
|
|
<button type="button" class="btn btn-primary btn-cancel" type="button"> |
|
|
|
if($car_info->op_user3 != '') { |
|
|
|
<strong>放弃处理</strong> |
|
|
|
?> |
|
|
|
</button> |
|
|
|
<td class="bg_tr" align="center">跟踪:<?=$car_info->op_user2?></td>
|
|
|
|
<button type="button" class="btn btn-primary btn-save" type="button"> |
|
|
|
<td class="bg_tr" align="center">续保:<?=$car_info->op_user3?></td>
|
|
|
|
<strong>保 存</strong> |
|
|
|
<?php |
|
|
|
</button> |
|
|
|
} |
|
|
|
<button type="button" class="btn btn-primary btn-submit" type="button"> |
|
|
|
?> |
|
|
|
<strong>提 交</strong> |
|
|
|
<td class="bg_tr" align="center">送单费:<?=$order_info->sendLog?$order_info->sendLog->user->getShowName():''?></td>
|
|
|
|
</button> |
|
|
|
<?php |
|
|
|
</div> |
|
|
|
if($order_info->op1_id > 0) { |
|
|
|
</div> |
|
|
|
echo '<td class="bg_tr" align="center">核保:'.$order_info->op1->getShowName().'</td>'; |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
if($order_info->op2_id > 0) { |
|
|
|
</div> |
|
|
|
echo '<td class="bg_tr" align="center">正本:'.$order_info->op2->getShowName().'</td>'; |
|
|
|
<div class="ibox float-e-margins"> |
|
|
|
} |
|
|
|
<div class="ibox-title"> |
|
|
|
?> |
|
|
|
<h5>操作记录</h5> |
|
|
|
</tr> |
|
|
|
<div class="ibox-tools"> |
|
|
|
<tr> |
|
|
|
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#logTable').bootstrapTable('refresh');"> |
|
|
|
<td class="bg_tr" align="center">新保比例</td> |
|
|
|
<i class="fa fa-refresh"></i> 刷新 |
|
|
|
<?php |
|
|
|
</a> |
|
|
|
if($car_info->op_user3 != '') { |
|
|
|
</div> |
|
|
|
?> |
|
|
|
</div> |
|
|
|
<td class="bg_tr" align="center">跟踪比例</td> |
|
|
|
<div class="ibox-content"> |
|
|
|
<td class="bg_tr" align="center">续保比例</td> |
|
|
|
<table id="logTable"> |
|
|
|
<?php |
|
|
|
<thead> |
|
|
|
} |
|
|
|
<tr> |
|
|
|
?> |
|
|
|
<th data-field="op_man">操作者</th> |
|
|
|
<td class="bg_tr" align="center">送单比例</td> |
|
|
|
<th data-field="op_time">操作时间</th> |
|
|
|
<?php if($order_info->op1_id > 0) { ?> |
|
|
|
<th data-field="remark">操作内容</th> |
|
|
|
<td class="bg_tr" align="center">核保比例</td> |
|
|
|
</tr> |
|
|
|
<?php } ?> |
|
|
|
</thead> |
|
|
|
<?php if($order_info->op2_id > 0) { ?> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">正本比例</td> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
if($car_info->op_user3 != '') { |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<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->total1_clear?>','money1','0')">%</td>
|
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="rate2" id="rate2" type="text" value="<?=$caiwu_info->rate2?>" style="width:50px;" onblur="cal_money('rate2','<?=$order_info->total1_clear?>','money2','0')">%</td>
|
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="rate3" id="rate3" type="text" value="<?=$caiwu_info->rate3?>" style="width:50px;" onblur="cal_money('rate3','<?=$order_info->total1_clear?>','money3','<?=$order_info->total1_dis?>')">%</td>
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<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->total1_clear?>','money1','<?=$order_info->total1_dis?>')">%</td>
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="send_rate" id="send_rate" type="text" value="<?=$caiwu_info->send_rate?>" style="width:100px;" readonly>%</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->total1_clear?>','money4','0')">%</td>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if($order_info->op2_id > 0) { ?> |
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="rate5" id="rate5" type="text" value="<?=$caiwu_info->rate5?>" style="width:100px;" onblur="cal_money('rate5','<?=$order_info->total1_clear?>','money5','0')">%</td>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">新保提成</td> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
if($car_info->op_user3 != '') { |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">跟踪提成</td> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">续保提成</td> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">送单提成</td> |
|
|
|
|
|
|
|
<?php if($order_info->op1_id > 0) { ?> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">核保提成</td> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if($order_info->op2_id > 0) { ?> |
|
|
|
|
|
|
|
<td class="bg_tr" align="center">正本提成</td> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
if($car_info->op_user3 != '') { |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate1)?>" style="width:100px;" readonly>元</td>
|
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="money2" id="money2" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate2)?>" style="width:100px;" readonly>元</td>
|
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="money3" id="money3" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate3)?>" style="width:100px;" readonly>元</td>
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate1)?>" style="width:100px;" readonly>元</td>
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="send_money" id="send_money" type="text" value="<?=$caiwu_info->send_money?>" style="width:100px;" onblur="cal_rate('send_money','<?=$order_info->total1_clear?>','send_rate','0')">元</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->total1_clear?>','rate4','0')">元</td>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if($order_info->op2_id > 0) { ?> |
|
|
|
|
|
|
|
<td class="td_bg" align="center"><input name="money5" id="money5" type="text" value="<?=$caiwu_info->money5?>" style="width:100px;" onblur="cal_rate('money5','<?=$order_info->total1_clear?>','rate5','0')">元</td>
|
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td colspan="6" class="bg_tr">实物</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
$index = 0; |
|
|
|
|
|
|
|
foreach($sel_gifts as $order_gift) { |
|
|
|
|
|
|
|
if($order_gift->gift->type == 1) continue; |
|
|
|
|
|
|
|
if($index > 0 && $index%3 == 0) { |
|
|
|
|
|
|
|
echo '</tr><tr>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td width="250" class="bg_tr"><?=$order_gift->gift->name?></td>
|
|
|
|
|
|
|
|
<td class="td_bg"> |
|
|
|
|
|
|
|
<input type="hidden" name="gift_ids[]" value="<?=$order_gift->id?>">
|
|
|
|
|
|
|
|
<input type="hidden" name="gift_rates[]" value="0"> |
|
|
|
|
|
|
|
<input name="gift_prices[]" type="text" value="<?=$order_gift->price?>" style="width:60px;">元
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
$index++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($index>0) { |
|
|
|
|
|
|
|
while($index%3!=0) { |
|
|
|
|
|
|
|
echo '<td class="td_bg"></td>'; |
|
|
|
|
|
|
|
echo '<td class="td_bg"></td>'; |
|
|
|
|
|
|
|
$index++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td colspan="9" class="bg_tr">礼券</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
$index = 0; |
|
|
|
|
|
|
|
foreach($sel_gifts as $order_gift) { |
|
|
|
|
|
|
|
if($order_gift->gift->type == 0) continue; |
|
|
|
|
|
|
|
if($index > 0 && $index%3 == 0) { |
|
|
|
|
|
|
|
echo '</tr><tr>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$index++; |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<td width="150" class="bg_tr"><?=$order_gift->gift->name?></td>
|
|
|
|
|
|
|
|
<td class="td_bg"> |
|
|
|
|
|
|
|
<input type="hidden" name="gift_ids[]" value="<?=$order_gift->id?>">
|
|
|
|
|
|
|
|
<input name="gift_rates[]" id="gift_rates_<?=$order_gift->id?>" type="text" value="<?=$order_gift->rate?>" style="width:60px;" onblur="cal_money('gift_rates_<?=$order_gift->id?>','<?=$order_info->total1_clear?>','gift_prices_<?=$order_gift->id?>','0')">%
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="td_bg"> |
|
|
|
|
|
|
|
<input name="gift_prices[]" id="gift_prices_<?=$order_gift->id?>" type="text" value="<?=$order_gift->price?>" style="width:60px;" readonly>元
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($index>0) { |
|
|
|
|
|
|
|
while($index%3!=0) { |
|
|
|
|
|
|
|
echo '<td class="td_bg"></td>'; |
|
|
|
|
|
|
|
echo '<td class="td_bg"></td>'; |
|
|
|
|
|
|
|
echo '<td class="td_bg"></td>'; |
|
|
|
|
|
|
|
$index++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
</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> |
|
|
|
</table> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</td> |
|
|
|
</div> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td height="22" colspan="2" align="center" class="td_bg"> |
|
|
|
|
|
|
|
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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> |
|
|
|
<?php $this->beginBlock('footer_js'); ?> |
|
|
|
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
|
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
|
|
|
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
|
|
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
|
|
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
|
|
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
|
|
|
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
|
|
|
<script> |
|
|
|
<script type="text/javascript" language="javascript"> |
|
|
|
var o = {}; |
|
|
|
//计算提成 |
|
|
|
//判断是否填写了选项 |
|
|
|
function cal_money(obj1,val,obj2) { |
|
|
|
function isNull(data){ |
|
|
|
var total = Number($('#' + obj1).val())/100 * Number(val); |
|
|
|
if(data == "" || data == undefined || data == null){ |
|
|
|
$('#' + obj2).val(total.toFixed(2)); |
|
|
|
return true; |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
//计算 |
|
|
|
|
|
|
|
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) { |
|
|
|
function saveOrder(status_id) { |
|
|
|
$('#' + obj3).val('0.00'); |
|
|
|
var params = $('#orderFrm').serialize(); |
|
|
|
return; |
|
|
|
params = params + '&status_id=' + status_id; |
|
|
|
|
|
|
|
$.post('/insurer/finance-mng-save',params,function(obj){ |
|
|
|
|
|
|
|
parent.layer.msg(obj.msg); |
|
|
|
|
|
|
|
if(obj.success && status_id==10) { |
|
|
|
|
|
|
|
parent.refreshList(); |
|
|
|
|
|
|
|
layer_close(); |
|
|
|
} |
|
|
|
} |
|
|
|
var rate = (Number($('#' + obj1).val()))/Number(val) * 100 ; |
|
|
|
},'json'); |
|
|
|
$('#' + obj3).val(rate.toFixed(2)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//保单处理 |
|
|
|
//操作记录 |
|
|
|
function SaveOrder(status_id) { |
|
|
|
function searchOps() { |
|
|
|
var param = $('#orderFrm').serialize(); |
|
|
|
$('#logTable').bootstrapTable('destroy'); |
|
|
|
param = param + '&status_id=' + status_id; |
|
|
|
$('#logTable').bootstrapTable({ |
|
|
|
$.post('/insurer/finance-mng-save',param,function(obj){ |
|
|
|
url: "/car/history-json", |
|
|
|
if(obj.success) { |
|
|
|
pagination: true, |
|
|
|
if(status_id == 13) |
|
|
|
sidePagination: 'server', |
|
|
|
$('#back-btn').click(); |
|
|
|
multipleSelectRow: true, |
|
|
|
else |
|
|
|
queryParams: function(params) { |
|
|
|
alert(obj.msg); |
|
|
|
o['car_id'] = '<?=$order_info->car_id?>';
|
|
|
|
} else { |
|
|
|
o['limit'] = params['limit']; |
|
|
|
alert(obj.msg); |
|
|
|
o['offset'] = params['offset']; |
|
|
|
|
|
|
|
return o; |
|
|
|
} |
|
|
|
} |
|
|
|
},'json'); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
|
$(function() { |
|
|
|
//操作历史 |
|
|
|
searchOps(); |
|
|
|
gotoPage('/car/ajax-history-index-xubao?car_id=<?=$car_info->id?>&page=1','car_history_list');
|
|
|
|
$('#transfer_date').datepicker({ |
|
|
|
//放弃处理 |
|
|
|
todayBtn: "linked", |
|
|
|
$('#cancel-btn').click(function(){ |
|
|
|
keyboardNavigation: false, |
|
|
|
if(confirm('是否确认放弃处理?')) { |
|
|
|
forceParse: false, |
|
|
|
|
|
|
|
calendarWeeks: true, |
|
|
|
|
|
|
|
autoclose: true |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
$('.btn-cancel').click(function(){ |
|
|
|
|
|
|
|
parent.layer.confirm('是否确认放弃处理?', { |
|
|
|
|
|
|
|
btn: ['确认','取消'], //按钮 |
|
|
|
|
|
|
|
shade: false //不显示遮罩 |
|
|
|
|
|
|
|
}, function(){ |
|
|
|
|
|
|
|
var params = $("#theFrm").serialize(); |
|
|
|
$.post('/insurer/finance-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
|
|
|
$.post('/insurer/finance-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
|
|
|
|
|
|
|
parent.layer.msg(obj.msg); |
|
|
|
if(obj.success) { |
|
|
|
if(obj.success) { |
|
|
|
$('#back-btn').click(); |
|
|
|
parent.refreshList(); |
|
|
|
} else { |
|
|
|
layer_close(); |
|
|
|
alert(obj.msg); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
},'json'); |
|
|
|
},'json'); |
|
|
|
} |
|
|
|
}, function(){ |
|
|
|
|
|
|
|
// |
|
|
|
}); |
|
|
|
}); |
|
|
|
//保存 |
|
|
|
|
|
|
|
$('#save-btn').click(function(){ |
|
|
|
|
|
|
|
SaveOrder(12); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
//提交 |
|
|
|
$('.btn-save').click(function(){ |
|
|
|
$('#submit-btn').click(function(){ |
|
|
|
saveOrder(12); |
|
|
|
if(confirm('是否提交此保单?')) { |
|
|
|
|
|
|
|
SaveOrder(13); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$('.btn-submit').click(function(){ |
|
|
|
//返回 |
|
|
|
saveOrder(10); |
|
|
|
$('#back-btn').click(function(){ |
|
|
|
|
|
|
|
window.location.href = '/insurer/finance-mng?<?=$back_params?>';
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
<?php $this->endBlock(); ?> |
|
|
|