parent
72d6e31c57
commit
ae2e96ce3e
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,74 @@ |
|||||||
|
<?php |
||||||
|
use \common\libs\MyLib; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
|
<div class="ibox float-e-margins"> |
||||||
|
<div class="ibox-content"> |
||||||
|
<form role="form" class="form-inline" id="searchFrm"> |
||||||
|
<div class="form-group"> |
||||||
|
<label for="username">搜索工号</label> |
||||||
|
<input type="text" id="username" name="username" class="form-control" autocomplete="off"> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label for="group_id">级别</label> |
||||||
|
<select name="group_id" id="group_id" class="form-control"> |
||||||
|
<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> |
||||||
|
</div> |
||||||
|
<button type="button" onclick="search()" class="form-control">搜索</button> |
||||||
|
</form> |
||||||
|
<hr> |
||||||
|
<form role="form" id="theFrm" class="form-horizontal"> |
||||||
|
<div class="form-group"> |
||||||
|
<div class="col-sm-12" id="users"></div> |
||||||
|
</div> |
||||||
|
<button type="button" class="col-sm-offset-2 btn btn-primary btn-save">添加</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<?php $this->beginBlock('footer_js'); ?> |
||||||
|
<script type="text/javascript" language="javascript"> |
||||||
|
function search() { |
||||||
|
var params = $('#searchFrm').serialize(); |
||||||
|
$('#users').html(''); |
||||||
|
$.get('/finance/sel-user-search?' + params, function(obj) { |
||||||
|
if(obj.success) { |
||||||
|
obj.users.forEach(function(item, index) { |
||||||
|
var html = '<div class="checkbox checkbox-inline">'; |
||||||
|
html += '<input type="checkbox" id="user_' + item.id + '" name="ids[]" value="' + item.username + '">'; |
||||||
|
html += '<label for="user_' + item.id + '"> ' + item.name + ' </label>'; |
||||||
|
html += '</div>'; |
||||||
|
$('#users').html( $('#users').html() + html); |
||||||
|
}); |
||||||
|
} |
||||||
|
},'json'); |
||||||
|
} |
||||||
|
|
||||||
|
$(function () { |
||||||
|
search(); |
||||||
|
|
||||||
|
//提交按钮 |
||||||
|
$(".btn-save").click(function(){ |
||||||
|
var str = []; |
||||||
|
$('input:checkbox:checked').each(function(index, item) { |
||||||
|
str.push($(item).val()); |
||||||
|
}); |
||||||
|
parent.$('#<?=$id_name?>').val(str.join(','));
|
||||||
|
layer_close(); |
||||||
|
}); |
||||||
|
}) |
||||||
|
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
@ -1,369 +1,239 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
use common\models\OrderGiftT; |
|
||||||
?> |
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<form id="searchForm"> |
<?php $this->endBlock(); ?> |
||||||
<tr> |
|
||||||
<td class="td_bg"> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
<!--新增搜索项--> |
<div class="ibox float-e-margins"> |
||||||
<!--完成程度--> |
<div class="ibox-title"> |
||||||
业务员:<input name="user_names" id="user_names" user_ids="" type="text" style="width:60%;" value="<?=$user_names?>">
|
<h5>车险提成管理</h5> |
||||||
<br>模糊<input name="select_user" id="select_user" type="text" style="width:100px;" value=""> |
<div class="ibox-tools"> |
||||||
<input type="checkbox" id="all" value="1">全选 |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
<input type="checkbox" id="no_num" value="1">非数字 |
<i class="fa fa-refresh"></i> 刷新 |
||||||
<input type="button" class="act_btn" id="add-user" name="add-user" value="+工号"> |
</a> |
||||||
<input type="checkbox" id="is_fan" value="1" <?=$is_fan==1?'checked':''?>>取反
|
</div> |
||||||
|
</div> |
||||||
<br> |
<div class="ibox-content"> |
||||||
|
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();"> |
||||||
车牌类型:<select name="car_no_type"> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="car_no">业务员</label> |
||||||
|
<div class="input-group"> |
||||||
|
<input type="text" id="user_names" name="user_names" class="form-control"> |
||||||
|
<a class="input-group-addon" onclick="selUserDlg('user_names')">+</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="engine_no">车牌类型</label> |
||||||
|
<select name="car_no_type" class="form-control"> |
||||||
<option value="0" >所有类型</option> |
<option value="0" >所有类型</option> |
||||||
<option value="1" <?= $car_no_type == 1 ? 'selected': ''?>>京牌</option>
|
<option value="1">京牌</option> |
||||||
<option value="2" <?= $car_no_type == 2 ? 'selected': ''?>>非京牌</option>
|
<option value="2">非京牌</option> |
||||||
<option value="3" <?= $car_no_type == 3 ? 'selected': ''?>>特殊车辆</option>
|
|
||||||
</select> |
|
||||||
|
|
||||||
险种类型:<select name="insurer_type"> |
|
||||||
<option value="1" <?= $insurer_type == 1 ? 'selected': ''?>>商业</option>
|
|
||||||
<option value="2" <?= $insurer_type == 2 ? 'selected': ''?>>商业+交强</option>
|
|
||||||
</select> |
</select> |
||||||
|
</div> |
||||||
保险公司:<select name="company_id"> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
<option value="0">所有公司</option> |
<label for="engine_no">保险公司</label> |
||||||
|
<select name="company_id" class="form-control"> |
||||||
|
<option value="0">全部</option> |
||||||
<?php |
<?php |
||||||
foreach($company_items as $item) { |
foreach($company_items as $item) { |
||||||
echo '<option value="'.$item->id.'"'; |
echo '<option value="'.$item->id.'">'.$item->name.'</option>'; |
||||||
if($item->id == $company_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$item->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
?> |
||||||
</select> |
</select> |
||||||
车牌号:<input name="car_no" type="text" value="<?=$car_no?>">
|
</div> |
||||||
<!--日期--> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
出单日期: |
<label for="engine_no">险种类型</label> |
||||||
<input type="Text" class="Wdate" name="begin_date" onclick="WdatePicker()" value="<?= $begin_date ?>" autocomplete="off" />
|
<select name="insurer_type" class="form-control"> |
||||||
-- |
<option value="1">商业</option> |
||||||
<input type="Text" class="Wdate" name="end_date" onclick="WdatePicker()" value="<?= $end_date ?>" autocomplete="off"/>
|
<option value="2">商业+交强</option> |
||||||
<br>商业净保费: |
</select> |
||||||
<input type="Text" class="" name="begin_totalclear" " value="<?= $begin_totalclear ?>" />
|
</div> |
||||||
-- |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
<input type="Text" class="" name="end_totalclear" " value="<?= $end_totalclear?>" />
|
<label for="engine_no">车牌号</label> |
||||||
级别:<select name="group_id"> |
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="datepicker1">出单日期</label> |
||||||
|
<div class="input-group input-daterange" id="datepicker1"> |
||||||
|
<input type="text" class="input-sm form-control" id="begin_date" name="begin_date" value="" autocomplete="off" /> |
||||||
|
<span class="input-group-addon">到</span> |
||||||
|
<input type="text" class="input-sm form-control" id="end_date" name="end_date" value="" autocomplete="off" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="engine_no">商业净保费</label> |
||||||
|
<div class="input-group"> |
||||||
|
<input type="text" id="begin_totalclear" name="begin_totalclear" class="form-control"> |
||||||
|
<div class="input-group-addon">-</div> |
||||||
|
<input type="text" id="end_totalclear" name="end_totalclear" class="form-control"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="engine_no">级别</label> |
||||||
|
<select name="group_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<?php |
<?php |
||||||
foreach($group_items as $item) { |
foreach($group_items as $item) { |
||||||
echo '<option value="'.$item->id.'"'; |
echo '<option value="'.$item->id.'">'.$item->name.'</option>'; |
||||||
if($item->id == $group_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$item->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
?> |
||||||
</select> |
</select> |
||||||
|
</div> |
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||||
<input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出"> |
<button type="button" class="btn btn-primary mb-8">导出</button> |
||||||
|
<hr> |
||||||
</td> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
</tr> |
<label for="engine_no">基本提成比例</label> |
||||||
|
<input type="text" id="yeji_rate" name="yeji_rate" class="form-control"> |
||||||
</table> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<label for="engine_no">团队长组</label> |
||||||
|
<select name="dz_group" class="form-control"> |
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
基本提成比例:<input name="yeji_rate" type="text" value="<?=$yeji_rate?>">%
|
|
||||||
|
|
||||||
团队长组: |
|
||||||
<select name="dz_group"> |
|
||||||
<option value="0">请选择</option> |
<option value="0">请选择</option> |
||||||
<option value="1" <?php if($dz_group == 1){echo 'selected';}?>>团队长组1</option>
|
<option value="1">团队长组1</option> |
||||||
<option value="2" <?php if($dz_group == 2){echo 'selected';}?>>团队长组2</option>
|
<option value="2">团队长组2</option> |
||||||
<option value="3" <?php if($dz_group == 3){echo 'selected';}?>>团队长组3</option>
|
<option value="3">团队长组3</option> |
||||||
<option value="4" <?php if($dz_group == 4){echo 'selected';}?>>团队长组4</option>
|
<option value="4">团队长组4</option> |
||||||
<option value="5" <?php if($dz_group == 5){echo 'selected';}?>>团队长组5</option>
|
<option value="5">团队长组5</option> |
||||||
</select> |
</select> |
||||||
团队长提成比例:<input name="dz_rate" type="text" value="<?=$dz_rate?>">%
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
团队长:<input name="dz_names" id="dz_names" type="text" style="width:30%;" value="<?=$dz_names?>">
|
<label for="engine_no">团队长提成比例</label> |
||||||
<input type="button" class="act_btn" id="add-dz" name="add-dz" value="+工号"> |
<input type="text" id="dz_rate" name="dz_rate" class="form-control"> |
||||||
|
</div> |
||||||
</td> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
</tr> |
<label for="engine_no">团队长</label> |
||||||
|
<div class="input-group"> |
||||||
<tr> |
<input type="text" id="dz_names" name="dz_names" class="form-control"> |
||||||
<td class="td_bg"> |
<a class="input-group-addon" onclick="selUserDlg('dz_names')">+</a> |
||||||
<!--新增搜索项--> |
</div> |
||||||
<!--完成程度--> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
核保提成:<input name="hebao_ticheng" type="text" value="<?=$hebao_ticheng?>">元
|
<label for="engine_no">核保提成</label> |
||||||
正本提成:<input name="zhengben_ticheng" type="text" value="<?=$zhengben_ticheng?>">元
|
<input type="text" id="hebao_ticheng" name="hebao_ticheng" class="form-control"> |
||||||
送单提成:<input name="songdan_ticheng" type="text" value="<?=$songdan_ticheng?>">元
|
</div> |
||||||
原新保提成比例:<input name="first_xinbao_rate" type="text" value="<?=$first_xinbao_rate?>">%
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="engine_no">正本提成</label> |
||||||
|
<input type="text" id="zhengben_ticheng" name="zhengben_ticheng" class="form-control"> |
||||||
<input type="button" class="act_btn" id="jisuan-btn" name="jisuan-btn" value="计算"> |
</div> |
||||||
<!-- <input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出">--> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
</td> |
<label for="engine_no">送单提成</label> |
||||||
</tr> |
<input type="text" id="songdan_ticheng" name="songdan_ticheng" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="engine_no">原新保提成比例</label> |
||||||
|
<input type="text" id="first_xinbao_rate" name="first_xinbao_rate" class="form-control"> |
||||||
|
</div> |
||||||
|
<button type="button" class="btn btn-primary mb-8 calc-btn">计算</button> |
||||||
|
<hr> |
||||||
</form> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
|
<div class="col-md-12"> |
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
<table id="listTable"> |
||||||
<tr> |
<thead> |
||||||
<td width="24" align="center" class="bg_tr">序号</td> |
|
||||||
<td align="center" class="bg_tr">车牌号</td> |
|
||||||
<td align="center" class="bg_tr">被保险人</td> |
|
||||||
<td align="center" class="bg_tr">保险公司</td> |
|
||||||
<td align="center" class="bg_tr">保单号</td> |
|
||||||
<td align="center" class="bg_tr">出单日期</td> |
|
||||||
<td align="center" class="bg_tr">商业净保费</td> |
|
||||||
<td align="center" class="bg_tr">手续费比例</td> |
|
||||||
<td align="center" class="bg_tr">基本提成比例</td> |
|
||||||
<td align="center" class="bg_tr">基本提成</td> |
|
||||||
<td align="center" class="bg_tr">加点提成比例</td> |
|
||||||
<td align="center" class="bg_tr">加点提成</td> |
|
||||||
<td align="center" class="bg_tr">自费礼品</td> |
|
||||||
<td align="center" class="bg_tr">自费礼券</td> |
|
||||||
<td align="center" class="bg_tr">自费减免金额</td> |
|
||||||
<td align="center" class="bg_tr">提成</td> |
|
||||||
<td align="center" class="bg_tr">业务员</td> |
|
||||||
<td align="center" class="bg_tr">原新保提成</td> |
|
||||||
<td align="center" class="bg_tr">原新保业务员</td> |
|
||||||
<td align="center" class="bg_tr">核保提成</td> |
|
||||||
<td align="center" class="bg_tr">核保业务员</td> |
|
||||||
<td align="center" class="bg_tr">正本提成</td> |
|
||||||
<td align="center" class="bg_tr">正本业务员</td> |
|
||||||
<td align="center" class="bg_tr">送单提成</td> |
|
||||||
<td align="center" class="bg_tr">送单人</td> |
|
||||||
<td align="center" class="bg_tr">团队长组1提成</td> |
|
||||||
<td align="center" class="bg_tr">团队长组1</td> |
|
||||||
<td align="center" class="bg_tr">团队长组2提成</td> |
|
||||||
<td align="center" class="bg_tr">团队长组2</td> |
|
||||||
<td align="center" class="bg_tr">团队长组3提成</td> |
|
||||||
<td align="center" class="bg_tr">团队长组3</td> |
|
||||||
<td align="center" class="bg_tr">团队长组4提成</td> |
|
||||||
<td align="center" class="bg_tr">团队长组4</td> |
|
||||||
<td align="center" class="bg_tr">团队长组5提成</td> |
|
||||||
<td align="center" class="bg_tr">团队长组5</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$start_index = $index; |
|
||||||
|
|
||||||
// $users=$item->user->group; |
|
||||||
// $username=$item->user; |
|
||||||
// $uname=$username['name']; |
|
||||||
// $nams=$users['name']; |
|
||||||
|
|
||||||
$total_real = $item->total * $item->total_rate/100; |
|
||||||
$total_clear_real = $item->total_clear * $item->total_rate/100; |
|
||||||
$total_dis = round($total_clear_real - $item->r_total,2); |
|
||||||
|
|
||||||
$order_caiwu_info = $item->orderCaiwu; |
|
||||||
$order_info = $item->order; |
|
||||||
$car_info = $order_info->car; |
|
||||||
|
|
||||||
$is_xinbao = $car_info->op_user3 == ''?1:0; |
|
||||||
|
|
||||||
?> |
|
||||||
<tr style="height:24px;" 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->car_no?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$item->id_man?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info && $order_info->company ? $order_info->company->name:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$item->insurer_no?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info ? $order_info->print_date : ''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$item->total_clear?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$item->total_rate?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->yeji_rate:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->yeji_ticheng:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info?$order_info->ticheng_zong_rate:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info?$order_info->ticheng_money:''?></td>
|
|
||||||
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info?$order_info->getGiftPrice(1,1):''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info?$order_info->getGiftPrice(1,2):''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info?$order_info->yuangong_money:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->yewu_ticheng:''?></td>
|
|
||||||
<?php if($is_xinbao ==1):?> |
|
||||||
<td align="center" class="td_bg" nowrap><?=$car_info?$car_info->op_user1:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->first_xinbao_ticheng:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap></td> |
|
||||||
<?php else:?> |
|
||||||
<td align="center" class="td_bg" nowrap><?=$car_info?$car_info->op_user3:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->first_xinbao_ticheng:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$car_info?$car_info->op_user1:''?></td>
|
|
||||||
<?php endif;?> |
|
||||||
|
|
||||||
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->hebao_ticheng:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info->op1?$order_info->op1->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->zhengben_ticheng:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info->op2?$order_info->op2->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->songdan_ticheng:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_info->sendLog?$order_info->sendLog->user->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_ticheng1:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_names1:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_ticheng2:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_names2:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_ticheng3:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_names3:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_ticheng4:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_names4:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_ticheng5:''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap><?=$order_caiwu_info?$order_caiwu_info->dz_names5:''?></td>
|
|
||||||
|
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr> |
<tr> |
||||||
<td align="center" class="td_bg" nowrap>合计</td> |
<th data-field="state" data-checkbox="true"></th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th width="50" data-field="id">ID</th> |
||||||
<td align="center" class="td_bg" nowrap>总合计保费</td> |
<th data-field="car_no">车牌号</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($total1_clear_all+$total2_clear_all,2)?></td>
|
<th data-field="id_man">被保险人</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="company_name">保险公司</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="insurer_no">保单号</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($total1_clear_all,2)?></td>
|
<th data-field="print_date">出单日期</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="total_clear">商业净保费</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="total_rate">手续费比例</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($yeji_ticheng_all,2)?></td>
|
<th data-field="yeji_rate">基本提成比例</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="yeji_ticheng">基本提成</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($ticheng_money_all,2)?></td>
|
<th data-field="ticheng_zong_rate">加点提成比例</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($lipin_all,2)?></td>
|
<th data-field="ticheng_money">加点提成</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($liquan_all,2)?></td>
|
<th data-field="gift1_price">自费礼品</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($yuangong_money_all,2)?></td>
|
<th data-field="gift2_price">自费礼券</th> |
||||||
|
<th data-field="yuangong_money">自费减免金额</th> |
||||||
<td align="center" class="td_bg" nowrap><?=number_format($yewu_ticheng_all,2)?></td>
|
<th data-field="yewu_ticheng">提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="op_user">业务员</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="first_xinbao_ticheng">原新保提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="op_user1">原新保业务员</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="hebao_ticheng">核保提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="op1_user">核保业务员</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="zhengben_ticheng">正本提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="op2_user">正本业务员</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_ticheng1">团队长组1提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_names1">团队长组1</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_ticheng2">团队长组2提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_names2">团队长组2</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_ticheng3">团队长组3提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_names3">团队长组3</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_ticheng4">团队长组4提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_names4">团队长组4</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_ticheng5">团队长组5提成</th> |
||||||
<td align="center" class="td_bg" nowrap></td> |
<th data-field="dz_names5">团队长组5</th> |
||||||
</tr> |
|
||||||
|
|
||||||
<tr > |
|
||||||
<td height="25" colspan="18" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
</tr> |
||||||
|
</thead> |
||||||
</table> |
</table> |
||||||
|
</div> |
||||||
<link href="/css/fSelect.css" rel="stylesheet" type="text/css"> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/fileupload/js/vendor/jquery.ui.widget.js"></script> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/fileupload/js/jquery.iframe-transport.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/fileupload/js/jquery.fileupload.js"></script> |
<?php $this->beginBlock('footer_js'); ?> |
||||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<script> |
||||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
var o = {}; |
||||||
<script type="text/javascript" src="../Myfile/js/xadmin.js?v=20190612"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js?v=2019"></script><script type="text/javascript" language="javascript" src="/js/func.js"></script> |
function selUserDlg(name) { |
||||||
|
title = '选择用户'; |
||||||
|
layer_show(title, '/finance/sel-user-dlg?name='+name); |
||||||
<script src="/gg_bd_ad_720x90.js" type="text/javascript"></script> |
|
||||||
<script src="/follow.js" type="text/javascript"></script> |
|
||||||
<script src="/js/fSelect.js"></script> |
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="/js/artDialog/artDialog.js?skin=default"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/artDialog/plugins/iframeTools.source.js"></script> |
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
function edit(id) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = '/finance/receipt-info?id=' + id + '&back_params=' + encodeURIComponent(params); |
|
||||||
} |
} |
||||||
|
|
||||||
|
function refreshList() { |
||||||
$(function () { |
$('#listTable').bootstrapTable('refresh'); |
||||||
|
|
||||||
//搜索 |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize() + '&user_ids=' + $('.user_names').val() + '&is_fan=' + $('#is_fan:checked').val(); |
|
||||||
window.location.href = "/finance/ticheng-jisuan?" + params; |
|
||||||
|
|
||||||
}); |
|
||||||
$("#output-btn").click(function () { |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
//window.location.href = "/finance/receipt-output?" + params; |
|
||||||
var url = "/finance/receipt-ticheng-output"; |
|
||||||
|
|
||||||
$.get(url, params, function (obj) { |
|
||||||
alert(obj.msg); |
|
||||||
if (obj.success) { |
|
||||||
window.location.href = obj.files[0].src; |
|
||||||
} |
} |
||||||
}, 'json'); |
|
||||||
}); |
|
||||||
|
|
||||||
$("#jisuan-btn").click(function(){ |
|
||||||
var last_url = '/finance/jisuan-save'; |
|
||||||
var params = $("#searchForm").serialize() + '&user_ids=' + $('.user_names').val() + '&is_fan=' + $('#is_fan:checked').val(); |
|
||||||
|
|
||||||
$.get(last_url,params,function(obj){ |
function search() { |
||||||
alert(obj.msg); |
o = {}; |
||||||
if(obj.success){ |
var params = $("#searchFrm").serializeArray(); |
||||||
window.location.href = "/finance/ticheng-jisuan?" + params; |
$.each(params, function(index) { |
||||||
} |
o[this['name']] = this['value']; |
||||||
},'json'); |
|
||||||
}); |
}); |
||||||
|
$('#listTable').bootstrapTable('destroy'); |
||||||
//提交维修明细 |
$('#listTable').bootstrapTable({ |
||||||
$('#add-user').click(function(){ |
url: "/finance/ticheng-jisuan-json", |
||||||
var params = $("#searchForm").serialize(); |
pagination: true, |
||||||
art.dialog.open('/finance/add-user?' + '&select_user=' + $('#select_user').val() + '&all=' + $('#all:checked').val() + '&no_num=' + $('#no_num:checked').val(), |
sidePagination: 'server', |
||||||
{title: '增加工号', width: 1000, height: 350, |
multipleSelectRow: true, |
||||||
close: function () { |
queryParams: function(params) { |
||||||
var user_names = art.dialog.data('user_names'); // 读取子窗口返回的数据 |
o['offset'] = params['offset']; |
||||||
|
o['limit'] = params['limit']; |
||||||
if( typeof user_names != 'undefined') { |
return o; |
||||||
|
|
||||||
var a = $('#user_names').val(); |
|
||||||
if (a != '') { |
|
||||||
a = a + ','; |
|
||||||
} |
} |
||||||
$('#user_names').val(a + user_names); |
}); |
||||||
|
return false; |
||||||
} |
} |
||||||
|
|
||||||
} |
$(function() { |
||||||
|
search(); |
||||||
|
$('.input-daterange').datepicker({ |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
autoclose: true |
||||||
}); |
}); |
||||||
|
$('.calc-btn').click(function(){ |
||||||
|
var index = parent.layer.load(1, { |
||||||
|
shade: [0.1,'#fff'] //0.1透明度的白色背景 |
||||||
}); |
}); |
||||||
|
var params = $("#searchFrm").serialize(); |
||||||
//提交维修明细 |
$.post('/finance/ticheng-jisuan-save', params, function(obj) { |
||||||
$('#add-dz').click(function(){ |
parent.layer.close(index); |
||||||
var params = $("#searchForm").serialize(); |
parent.layer.msg(obj.msg); |
||||||
art.dialog.open('/finance/add-user?'+ 'user_names=' + $('#dz_names').val() , |
if(obj.success) { |
||||||
{title: '增加工号', width: 1000, height: 350, |
refreshList(); |
||||||
close: function () { |
|
||||||
var user_names = art.dialog.data('user_names'); // 读取子窗口返回的数据 |
|
||||||
$('#dz_names').val(user_names); |
|
||||||
|
|
||||||
} |
} |
||||||
|
}, 'json'); |
||||||
}); |
}); |
||||||
|
|
||||||
}); |
}); |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}) |
|
||||||
</script> |
</script> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
Loading…
Reference in new issue