parent
22c26ef453
commit
d8625c2356
@ -0,0 +1,62 @@ |
||||
<?php |
||||
|
||||
namespace common\models; |
||||
|
||||
use Yii; |
||||
|
||||
/** |
||||
* This is the model class for table "zhongji_fanxian_t". |
||||
* |
||||
* @property int $id |
||||
* @property int $celuo_id |
||||
* @property double $fanxian_rate 返现金额比例 |
||||
* @property double $max_cashback 最高返现 |
||||
* @property string $created_at |
||||
* @property string $updated_at |
||||
*/ |
||||
class ZhongjiFanxianT extends \common\models\Base |
||||
{ |
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
|
||||
public static function tableName() |
||||
{ |
||||
return 'zhongji_fanxian_t'; |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function rules() |
||||
{ |
||||
return [ |
||||
[['celuo_id', 'tiaojian_id'], 'integer'], |
||||
[['fanxian_rate', 'max_cashback'], 'number'], |
||||
[['created_at', 'updated_at'], 'safe'], |
||||
|
||||
]; |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function attributeLabels() |
||||
{ |
||||
return [ |
||||
'id' => 'ID', |
||||
'celuo_id' => 'Celuo ID', |
||||
'fanxian_rate' => 'Fanxian Rate', |
||||
'created_at' => 'Created At', |
||||
'updated_at' => 'Updated At', |
||||
]; |
||||
} |
||||
|
||||
public function getTiaojian() { |
||||
return $this->hasOne(ZhongjiTiaojian::className(),['id'=>'tiaojian_id']); |
||||
} |
||||
|
||||
public function getCeluo() { |
||||
return $this->hasOne(ZhongjiYingxiao::className(), ['id'=>'celuo_id']); |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
<?php |
||||
|
||||
namespace common\models; |
||||
|
||||
use Yii; |
||||
|
||||
/** |
||||
* This is the model class for table "zhongji_gift_t". |
||||
* |
||||
* @property int $id |
||||
* @property int $celuo_id |
||||
* @property int $fanxian_id |
||||
* @property int $n n值 |
||||
* @property int $gift_type 1礼品2礼券 |
||||
* @property int $free_type 1免费2收费 |
||||
* @property string $gift_ids 礼品 |
||||
* @property string $gift_price 额度 |
||||
* @property int $gift_num 礼品数量 |
||||
* @property string $created_at |
||||
* @property string $updated_at |
||||
*/ |
||||
class ZhongjiGiftT extends \common\models\Base |
||||
{ |
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public static function tableName() |
||||
{ |
||||
return 'zhongji_gift_t'; |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function rules() |
||||
{ |
||||
return [ |
||||
[['celuo_id', 'fanxian_id', 'n', 'gift_type', 'free_type'], 'integer'], |
||||
[['gift_ids'], 'string'], |
||||
[['created_at', 'updated_at'], 'safe'], |
||||
|
||||
]; |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function attributeLabels() |
||||
{ |
||||
return [ |
||||
'id' => 'ID', |
||||
'celuo_id' => 'Celuo ID', |
||||
'fanxian_id' => 'Fanxian ID', |
||||
'n' => 'n', |
||||
'gift_type' => 'Gift Type', |
||||
'free_type' => 'Free Type', |
||||
'gift_ids' => 'Gift Ids', |
||||
'created_at' => 'Created At', |
||||
'updated_at' => 'Updated At', |
||||
]; |
||||
} |
||||
} |
@ -0,0 +1,54 @@ |
||||
<?php |
||||
|
||||
namespace common\models; |
||||
|
||||
use Yii; |
||||
|
||||
/** |
||||
* This is the model class for table "zhongji_user_t". |
||||
* |
||||
* @property int $id |
||||
* @property int $celuo_id |
||||
* @property int $user_id |
||||
* @property string $created_at |
||||
* @property string $updated_at |
||||
*/ |
||||
class ZhongjiUserT extends \common\models\Base |
||||
{ |
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public static function tableName() |
||||
{ |
||||
return 'zhongji_user_t'; |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function rules() |
||||
{ |
||||
return [ |
||||
[['celuo_id', 'user_id'], 'integer'], |
||||
[['created_at', 'updated_at'], 'safe'], |
||||
]; |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function attributeLabels() |
||||
{ |
||||
return [ |
||||
'id' => 'ID', |
||||
'celuo_id' => 'Celuo ID', |
||||
'user_id' => 'User ID', |
||||
'created_at' => 'Created At', |
||||
'updated_at' => 'Updated At', |
||||
]; |
||||
} |
||||
|
||||
public function getUser() { |
||||
return $this->hasOne(UserT::className(),['id'=>'user_id']); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,184 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!--新增搜索项--> |
||||
|
||||
保险类型:<select name="insurer_type"> |
||||
<option value="0" >所有类型</option> |
||||
<option value="1" <?= $insurer_type == 1 ? 'selected': ''?>>商业险</option>
|
||||
<option value="2" <?= $insurer_type == 2 ? 'selected': ''?>>交强险</option>
|
||||
</select> |
||||
车牌类型:<select name="car_no_type"> |
||||
<option value="0" >所有类型</option> |
||||
<option value="1" <?= $car_no_type == 1 ? 'selected': ''?>>京牌</option>
|
||||
<option value="2" <?= $car_no_type == 2 ? 'selected': ''?>>非京牌</option>
|
||||
<option value="3" <?= $car_no_type == 3 ? 'selected': ''?>>特殊车辆</option>
|
||||
</select> |
||||
保险公司:<select name="company_id"> |
||||
<option value="0">所有公司</option> |
||||
<?php |
||||
foreach($company_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $company_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 ?>" />
|
||||
商业净保费: |
||||
<input type="Text" class="" name="begin_totalclear" " value="<?= $begin_totalclear ?>" />
|
||||
-- |
||||
<input type="Text" class="" name="end_totalclear" " value="<?= $end_totalclear?>" />
|
||||
|
||||
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
</td> |
||||
</tr> |
||||
|
||||
</table> |
||||
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
|
||||
|
||||
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!--新增搜索项--> |
||||
<!--完成程度--> |
||||
|
||||
补点比例:<input name="budian_rate" type="text" value="<?=$budian_rate?>">
|
||||
|
||||
|
||||
<input type="button" class="act_btn" id="save-btn" name="jisuan-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 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> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = $index; |
||||
|
||||
|
||||
$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; |
||||
|
||||
?> |
||||
<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->insurer_type == 1?'商业':'交强'?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->budian_rate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->budian_money?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg" nowrap>合计</td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$total1_clear_all?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$total_money_all?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td height="25" colspan="10" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
|
||||
<link href="/css/fSelect.css" rel="stylesheet" type="text/css"> |
||||
<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/fileupload/js/vendor/jquery.ui.widget.js"></script> |
||||
<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> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
|
||||
|
||||
<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 () { |
||||
|
||||
//搜索 |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/budian-list?" + params; |
||||
}); |
||||
|
||||
|
||||
$("#save-btn").click(function(){ |
||||
var last_url = '/finance/budian-save'; |
||||
var params = $("#searchForm").serialize(); |
||||
|
||||
$.get(last_url,params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success){ |
||||
window.location.href = "/finance/budian-list?" + params; |
||||
} |
||||
},'json'); |
||||
}); |
||||
|
||||
|
||||
|
||||
}) |
||||
</script> |
@ -0,0 +1,769 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$pay_info->id?>">
|
||||
<input type="hidden" name="pay_chexian" value="<?=$pay_chexian?>">
|
||||
<input type="hidden" name="pay_nochexian" value="<?=$pay_nochexian?>">
|
||||
<input type="hidden" name="pay_dz" value="<?=$pay_dz?>">
|
||||
<input type="hidden" name="pay_date" value="<?=$pay_date?>">
|
||||
<input type="hidden" name="user_id" value="<?=$user_info->id?>">
|
||||
<p> </p> |
||||
<h2 align="center"><?=date("Y年m月",strtotime($pay_date.'-01'))?>提成工资部分</h2>
|
||||
<h3 align="center">应提成工资:<span><?=number_format($pay_info->ticheng_should_pay,2)?></span> 元 <span style="color:#ff0000;">实提成工资:<span><?=number_format($pay_info->ticheng_real_pay,2)?></span> 元</span></h3>
|
||||
|
||||
|
||||
<br> |
||||
<h3>提成工资</h3> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<!-- <tr>--> |
||||
<!-- <td align="center" colspan="9" height="25" class="bg_tr">财务统计</td>--> |
||||
<!-- </tr>--> |
||||
<tr> |
||||
<td height="25" align="center" class="bg_tr">保单提成</td> |
||||
<td height="25" align="center" class="bg_tr">团队长提成</td> |
||||
<td height="25" align="center" class="bg_tr">非车险提成</td> |
||||
<td height="25" align="center" class="bg_tr">维修提成</td> |
||||
<td height="25" align="center" class="bg_tr">合计</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" align="center" class="td_bg"><?=$pay_chexian?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_dz?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_nochexian?></td>
|
||||
<td height="25" align="center" class="td_bg"></td> |
||||
<td height="25" align="center" class="td_bg"><?=$pay_chexian + $pay_nochexian + $pay_dz?></td>
|
||||
</tr> |
||||
</table> |
||||
<br> |
||||
<div align="center"> |
||||
<?php if($pay_info->status_id < 4 || $pay_info->status_id == 8): ?> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
||||
|
||||
<?php endif;?> |
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 "> |
||||
</div> |
||||
|
||||
<br> |
||||
<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> |
||||
<h3>保单提成</h3> |
||||
<?php if($my_type1_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="13" height="25" class="bg_tr">我的新保</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">商业净保费</td> |
||||
<td height="25" align="center" class="bg_tr">加点比例</td> |
||||
<td height="25" align="center" class="bg_tr">基本比例</td> |
||||
<td height="25" align="center" class="bg_tr">应提金额</td> |
||||
<!-- <td height="25" align="center" class="bg_tr">原新保提成</td>--> |
||||
<td height="25" align="center" class="bg_tr">减免金额</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼品</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼券</td> |
||||
<td height="25" align="center" class="bg_tr">业务自付</td> |
||||
<td height="25" align="center" class="bg_tr">实提金额</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$should_pay = 0; |
||||
$real_pay = 0; |
||||
$total1_clear = 0; |
||||
$total1_dis = 0; |
||||
$ticket_all = 0; |
||||
$gift_all = 0; |
||||
$zifu_all = 0; |
||||
foreach($my_type1_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu;//carwuordert |
||||
$money = $caiwu_info->money1; |
||||
$ticket = $order_info->getGiftPrice(1,1); |
||||
$gift = $order_info->getGiftPrice(1,0); |
||||
$should_pay += $pay_order->should_pay; |
||||
$real_pay += $pay_order->real_pay; |
||||
$total1_clear += $order_info->total1_clear; |
||||
$total1_dis += $order_info->total1_dis; |
||||
$ticket_all += $ticket; |
||||
$gift_all += $gift; |
||||
if($order_info->yuangong_money > 0){ |
||||
$zifu_all += $order_info->yuangong_money; |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_my_payids_1[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->ticheng_zong_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->yeji_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->should_pay?></td>
|
||||
<!-- <td height="25" align="center" class="td_bg">--//=$pay_order->first_xinbao_ticheng?><!--</td>--> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_dis?></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,1,1)"><?=$ticket?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,1,0)"><?=$gift?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->yuangong_money?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_clear,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($should_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_dis,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($ticket_all,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($gift_all,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($zifu_all,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<?php if($my_type3_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="13" height="25" class="bg_tr">我的续保</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">商业净保费</td> |
||||
<td height="25" align="center" class="bg_tr">加点比例</td> |
||||
<td height="25" align="center" class="bg_tr">基本比例</td> |
||||
<td height="25" align="center" class="bg_tr">应提金额</td> |
||||
<td height="25" align="center" class="bg_tr">优惠金额</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼品</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼券</td> |
||||
<td height="25" align="center" class="bg_tr">自付减免</td> |
||||
<td height="25" align="center" class="bg_tr">实提金额</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$should_pay = 0; |
||||
$real_pay = 0; |
||||
$total1_clear = 0; |
||||
$total1_dis = 0; |
||||
$ticket_all = 0; |
||||
$gift_all = 0; |
||||
$zifu_all = 0; |
||||
foreach($my_type3_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu;//carwuordert |
||||
$money = $caiwu_info->money1; |
||||
$ticket = $order_info->getGiftPrice(1,1); |
||||
$gift = $order_info->getGiftPrice(1,0); |
||||
$should_pay += $pay_order->should_pay; |
||||
$real_pay += $pay_order->real_pay; |
||||
$total1_clear += $order_info->total1_clear; |
||||
$total1_dis += $order_info->total1_dis; |
||||
$ticket_all += $ticket; |
||||
$gift_all += $gift; |
||||
if($order_info->yuangong_money > 0){ |
||||
$zifu_all += $order_info->yuangong_money; |
||||
} |
||||
|
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_my_payids_1[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->ticheng_zong_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->yeji_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->should_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_dis?></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,1,1)"><?=$order_info->getGiftPrice(1,1)?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,1,0)"><?=$order_info->getGiftPrice(1,0)?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->yuangong_money?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_clear,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($should_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_dis,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($ticket_all,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($gift_all,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($zifu_all,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<?php if($my_type0_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="13" height="25" class="bg_tr">我的原新保</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">商业净保费</td> |
||||
<td height="25" align="center" class="bg_tr">基本比例</td> |
||||
<td height="25" align="center" class="bg_tr">应提金额</td> |
||||
<td height="25" align="center" class="bg_tr">原新保提成</td> |
||||
<td height="25" align="center" class="bg_tr">实提金额</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$should_pay = 0; |
||||
$real_pay = 0; |
||||
$total1_clear = 0; |
||||
$total1_dis = 0; |
||||
foreach($my_type0_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu;//carwuordert |
||||
// $money = $caiwu_info->money1; |
||||
$should_pay += $pay_order->should_pay; |
||||
$real_pay += $pay_order->real_pay; |
||||
$total1_clear += $order_info->total1_clear; |
||||
// $total1_dis += $order_info->total1_dis; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_my_payids_1[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->first_xinbao_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->should_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->first_xinbao_ticheng?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_clear,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($should_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
|
||||
<?php if($type3_query->count() > 0) { ?> |
||||
|
||||
<input type="button" class="act_btn" id="output-send-btn" name="output-btn" value="导出"> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="7" height="25" class="bg_tr">送单统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">送单地址</td> |
||||
<td height="25" align="center" class="bg_tr">时间</td> |
||||
<td height="25" align="center" class="bg_tr">送单提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($type3_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu; |
||||
$send_info = $order_info->sendLog; |
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_send_payids[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($order_info->id_man,15)?></td>
|
||||
<td height="25" align="left" class="td_bg"> |
||||
<?=$order_info->direction1?$order_info->direction1->name:''?> |
||||
<?=$order_info->range1?$order_info->range1->name:''?> |
||||
<?=$order_info->city1?$order_info->city1->name:''?> |
||||
<?=$order_info->district1?$order_info->district1->name:''?> |
||||
<?=$order_info->send_address1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=date('Y-m-d H:i:s',$send_info->send_time)?></td>
|
||||
<td height="25" align="center" nowrap class="td_bg"><input name="send_moneys[]" type="text" value="<?=$caiwu_info->songdan_ticheng?>" style="width:60px;"/></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<!-- 内勤核保--> |
||||
|
||||
<?php if($my_type5_query->count() > 0) { ?> |
||||
<input type="button" class="act_btn" id="output-hebao-btn" name="output-btn" value="导出"> |
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="7" height="25" class="bg_tr">核保统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">核保比例</td> |
||||
<td height="25" align="center" class="bg_tr">核保提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
|
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type5_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu; |
||||
$rate = $caiwu_info->hebao_ticheng; |
||||
// $money = $caiwu_info->money4; |
||||
$send_info = $order_info->sendLog; |
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="neqi_payids[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($order_info->id_man,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$rate?>元</td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?>元</td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
|
||||
|
||||
<!-- 内勤正本--> |
||||
|
||||
<?php if($my_type6_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="7" height="25" class="bg_tr">正本统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本时间</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">正本比例</td> |
||||
<td height="25" align="center" class="bg_tr">正本提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type6_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu; |
||||
$rate = $caiwu_info->zhengben_ticheng; |
||||
$send_info = $order_info->sendLog; |
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="zhengben[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($order_info->id_man,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$rate?>元</td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<br> |
||||
<h3>非车险提成</h3> |
||||
<!-- 非车险销售--> |
||||
<?php if($my_type1_query_non->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="9" height="25" class="bg_tr">非车险销售统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
|
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本时间</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">险种</td> |
||||
<td height="25" align="center" class="bg_tr">保费</td> |
||||
<td height="25" align="center" class="bg_tr">提成比例</td> |
||||
<td height="25" align="center" class="bg_tr">提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type1_query_non->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->nonOrder; |
||||
$non_info = $order_info->nonInsurance; |
||||
$caiwu_info = $order_info->caiwu1;//ordercarwut |
||||
|
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="non_hebao[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($non_info->insurant_name,15)?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->sche->name?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->payer1_money?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->jiben_rate?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/non-auto-insurance/bd-info-search?non_id= <?=$order_info->non_id?> &order_id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<!-- 非车险核保--> |
||||
<?php if($my_type1_query_hebao->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="9" height="25" class="bg_tr">非车险核保统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本时间</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">险种</td> |
||||
<td height="25" align="center" class="bg_tr">保费</td> |
||||
<td height="25" align="center" class="bg_tr">提成比例</td> |
||||
<td height="25" align="center" class="bg_tr">提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type1_query_hebao->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->nonOrder; |
||||
$non_info = $order_info->nonInsurance; |
||||
$caiwu_info = $order_info->caiwu1;//ordercarwut |
||||
$rate = $caiwu_info->rate4; |
||||
|
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="non_hebao[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($non_info->insurant_name,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->sche->name?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->payer1_money?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->hebao_ticheng?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->hebao_ticheng?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg">[<a href="/non-auto-insurance/bd-info-search?non_id= <?=$order_info->non_id?> &order_id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<!--外区--><br> |
||||
<h3>外区车险提成</h3> |
||||
<?php if($my_out_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="13" height="25" class="bg_tr">外区车险</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">商业总保费</td> |
||||
<td height="25" align="center" class="bg_tr">交强总保费</td> |
||||
<td height="25" align="center" class="bg_tr">商业净保费</td> |
||||
<td height="25" align="center" class="bg_tr">交强净保费</td> |
||||
<td height="25" align="center" class="bg_tr">总保费比例</td> |
||||
<td height="25" align="center" class="bg_tr">净保费比例</td> |
||||
<td height="25" align="center" class="bg_tr">应提金额</td> |
||||
<td height="25" align="center" class="bg_tr">实提金额</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$should_pay = 0; |
||||
$real_pay = 0; |
||||
$total1_clear = 0; |
||||
$total1_dis = 0; |
||||
$ticket_all = 0; |
||||
$gift_all = 0; |
||||
$zifu_all = 0; |
||||
foreach($my_out_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu;//carwuordert |
||||
$money = $caiwu_info->money1; |
||||
$ticket = $order_info->getGiftPrice(1,1); |
||||
$gift = $order_info->getGiftPrice(1,0); |
||||
$should_pay += $pay_order->should_pay; |
||||
$real_pay += $pay_order->real_pay; |
||||
$total1_clear += $order_info->total1_clear; |
||||
$total1_dis += $order_info->total1_dis; |
||||
$ticket_all += $ticket; |
||||
$gift_all += $gift; |
||||
if($order_info->yuangong_money > 0){ |
||||
$zifu_all += $order_info->yuangong_money; |
||||
} |
||||
|
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_my_payids_1[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total2?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total2_clear?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->zong_bf_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->jing_bf_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->should_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_clear,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($should_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
|
||||
</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" class="hide-table"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<div id="car_history_list"></div> |
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
|
||||
</form> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
<script type="text/javascript" src="/js/artDialog/jquery.artDialog.js?skin=default"></script> |
||||
<script type="text/javascript" src="/js/artDialog/plugins/iframeTools.source.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
function cal_pay(obj1,total,dis,price1,price2,price3,price4,obj2,obj3) { |
||||
var total1 = Number($('#' + obj1).val())/100 * Number(total); |
||||
var total2 = total1 - Number(dis) - Number(price1) - Number(price2) - Number(price3) - Number(price4); |
||||
$('#' + obj2).val(total1.toFixed(2)); |
||||
$('#' + obj3).val(total2.toFixed(2)); |
||||
} |
||||
function cal_money(obj1,val,obj2) { |
||||
var total = Number($('#' + obj1).val())/100 * Number(val); |
||||
$('#' + obj2).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 open_gift_dlg(order_id,is_free,type) { |
||||
$.dialog.open('/finance/pay2-gift-info?user_id=<?=$user_info->id?>&pay_date=<?=$pay_date?>&order_id=' + order_id + '&is_free=' + is_free + '&type=' + type,{
|
||||
left: '40%', |
||||
top: '0%', |
||||
fixed: true |
||||
}); |
||||
} |
||||
|
||||
//操作历史 |
||||
gotoPage('/personnel/ajax-history-index?pay_id=<?=$pay_info->id?>&page=1','car_history_list');
|
||||
|
||||
|
||||
$(function () { |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/finance/chuna-gongzi-save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/finance/chuna-gongzi-list?<?=$back_params?>';
|
||||
}); |
||||
|
||||
$("#output-hebao-btn").click(function () { |
||||
$('#page').val(0); |
||||
var params = $("#theFrm").serialize(); |
||||
//window.location.href = "/finance/receipt-output?" + params; |
||||
var url = "/finance/receipt-hebao-output"; |
||||
|
||||
$.post(url, params, function (obj) { |
||||
alert(obj.msg); |
||||
if (obj.success) { |
||||
window.location.href = obj.files[0].src; |
||||
} |
||||
}, 'json'); |
||||
}); |
||||
|
||||
$("#output-send-btn").click(function () { |
||||
$('#page').val(0); |
||||
var params = $("#theFrm").serialize(); |
||||
//window.location.href = "/finance/receipt-output?" + params; |
||||
var url = "/finance/receipt-send-output"; |
||||
|
||||
$.post(url, params, function (obj) { |
||||
alert(obj.msg); |
||||
if (obj.success) { |
||||
window.location.href = obj.files[0].src; |
||||
} |
||||
}, 'json'); |
||||
}); |
||||
|
||||
|
||||
}); |
||||
|
||||
|
||||
</script> |
@ -0,0 +1,155 @@ |
||||
<?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/datepicker/WdatePicker.js"></script> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
<script type="text/javascript" language="javascript"> |
||||
//编辑 |
||||
function edit(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/finance/chuna-gongzi-info?id=' + id + '&pay_date=<?=$pay_date?>' + '&back_params=' + encodeURIComponent(params);
|
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/chuna-gongzi-list?" + params; |
||||
}); |
||||
$('#searchForm').submit(function(){ |
||||
$('#search-btn').click(); |
||||
return false; |
||||
}); |
||||
$("#reset-btn").click(function(){ |
||||
var pay_date = $('#pay_date').val(); |
||||
if(confirm('是否对'+ pay_date + '月份的工资进行重新计算?')) { |
||||
$('#reseting').show(); |
||||
$(this).hide(); |
||||
$.post('/finance/pay2-reset',{pay_date:pay_date},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
$('#reseting').hide(); |
||||
$(this).show(); |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
$("#pay-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/pay2-tiao?" + 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"> |
||||
工号:<input name="username" type="text" value="<?=$username?>">
|
||||
真实姓名:<input name="name" type="text" value="<?=$name?>">
|
||||
工资月份:<input name="pay_date" id="pay_date" class="Wdate" type="text" value="<?=$pay_date?>" onClick="WdatePicker({dateFmt:'yyyy-MM'})">
|
||||
分组:<select name="group_id"> |
||||
<option value="0">全部</option> |
||||
<?php |
||||
foreach($group_items as $group) { |
||||
echo '<option value="'.$group->id.'"'; |
||||
if($group->id == $group_id) |
||||
echo ' selected '; |
||||
echo '>'.$group->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
状态:<select name="status_id"> |
||||
<option value="0">全部</option> |
||||
<option value="1" <?=$status_id == 1?'selected':''?>>人事✔</option>
|
||||
<option value="2" <?=$status_id == 2?'selected':''?>>出纳✔</option>
|
||||
<option value="3" <?=$status_id == 3?'selected':''?>>人事✔,出纳✔</option>
|
||||
<option value="4" <?=$status_id == 4?'selected':''?>>财务✔</option>
|
||||
<option value="5" <?=$status_id == 5?'selected':''?>>老板✔</option>
|
||||
<option value="6" <?=$status_id == 6?'selected':''?>>已发放</option>
|
||||
<option value="8" <?=$status_id == 7?'selected':''?>>退回</option>
|
||||
|
||||
</select> |
||||
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
退回数量:<span style="color: red"><?=$return_count?></span>
|
||||
<!-- <span id="reseting" style="display: none;">正在计算中...</span>--> |
||||
<!-- <input type="button" class="act_btn" id="reset-btn" name="reset-btn" value="重新计算">--> |
||||
<!-- <input type="button" class="act_btn" id="pay-btn" name="pay-btn" value="工资条">--> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="100" align="center" align="center" class="bg_tr">工号</td> |
||||
<td align="center" class="bg_tr">真实姓名</td> |
||||
<td width="100" align="center" class="bg_tr">工资月份</td> |
||||
<td 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> |
||||
<form id="delFrm"> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$pay_info = $item->getPay($pay_date); |
||||
$base_real_pay = 0; |
||||
$ticheng_real_pay = 0; |
||||
|
||||
$shouldPay = $item->getChunaShouldPay($pay_date); |
||||
|
||||
$is_begin = 0; |
||||
if($pay_info) { |
||||
$is_begin = 1; |
||||
$ticheng_real_pay = $pay_info->ticheng_real_pay; |
||||
} |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="left" class="td_bg" nowrap ><?=$item->username?></td>
|
||||
<td class="td_bg" nowrap><?=$item->name?></td>
|
||||
<td class="td_bg" nowrap><?=$pay_date?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->group?$item->group->name:''?></td>
|
||||
<!-- <td class="td_bg" nowrap><=$item->role?$item->role->name:''?></td>--> |
||||
|
||||
<td align="center" class="td_bg" nowrap data="<?=$item->id?>">
|
||||
<?=number_format($shouldPay,2)?>元
|
||||
</td> |
||||
<td align="center" class="td_bg" nowrap data="<?=$item->id?>">
|
||||
<?php if($is_begin == 0):?> |
||||
<?php else:?> |
||||
<?=$pay_info->getStatus($pay_info->status_id)?> |
||||
<?php endif;?> |
||||
|
||||
</td> |
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</form> |
||||
<tr> |
||||
<td width="100" align="center" align="center" class="bg_tr"></td> |
||||
<td align="center" class="bg_tr"></td> |
||||
<td width="100" align="center" class="bg_tr"></td> |
||||
<td align="center" class="bg_tr"></td> |
||||
<td width="60" align="center" class="bg_tr"><?=number_format($total_real_pay,2)?></td>
|
||||
<td width="60" align="center" class="bg_tr"></td> |
||||
<td width="30" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
<tr > |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
@ -0,0 +1,724 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$pay_info->id?>">
|
||||
<p> </p> |
||||
<h2 align="center"><?=date("Y年m月",strtotime($pay_date.'-01'))?>财务工资</h2>
|
||||
<h3 align="center">应发工资:<span><?=number_format($pay_info->ticheng_should_pay + $pay_info->base_should_pay,2)?></span> 元 <span style="color:#ff0000;">实发工资:<span><?=number_format($pay_info->ticheng_real_pay + $pay_info->base_real_pay,2)?></span> 元</span></h3>
|
||||
|
||||
<br> |
||||
<h3>基本工资</h3> |
||||
<?php if($pay_info->renshi_status_id == 1):?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
|
||||
<tr> |
||||
<td height="25" align="center" class="bg_tr">基本工资</td> |
||||
<td height="25" align="center" class="bg_tr">补助工资</td> |
||||
<td height="25" align="center" class="bg_tr">扣除工资</td> |
||||
<td height="25" align="center" class="bg_tr">合计</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td height="25" align="center" class="td_bg"><?=$pay_info->day_formal_pay + $pay_info->day_try_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_info->buzhu_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_info->kouchu_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_info->base_real_pay?></td>
|
||||
</tr> |
||||
|
||||
</table> |
||||
<?php endif;?> |
||||
|
||||
|
||||
<br> |
||||
<h3>提成工资</h3> |
||||
<?php if($pay_info->chuna_status_id == 2):?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<!-- <tr>--> |
||||
<!-- <td align="center" colspan="9" height="25" class="bg_tr">财务统计</td>--> |
||||
<!-- </tr>--> |
||||
<tr> |
||||
<td height="25" align="center" class="bg_tr">保单提成</td> |
||||
<td height="25" align="center" class="bg_tr">团队长提成</td> |
||||
<td height="25" align="center" class="bg_tr">非车险提成</td> |
||||
<td height="25" align="center" class="bg_tr">维修提成</td> |
||||
<td height="25" align="center" class="bg_tr">合计</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" align="center" class="td_bg"><?=$pay_chexian?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_dz?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_nochexian?></td>
|
||||
<td height="25" align="center" class="td_bg"></td> |
||||
<td height="25" align="center" class="td_bg"><?=$pay_chexian + $pay_nochexian + $pay_dz?></td>
|
||||
</tr> |
||||
</table> |
||||
<br> |
||||
<?php endif;?> |
||||
<div align="center"> |
||||
<!-- <select name="status_id" id="status_id">--> |
||||
<!-- <option value="0"></option>--> |
||||
<!-- <option value="1">人事管理</option>--> |
||||
<!-- <option value="2">出纳管理</option>--> |
||||
<!-- <option value="4">财务管理</option>--> |
||||
<!-- </select>--> |
||||
<input id="return-btn" type=button class="ACT_btn" name=Submit1 value=" 退回 "/> |
||||
<?php if($pay_info->chuna_status_id == 2 && $pay_info->renshi_status_id == 1):?> |
||||
|
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
||||
<?php endif;?> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 "> |
||||
</div> |
||||
|
||||
|
||||
<?php if($pay_info->renshi_status_id == 1):?> |
||||
<br> |
||||
|
||||
<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" class="hide-table"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<h3>基本工资</h3> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="10" height="25" class="bg_tr">基本信息</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" class="bg_tr">职务</td> |
||||
<td height="25" class="bg_tr">姓名</td> |
||||
<td height="25" class="bg_tr">入职时间</td> |
||||
<td height="25" class="bg_tr">工作制</td> |
||||
<td height="25" class="bg_tr">试用工资</td> |
||||
<td height="25" class="bg_tr">转正时间</td> |
||||
<td height="25" class="bg_tr">转正工资</td> |
||||
<td height="25" class="bg_tr">试用出勤天数</td> |
||||
<td height="25" class="bg_tr">转正出勤天数</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" class="td_bg"><?=$group_info?$group_info->getPath():''?></td>
|
||||
<td height="25" class="td_bg"><?=$user_info->getShowName()?></td>
|
||||
<td height="25" class="td_bg"><?=$user_info->enter_date?></td>
|
||||
<td height="25" class="td_bg"><?=$user_info->worktype?$user_info->worktype->name:''?></td>
|
||||
<td height="25" class="td_bg"><input oninput="tryPay($(this))" type="text" name="try_pay" value="<?=$pay_info->try_pay == '0.00' ? $user_info->try_pay : $pay_info->try_pay?>"></td>
|
||||
<td height="25" class="td_bg"><?=$user_info->job_date?></td>
|
||||
<td height="25" class="td_bg"><input oninput="formalPay($(this))" type="text" name="formal_pay" value="<?=$pay_info->formal_pay == '0.00' ? ($group_info?($group_info->base_pay + $group_info->job_pay + $group_info->station_pay + $user_info->ext_pay):$user_info->ext_pay) : $pay_info->formal_pay?>" /></td>
|
||||
<td height="25" class="td_bg"><input name="try_attendance_days" type="text" value="<?=$pay_info->try_attendance_days?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="attendance_days" type="text" value="<?=$pay_info->attendance_days?>" style="width:60px;"/></td>
|
||||
|
||||
</tr> |
||||
</table> |
||||
<br> |
||||
<h3>补助工资</h3> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<!-- <tr>--> |
||||
<!-- <td align="center" colspan="12" height="25" class="bg_tr">应发</td>--> |
||||
<!-- </tr>--> |
||||
<!-- <tr>--> |
||||
<!-- <td height="25" align="center" colspan="2" class="bg_tr try_pay">试用( --><?//=$try_pay?><!-- 元)</td>-->
|
||||
<!-- <td height="25" align="center" colspan="6" class="bg_tr formal_pay">转正( --><?//=$true_pay?><!-- 元)</td>-->
|
||||
<!-- <td align="center" colspan="2" height="25" class="bg_tr">应发全勤/通时</td>--> |
||||
<!-- </tr>--> |
||||
<tr> |
||||
<!-- <td height="25" class="bg_tr">出勤天数</td>--> |
||||
<td height="25" class="bg_tr">试用加班</td> |
||||
<!-- <td height="25" class="bg_tr">出勤天数</td>--> |
||||
<td height="25" class="bg_tr">转正加班</td> |
||||
<td height="25" class="bg_tr">社保</td> |
||||
<td height="25" class="bg_tr">话费</td> |
||||
<td height="25" class="bg_tr">公交</td> |
||||
<td height="25" class="bg_tr">奖金</td><td height="25" class="bg_tr">全勤(钱数)</td> |
||||
<td height="25" class="bg_tr">通时(钱数)</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" class="td_bg"><input name="try_extjob_pay" type="text" value="<?=$pay_info->try_extjob_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="extjob_pay" type="text" value="<?=$pay_info->extjob_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="give_social_pay" type="text" value="<?=$pay_info->give_social_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="calls" type="text" value="<?=$pay_info->calls?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="bus" type="text" value="<?=$pay_info->bus?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="bonus" type="text" value="<?=$pay_info->bonus?>" style="width:60px;"/></td>
|
||||
|
||||
<td height="25" class="td_bg"><input name="get_full_attendance_pay" type="text" value="<?=$pay_info->get_full_attendance_pay ? $pay_info->get_full_attendance_pay : '0.00'?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="get_pass_time_pay" type="text" value="<?=$pay_info->get_pass_time_pay ? $pay_info->get_pass_time_pay : '0.00'?>" style="width:60px;"/></td>
|
||||
</tr> |
||||
</table> |
||||
<br> |
||||
<h3>应扣工资</h3> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="11" height="25" class="bg_tr">应扣</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" class="bg_tr">迟到</td> |
||||
<td height="25" class="bg_tr">事假</td> |
||||
<td height="25" class="bg_tr">病假</td> |
||||
<td height="25" class="bg_tr">社保</td> |
||||
<td height="25" class="bg_tr">罚款</td> |
||||
<td height="25" class="bg_tr">电费</td> |
||||
<td height="25" class="bg_tr">离职押金</td> |
||||
<td height="25" class="bg_tr">公积金</td> |
||||
<td height="25" class="bg_tr">个税</td> |
||||
<td height="25" class="bg_tr">全勤(钱数或百分比)</td> |
||||
<td height="25" class="bg_tr">通时(钱数或百分比)</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="25" class="td_bg"><input name="late_pay" type="text" value="<?=$pay_info->late_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="leave_pay" type="text" value="<?=$pay_info->leave_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="sick_pay" type="text" value="<?=$pay_info->sick_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="social_pay" type="text" value="<?=$pay_info->social_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="fine_pay" type="text" value="<?=$pay_info->fine_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="electricity_pay" type="text" value="<?=$pay_info->electricity_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="deposit" type="text" value="<?=$pay_info->deposit?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="public_pay" type="text" value="<?=$pay_info->public_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input type="text" name="tax" value="<?=$pay_info->tax?>" /></td>
|
||||
<td height="25" class="td_bg"><input name="full_attendance_pay" type="text" value="<?=$pay_info->full_attendance_pay?>" style="width:60px;"/></td>
|
||||
<td height="25" class="td_bg"><input name="pass_time_pay" type="text" value="<?=$pay_info->pass_time_pay?>" style="width:60px;"/></td>
|
||||
</tr> |
||||
</table> |
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
<?php endif;?> |
||||
<?php if($pay_info->chuna_status_id == 2):?> |
||||
<br> |
||||
|
||||
<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" class="hide-table"> |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<h3>保单提成</h3> |
||||
<?php if($my_type1_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="13" height="25" class="bg_tr">我的新保</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">商业净保费</td> |
||||
<td height="25" align="center" class="bg_tr">提奖</td> |
||||
<td height="25" align="center" class="bg_tr">应提金额</td> |
||||
<td height="25" align="center" class="bg_tr">原新保提成</td> |
||||
<td height="25" align="center" class="bg_tr">优惠金额</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼券</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼品</td> |
||||
<td height="25" align="center" class="bg_tr">自付减免</td> |
||||
<td height="25" align="center" class="bg_tr">实提金额</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$should_pay = 0; |
||||
$real_pay = 0; |
||||
$total1_clear = 0; |
||||
$total1_dis = 0; |
||||
foreach($my_type1_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu;//carwuordert |
||||
$money = $caiwu_info->money1; |
||||
$should_pay += $pay_order->should_pay; |
||||
$real_pay += $pay_order->real_pay; |
||||
$total1_clear += $order_info->total1_clear; |
||||
$total1_dis += $order_info->total1_dis; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_my_payids_1[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->ticheng_zong_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->should_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->first_xinbao_ticheng?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_dis?></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,0,1)"><?=$order_info->getGiftPrice(1,1)?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,0,0)"><?=$order_info->getGiftPrice(1,0)?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->yuangong_money?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_clear,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($should_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_dis,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<?php if($my_type3_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="13" height="25" class="bg_tr">我的续保</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">商业净保费</td> |
||||
<td height="25" align="center" class="bg_tr">提奖</td> |
||||
<td height="25" align="center" class="bg_tr">应提金额</td> |
||||
<td height="25" align="center" class="bg_tr">优惠金额</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼券</td> |
||||
<td height="25" align="center" class="bg_tr">自费礼品</td> |
||||
<td height="25" align="center" class="bg_tr">自付减免</td> |
||||
<td height="25" align="center" class="bg_tr">实提金额</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$should_pay = 0; |
||||
$real_pay = 0; |
||||
$total1_clear = 0; |
||||
$total1_dis = 0; |
||||
foreach($my_type3_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu;//carwuordert |
||||
$money = $caiwu_info->money1; |
||||
$should_pay += $pay_order->should_pay; |
||||
$real_pay += $pay_order->real_pay; |
||||
$total1_clear += $order_info->total1_clear; |
||||
$total1_dis += $order_info->total1_dis; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_my_payids_1[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_clear?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->ticheng_zong_rate?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->should_pay?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->total1_dis?></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,0,1)"><?=$order_info->getGiftPrice(1,1)?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><a href="javascript:void(0);" onclick="open_gift_dlg(<?=$order_info->id?>,0,0)"><?=$order_info->getGiftPrice(1,0)?></a></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->yuangong_money?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_clear,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($should_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"><?=number_format($total1_dis,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
|
||||
<?php if($type3_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="7" height="25" class="bg_tr">送单统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">送单地址</td> |
||||
<td height="25" align="center" class="bg_tr">时间</td> |
||||
<td height="25" align="center" class="bg_tr">送单提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($type3_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu; |
||||
$send_info = $order_info->sendLog; |
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="tc_send_payids[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($order_info->id_man,15)?></td>
|
||||
<td height="25" align="left" class="td_bg"> |
||||
<?=$order_info->direction1?$order_info->direction1->name:''?> |
||||
<?=$order_info->range1?$order_info->range1->name:''?> |
||||
<?=$order_info->city1?$order_info->city1->name:''?> |
||||
<?=$order_info->district1?$order_info->district1->name:''?> |
||||
<?=$order_info->send_address1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=date('Y-m-d H:i:s',$send_info->send_time)?></td>
|
||||
<td height="25" align="center" nowrap class="td_bg"><input name="send_moneys[]" type="text" value="<?=$caiwu_info->songdan_ticheng?>" style="width:60px;"/></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<!-- 内勤核保--> |
||||
|
||||
<?php if($my_type5_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="7" height="25" class="bg_tr">核保统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">核保比例</td> |
||||
<td height="25" align="center" class="bg_tr">正本日期</td> |
||||
<td height="25" align="center" class="bg_tr">核保提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
|
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type5_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu; |
||||
$rate = $caiwu_info->hebao_ticheng; |
||||
// $money = $caiwu_info->money4; |
||||
$send_info = $order_info->sendLog; |
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="neqi_payids[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($order_info->id_man,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$rate?>元</td>
|
||||
<td height="25" align="center" class="td_bg"><?=$send_info?date('Y-m-d H:i:s',$send_info->send_time):''?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?>元</td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
|
||||
|
||||
<!-- 内勤正本--> |
||||
|
||||
<?php if($my_type6_query->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="7" height="25" class="bg_tr">正本统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
<td height="25" align="center" class="bg_tr">车牌号</td> |
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">正本比例</td> |
||||
<td height="25" align="center" class="bg_tr">时间</td> |
||||
<td height="25" align="center" class="bg_tr">正本提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type6_query->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->order; |
||||
$caiwu_info = $order_info->caiwu; |
||||
$rate = $caiwu_info->zhengben_ticheng; |
||||
$send_info = $order_info->sendLog; |
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="zhengben[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
<td height="25" align="center" class="td_bg"><?=$order_info->car_no?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($order_info->id_man,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$rate?>元</td>
|
||||
<td height="25" align="center" class="td_bg"><?=$send_info?date('Y-m-d H:i:s',$send_info->send_time):''?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/insurer/info?id=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<br> |
||||
<h3>非车险提成</h3> |
||||
<!-- 非车险销售--> |
||||
<?php if($my_type1_query_non->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="6" height="25" class="bg_tr">非车险销售统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
|
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">提成比例</td> |
||||
<td height="25" align="center" class="bg_tr">核保日期</td> |
||||
<td height="25" align="center" class="bg_tr">提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type1_query_non->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->nonOrder; |
||||
$non_info = $order_info->nonInsurance; |
||||
$caiwu_info = $order_info->caiwu1;//ordercarwut |
||||
|
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="non_hebao[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($non_info->insurant_name,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->non_rate?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$pay_order->real_pay?></td>
|
||||
<td height="25" align="center" class="td_bg">[<a href="/non-auto-insurance/bd-info-search?id= <?=$order_info->non_id?> &oid=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
<!-- 非车险核保--> |
||||
<?php if($my_type1_query_hebao->count() > 0) { ?> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" colspan="6" height="25" class="bg_tr">非车险核保统计</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr">序号</td> |
||||
|
||||
<td height="25" align="center" class="bg_tr">被保险人</td> |
||||
<td height="25" align="center" class="bg_tr">提成比例</td> |
||||
<td height="25" align="center" class="bg_tr">核保日期</td> |
||||
<td height="25" align="center" class="bg_tr">提成</td> |
||||
<td height="25" align="center" class="bg_tr">详情</td> |
||||
</tr> |
||||
<?php |
||||
$real_pay = 0; |
||||
foreach($my_type1_query_hebao->each() as $index=>$pay_order) { |
||||
$order_info = $pay_order->nonOrder; |
||||
$non_info = $order_info->nonInsurance; |
||||
$caiwu_info = $order_info->caiwu1;//ordercarwut |
||||
$rate = $caiwu_info->rate4; |
||||
|
||||
$real_pay += $pay_order->real_pay; |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="td_bg"> |
||||
<input type="hidden" name="non_hebao[]" value="<?=$pay_order->id?>">
|
||||
<?=$index+1?> |
||||
</td> |
||||
|
||||
<td height="25" align="center" class="td_bg"><?=MyLib::substr_cut($non_info->insurant_name,15)?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->non_rate?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg"><?=$order_info->print_date?></td>
|
||||
<td height="25" align="center" class="td_bg"><?=$caiwu_info->hebao_ticheng?></td>
|
||||
|
||||
<td height="25" align="center" class="td_bg">[<a href="/non-auto-insurance/bd-info-search?id= <?=$order_info->non_id?> &oid=<?=$order_info->id?>" target="_blank">详情</a>]</td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td width="50" height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
<td height="25" align="center" class="bg_tr"><?=number_format($real_pay,2)?></td>
|
||||
<td height="25" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
</table> |
||||
<?php } ?> |
||||
|
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
<?php endif;?> |
||||
<br> |
||||
<table> |
||||
|
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(3) name="navcell">▲操作记录</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb3 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" > |
||||
<TR> |
||||
<TD vAlign=top> |
||||
<div id="car_history_list"></div> |
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
</form> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
<script type="text/javascript" src="/js/artDialog/jquery.artDialog.js?skin=default"></script> |
||||
<script type="text/javascript" src="/js/artDialog/plugins/iframeTools.source.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
function cal_pay(obj1,total,dis,price1,price2,price3,price4,obj2,obj3) { |
||||
var total1 = Number($('#' + obj1).val())/100 * Number(total); |
||||
var total2 = total1 - Number(dis) - Number(price1) - Number(price2) - Number(price3) - Number(price4); |
||||
$('#' + obj2).val(total1.toFixed(2)); |
||||
$('#' + obj3).val(total2.toFixed(2)); |
||||
} |
||||
function cal_money(obj1,val,obj2) { |
||||
var total = Number($('#' + obj1).val())/100 * Number(val); |
||||
$('#' + obj2).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 open_gift_dlg(order_id,is_free,type) { |
||||
$.dialog.open('/finance/pay2-gift-info?user_id=<?=$user_info->id?>&pay_date=<?=$pay_date?>&order_id=' + order_id + '&is_free=' + is_free + '&type=' + type,{
|
||||
left: '40%', |
||||
top: '0%', |
||||
fixed: true |
||||
}); |
||||
} |
||||
|
||||
|
||||
//操作历史 |
||||
gotoPage('/personnel/ajax-history-index?pay_id=<?=$pay_info->id?>&page=1','car_history_list');
|
||||
|
||||
|
||||
$(function () { |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/finance/gongzi-all-save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//提交 |
||||
$('#return-btn').click(function(){ |
||||
var status_id = $('#status_id').val(); |
||||
if(status_id == 0) { |
||||
alert('请先选择退回目标'); |
||||
return; |
||||
} |
||||
|
||||
var r = prompt('退回原因', ''); |
||||
if(r != null && r != '') { |
||||
var params = $("#theFrm").serialize() + '&remark='+ r; |
||||
|
||||
$.post('/finance/gongzi-all-return-save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} else { |
||||
alert('不填写原因,无法退回'); |
||||
} |
||||
|
||||
|
||||
}); |
||||
|
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/finance/gongzi-all-list?<?=$back_params?>';
|
||||
}); |
||||
|
||||
|
||||
}); |
||||
|
||||
|
||||
</script> |
@ -0,0 +1,159 @@ |
||||
<?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/datepicker/WdatePicker.js"></script> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
<script type="text/javascript" language="javascript"> |
||||
//编辑 |
||||
function edit(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/finance/gongzi-all-info?id=' + id + '&pay_date=<?=$pay_date?>' + '&back_params=' + encodeURIComponent(params);
|
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/gongzi-all-list?" + params; |
||||
}); |
||||
$('#searchForm').submit(function(){ |
||||
$('#search-btn').click(); |
||||
return false; |
||||
}); |
||||
$("#reset-btn").click(function(){ |
||||
var pay_date = $('#pay_date').val(); |
||||
if(confirm('是否对'+ pay_date + '月份的工资进行重新计算?')) { |
||||
$('#reseting').show(); |
||||
$(this).hide(); |
||||
$.post('/finance/pay2-reset',{pay_date:pay_date},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
$('#reseting').hide(); |
||||
$(this).show(); |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
$("#pay-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/pay2-tiao?" + 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"> |
||||
工号:<input name="username" type="text" value="<?=$username?>">
|
||||
真实姓名:<input name="name" type="text" value="<?=$name?>">
|
||||
工资月份:<input name="pay_date" id="pay_date" class="Wdate" type="text" value="<?=$pay_date?>" onClick="WdatePicker({dateFmt:'yyyy-MM'})">
|
||||
分组:<select name="group_id"> |
||||
<option value="0">全部</option> |
||||
<?php |
||||
foreach($group_items as $group) { |
||||
echo '<option value="'.$group->id.'"'; |
||||
if($group->id == $group_id) |
||||
echo ' selected '; |
||||
echo '>'.$group->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
状态:<select name="status_id"> |
||||
<option value="0">全部</option> |
||||
<option value="1" <?=$status_id == 1?'selected':''?>>人事✔</option>
|
||||
<option value="2" <?=$status_id == 2?'selected':''?>>出纳✔</option>
|
||||
<option value="3" <?=$status_id == 3?'selected':''?>>人事✔,出纳✔</option>
|
||||
<option value="4" <?=$status_id == 4?'selected':''?>>财务✔</option>
|
||||
<option value="5" <?=$status_id == 5?'selected':''?>>老板✔</option>
|
||||
<option value="6" <?=$status_id == 6?'selected':''?>>已发放</option>
|
||||
<option value="10" <?=$status_id == 10?'selected':''?>>退回</option>
|
||||
|
||||
</select> |
||||
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<!-- <span id="reseting" style="display: none;">正在计算中...</span>--> |
||||
<!-- <input type="button" class="act_btn" id="reset-btn" name="reset-btn" value="重新计算">--> |
||||
<!-- <input type="button" class="act_btn" id="pay-btn" name="pay-btn" value="工资条">--> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="100" align="center" align="center" class="bg_tr">工号</td> |
||||
<td align="center" class="bg_tr">真实姓名</td> |
||||
<td width="100" align="center" class="bg_tr">工资月份</td> |
||||
<td 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> |
||||
<form id="delFrm"> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$pay_info = $item->getPay($pay_date); |
||||
$base_real_pay = 0; |
||||
$ticheng_real_pay = 0; |
||||
$is_begin = 0; |
||||
if($pay_info){ |
||||
$is_begin = 1; |
||||
$base_real_pay = $pay_info->base_real_pay; |
||||
$ticheng_real_pay = $pay_info->ticheng_real_pay; |
||||
} |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="left" class="td_bg" nowrap ><?=$item->username?></td>
|
||||
<td class="td_bg" nowrap><?=$item->name?></td>
|
||||
<td class="td_bg" nowrap><?=$pay_date?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->group?$item->group->name:''?></td>
|
||||
<!-- <td class="td_bg" nowrap><=$item->role?$item->role->name:''?></td>--> |
||||
<td align="center" class="td_bg" nowrap data="<?=$item->id?>">
|
||||
<?=number_format($base_real_pay,2)?>元
|
||||
</td> |
||||
<td align="center" class="td_bg" nowrap data="<?=$item->id?>">
|
||||
<?=number_format($ticheng_real_pay,2)?>元
|
||||
</td> |
||||
<td align="center" class="td_bg" nowrap data="<?=$item->id?>">
|
||||
<?php if($is_begin == 0):?> |
||||
<?php else:?> |
||||
<?=$pay_info->getStatus($pay_info->status_id)?> |
||||
<?php endif;?> |
||||
|
||||
</td> |
||||
<td align="center" class="td_bg" nowrap> |
||||
<?php if($is_begin == 0):?> |
||||
<?php else:?> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">详情</a>]
|
||||
<?php endif;?> |
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</form> |
||||
<tr> |
||||
<td width="100" align="center" align="center" class="bg_tr"></td> |
||||
<td align="center" class="bg_tr"></td> |
||||
<td width="100" align="center" class="bg_tr"></td> |
||||
<td align="center" class="bg_tr"></td> |
||||
<td width="60" align="center" class="bg_tr"></td> |
||||
<td width="60" align="center" class="bg_tr"><?=number_format($total_real_pay,2)?></td>
|
||||
<td width="30" align="center" class="bg_tr"></td> |
||||
</tr> |
||||
<tr > |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
@ -0,0 +1,289 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<script src="/Myfile/lib/layui/layui.js"></script> |
||||
|
||||
<link rel="stylesheet" href="/js/fileupload/css/jquery.fileupload.css"> |
||||
<table lay-size="sm" class="layui-table "> |
||||
|
||||
<form id="searchForm"> |
||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
|
||||
保险类型 |
||||
<select name="insurer_type" class="insurer_type"> |
||||
<option value=0>全部</option> |
||||
<option value=1 <?= $insurer_type==1?'selected':'' ?>>商业</option>
|
||||
<option value=2 <?= $insurer_type==2?'selected':'' ?>>交强</option>
|
||||
</select> |
||||
保单号:<input name="insurer_no" type="text" value="<?=$insurer_no?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
工号:<input name="username" type="text" value="<?=$username?>">
|
||||
<!--日期--> |
||||
出单日期: |
||||
<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 ?>" />
|
||||
<br> |
||||
<br> |
||||
回单日期: |
||||
<input type="Text" class="Wdate" name="r_begin_date" onclick="WdatePicker()" value="<?= $r_begin_date ?>" />
|
||||
-- |
||||
<input type="Text" class="Wdate" name="r_end_date" onclick="WdatePicker()" value="<?= $r_end_date ?>" />
|
||||
<br>保险公司:<select name="company_id"> |
||||
<option value="0">所有模型</option> |
||||
<?php |
||||
foreach($company_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $company_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
级别:<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> |
||||
排序: |
||||
<select name="sort_key"> |
||||
<option value="0">请选择</option> |
||||
<option value="print_date" <?= $sort_key == 'print_date' ? 'selected' : ''?>>出单日期</option>
|
||||
<option value="total" <?= $sort_key == 'total' ? 'selected' : ''?>>商业总保费</option>
|
||||
<option value="total_clear" <?= $sort_key == 'total_clear' ? 'selected' : ''?>>商业净保费</option>
|
||||
<option value="total_rate" <?= $sort_key == 'total_rate' ? 'selected' : ''?>>手续费比例</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="0">请选择</option> |
||||
<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="搜索"> |
||||
<!-- <input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出">--> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
|
||||
<table width="100%" class="layui-elip layui-table" lay-filter="demo"> |
||||
<thead> |
||||
<tr> |
||||
<th width="24" align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username1',width:30}">序号</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username2'}">车牌号</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username4'}">保险公司</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username5'}">工号</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username6'}">级别</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username10',width:110}">保单号</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username11'}">提单日期</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username12'}">出单日期</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username13'}">保险类型</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username14'}">商业总保费</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username15'}">商业净保费</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username16'}">手续费比例</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username17'}">补点比例</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username18'}">应得金额</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username19'}">实得金额</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username20'}">回款金额</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username22'}">补点金额</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username23'}">回款补点</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username24'}">减免金额</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username25'}">礼品礼券</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username26'}">工资</th> |
||||
<th align="center" class="bg_tr" style="font-size:12px;" lay-data="{field:'username28'}">利润</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
|
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1)*20+$index; |
||||
$order = $item->order; |
||||
$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_info = $item->order; |
||||
|
||||
$total1_dis = $item->insurer_type == 1?($order_info->total1_dis + $order_info->yuangong_money):0; |
||||
|
||||
$gongzi = $item->insurer_type == 1?$item->getPayOrderUser()->sum('real_pay'):0; |
||||
|
||||
$ticket = $item->insurer_type == 1?$order_info->getGiftPrice(1,1):0; |
||||
$gift = $item->insurer_type == 1?$order_info->getGiftPrice(1,2):0; |
||||
|
||||
// $bu_dian = $item->insurer_type == 1?($item->b1_total+$item->b2_total+$item->b3_total):0; |
||||
$bu_dian = $item->budian_rate?$item->budian_rate * $item->total_clear / 100:0; |
||||
|
||||
$r_bu_dian = $item->insurer_type == 1?($item->b1_total+$item->b2_total+$item->b3_total):0; |
||||
|
||||
$liwu = $ticket + $gift; |
||||
|
||||
$lirun = $total_clear_real + $bu_dian - $total1_dis - $gongzi - $liwu; |
||||
|
||||
|
||||
|
||||
|
||||
?> |
||||
<tr style="height:24px;" onMouseOver="overColor(this)" onMouseOut="outColor(this)"> |
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$start_index+1?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->car_no?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$order && $order->company ? $order->company->name:''?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->user->username?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$uname?>-<?=$nams?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->insurer_no?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$order ? $order->submit_date : ''?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$order ? $order->print_date : ''?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->insurer_type==1?'商业':'交强'?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->total?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->total_clear?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->total_rate?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->budian_rate?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=sprintf("%.2f",$total_real)?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=sprintf("%.2f",$total_clear_real)?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$item->r_total?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=sprintf("%.2f",$bu_dian)?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=sprintf("%.2f",$r_bu_dian)?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$total1_dis?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$liwu?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$gongzi?></td>
|
||||
<td align="center" class="td_bg" style="font-size:12px;" ><?=$lirun?></td>
|
||||
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=number_format($sum_total,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($sum_total_clear,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=number_format($sum_r_total,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($bu_dian_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($r_bu_dian_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($total1_dis_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($liwu_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($gongzi_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($lirun_all,2)?></td>
|
||||
</tr> |
||||
|
||||
</tbody> |
||||
|
||||
</table> |
||||
<table> |
||||
<tbody> |
||||
|
||||
<tr> |
||||
<td height="25" colspan="20" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</tbody> |
||||
</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/fileupload/js/vendor/jquery.ui.widget.js"></script> |
||||
<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> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
|
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
<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 () { |
||||
|
||||
|
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var urlfile = $("#urlfile").val(); |
||||
var import_type = $(".import_type").val(); |
||||
|
||||
if(urlfile == ''){ |
||||
alert('请先选择文件!'); |
||||
return false; |
||||
} |
||||
var last_url = '/finance/receipt-process'; |
||||
var params = $("#theFrm").serialize(); |
||||
|
||||
$.post(last_url,params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success){ |
||||
$('#theFrm')[0].reset(); |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
//搜索 |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/receipt-lirun?" + params; |
||||
}); |
||||
//导出 |
||||
$("#output-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
//window.location.href = "/finance/receipt-output?" + params; |
||||
var url = "/finance/receipt-output"; |
||||
|
||||
$.get(url,params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.href = obj.files[0].src; |
||||
} |
||||
},'json'); |
||||
|
||||
}); |
||||
}) |
||||
</script> |
||||
<style> |
||||
input[type="text"] { |
||||
width: 134px; |
||||
} |
||||
|
||||
</style> |
||||
<script> |
||||
console.log(layui) |
||||
layui.use('table',function(){ |
||||
var table = layui.table; |
||||
var $ = layui.$; |
||||
//转换静态表格 |
||||
table.init('demo', { |
||||
limit: 100 |
||||
}); |
||||
$('.layui-table-cell').css('padding','0') |
||||
$('td').css('padding','0') |
||||
}) |
||||
</script> |
@ -0,0 +1,369 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
use common\models\OrderGiftT; |
||||
?> |
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!--新增搜索项--> |
||||
<!--完成程度--> |
||||
业务员:<input name="user_names" id="user_names" user_ids="" type="text" style="width:60%;" value="<?=$user_names?>">
|
||||
<br>模糊<input name="select_user" id="select_user" type="text" style="width:100px;" value=""> |
||||
<input type="checkbox" id="all" value="1">全选 |
||||
<input type="checkbox" id="no_num" value="1">非数字 |
||||
<input type="button" class="act_btn" id="add-user" name="add-user" value="+工号"> |
||||
<input type="checkbox" id="is_fan" value="1" <?=$is_fan==1?'checked':''?>>取反
|
||||
|
||||
<br> |
||||
|
||||
车牌类型:<select name="car_no_type"> |
||||
<option value="0" >所有类型</option> |
||||
<option value="1" <?= $car_no_type == 1 ? 'selected': ''?>>京牌</option>
|
||||
<option value="2" <?= $car_no_type == 2 ? 'selected': ''?>>非京牌</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 name="company_id"> |
||||
<option value="0">所有公司</option> |
||||
<?php |
||||
foreach($company_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $company_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
车牌号:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
<!--日期--> |
||||
出单日期: |
||||
<input type="Text" class="Wdate" name="begin_date" onclick="WdatePicker()" value="<?= $begin_date ?>" autocomplete="off" />
|
||||
-- |
||||
<input type="Text" class="Wdate" name="end_date" onclick="WdatePicker()" value="<?= $end_date ?>" autocomplete="off"/>
|
||||
<br>商业净保费: |
||||
<input type="Text" class="" name="begin_totalclear" " value="<?= $begin_totalclear ?>" />
|
||||
-- |
||||
<input type="Text" class="" name="end_totalclear" " value="<?= $end_totalclear?>" />
|
||||
级别:<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="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出"> |
||||
|
||||
</td> |
||||
</tr> |
||||
|
||||
</table> |
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
基本提成比例:<input name="yeji_rate" type="text" value="<?=$yeji_rate?>">%
|
||||
|
||||
团队长组: |
||||
<select name="dz_group"> |
||||
<option value="0">请选择</option> |
||||
<option value="1" <?php if($dz_group == 1){echo 'selected';}?>>团队长组1</option>
|
||||
<option value="2" <?php if($dz_group == 2){echo 'selected';}?>>团队长组2</option>
|
||||
<option value="3" <?php if($dz_group == 3){echo 'selected';}?>>团队长组3</option>
|
||||
<option value="4" <?php if($dz_group == 4){echo 'selected';}?>>团队长组4</option>
|
||||
<option value="5" <?php if($dz_group == 5){echo 'selected';}?>>团队长组5</option>
|
||||
</select> |
||||
团队长提成比例:<input name="dz_rate" type="text" value="<?=$dz_rate?>">%
|
||||
|
||||
团队长:<input name="dz_names" id="dz_names" type="text" style="width:30%;" value="<?=$dz_names?>">
|
||||
<input type="button" class="act_btn" id="add-dz" name="add-dz" value="+工号"> |
||||
|
||||
</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!--新增搜索项--> |
||||
<!--完成程度--> |
||||
|
||||
核保提成:<input name="hebao_ticheng" type="text" value="<?=$hebao_ticheng?>">元
|
||||
正本提成:<input name="zhengben_ticheng" type="text" value="<?=$zhengben_ticheng?>">元
|
||||
送单提成:<input name="songdan_ticheng" type="text" value="<?=$songdan_ticheng?>">元
|
||||
原新保提成比例:<input name="first_xinbao_rate" type="text" value="<?=$first_xinbao_rate?>">%
|
||||
|
||||
|
||||
<input type="button" class="act_btn" id="jisuan-btn" name="jisuan-btn" value="计算"> |
||||
<!-- <input type="button" class="act_btn" id="output-btn" name="output-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 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> |
||||
<td align="center" class="td_bg" nowrap>合计</td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap>总合计保费</td> |
||||
<td align="center" class="td_bg" nowrap><?=number_format($total1_clear_all+$total2_clear_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=number_format($total1_clear_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=number_format($yeji_ticheng_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=number_format($ticheng_money_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($lipin_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($liquan_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($yuangong_money_all,2)?></td>
|
||||
|
||||
<td align="center" class="td_bg" nowrap><?=number_format($yewu_ticheng_all,2)?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
</tr> |
||||
|
||||
<tr > |
||||
<td height="25" colspan="18" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
|
||||
<link href="/css/fSelect.css" rel="stylesheet" type="text/css"> |
||||
<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/fileupload/js/vendor/jquery.ui.widget.js"></script> |
||||
<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> |
||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
||||
<link rel="stylesheet" href="../Myfile/css/xadmin.css?v=20190605"> |
||||
<link rel="stylesheet" href="../Myfile/css/theme274.min.css?v=20190605"> |
||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
||||
<script src="../Myfile/lib/layui/layui.js?v=20190611" charset="utf-8"></script> |
||||
<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> |
||||
|
||||
|
||||
<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 () { |
||||
|
||||
//搜索 |
||||
$("#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){ |
||||
alert(obj.msg); |
||||
if(obj.success){ |
||||
window.location.href = "/finance/ticheng-jisuan?" + params; |
||||
} |
||||
},'json'); |
||||
}); |
||||
|
||||
//提交维修明细 |
||||
$('#add-user').click(function(){ |
||||
var params = $("#searchForm").serialize(); |
||||
art.dialog.open('/finance/add-user?' + '&select_user=' + $('#select_user').val() + '&all=' + $('#all:checked').val() + '&no_num=' + $('#no_num:checked').val(), |
||||
{title: '增加工号', width: 1000, height: 350, |
||||
close: function () { |
||||
var user_names = art.dialog.data('user_names'); // 读取子窗口返回的数据 |
||||
|
||||
if( typeof user_names != 'undefined') { |
||||
|
||||
var a = $('#user_names').val(); |
||||
if (a != '') { |
||||
a = a + ','; |
||||
} |
||||
$('#user_names').val(a + user_names); |
||||
} |
||||
|
||||
} |
||||
}); |
||||
|
||||
}); |
||||
|
||||
//提交维修明细 |
||||
$('#add-dz').click(function(){ |
||||
var params = $("#searchForm").serialize(); |
||||
art.dialog.open('/finance/add-user?'+ 'user_names=' + $('#dz_names').val() , |
||||
{title: '增加工号', width: 1000, height: 350, |
||||
close: function () { |
||||
var user_names = art.dialog.data('user_names'); // 读取子窗口返回的数据 |
||||
$('#dz_names').val(user_names); |
||||
|
||||
} |
||||
}); |
||||
|
||||
}); |
||||
|
||||
|
||||
|
||||
}) |
||||
</script> |
@ -0,0 +1,153 @@ |
||||
<?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-horizontal" id="theFrm" onsubmit="return false;"> |
||||
<input type="hidden" name="celuo_id" value="<?=$celuo_id?>">
|
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">保费</label> |
||||
<div class="col-sm-4"> |
||||
<div class="input-group"> |
||||
<input type="text" id="baofei" name="baofei" class="form-control" autocomplete="off" placeholder=""> |
||||
<div class="input-group-addon">元</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">车牌类型</label> |
||||
<div class="col-sm-4"> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_type_id_1" name="car_type_id[]" value="1"> |
||||
<label for="car_type_id_1">京牌</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_type_id_2" name="car_type_id[]" value="2"> |
||||
<label for="car_type_id_2">非京牌</label> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">保费公司</label> |
||||
<div class="col-sm-10"> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="company_id_1" name="company_id[]" value="1"> |
||||
<label for="company_id_1">人保</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="company_id_4" name="company_id[]" value="4"> |
||||
<label for="company_id_4">太平洋</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="company_id_7" name="company_id[]" value="7"> |
||||
<label for="company_id_7">人寿</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="company_id_8" name="company_id[]" value="8"> |
||||
<label for="company_id_8">平安</label> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">车牌使用性质</label> |
||||
<div class="col-sm-9"> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_1" name="car_use_id[]" value="1"> |
||||
<label for="car_use_id_1">家庭自用车</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_2" name="car_use_id[]" value="2"> |
||||
<label for="car_use_id_2">党政机关、事业团体</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_3" name="car_use_id[]" value="3"> |
||||
<label for="car_use_id_3">非营业企业客车</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_4" name="car_use_id[]" value="4"> |
||||
<label for="car_use_id_4">不区分营业非营业</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_5" name="car_use_id[]" value="5"> |
||||
<label for="car_use_id_5">出租租赁</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_6" name="car_use_id[]" value="6"> |
||||
<label for="car_use_id_6">营业货车</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_7" name="car_use_id[]" value="7"> |
||||
<label for="car_use_id_7">非营业货车</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="car_use_id_8" name="car_use_id[]" value="8"> |
||||
<label for="car_use_id_8">城市公交</label> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">数据类型</label> |
||||
<div class="col-sm-4"> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="type_id_1" name="type_id[]" value="1"> |
||||
<label for="type_id_1">新保</label> |
||||
</div> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="type_id_2" name="type_id[]" value="2"> |
||||
<label for="type_id_2">续保</label> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<hr> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">客户返现</label> |
||||
<div class="col-sm-4"> |
||||
<div class="input-group"> |
||||
<input type="text" id="rate" name="rate" class="form-control" autocomplete="off"> |
||||
<div class="input-group-addon">%</div> |
||||
</div> |
||||
</div> |
||||
<label class="col-sm-2 control-label">最高返现</label> |
||||
<div class="col-sm-4"> |
||||
<div class="input-group"> |
||||
<input type="text" id="max_cashback" name="max_cashback" class="form-control" autocomplete="off"> |
||||
<div class="input-group-addon">元</div> |
||||
</div> |
||||
</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 () { |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/marketing-strategy/fanxian-save',params,function(obj){ |
||||
if(obj.success) { |
||||
parent.layer.msg('保存成功'); |
||||
parent.readFanXians(); |
||||
layer_close(); |
||||
} else { |
||||
layer.msg(data.msg); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -0,0 +1,83 @@ |
||||
<?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-horizontal" id="theFrm" onsubmit="return false;"> |
||||
<input type="hidden" name="celuo_id" value="<?=$celuo_id?>">
|
||||
<input type="hidden" name="fanxian_id" value="<?=$fanxian_id?>">
|
||||
<input type="hidden" name="gift_type" value="1"> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">礼品类型</label> |
||||
<div class="col-sm-4"> |
||||
<select name="free_type" id="type" class="form-control"> |
||||
<option value="3">M选N模式</option> |
||||
<option value="2">收费模式</option> |
||||
<option value="1">免费模式</option> |
||||
</select> |
||||
</div> |
||||
<div class="col-sm-2"> |
||||
<div class="input-group"> |
||||
<div class="input-group-addon">N=</div> |
||||
<input type="text" name="n" id="n" class="form-control"> |
||||
<div class="input-group-addon">个</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">选择礼品</label> |
||||
<div class="col-sm-9"> |
||||
<div class="row"> |
||||
<?php foreach($items as $item) { ?> |
||||
<div class="col-sm-2 mb-8"> |
||||
<div class="checkbox checkbox-inline"> |
||||
<input type="checkbox" id="gift_id_<?=$item->id?>" name="gift_ids[]" value="<?=$item->id?>">
|
||||
<label for="gift_id_<?=$item->id?>"><?=$item->name?></label>
|
||||
</div> |
||||
</div> |
||||
<div class="col-sm-2 mb-8"> |
||||
<div class="input-group"> |
||||
<input type="text" name="gift_prices[<?=$item->id?>]" class="form-control" value="<?=$item->price?>">
|
||||
<div class="input-group-addon">元</div> |
||||
</div> |
||||
</div> |
||||
<?php } ?> |
||||
</div> |
||||
</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 () { |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/marketing-strategy/gift-save',params,function(obj){ |
||||
if(obj.success) { |
||||
parent.layer.msg('保存成功'); |
||||
parent.readFanXians(); |
||||
layer_close(); |
||||
} else { |
||||
layer.msg(data.msg); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -0,0 +1,70 @@ |
||||
<?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-horizontal" id="theFrm" onsubmit="return false;"> |
||||
<input type="hidden" name="id" value="<?=$id?>">
|
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">搜索工号</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" id="username" name="username" class="form-control" autocomplete="off"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">选择员工</label> |
||||
<div class="col-sm-9" 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 () { |
||||
$('#username').change(function() { |
||||
var key = $(this).val(); |
||||
|
||||
$('#users').html(''); |
||||
$.get('/marketing-strategy/search-user?key=' + key, 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.id + '">'; |
||||
html += '<label for="user_' + item.id + '"> ' + item.name + ' </label>'; |
||||
html += '</div>'; |
||||
$('#users').html( $('#users').html() + html); |
||||
}); |
||||
} |
||||
},'json'); |
||||
}); |
||||
|
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/marketing-strategy/users-add',params,function(obj){ |
||||
if(obj.success) { |
||||
parent.layer.msg('保存成功'); |
||||
parent.readUsers(); |
||||
layer_close(); |
||||
} else { |
||||
layer.msg(data.msg); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -0,0 +1,15 @@ |
||||
.mb-8 { |
||||
margin-bottom: 8px; |
||||
} |
||||
.mr-8 { |
||||
margin-right: 8px; |
||||
} |
||||
.mt-8 { |
||||
margin-top: 8px; |
||||
} |
||||
.ml-8 { |
||||
margin-left: 8px; |
||||
} |
||||
.m-8 { |
||||
margin: 8px; |
||||
} |
Loading…
Reference in new issue