You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
12 KiB
207 lines
12 KiB
5 years ago
|
<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->should_pay,2)?></span> 元 <span style="color:#ff0000;">实发工资:<span><?=number_format($pay_info->real_pay,2)?></span> 元</span></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>
|
||
|
<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"><?=$user_info->try_pay?></td>
|
||
|
<td height="25" class="td_bg"><?=$group_info?$group_info->job_pay:''?></td>
|
||
|
<td height="25" class="td_bg"><?=$user_info->ext_pay?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<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="8" 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>
|
||
|
<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_attendance_days" type="text" value="<?=$pay_info->try_attendance_days?>" style="width:60px;"/></td>
|
||
|
<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="attendance_days" type="text" value="<?=$pay_info->attendance_days?>" 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="commission" type="text" value="<?=$pay_info->commission?>" style="width:60px;"/></td>
|
||
|
<td height="25" class="td_bg"><?=number_format($pay_info->calGrticheng(),2)?></td>
|
||
|
<td height="25" class="td_bg"><?=number_format($pay_info->calGrbaofei(),2)?></td>
|
||
|
<td height="25" class="td_bg"><?=number_format($pay_info->calGsbaofei(),2)?></td>
|
||
|
<td height="25" class="td_bg"><?=number_format($pay_info->calBmbaofei(),2)?></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>
|
||
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
||
|
<tr>
|
||
|
<td align="center" colspan="4" height="25" class="bg_tr">财务信息</td>
|
||
|
<td align="center" colspan="2" height="25" class="bg_tr">司机提成</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>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->calls?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->bus?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->bonus?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->turnover?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->driver_num?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->driver_price?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->fix_total?></td>
|
||
|
<td height="25" class="td_bg"><?=$pay_info->fix_rate?>%</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
||
|
<tr>
|
||
|
<td align="center" colspan="4" height="25" class="bg_tr">提成计算方式</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td height="25" class="bg_tr">提成计算公式</td>
|
||
|
<td height="25" class="td_bg"><input name="formulae" type="text" value="<?=$pay_info->formulae?>" style="width:320px;"/></td>
|
||
|
<td height="25" class="bg_tr">备注</td>
|
||
|
<td height="25" class="td_bg">个人提成:grTicheng,个人保费:grBaoFei,全司保费:gsBaoFei,部门保费:bmBaoFei,营业额:yyg。</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<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>
|
||
|
<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 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>
|
||
|
<div align="center">
|
||
|
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/>
|
||
|
|
||
|
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" value=" 返回 ">
|
||
|
</div>
|
||
|
</form>
|
||
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
||
|
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
|
||
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
$(function () {
|
||
|
//提交按钮
|
||
|
$("#submit-btn").click(function(){
|
||
|
if(confirm('是否确认提交?')) {
|
||
|
var params = $("#theFrm").serialize();
|
||
|
$.post('/personnel/pay-save',params,function(obj){
|
||
|
alert(obj.msg);
|
||
|
if(obj.success) {
|
||
|
$('#back-btn').click();
|
||
|
}
|
||
|
},'json');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
//返回按钮
|
||
|
$('#back-btn').click(function(){
|
||
|
window.location.href='/personnel/pay-list?<?=$back_params?>';
|
||
|
});
|
||
|
})
|
||
|
|
||
|
function tryPay(mySelf){
|
||
|
var myVal = new Number(mySelf.val());
|
||
|
var days = <?=$user_info->worktype->days?>;
|
||
|
var try_pay = new Number(myVal / days);
|
||
|
var formal_pay = new Number($('input[name="formal_pay"]').val());
|
||
|
|
||
|
if(try_pay == 0 || formal_pay == 0){
|
||
|
$('#submit-btn').hide();
|
||
|
alert('日均工资不能为零');
|
||
|
return;
|
||
|
}else{
|
||
|
$('#submit-btn').show();
|
||
|
}
|
||
|
var ht = '试用('+ try_pay.toFixed(2) +')';
|
||
|
|
||
|
$('.try_pay').html(ht);
|
||
|
}
|
||
|
|
||
|
function formalPay(mySelf) {
|
||
|
var myVal = new Number(mySelf.val());
|
||
|
var days = <?=$user_info->worktype->days?>;
|
||
|
var formal_pay = new Number(myVal / days);
|
||
|
var try_pay = new Number($('input[name="try_pay"]').val());
|
||
|
|
||
|
if(formal_pay == 0 || try_pay == 0){
|
||
|
$('#submit-btn').hide();
|
||
|
alert('工资不能为零');
|
||
|
return;
|
||
|
}else{
|
||
|
$('#submit-btn').show();
|
||
|
}
|
||
|
|
||
|
var ht = '转正('+ formal_pay.toFixed(2) +')';
|
||
|
|
||
|
$('.formal_pay').html(ht);
|
||
|
}
|
||
|
</script>
|