commit
f72d6ca2eb
@ -1,155 +1,146 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
<?php $this->endBlock(); ?> |
||||||
<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(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(0); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>出纳工资管理</h5> |
||||||
window.location.href = "/finance/chuna-gongzi-list?" + params; |
<div class="ibox-tools"> |
||||||
}); |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
$('#searchForm').submit(function(){ |
<i class="fa fa-refresh"></i> 刷新 |
||||||
$('#search-btn').click(); |
</a> |
||||||
return false; |
</div> |
||||||
}); |
</div> |
||||||
$("#reset-btn").click(function(){ |
<div class="ibox-content"> |
||||||
var pay_date = $('#pay_date').val(); |
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();"> |
||||||
if(confirm('是否对'+ pay_date + '月份的工资进行重新计算?')) { |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
$('#reseting').show(); |
<label>工号</label> |
||||||
$(this).hide(); |
<input type="text" name="username" id="username" class="form-control"> |
||||||
$.post('/finance/pay2-reset',{pay_date:pay_date},function(obj){ |
</div> |
||||||
alert(obj.msg); |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
if(obj.success) { |
<label>真实姓名</label> |
||||||
window.location.reload(); |
<input type="text" name="name" id="name" class="form-control"> |
||||||
} |
</div> |
||||||
$('#reseting').hide(); |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
$(this).show(); |
<label>工资月份</label> |
||||||
},'json'); |
<input type="text" name="pay_date" id="pay_date" class="form-control date" value="<?=date('Y-m')?>" autocomplete="off">
|
||||||
} |
</div> |
||||||
}); |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>是否离职</label> |
||||||
$("#pay-btn").click(function(){ |
<select name="is_leave" class="form-control"> |
||||||
var params = $('#searchForm').serialize(); |
<option value="">全部</option> |
||||||
window.location.href = "/finance/pay2-tiao?" + params; |
<option value="1">是</option> |
||||||
}); |
<option value="0">否</option> |
||||||
}); |
</select> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
</script> |
<label>分组</label> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<select name="group_id" class="form-control"> |
||||||
<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> |
<option value="0">全部</option> |
||||||
<?php |
<?php |
||||||
foreach($group_items as $group) { |
foreach($group_items as $group) { |
||||||
echo '<option value="'.$group->id.'"'; |
echo '<option value="'.$group->id.'">'.$group->name.'</option>'; |
||||||
if($group->id == $group_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$group->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
?> |
||||||
</select> |
</select> |
||||||
状态:<select name="status_id"> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>状态</label> |
||||||
|
<select name="status_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<option value="1" <?=$status_id == 1?'selected':''?>>人事✔</option>
|
<option value="1">人事✔</option> |
||||||
<option value="2" <?=$status_id == 2?'selected':''?>>出纳✔</option>
|
<option value="2">出纳✔</option> |
||||||
<option value="3" <?=$status_id == 3?'selected':''?>>人事✔,出纳✔</option>
|
<option value="3">人事✔,出纳✔</option> |
||||||
<option value="4" <?=$status_id == 4?'selected':''?>>财务✔</option>
|
<option value="4">财务✔</option> |
||||||
<option value="5" <?=$status_id == 5?'selected':''?>>老板✔</option>
|
<option value="5">老板✔</option> |
||||||
<option value="6" <?=$status_id == 6?'selected':''?>>已发放</option>
|
<option value="6">已发放</option> |
||||||
<option value="8" <?=$status_id == 7?'selected':''?>>退回</option>
|
<option value="7">退回</option> |
||||||
|
|
||||||
</select> |
</select> |
||||||
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
</div> |
||||||
退回数量:<span style="color: red"><?=$return_count?></span>
|
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||||
<!-- <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> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="100" align="center" align="center" class="bg_tr">工号</td> |
<th width="50" data-field="id">ID</th> |
||||||
<td align="center" class="bg_tr">真实姓名</td> |
<th data-field="username">工号</th> |
||||||
<td width="100" align="center" class="bg_tr">工资月份</td> |
<th data-field="name">真实姓名</th> |
||||||
<td align="center" class="bg_tr">所属岗位</td> |
<th data-field="pay_date">工资月份</th> |
||||||
<td width="60" align="center" class="bg_tr">提成工资</td> |
<th data-field="group_name">所属岗位</th> |
||||||
<td width="60" align="center" class="bg_tr">状态</td> |
<th data-field="should_pay">提成工资</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
<th data-field="is_leave">是否离职</th> |
||||||
|
<th data-field="status_name">状态</th> |
||||||
|
<th data-formatter="opFormatter">操作</th> |
||||||
</tr> |
</tr> |
||||||
<form id="delFrm"> |
</thead> |
||||||
<?php |
</table> |
||||||
foreach($items as $index => $item) { |
</div> |
||||||
$pay_info = $item->getPay($pay_date); |
</div> |
||||||
$base_real_pay = 0; |
</div> |
||||||
$ticheng_real_pay = 0; |
</div> |
||||||
|
</div> |
||||||
|
|
||||||
$shouldPay = $item->getChunaShouldPay($pay_date); |
|
||||||
|
|
||||||
$is_begin = 0; |
<?php $this->beginBlock('footer_js'); ?> |
||||||
if($pay_info) { |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
$is_begin = 1; |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
$ticheng_real_pay = $pay_info->ticheng_real_pay; |
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
|
<script> |
||||||
|
var o = {}; |
||||||
|
function opFormatter(value, row, index) { |
||||||
|
var opStr = []; |
||||||
|
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||||
|
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||||
|
opStr.push('</a>'); |
||||||
|
|
||||||
|
return opStr.join(' '); |
||||||
|
} |
||||||
|
function edit(id) { |
||||||
|
var title = '详情'; |
||||||
|
var pay_date = $('#pay_date').val(); |
||||||
|
layer_show(title, '/finance/chuna-gongzi-info?id=' + id + '&pay_date=' + pay_date); |
||||||
|
} |
||||||
|
function refreshList() { |
||||||
|
$('#listTable').bootstrapTable('refresh'); |
||||||
|
} |
||||||
|
function search() { |
||||||
|
o = {}; |
||||||
|
var params = $("#searchFrm").serializeArray(); |
||||||
|
$.each(params, function(index) { |
||||||
|
o[this['name']] = this['value']; |
||||||
|
}); |
||||||
|
$('#listTable').bootstrapTable('destroy'); |
||||||
|
$('#listTable').bootstrapTable({ |
||||||
|
url: "/finance/chuna-gongzi-list-json", |
||||||
|
pagination: false, |
||||||
|
sidePagination: 'server', |
||||||
|
queryParams: function(params) { |
||||||
|
o['offset'] = params['offset']; |
||||||
|
o['limit'] = params['limit']; |
||||||
|
return o; |
||||||
|
} |
||||||
|
}); |
||||||
|
return false; |
||||||
} |
} |
||||||
?> |
|
||||||
<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?>">
|
$(function() { |
||||||
<?=number_format($shouldPay,2)?>元
|
search(); |
||||||
</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> |
$('.date').datepicker({ |
||||||
<td align="center" class="td_bg" nowrap> |
minViewMode: 1, |
||||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">详情</a>]
|
keyboardNavigation: false, |
||||||
</td> |
forceParse: false, |
||||||
</tr> |
autoclose: true, |
||||||
<?php |
todayHighlight: true, |
||||||
} |
format: "yyyy-mm" |
||||||
?> |
}); |
||||||
</form> |
}); |
||||||
<tr> |
</script> |
||||||
<td width="100" align="center" align="center" class="bg_tr"></td> |
<?php $this->endBlock(); ?> |
||||||
<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> |
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,159 +1,149 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
<?php $this->endBlock(); ?> |
||||||
<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> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<div class="ibox float-e-margins"> |
||||||
<form id="searchForm"> |
<div class="ibox-title"> |
||||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
<h5>出纳工资管理</h5> |
||||||
<tr> |
<div class="ibox-tools"> |
||||||
<td class="td_bg"> |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
工号:<input name="username" type="text" value="<?=$username?>">
|
<i class="fa fa-refresh"></i> 刷新 |
||||||
真实姓名:<input name="name" type="text" value="<?=$name?>">
|
</a> |
||||||
工资月份:<input name="pay_date" id="pay_date" class="Wdate" type="text" value="<?=$pay_date?>" onClick="WdatePicker({dateFmt:'yyyy-MM'})">
|
</div> |
||||||
分组:<select name="group_id"> |
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();"> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>工号</label> |
||||||
|
<input type="text" name="username" id="username" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>真实姓名</label> |
||||||
|
<input type="text" name="name" id="name" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>工资月份</label> |
||||||
|
<input type="text" name="pay_date" id="pay_date" class="form-control date" value="<?=date('Y-m')?>" autocomplete="off">
|
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>是否离职</label> |
||||||
|
<select name="is_leave" class="form-control"> |
||||||
|
<option value="">全部</option> |
||||||
|
<option value="1">是</option> |
||||||
|
<option value="0">否</option> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>分组</label> |
||||||
|
<select name="group_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<?php |
<?php |
||||||
foreach($group_items as $group) { |
foreach($group_items as $group) { |
||||||
echo '<option value="'.$group->id.'"'; |
echo '<option value="'.$group->id.'">'.$group->name.'</option>'; |
||||||
if($group->id == $group_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$group->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
?> |
||||||
</select> |
</select> |
||||||
状态:<select name="status_id"> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>状态</label> |
||||||
|
<select name="status_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<option value="1" <?=$status_id == 1?'selected':''?>>人事✔</option>
|
<option value="1">人事✔</option> |
||||||
<option value="2" <?=$status_id == 2?'selected':''?>>出纳✔</option>
|
<option value="2">出纳✔</option> |
||||||
<option value="3" <?=$status_id == 3?'selected':''?>>人事✔,出纳✔</option>
|
<option value="3">人事✔,出纳✔</option> |
||||||
<option value="4" <?=$status_id == 4?'selected':''?>>财务✔</option>
|
<option value="4">财务✔</option> |
||||||
<option value="5" <?=$status_id == 5?'selected':''?>>老板✔</option>
|
<option value="5">老板✔</option> |
||||||
<option value="6" <?=$status_id == 6?'selected':''?>>已发放</option>
|
<option value="6">已发放</option> |
||||||
<option value="10" <?=$status_id == 10?'selected':''?>>退回</option>
|
<option value="7">退回</option> |
||||||
|
|
||||||
</select> |
</select> |
||||||
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
</div> |
||||||
<!-- <span id="reseting" style="display: none;">正在计算中...</span>--> |
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||||
<!-- <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> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="100" align="center" align="center" class="bg_tr">工号</td> |
<th width="50" data-field="id">ID</th> |
||||||
<td align="center" class="bg_tr">真实姓名</td> |
<th data-field="username">工号</th> |
||||||
<td width="100" align="center" class="bg_tr">工资月份</td> |
<th data-field="name">真实姓名</th> |
||||||
<td align="center" class="bg_tr">所属岗位</td> |
<th data-field="pay_date">工资月份</th> |
||||||
<!-- <td width="60" align="center" class="bg_tr">角色</td>--> |
<th data-field="group_name">所属岗位</th> |
||||||
<td width="60" align="center" class="bg_tr">基本工资</td> |
<th data-field="real_pay">基本工资</th> |
||||||
<td width="60" align="center" class="bg_tr">提成工资</td> |
<th data-field="should_pay">提成工资</th> |
||||||
<td width="60" align="center" class="bg_tr">状态</td> |
<th data-field="is_leave">是否离职</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
<th data-field="status_name">状态</th> |
||||||
|
<th data-formatter="opFormatter">操作</th> |
||||||
</tr> |
</tr> |
||||||
<form id="delFrm"> |
</thead> |
||||||
<?php |
</table> |
||||||
foreach($items as $index => $item) { |
</div> |
||||||
$pay_info = $item->getPay($pay_date); |
</div> |
||||||
$base_real_pay = 0; |
</div> |
||||||
$ticheng_real_pay = 0; |
</div> |
||||||
$is_begin = 0; |
</div> |
||||||
if($pay_info){ |
|
||||||
$is_begin = 1; |
|
||||||
$base_real_pay = $pay_info->base_real_pay; |
<?php $this->beginBlock('footer_js'); ?> |
||||||
$ticheng_real_pay = $pay_info->ticheng_real_pay; |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
|
<script> |
||||||
|
var o = {}; |
||||||
|
function opFormatter(value, row, index) { |
||||||
|
var opStr = []; |
||||||
|
if(row.is_show == 1) { |
||||||
|
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||||
|
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||||
|
opStr.push('</a>'); |
||||||
} |
} |
||||||
?> |
|
||||||
<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> |
return opStr.join(' '); |
||||||
<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 |
|
||||||
} |
} |
||||||
?> |
function edit(id) { |
||||||
</form> |
var title = '详情'; |
||||||
<tr> |
var pay_date = $('#pay_date').val(); |
||||||
<td width="100" align="center" align="center" class="bg_tr"></td> |
layer_show(title, '/finance/gongzi-all-info?id=' + id + '&pay_date=' + pay_date); |
||||||
<td align="center" class="bg_tr"></td> |
} |
||||||
<td width="100" align="center" class="bg_tr"></td> |
function refreshList() { |
||||||
<td align="center" class="bg_tr"></td> |
$('#listTable').bootstrapTable('refresh'); |
||||||
<td width="60" align="center" class="bg_tr"></td> |
} |
||||||
<td width="60" align="center" class="bg_tr"><?=number_format($total_real_pay,2)?></td>
|
function search() { |
||||||
<td width="30" align="center" class="bg_tr"></td> |
o = {}; |
||||||
</tr> |
var params = $("#searchFrm").serializeArray(); |
||||||
<tr > |
$.each(params, function(index) { |
||||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
o[this['name']] = this['value']; |
||||||
</tr> |
}); |
||||||
</table> |
$('#listTable').bootstrapTable('destroy'); |
||||||
|
$('#listTable').bootstrapTable({ |
||||||
|
url: "/finance/pay2-list-json", |
||||||
|
pagination: false, |
||||||
|
sidePagination: 'server', |
||||||
|
queryParams: function(params) { |
||||||
|
o['offset'] = params['offset']; |
||||||
|
o['limit'] = params['limit']; |
||||||
|
return o; |
||||||
|
} |
||||||
|
}); |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
|
|
||||||
|
$('.date').datepicker({ |
||||||
|
minViewMode: 1, |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
autoclose: true, |
||||||
|
todayHighlight: true, |
||||||
|
format: "yyyy-mm" |
||||||
|
}); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,161 +1,149 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
<?php $this->endBlock(); ?> |
||||||
<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/pay2-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/pay2-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> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<div class="ibox float-e-margins"> |
||||||
<form id="searchForm"> |
<div class="ibox-title"> |
||||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
<h5>出纳工资管理</h5> |
||||||
<tr> |
<div class="ibox-tools"> |
||||||
<td class="td_bg"> |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
工号:<input name="username" type="text" value="<?=$username?>">
|
<i class="fa fa-refresh"></i> 刷新 |
||||||
真实姓名:<input name="name" type="text" value="<?=$name?>">
|
</a> |
||||||
工资月份:<input name="pay_date" id="pay_date" class="Wdate" type="text" value="<?=$pay_date?>" onClick="WdatePicker({dateFmt:'yyyy-MM'})">
|
</div> |
||||||
分组:<select name="group_id"> |
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();"> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>工号</label> |
||||||
|
<input type="text" name="username" id="username" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>真实姓名</label> |
||||||
|
<input type="text" name="name" id="name" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>工资月份</label> |
||||||
|
<input type="text" name="pay_date" id="pay_date" class="form-control date" value="<?=date('Y-m')?>" autocomplete="off">
|
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>是否离职</label> |
||||||
|
<select name="is_leave" class="form-control"> |
||||||
|
<option value="">全部</option> |
||||||
|
<option value="1">是</option> |
||||||
|
<option value="0">否</option> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>分组</label> |
||||||
|
<select name="group_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<?php |
<?php |
||||||
foreach($group_items as $group) { |
foreach($group_items as $group) { |
||||||
echo '<option value="'.$group->id.'"'; |
echo '<option value="'.$group->id.'">'.$group->name.'</option>'; |
||||||
if($group->id == $group_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$group->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
?> |
||||||
</select> |
</select> |
||||||
状态:<select name="status_id"> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>状态</label> |
||||||
|
<select name="status_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<option value="1" <?=$status_id == 1?'selected':''?>>人事✔</option>
|
<option value="1">人事✔</option> |
||||||
<option value="2" <?=$status_id == 2?'selected':''?>>出纳✔</option>
|
<option value="2">出纳✔</option> |
||||||
<option value="3" <?=$status_id == 3?'selected':''?>>人事✔,出纳✔</option>
|
<option value="3">人事✔,出纳✔</option> |
||||||
<option value="4" <?=$status_id == 4?'selected':''?>>财务✔</option>
|
<option value="4">财务✔</option> |
||||||
<option value="5" <?=$status_id == 5?'selected':''?>>老板✔</option>
|
<option value="5">老板✔</option> |
||||||
<option value="6" <?=$status_id == 6?'selected':''?>>已发放</option>
|
<option value="6">已发放</option> |
||||||
<option value="10" <?=$status_id == 10?'selected':''?>>退回</option>
|
<option value="7">退回</option> |
||||||
|
|
||||||
</select> |
</select> |
||||||
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
</div> |
||||||
<!-- <span id="reseting" style="display: none;">正在计算中...</span>--> |
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||||
<!-- <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="工资条">--> |
|
||||||
|
|
||||||
退回数量:<span style="color: red"><?=$return_count?></span>
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="100" align="center" align="center" class="bg_tr">工号</td> |
<th width="50" data-field="id">ID</th> |
||||||
<td align="center" class="bg_tr">真实姓名</td> |
<th data-field="username">工号</th> |
||||||
<td width="100" align="center" class="bg_tr">工资月份</td> |
<th data-field="name">真实姓名</th> |
||||||
<td align="center" class="bg_tr">所属岗位</td> |
<th data-field="pay_date">工资月份</th> |
||||||
<!-- <td width="60" align="center" class="bg_tr">角色</td>--> |
<th data-field="group_name">所属岗位</th> |
||||||
<td width="60" align="center" class="bg_tr">基本工资</td> |
<th data-field="real_pay">基本工资</th> |
||||||
<td width="60" align="center" class="bg_tr">提成工资</td> |
<th data-field="should_pay">提成工资</th> |
||||||
<td width="60" align="center" class="bg_tr">状态</td> |
<th data-field="is_leave">是否离职</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
<th data-field="status_name">状态</th> |
||||||
|
<th data-formatter="opFormatter">操作</th> |
||||||
</tr> |
</tr> |
||||||
<form id="delFrm"> |
</thead> |
||||||
<?php |
</table> |
||||||
foreach($items as $index => $item) { |
</div> |
||||||
$pay_info = $item->getPay($pay_date); |
</div> |
||||||
$base_real_pay = 0; |
</div> |
||||||
$ticheng_real_pay = 0; |
</div> |
||||||
$is_begin = 0; |
</div> |
||||||
if($pay_info) { |
|
||||||
$is_begin = 1; |
|
||||||
$base_real_pay = $pay_info->base_real_pay; |
<?php $this->beginBlock('footer_js'); ?> |
||||||
$ticheng_real_pay = $pay_info->ticheng_real_pay; |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
|
<script> |
||||||
|
var o = {}; |
||||||
|
function opFormatter(value, row, index) { |
||||||
|
var opStr = []; |
||||||
|
if(row.is_show == 1) { |
||||||
|
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||||
|
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||||
|
opStr.push('</a>'); |
||||||
} |
} |
||||||
?> |
|
||||||
<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> |
return opStr.join(' '); |
||||||
<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 |
|
||||||
} |
} |
||||||
?> |
function edit(id) { |
||||||
</form> |
var title = '详情'; |
||||||
<tr> |
var pay_date = $('#pay_date').val(); |
||||||
<td width="100" align="center" align="center" class="bg_tr"></td> |
layer_show(title, '/finance/pay2-info?id=' + id + '&pay_date=' + pay_date); |
||||||
<td align="center" class="bg_tr"></td> |
} |
||||||
<td width="100" align="center" class="bg_tr"></td> |
function refreshList() { |
||||||
<td align="center" class="bg_tr"></td> |
$('#listTable').bootstrapTable('refresh'); |
||||||
<td width="60" align="center" class="bg_tr"></td> |
} |
||||||
<td width="60" align="center" class="bg_tr"><?=number_format($total_real_pay,2)?></td>
|
function search() { |
||||||
<td width="30" align="center" class="bg_tr"></td> |
o = {}; |
||||||
</tr> |
var params = $("#searchFrm").serializeArray(); |
||||||
<tr > |
$.each(params, function(index) { |
||||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
o[this['name']] = this['value']; |
||||||
</tr> |
}); |
||||||
</table> |
$('#listTable').bootstrapTable('destroy'); |
||||||
|
$('#listTable').bootstrapTable({ |
||||||
|
url: "/finance/pay2-list-json", |
||||||
|
pagination: false, |
||||||
|
sidePagination: 'server', |
||||||
|
queryParams: function(params) { |
||||||
|
o['offset'] = params['offset']; |
||||||
|
o['limit'] = params['limit']; |
||||||
|
return o; |
||||||
|
} |
||||||
|
}); |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
|
|
||||||
|
$('.date').datepicker({ |
||||||
|
minViewMode: 1, |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
autoclose: true, |
||||||
|
todayHighlight: true, |
||||||
|
format: "yyyy-mm" |
||||||
|
}); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
@ -1,275 +0,0 @@ |
|||||||
<?php |
|
||||||
use \common\libs\MyLib; |
|
||||||
use \common\models\PriceT; |
|
||||||
?> |
|
||||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
|
||||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td height="22" colspan="2" class="td_bg"> |
|
||||||
<form id="orderFrm"> |
|
||||||
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable"> |
|
||||||
<tr> |
|
||||||
<td height="120" valign="top" class="td_bg"> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(1) name="navcell">▼非车险信息</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb1 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
||||||
<TR> |
|
||||||
<TD vAlign=top> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;"> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">被保险人姓名</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurant_name?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">证件号</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurant_number?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurant_phone?><?php if($info->insurant_phone1): ?>,<?=$info->insurant_phone1?><?php endif;?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">投保人姓名</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->policy_holder_name?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">证件号</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->policy_holder_number?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->policy_holder_phone?><?php if($info->policy_holder_phone1): ?>,<?=$info->policy_holder_phone1?><?php endif;?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">受益人姓名</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->beneficiary_name?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">证件号</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->beneficiary_number?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->beneficiary_phone?><?php if($info->beneficiary_phone1): ?>,<?=$info->beneficiary_phone1?><?php endif;?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">产品方案</td> |
|
||||||
<td height="25" class="td_bg"> |
|
||||||
<?=$info->scheme_id?$info->sche->name:''?> |
|
||||||
</td> |
|
||||||
<td width="100" height="25" class="bg_tr">总保额</td> |
|
||||||
<td height="25" class="td_bg baoer"></td> |
|
||||||
<td width="100" height="25" class="bg_tr">保险费用</td> |
|
||||||
<td height="25" class="td_bg feiyong"></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">起保日期</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurer_date_start?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">投保份数</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->num?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">座位数</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->seat?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</TD> |
|
||||||
</TR> |
|
||||||
</TABLE> |
|
||||||
<!--保单信息--> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(2) name="navcell">▼核保信息</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb2 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
||||||
<TR> |
|
||||||
<TD vAlign=top> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;"> |
|
||||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">非车险终止日期</td> |
|
||||||
<td height="25" class="td_bg"><input type="text" value="<?=$order_info->insurer_date_end?>" name="insurer_date_end" onClick="WdatePicker()" /></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">非车险保单号</td> |
|
||||||
<td height="25" class="td_bg"><input type="text" value="<?=$order_info->insurer_non_no?>" name="insurer_non_no" /></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电子保单发送状态</td> |
|
||||||
<td height="25" class="td_bg">未发<input type="radio" value="1" name="el_insurance" <?php if($order_info->el_insurance==1) echo 'checked'?>/>已发<input type="radio" value="2" name="el_insurance" <?php if($order_info->el_insurance==2) echo 'checked'?>/></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</TD> |
|
||||||
</TR> |
|
||||||
</TABLE> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(5) name="navcell">▼财务信息</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb5 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
||||||
<tr> |
|
||||||
<td valign="top"> |
|
||||||
|
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" align="center">非车险销售:<?=$order_info->user->getShowName()?></td>
|
|
||||||
|
|
||||||
<?php |
|
||||||
if($order_info->op1_id > 0) { |
|
||||||
echo '<td class="bg_tr" align="center">核保:'.$order_info->op1->getShowName().'</td>'; |
|
||||||
} |
|
||||||
?> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" align="center">销售比例</td> |
|
||||||
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="bg_tr" align="center">核保比例</td> |
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
|
|
||||||
<td class="td_bg" align="center"><input name="rate1" id="rate1" type="text" value="<?=$caiwu_info->rate1?>" style="width:50px;" onblur="cal_money('rate1','<?=$order_info->non_baofei?>','money1','<?=$order_info->total1_dis?>')">%</td>
|
|
||||||
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="td_bg" align="center"><input name="rate4" id="rate4" type="text" value="<?=$caiwu_info->rate4?>" style="width:100px;" onblur="cal_money('rate4','<?=$order_info->non_baofei?>','money4','0')">%</td>
|
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" align="center">非车险销售提成</td> |
|
||||||
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="bg_tr" align="center">核保提成</td> |
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
|
|
||||||
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->money1?>" style="width:100px;" readonly>元</td>
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="td_bg" align="center"><input name="money4" id="money4" type="text" value="<?=$caiwu_info->money4?>" style="width:100px;" onblur="cal_rate('money4','<?=$order_info->non_baofei?>','rate4','0')">元</td>
|
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
|
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</TABLE> |
|
||||||
<!--操作记录--> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(6) name="navcell">▲操作记录</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb6 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table"> |
|
||||||
<TR> |
|
||||||
<TD vAlign=top> |
|
||||||
<div id="car_history_list"></div> |
|
||||||
</TD> |
|
||||||
</TR> |
|
||||||
</TABLE> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td height="22" colspan="2" align="center" class="td_bg"> |
|
||||||
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/> |
|
||||||
|
|
||||||
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/> |
|
||||||
|
|
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
|
||||||
|
|
||||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 "> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
//计算提成 |
|
||||||
function cal_money(obj1,val,obj2) { |
|
||||||
var total = Number($('#' + obj1).val())/100 * Number(val); |
|
||||||
$('#' + obj2).val(total.toFixed(2)); |
|
||||||
} |
|
||||||
//计算 |
|
||||||
function cal_money2(obj1,obj2,obj3,dis) { |
|
||||||
var total = Number($('#'+obj2).val())/100 * Number($('#' + obj1).val()); |
|
||||||
$('#' + obj3).val(total.toFixed(2)); |
|
||||||
} |
|
||||||
function cal_rate(obj1,val,obj3,dis) { |
|
||||||
if(Number(val) == 0) { |
|
||||||
$('#' + obj3).val('0.00'); |
|
||||||
return; |
|
||||||
} |
|
||||||
var rate = (Number($('#' + obj1).val()))/Number(val) * 100 ; |
|
||||||
$('#' + obj3).val(rate.toFixed(2)); |
|
||||||
} |
|
||||||
//保单处理 |
|
||||||
function SaveOrder(status_id) { |
|
||||||
var param = $('#orderFrm').serialize(); |
|
||||||
param = param + '&status_id=' + status_id; |
|
||||||
$.post('/insurer/non-finance-mng-save',param,function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
if(status_id == 13) |
|
||||||
$('#back-btn').click(); |
|
||||||
else |
|
||||||
alert(obj.msg); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
$(function(){ |
|
||||||
var schemeid=<?=$info->scheme_id?>;
|
|
||||||
if(schemeid){ |
|
||||||
$.post('/scheme/chaxun',{id:schemeid},function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
$('.baoer').html(obj.info.baoer); |
|
||||||
$('.feiyong').html(obj.info.baofei); |
|
||||||
|
|
||||||
}else{ |
|
||||||
$('.baoer').html(''); |
|
||||||
$('.feiyong').html(''); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
//操作历史 |
|
||||||
gotoPage('/non-auto-insurance/ajax-history-index?non_id=<?=$info->id?>&page=1&t='+Math.random(),'car_history_list');
|
|
||||||
//放弃处理 |
|
||||||
$('#cancel-btn').click(function(){ |
|
||||||
if(confirm('是否确认放弃处理?')) { |
|
||||||
$.post('/insurer/non-finance-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
|
||||||
if(obj.success) { |
|
||||||
$('#back-btn').click(); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
//保存 |
|
||||||
$('#save-btn').click(function(){ |
|
||||||
SaveOrder(12); |
|
||||||
}); |
|
||||||
//提交 |
|
||||||
$('#submit-btn').click(function(){ |
|
||||||
if(confirm('是否提交此保单?')) { |
|
||||||
SaveOrder(13); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
//返回 |
|
||||||
$('#back-btn').click(function(){ |
|
||||||
window.location.href = '/insurer/non-finance-mng?<?=$back_params?>';
|
|
||||||
}); |
|
||||||
}); |
|
||||||
</script> |
|
@ -1,99 +0,0 @@ |
|||||||
<?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/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
//详情 |
|
||||||
function info(id,oid) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = '/insurer/non-finance-mng-edit?id=' + id +'&oid=' + oid+ '&back_params=' + encodeURIComponent(params); |
|
||||||
} |
|
||||||
|
|
||||||
function unlock(id) { |
|
||||||
$.post('/insurer/non-unlocked',{id:id},function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
alert(obj.msg); |
|
||||||
window.location.reload(); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
|
|
||||||
},'json'); |
|
||||||
|
|
||||||
} |
|
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/insurer/non-finance-mng?" + 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"> |
|
||||||
<!--新增搜索项--> |
|
||||||
<!--完成程度--> |
|
||||||
<select name="status" class="status"> |
|
||||||
<option value=0>全部</option> |
|
||||||
<option value=1 <?= $status==1?'selected':'' ?>>未完成</option>
|
|
||||||
<option value=2 <?= $status==2?'selected':'' ?>>完成</option>
|
|
||||||
</select> |
|
||||||
被保险人:<input name="id_man" type="text" value="<?=$id_man?>">
|
|
||||||
|
|
||||||
|
|
||||||
<!--日期--> |
|
||||||
正本日期: |
|
||||||
<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="button" class="act_btn" id="search-btn" name="search-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 width="50" 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="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> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$start_index = ($page - 1) * 20 + $index; |
|
||||||
$caiwu = $item->caiwu1; |
|
||||||
?> |
|
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
|
||||||
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
|
|
||||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,20)?></td>
|
|
||||||
<td class="td_bg" nowrap>人保</td> |
|
||||||
<td class="td_bg" nowrap><?=$item->print_date?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->insurer_non_no?></td>
|
|
||||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
|
||||||
<td class="td_bg" ><?=$caiwu->status->name?></td>
|
|
||||||
<td class="td_bg" ><?=$caiwu->lock?$caiwu->lock->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap> |
|
||||||
<?php if($caiwu->status_id == 12){ ?> |
|
||||||
[<a href="javascript:void(0);" onclick="unlock(<?=$item->id?>)">解锁</a>]
|
|
||||||
[<a href="javascript:void(0);" onclick="info(<?=$item->non_id?>,<?= $item->id ?>)">详情</a>]
|
|
||||||
<?php } ?> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
@ -1,283 +0,0 @@ |
|||||||
<?php |
|
||||||
use \common\libs\MyLib; |
|
||||||
use \common\models\PriceT; |
|
||||||
?> |
|
||||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
|
||||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td height="22" colspan="2" class="td_bg"> |
|
||||||
<form id="orderFrm"> |
|
||||||
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable"> |
|
||||||
<tr> |
|
||||||
<td height="120" valign="top" class="td_bg"> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(1) name="navcell">▼非车险信息</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb1 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
||||||
<TR> |
|
||||||
<TD vAlign=top> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;"> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">被保险人姓名</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurant_name?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">证件号</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurant_number?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurant_phone?><?php if($info->insurant_phone1): ?>,<?=$info->insurant_phone1?><?php endif;?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">投保人姓名</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->policy_holder_name?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">证件号</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->policy_holder_number?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->policy_holder_phone?><?php if($info->policy_holder_phone1): ?>,<?=$info->policy_holder_phone1?><?php endif;?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">受益人姓名</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->beneficiary_name?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">证件号</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->beneficiary_number?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->beneficiary_phone?><?php if($info->beneficiary_phone1): ?>,<?=$info->beneficiary_phone1?><?php endif;?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">产品方案</td> |
|
||||||
<td height="25" class="td_bg"> |
|
||||||
<?=$info->scheme_id?$info->sche->name:''?> |
|
||||||
</td> |
|
||||||
<td width="100" height="25" class="bg_tr">总保额</td> |
|
||||||
<td height="25" class="td_bg baoer"></td> |
|
||||||
<td width="100" height="25" class="bg_tr">保险费用</td> |
|
||||||
<td height="25" class="td_bg feiyong"></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">起保日期</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->insurer_date_start?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">投保份数</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->num?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">座位数</td> |
|
||||||
<td height="25" class="td_bg"><?=$info->seat?></td>
|
|
||||||
</tr> |
|
||||||
|
|
||||||
</table> |
|
||||||
</TD> |
|
||||||
</TR> |
|
||||||
</TABLE> |
|
||||||
<!--保单信息--> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(2) name="navcell">▼核保信息</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb2 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
||||||
<TR> |
|
||||||
<TD vAlign=top> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;"> |
|
||||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">非车险终止日期</td> |
|
||||||
<td height="25" class="td_bg"><input type="text" value="<?=$order_info->insurer_date_end?>" name="insurer_date_end" onClick="WdatePicker()" /></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">非车险保单号</td> |
|
||||||
<td height="25" class="td_bg"><input type="text" value="<?=$order_info->insurer_non_no?>" name="insurer_non_no" /></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">电子保单发送状态</td> |
|
||||||
<td height="25" class="td_bg">未发<input type="radio" value="1" name="el_insurance" <?php if($order_info->el_insurance==1) echo 'checked'?>/>已发<input type="radio" value="2" name="el_insurance" <?php if($order_info->el_insurance==2) echo 'checked'?>/></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</TD> |
|
||||||
</TR> |
|
||||||
</TABLE> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(5) name="navcell">▼财务信息</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb5 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb"> |
|
||||||
<tr> |
|
||||||
<td valign="top"> |
|
||||||
|
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" align="center">非车险销售:<?=$order_info->user->getShowName()?></td>
|
|
||||||
|
|
||||||
<?php |
|
||||||
if($order_info->op1_id > 0) { |
|
||||||
echo '<td class="bg_tr" align="center">核保:'.$order_info->op1->getShowName().'</td>'; |
|
||||||
} |
|
||||||
?> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" align="center">销售比例</td> |
|
||||||
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="bg_tr" align="center">核保比例</td> |
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
|
|
||||||
<td class="td_bg" align="center"><input name="rate1" id="rate1" type="text" value="<?=$caiwu_info->rate1?>" style="width:50px;" onblur="cal_money('rate1','<?=$order_info->non_baofei?>','money1','<?=$order_info->total1_dis?>')">%</td>
|
|
||||||
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="td_bg" align="center"><input name="rate4" id="rate4" type="text" value="<?=$caiwu_info->rate4?>" style="width:100px;" onblur="cal_money('rate4','<?=$order_info->non_baofei?>','money4','0')">%</td>
|
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" align="center">非车险销售提成</td> |
|
||||||
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="bg_tr" align="center">核保提成</td> |
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
|
|
||||||
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->money1?>" style="width:100px;" readonly>元</td>
|
|
||||||
<?php if($order_info->op1_id > 0) { ?> |
|
||||||
<td class="td_bg" align="center"><input name="money4" id="money4" type="text" value="<?=$caiwu_info->money4?>" style="width:100px;" onblur="cal_rate('money4','<?=$order_info->non_baofei?>','rate4','0')">元</td>
|
|
||||||
<?php } ?> |
|
||||||
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
|
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</TABLE> |
|
||||||
<!--操作记录--> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(6) name="navcell">▲操作记录</TD> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
<TABLE id=tb6 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table"> |
|
||||||
<TR> |
|
||||||
<TD vAlign=top> |
|
||||||
<div id="car_history_list"></div> |
|
||||||
</TD> |
|
||||||
</TR> |
|
||||||
</TABLE> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td height="22" colspan="2" align="center" class="td_bg"> |
|
||||||
<?php |
|
||||||
if($caiwu_info->status_id != 10) |
|
||||||
{ |
|
||||||
?> |
|
||||||
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/> |
|
||||||
|
|
||||||
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/> |
|
||||||
|
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
|
||||||
|
|
||||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 "> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
//计算提成 |
|
||||||
function cal_money(obj1,val,obj2) { |
|
||||||
var total = Number($('#' + obj1).val())/100 * Number(val); |
|
||||||
$('#' + obj2).val(total.toFixed(2)); |
|
||||||
} |
|
||||||
//计算 |
|
||||||
function cal_money2(obj1,obj2,obj3,dis) { |
|
||||||
var total = Number($('#'+obj2).val())/100 * Number($('#' + obj1).val()); |
|
||||||
$('#' + obj3).val(total.toFixed(2)); |
|
||||||
} |
|
||||||
function cal_rate(obj1,val,obj3,dis) { |
|
||||||
if(Number(val) == 0) { |
|
||||||
$('#' + obj3).val('0.00'); |
|
||||||
return; |
|
||||||
} |
|
||||||
var rate = (Number($('#' + obj1).val()))/Number(val) * 100 ; |
|
||||||
$('#' + obj3).val(rate.toFixed(2)); |
|
||||||
} |
|
||||||
//保单处理 |
|
||||||
function SaveOrder(status_id) { |
|
||||||
var param = $('#orderFrm').serialize(); |
|
||||||
param = param + '&status_id=' + status_id; |
|
||||||
$.post('/insurer/non-financial-settlement-save',param,function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
if(status_id == 10) |
|
||||||
$('#back-btn').click(); |
|
||||||
else |
|
||||||
alert(obj.msg); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
$(function(){ |
|
||||||
var schemeid=<?=$info->scheme_id?>;
|
|
||||||
if(schemeid){ |
|
||||||
$.post('/scheme/chaxun',{id:schemeid},function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
$('.baoer').html(obj.info.baoer); |
|
||||||
$('.feiyong').html(obj.info.baofei); |
|
||||||
|
|
||||||
}else{ |
|
||||||
$('.baoer').html(''); |
|
||||||
$('.feiyong').html(''); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
//操作历史 |
|
||||||
gotoPage('/non-auto-insurance/ajax-history-index?non_id=<?=$info->id?>&page=1&t='+Math.random(),'car_history_list');
|
|
||||||
//放弃处理 |
|
||||||
$('#cancel-btn').click(function(){ |
|
||||||
if(confirm('是否确认放弃处理?')) { |
|
||||||
$.post('/insurer/non-finance-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
|
||||||
if(obj.success) { |
|
||||||
$('#back-btn').click(); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
//保存 |
|
||||||
$('#save-btn').click(function(){ |
|
||||||
SaveOrder(13); |
|
||||||
}); |
|
||||||
//提交 |
|
||||||
$('#submit-btn').click(function(){ |
|
||||||
if(confirm('是否提交此保单?')) { |
|
||||||
SaveOrder(10); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
//返回 |
|
||||||
$('#back-btn').click(function(){ |
|
||||||
window.location.href = '/insurer/non-financial-settlement-list?<?=$back_params?>';
|
|
||||||
}); |
|
||||||
}); |
|
||||||
</script> |
|
@ -1,99 +0,0 @@ |
|||||||
<?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/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
//详情 |
|
||||||
function info(id,oid) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = '/insurer/non-financial-settlement-detail?id=' + id +'&oid=' + oid+ '&back_params=' + encodeURIComponent(params); |
|
||||||
} |
|
||||||
|
|
||||||
function unlock(id) { |
|
||||||
$.post('/insurer/non-unlocked',{id:id},function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
alert(obj.msg); |
|
||||||
window.location.reload(); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
|
|
||||||
},'json'); |
|
||||||
|
|
||||||
} |
|
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/insurer/non-financial-settlement-list?" + 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"> |
|
||||||
<!--新增搜索项--> |
|
||||||
<!--完成程度--> |
|
||||||
<select name="status" class="status"> |
|
||||||
<option value=0>全部</option> |
|
||||||
<option value=1 <?= $status==1?'selected':'' ?>>未完成</option>
|
|
||||||
<option value=2 <?= $status==2?'selected':'' ?>>完成</option>
|
|
||||||
</select> |
|
||||||
被保险人:<input name="car_man" type="text" value="<?=$id_man?>">
|
|
||||||
|
|
||||||
|
|
||||||
<!--日期--> |
|
||||||
正本日期: |
|
||||||
<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="button" class="act_btn" id="search-btn" name="search-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 width="50" 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="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> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$start_index = ($page - 1) * 20 + $index; |
|
||||||
$caiwu = $item->caiwu1; |
|
||||||
?> |
|
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
|
||||||
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
|
|
||||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,20)?></td>
|
|
||||||
<td class="td_bg" nowrap>人保</td> |
|
||||||
<td class="td_bg" nowrap><?=$item->print_date?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->insurer_non_no?></td>
|
|
||||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
|
||||||
<td class="td_bg" ><?=$caiwu->status->name?></td>
|
|
||||||
<td class="td_bg" ><?=$caiwu->lock?$caiwu->lock->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap> |
|
||||||
|
|
||||||
[<a href="javascript:void(0);" onclick="unlock(<?=$item->id?>)">解锁</a>]
|
|
||||||
[<a href="javascript:void(0);" onclick="info(<?=$item->non_id?>,<?= $item->id ?>)">详情</a>]
|
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
@ -1,70 +0,0 @@ |
|||||||
<?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> |
|
||||||
<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 info(id,ordid) { |
|
||||||
|
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = '/non-auto-insurance/add-bd-info?id=' + id + '&ordid='+ordid+'&returnType=1'; |
|
||||||
// window.location.href = '/car/info?id=' + id + '&type=4' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params); |
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/insurer/non-my-return-list?" + params; |
|
||||||
}); |
|
||||||
}); |
|
||||||
</script> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
|
||||||
<form id="searchForm"> |
|
||||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
出单日期:从<input name="date_begin" type="text" value="<?=$date_begin?>" style="width:100px;" onclick="WdatePicker()">到<input name="date_end" type="text" value="<?=$date_end?>" style="width:100px;" onclick="WdatePicker()">截止
|
|
||||||
退单日期:从<input name="date2_begin" type="text" value="<?=$date2_begin?>" style="width:100px;" onclick="WdatePicker()">到<input name="date2_end" type="text" value="<?=$date2_end?>" style="width:100px;" onclick="WdatePicker()">截止
|
|
||||||
|
|
||||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</table> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td width="30" align="center" class="bg_tr" nowrap>序号</td> |
|
||||||
<td width="60" align="center" class="bg_tr" nowrap>车牌号</td> |
|
||||||
<td width="60" align="center" class="bg_tr" nowrap>被保险人</td> |
|
||||||
<td width="60" align="center" class="bg_tr" nowrap>证件号码</td> |
|
||||||
<td width="60" align="center" class="bg_tr" nowrap>退回时间</td> |
|
||||||
<td width="50%" align="center" class="bg_tr" nowrap>备注</td> |
|
||||||
<td width="30" align="center" class="bg_tr" nowrap>操作</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$start_index = ($page - 1) * 20 + $index; |
|
||||||
?> |
|
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
|
||||||
<td align="center" class="td_bg"n owrap ><?=$start_index + 1?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->id_man?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->id_number?></td>
|
|
||||||
<td class="td_bg" nowrap><?=date('Y-m-d H:i:s',$item->return_time)?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->return_remark?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap> |
|
||||||
[<a href="javascript:void(0);" onclick="info(<?= $item->non_id ?>,<?= $item->id ?>)">详情</a>]
|
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="7" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
@ -1,382 +0,0 @@ |
|||||||
<?php |
|
||||||
use \common\libs\MyLib; |
|
||||||
use \common\models\PriceT; |
|
||||||
?> |
|
||||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
|
||||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td height="22" colspan="2" class="td_bg"> |
|
||||||
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable"> |
|
||||||
<tr> |
|
||||||
<td height="120" valign="top" class="td_bg"> |
|
||||||
<!--保单信息--> |
|
||||||
<table> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<TD height="30" align="center" class=tab-on 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> |
|
||||||
<form id="orderFrm"> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;"> |
|
||||||
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
|
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">车牌号</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->car_no?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">厂牌型号</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->factory_model?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">品牌</td> |
|
||||||
<td width="120" height="25" class="td_bg"><?=$car_info->brand?$car_info->brand->name:''?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">车系</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->series?$car_info->series->name:''?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">发动机号</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->engine_no?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">车架号</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->car_frame_no?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">初登日期</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->register_date?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">排量</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->displacement?$car_info->displacement->name:''?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">车辆类型</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->carType?$car_info->carType->name:''?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">运营性质</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->carUse?$car_info->carUse->name:''?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">座位数</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->seats?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">年份</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->car_year?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="100" height="25" class="bg_tr">车主</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->car_man?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">联系电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->phone?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">证件号码</td> |
|
||||||
<td colspan="3" height="25" class="td_bg"><?=$car_info->car_man_number?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td width="60" height="25" class="bg_tr">备注</td> |
|
||||||
<td height="25" class="td_bg"><?=$car_info->remark?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">业务分组</td> |
|
||||||
<td height="25" class="td_bg"><?=$order_info->businessGroup ? $order_info->businessGroup->name : ''?></td>
|
|
||||||
<td width="100" height="25" class="bg_tr">业务员</td> |
|
||||||
<td height="25" class="td_bg"><?=$order_info->user?$order_info->user->getShowName():''?></td>
|
|
||||||
<td width="60" height="25" class="bg_tr">联系电话</td> |
|
||||||
<td height="25" class="td_bg"><?=$order_info->user?$order_info->user->phone:''?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;"> |
|
||||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
|
||||||
<tr> |
|
||||||
<td class="bg_tr">被保险人</td> |
|
||||||
<td class="td_bg"><?=$order_info->id_man?></td>
|
|
||||||
<td class="bg_tr">证件号码</td> |
|
||||||
<td class="td_bg"><?=$order_info->id_number?></td>
|
|
||||||
<td width="60" class="bg_tr">联系人</td> |
|
||||||
<td class="td_bg"><?=$order_info->link_man?></td>
|
|
||||||
<td width="60" class="bg_tr">联系电话</td> |
|
||||||
<td class="td_bg"><?=$order_info->link_phone?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">送单日期</td> |
|
||||||
<td class="td_bg"><?=$order_info->send_date?></td>
|
|
||||||
<td class="bg_tr">保险公司</td> |
|
||||||
<td class="td_bg"><?=$order_info->company?$order_info->company->name:''?></td>
|
|
||||||
<td class="bg_tr">付款方式</td> |
|
||||||
<td class="td_bg"><?=$order_info->payType?$order_info->payType->name:''?></td>
|
|
||||||
<td class="bg_tr">电子邮件</td> |
|
||||||
<td class="td_bg"><?=$order_info->email?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">商业起保日期</td> |
|
||||||
<td class="td_bg"><?=$order_info->insurer1_begin_date?></td>
|
|
||||||
<td class="bg_tr">交强起保日期</td> |
|
||||||
<td class="td_bg"><?=$order_info->insurer2_begin_date?></td>
|
|
||||||
<td class="bg_tr">缴费单号</td> |
|
||||||
<td colspan="3" class="td_bg"><?=$order_info->pay_no?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">商业保单号</td> |
|
||||||
<td class="td_bg"><?=$order_info->insurer1_no?></td>
|
|
||||||
<td class="bg_tr">交强保单号</td> |
|
||||||
<td class="td_bg"><?=$order_info->insurer2_no?></td>
|
|
||||||
<td rowspan="3" class="bg_tr" valign="center">备注</td> |
|
||||||
<td colspan="3" rowspan="3" valign="top" class="td_bg"><?=$order_info->remark?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">送单地址</td> |
|
||||||
<td colspan="3" 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> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">正本送单地址</td> |
|
||||||
<td colspan="3" class="td_bg"> |
|
||||||
<?=$order_info->direction2?$order_info->direction2->name:''?> |
|
||||||
<?=$order_info->range2?$order_info->range2->name:''?> |
|
||||||
<?=$order_info->city2?$order_info->city2->name:''?> |
|
||||||
<?=$order_info->district2?$order_info->district2->name:''?> |
|
||||||
<?=$order_info->send_address2?> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<table width="98%" border="0" align="center" cellspacing="0" cellpadding="0" style="table-layout: fixed;"> |
|
||||||
<tr> |
|
||||||
<td width="40%" valign="top"> |
|
||||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td align="center" class="bg_tr">险种</td> |
|
||||||
<td align="center" class="bg_tr">内容</td> |
|
||||||
<td align="center" class="bg_tr" nowrap>不计免赔</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
$len = count($insurer_type_items); |
|
||||||
for($i = 0; $i < $len; $i++) { |
|
||||||
$item = $insurer_type_items[$i]; |
|
||||||
$order_id = $order_info->id; |
|
||||||
if(!$order_id) |
|
||||||
$order_id = 0; |
|
||||||
$tmp_row = PriceT::find() |
|
||||||
->where('order_id='.$order_id.' and type_id='.$item->id) |
|
||||||
->one(); |
|
||||||
if($tmp_row->val == '' || $tmp_row->val == '0' || $tmp_row->val == '否' || $tmp_row->val == '无') continue; |
|
||||||
?> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr" nowrap><?=$item->name?>(<?=$item->code?>)</td>
|
|
||||||
<td class="td_bg"><?=$tmp_row->val?></td>
|
|
||||||
<td align="center" class="td_bg"><?php |
|
||||||
if($item->has_nopay==0) { |
|
||||||
echo '是'; |
|
||||||
} |
|
||||||
?> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
</table> |
|
||||||
</td> |
|
||||||
<td width="10px;"> </td> |
|
||||||
<td width="60%" valign="top"> |
|
||||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">商业总净保费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total1_clear?></td>
|
|
||||||
<td class="bg_tr">商业含税总保费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total1?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">交强总净保费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total2_clear?></td>
|
|
||||||
<td class="bg_tr">交强含税总保费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total2?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">车船税</td> |
|
||||||
<td class="td_bg"><?=$order_info->total3?></td>
|
|
||||||
<td class="bg_tr">共计签单</td> |
|
||||||
<td class="td_bg"><?=$order_info->total_all?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">折扣后商业净保费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total1_real?></td>
|
|
||||||
<td class="bg_tr">减免金额</td> |
|
||||||
<td class="td_bg"><?=$order_info->total1_dis?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">商业折扣率</td> |
|
||||||
<td class="td_bg"><?=$order_info->total1_percent?></td>
|
|
||||||
<td class="bg_tr">应收</td> |
|
||||||
<td class="td_bg"><?=$order_info->total_real?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">商业手续费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total1_rate?></td>
|
|
||||||
<td class="bg_tr">交强手续费</td> |
|
||||||
<td class="td_bg"><?=$order_info->total2_rate?></td>
|
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="bg_tr">备注</td> |
|
||||||
<td colspan="3" class="td_bg"><?=$order_info->price_remark?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<p>免费礼品</p> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<?php |
|
||||||
$index = 0; |
|
||||||
foreach($gift_free_group_items as $item) { |
|
||||||
if($index > 0 && $index%4==0) { |
|
||||||
echo '</tr><tr>'; |
|
||||||
} |
|
||||||
$index++; |
|
||||||
$sel_gift = isset($sel_gifts[$item->id])?$sel_gifts[$item->id]->gift:null; |
|
||||||
echo '<td width="85" class="bg_tr">'.$item->name.'</td>'; |
|
||||||
echo '<td class="td_bg">'; |
|
||||||
foreach($item->gifts as $gift) { |
|
||||||
if($sel_gift != null && $sel_gift->id == $gift->id) { |
|
||||||
echo $gift->name; |
|
||||||
} |
|
||||||
} |
|
||||||
echo '</td>'; |
|
||||||
} |
|
||||||
while($index%4!=0) { |
|
||||||
echo '<td width="85" class="bg_tr"></td>'; |
|
||||||
echo '<td class="td_bg"></td>'; |
|
||||||
$index++; |
|
||||||
} |
|
||||||
?> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<p>自费礼品</p> |
|
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
|
||||||
<tr> |
|
||||||
<?php |
|
||||||
$index = 0; |
|
||||||
foreach($gift_group_items as $item) { |
|
||||||
if($index > 0 && $index%4==0) { |
|
||||||
echo '</tr><tr>'; |
|
||||||
} |
|
||||||
$index++; |
|
||||||
$sel_gift = isset($sel_gifts[$item->id])?$sel_gifts[$item->id]->gift:null; |
|
||||||
echo '<td width="85" class="bg_tr">'.$item->name.'</td>'; |
|
||||||
echo '<td class="td_bg">'; |
|
||||||
foreach($item->gifts as $gift) { |
|
||||||
if($sel_gift != null && $sel_gift->id == $gift->id) { |
|
||||||
echo $gift->name; |
|
||||||
} |
|
||||||
} |
|
||||||
echo '</td>'; |
|
||||||
} |
|
||||||
while($index%4!=0) { |
|
||||||
echo '<td width="85" class="bg_tr"></td>'; |
|
||||||
echo '<td class="td_bg"></td>'; |
|
||||||
$index++; |
|
||||||
} |
|
||||||
?> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
||||||
</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> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td height="22" colspan="2" align="center" class="td_bg"> |
|
||||||
<input id="return-btn" type=button class="ACT_btn" name=Submit5 value=" 退回 "/> |
|
||||||
|
|
||||||
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/> |
|
||||||
|
|
||||||
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/> |
|
||||||
|
|
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
|
||||||
|
|
||||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 "> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/common2.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
//保单处理 |
|
||||||
function SaveOrder(status_id) { |
|
||||||
var param = $('#orderFrm').serialize(); |
|
||||||
param = param + '&status_id=' + status_id; |
|
||||||
$.post('/insurer/print-mng-save',param,function(obj){ |
|
||||||
if(obj.success) { |
|
||||||
if(status_id == 7) |
|
||||||
$('#back-btn').click(); |
|
||||||
else |
|
||||||
alert(obj.msg); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
$(function(){ |
|
||||||
//操作历史 |
|
||||||
gotoPage('/car/ajax-history-index?car_id=<?=$car_info->id?>&page=1','car_history_list');
|
|
||||||
//退回处理 |
|
||||||
$('#return-btn').click(function(){ |
|
||||||
var r = prompt('退回原因', ''); |
|
||||||
if(r != null && r != '') { |
|
||||||
$.post('/insurer/return-op',{ |
|
||||||
order_id:<?=$order_info->id?>,
|
|
||||||
return_remark:r, |
|
||||||
return_status_id:<?=$order_info->status_id?> |
|
||||||
},function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
$('#back-btn').click(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} else { |
|
||||||
alert('不填写原因,无法退回'); |
|
||||||
} |
|
||||||
}); |
|
||||||
//放弃处理 |
|
||||||
$('#cancel-btn').click(function(){ |
|
||||||
if(confirm('是否确认放弃处理?')) { |
|
||||||
$.post('/insurer/order-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
|
||||||
if(obj.success) { |
|
||||||
$('#back-btn').click(); |
|
||||||
} else { |
|
||||||
alert(obj.msg); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
//保存 |
|
||||||
$('#save-btn').click(function(){ |
|
||||||
SaveOrder(6); |
|
||||||
}); |
|
||||||
//提交 |
|
||||||
$('#submit-btn').click(function(){ |
|
||||||
if(confirm('是否提交此保单?')) { |
|
||||||
SaveOrder(7); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
//返回 |
|
||||||
$('#back-btn').click(function(){ |
|
||||||
window.location.href = '/insurer/print-mng?<?=$back_params?>';
|
|
||||||
}); |
|
||||||
}); |
|
||||||
</script> |
|
@ -1,76 +0,0 @@ |
|||||||
<?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/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
|
||||||
//详情 |
|
||||||
function info(id) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = '/insurer/print-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params) |
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/insurer/print-mng?" + 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="id_man" type="text" value="<?=$id_man?>" style="width: 100px;">
|
|
||||||
电话:<input name="phone" type="text" value="<?=$phone?>" style="width: 100px;">
|
|
||||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width: 100px;">
|
|
||||||
商业保单号:<input name="insurer_no2" type="text" value="<?=$insurer1_no?>" style="width: 100px;">
|
|
||||||
交强保单号:<input name="insurer_no1" type="text" value="<?=$insurer2_no?>" style="width: 100px;">
|
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-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 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="60" align="center" class="bg_tr">商业保单号</td> |
|
||||||
<td width="80" 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> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$start_index = ($page-1)*20 + $index; |
|
||||||
?> |
|
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
|
||||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
|
||||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,30)?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->link_phone?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->company?$item->company->name:''?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->insurer1_no?></td>
|
|
||||||
<td class="td_bg" nowrap><?=$item->insurer2_no?></td>
|
|
||||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?> </td>
|
|
||||||
<td class="td_bg" ><?=$item->status->name?></td>
|
|
||||||
<td class="td_bg" ><?=$item->lock?$item->lock->getShowName():''?></td>
|
|
||||||
<td align="center" class="td_bg" nowrap> |
|
||||||
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr> |
|
||||||
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
@ -1,166 +1,300 @@ |
|||||||
|
<?php |
||||||
|
use \common\libs\MyLib; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<link href="/assets/css/plugins/iCheck/custom.css" rel="stylesheet"> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
|
||||||
<link href="/css/tabs.css" rel="stylesheet" type="text/css"> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
<form id="theFrm"> |
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
<input type="hidden" name="id" value="<?=$pay_info->id?>">
|
<input type="hidden" name="id" value="<?=intval($pay_info->id)?>">
|
||||||
<p> </p> |
<div class="ibox float-e-margins"> |
||||||
<h2 align="center"><?=date("Y年m月",strtotime($pay_date.'-01'))?>人事工资</h2>
|
<div class="ibox-title"> |
||||||
<h3 align="center">应发工资:<span><?=number_format($pay_info->base_should_pay,2)?></span> 元 <span style="color:#ff0000;">实发工资:<span><?=number_format($pay_info->base_real_pay,2)?></span> 元</span></h3>
|
<h5>基本信息</h5> |
||||||
<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> |
|
||||||
<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="extjob_days" type="text" value="<?=$pay_info->extjob_days?>" style="width:60px;"/></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> |
|
||||||
<div align="center"> |
|
||||||
<?php if($pay_info->status_id < 4 || $pay_info->status_id == 7): ?> |
|
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
|
||||||
|
|
||||||
<?php endif;?> |
|
||||||
|
|
||||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" value=" 返回 "> |
|
||||||
</div> |
</div> |
||||||
</form> |
<div class="ibox-content"> |
||||||
|
<div class="row"> |
||||||
<table> |
<div class="col-md-12"> |
||||||
<tbody> |
<div class="form-group"> |
||||||
<tr> |
<label class="col-sm-1 control-label">职务</label> |
||||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(2) name="navcell">▲操作记录</TD> |
<div class="col-sm-3"> |
||||||
</tr> |
<label class="form-control-static"><?=$group_info?$group_info->getPath():''?></label>
|
||||||
</tbody> |
</div> |
||||||
</table> |
<label class="col-sm-1 control-label">姓名</label> |
||||||
<TABLE id=tb2 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table"> |
<div class="col-sm-3"> |
||||||
<TR> |
<label class="form-control-static"><?=$user_info->getShowName()?></label>
|
||||||
<TD vAlign=top> |
</div> |
||||||
<div id="car_history_list"></div> |
<label class="col-sm-1 control-label">入职时间</label> |
||||||
</TD> |
<div class="col-sm-3"> |
||||||
</TR> |
<label class="form-control-static"><?=$user_info->enter_date?></label>
|
||||||
</TABLE> |
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">工作制</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<label class="form-control-static"><?=$user_info->worktype?$user_info->worktype->name:''?></label>
|
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">试用工资</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input type="text" name="try_pay" value="<?=$pay_info->try_pay == '0.00' ? $user_info->try_pay : $pay_info->try_pay?>" class="form-control">
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">转正时间</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<label class="form-control-static"><?=$user_info->job_date?></label>
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">转正工资</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input 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?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">加班天数</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="extjob_days" type="text" value="<?=$pay_info->extjob_days?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">天</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">试用出勤</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="try_attendance_days" type="text" value="<?=$pay_info->try_attendance_days?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">天</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">转正出勤</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="attendance_days" type="text" value="<?=$pay_info->attendance_days?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">天</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ibox float-e-margins"> |
||||||
|
<div class="ibox-title"> |
||||||
|
<h5>补助工资</h5> |
||||||
|
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-12"> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">试用加班</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="try_extjob_pay" type="text" value="<?=$pay_info->try_extjob_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">转正加班</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="extjob_pay" type="text" value="<?=$pay_info->extjob_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">社保</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="give_social_pay" type="text" value="<?=$pay_info->give_social_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">话费</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="calls" type="text" value="<?=$pay_info->calls?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">公交</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="bus" type="text" value="<?=$pay_info->bus?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">奖金</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="bonus" type="text" value="<?=$pay_info->bonus?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">全勤</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="get_full_attendance_pay" type="text" value="<?=$pay_info->get_full_attendance_pay ? $pay_info->get_full_attendance_pay : '0.00'?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">通时</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="get_pass_time_pay" type="text" value="<?=$pay_info->get_pass_time_pay ? $pay_info->get_pass_time_pay : '0.00'?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ibox float-e-margins"> |
||||||
|
<div class="ibox-title"> |
||||||
|
<h5>应扣工资</h5> |
||||||
|
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-12"> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">迟到</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="late_pay" type="text" value="<?=$pay_info->late_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">事假</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="leave_pay" type="text" value="<?=$pay_info->leave_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">病假</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="sick_pay" type="text" value="<?=$pay_info->sick_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">社保</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="social_pay" type="text" value="<?=$pay_info->social_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">罚款</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="fine_pay" type="text" value="<?=$pay_info->fine_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">电费</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="electricity_pay" type="text" value="<?=$pay_info->electricity_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">离职押金</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="deposit" type="text" value="<?=$pay_info->deposit?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">公积金</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="public_pay" type="text" value="<?=$pay_info->public_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">个税</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input type="text" name="tax" value="<?=$pay_info->tax?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-1 control-label">全勤</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="full_attendance_pay" type="text" value="<?=$pay_info->full_attendance_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<label class="col-sm-1 control-label">通时</label> |
||||||
|
<div class="col-sm-3"> |
||||||
|
<div class="input-group"> |
||||||
|
<input name="pass_time_pay" type="text" value="<?=$pay_info->pass_time_pay?>" class="form-control"/>
|
||||||
|
<div class="input-group-addon">元</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<?php if($pay_info->status_id < 4 || $pay_info->status_id == 7) { ?> |
||||||
|
<div> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-5 col-md-offset-5"> |
||||||
|
<button class="btn btn-primary btn-save" type="button"> |
||||||
|
<strong>保 存</strong> |
||||||
|
</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<?php } ?> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('footer_js'); ?> |
||||||
<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" src="/js/common2.js"></script> |
|
||||||
<script type="text/javascript" language="javascript"> |
<script type="text/javascript" language="javascript"> |
||||||
//操作历史 |
|
||||||
gotoPage('/personnel/ajax-history-index?pay_id=<?=$pay_info->id?>&page=1','car_history_list');
|
|
||||||
|
|
||||||
$(function () { |
$(function () { |
||||||
|
$('.date').datepicker({ |
||||||
|
todayBtn: "linked", |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
calendarWeeks: true, |
||||||
|
autoclose: true |
||||||
|
}); |
||||||
//提交按钮 |
//提交按钮 |
||||||
$("#submit-btn").click(function(){ |
$(".btn-save").click(function(){ |
||||||
if(confirm('是否确认提交?')) { |
parent.layer.confirm('是否确认提交?', { |
||||||
|
btn: ['确认','取消'], //按钮 |
||||||
|
shade: false //不显示遮罩 |
||||||
|
}, function(){ |
||||||
var params = $("#theFrm").serialize(); |
var params = $("#theFrm").serialize(); |
||||||
$.post('/personnel/pay-save',params,function(obj){ |
$.post('/personnel/pay-save',params,function(obj){ |
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
if(obj.success) { |
||||||
$('#back-btn').click(); |
parent.layer.msg('保存成功'); |
||||||
|
parent.refreshList(); |
||||||
|
layer_close(); |
||||||
|
} else { |
||||||
|
parent.layer.msg(data.msg); |
||||||
} |
} |
||||||
},'json'); |
},'json'); |
||||||
} |
}, function(){ |
||||||
|
// |
||||||
}); |
}); |
||||||
|
|
||||||
//返回按钮 |
|
||||||
$('#back-btn').click(function(){ |
|
||||||
window.location.href='/personnel/pay-list?<?=$back_params?>';
|
|
||||||
}); |
}); |
||||||
}) |
}) |
||||||
|
|
||||||
</script> |
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
||||||
|
@ -1,203 +1,145 @@ |
|||||||
<?php |
<?php |
||||||
use \common\libs\MyLib; |
use \common\libs\MyLib; |
||||||
?> |
?> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
<link rel="stylesheet" href="../Myfile/css/font.css?v=20190611"> |
<?php $this->endBlock(); ?> |
||||||
<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 = '/personnel/pay-info?id=' + id + '&pay_date=<?=$pay_date?>' + '&back_params=' + encodeURIComponent(params);
|
|
||||||
} |
|
||||||
|
|
||||||
$(function(){ |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
$("#search-btn").click(function(){ |
<div class="ibox float-e-margins"> |
||||||
$('#page').val(0); |
<div class="ibox-title"> |
||||||
var params = $('#searchForm').serialize(); |
<h5>工资管理</h5> |
||||||
window.location.href = "/personnel/pay-list?" + params; |
<div class="ibox-tools"> |
||||||
}); |
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||||
$("#searchForm").submit(function(){ |
<i class="fa fa-refresh"></i> 刷新 |
||||||
$("#search-btn").click(); |
</a> |
||||||
return false; |
</div> |
||||||
}); |
</div> |
||||||
}); |
<div class="ibox-content"> |
||||||
|
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();"> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
</script> |
<label>工号</label> |
||||||
<!--<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">--> |
<input type="text" name="username" id="username" class="form-control"> |
||||||
<!-- <form id="theFrm">--> |
</div> |
||||||
<!-- <tr>--> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
<!-- <td align="center" width="100" height="25" class="bg_tr">日期</td>--> |
<label>真实姓名</label> |
||||||
<!-- <td class="td_bg">--> |
<input type="text" name="name" id="name" class="form-control"> |
||||||
<!-- <input type="text" name="time" onclick="WdatePicker({dateFmt:'yyyy-MM'})" />--> |
</div> |
||||||
<!-- </td>--> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
<!-- <td height="25" class="td_bg">--> |
<label>工资月份</label> |
||||||
<!-- <input type="text" name="urlfile" id="urlfile" style="width: 300px;">--> |
<input type="text" name="pay_date" id="pay_date" class="form-control date" value="<?=date('Y-m')?>" autocomplete="off">
|
||||||
<!-- <input id="fileupload" type="file" name="file">--> |
</div> |
||||||
<!-- </td>--> |
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
<!-- </tr>--> |
<label>是否离职</label> |
||||||
<!-- <tr>--> |
<select name="is_leave" class="form-control"> |
||||||
<!-- <td height="22" colspan="3" align="center" class="td_bg">--> |
|
||||||
<!-- <input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/>--> |
|
||||||
<!-- --> |
|
||||||
<!-- <input type="button" class="ACT_btn" name="Submit3" value=" 刷新 " onclick="window.location.reload();">--> |
|
||||||
<!-- </td>--> |
|
||||||
<!-- </tr>--> |
|
||||||
<!-- </form>--> |
|
||||||
<!--</table>--> |
|
||||||
<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="is_leave"> |
|
||||||
<option value="">全部</option> |
<option value="">全部</option> |
||||||
<option value="1" <?= $is_leave == '1' ? 'selected' : ''?>>是</option>
|
<option value="1">是</option> |
||||||
<option value="0" <?= $is_leave == '0' ? 'selected' : ''?>>否</option>
|
<option value="0">否</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> |
</select> |
||||||
分组:<select name="group_id"> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>分组</label> |
||||||
|
<select name="group_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<?php |
<?php |
||||||
foreach($group_items as $group) { |
foreach($group_items as $group) { |
||||||
echo '<option value="'.$group->id.'"'; |
echo '<option value="'.$group->id.'">'.$group->name.'</option>'; |
||||||
if($group->id == $group_id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$group->name.'</option>'; |
|
||||||
} |
} |
||||||
?> |
?> |
||||||
</select> |
</select> |
||||||
状态:<select name="status_id"> |
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label>状态</label> |
||||||
|
<select name="status_id" class="form-control"> |
||||||
<option value="0">全部</option> |
<option value="0">全部</option> |
||||||
<option value="1" <?=$status_id == 1?'selected':''?>>人事✔</option>
|
<option value="1">人事✔</option> |
||||||
<option value="2" <?=$status_id == 2?'selected':''?>>出纳✔</option>
|
<option value="2">出纳✔</option> |
||||||
<option value="3" <?=$status_id == 3?'selected':''?>>人事✔,出纳✔</option>
|
<option value="3">人事✔,出纳✔</option> |
||||||
<option value="4" <?=$status_id == 4?'selected':''?>>财务✔</option>
|
<option value="4">财务✔</option> |
||||||
<option value="5" <?=$status_id == 5?'selected':''?>>老板✔</option>
|
<option value="5">老板✔</option> |
||||||
<option value="6" <?=$status_id == 6?'selected':''?>>已发放</option>
|
<option value="6">已发放</option> |
||||||
<option value="7" <?=$status_id == 7?'selected':''?>>退回</option>
|
<option value="7">退回</option> |
||||||
|
|
||||||
</select> |
</select> |
||||||
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
</div> |
||||||
退回数量:<span style="color: red"><?=$return_count?></span>
|
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
</form> |
||||||
</table> |
<div class="row"> |
||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
<tr> |
<tr> |
||||||
<td width="100" align="center" align="center" class="bg_tr">工号</td> |
<th width="50" data-field="id">ID</th> |
||||||
<td align="center" class="bg_tr">真实姓名</td> |
<th data-field="username">工号</th> |
||||||
<td width="100" align="center" class="bg_tr">工资月份</td> |
<th data-field="name">真实姓名</th> |
||||||
<td align="center" class="bg_tr">所属岗位</td> |
<th data-field="pay_date">工资月份</th> |
||||||
<!-- <td width="60" align="center" class="bg_tr">角色</td>--> |
<th data-field="group_name">所属岗位</th> |
||||||
<!-- <td align="left" class="bg_tr">提成公式</td>--> |
<th data-field="real_pay">工资</th> |
||||||
<td width="60" align="center" class="bg_tr">工资</td> |
<th data-field="is_leave">是否离职</th> |
||||||
<td width="60" align="center" class="bg_tr">是否离职</td> |
<th data-field="status_name">状态</th> |
||||||
<td width="60" align="center" class="bg_tr">状态</td> |
<th data-formatter="opFormatter">操作</th> |
||||||
<td width="30" align="center" class="bg_tr">操作</td> |
|
||||||
</tr> |
</tr> |
||||||
<form id="delFrm"> |
</thead> |
||||||
<?php |
</table> |
||||||
foreach($items as $index => $item) { |
</div> |
||||||
$pay_info = $item->getPay($pay_date); |
</div> |
||||||
$real_pay = 0; |
</div> |
||||||
$is_begin = 0; |
</div> |
||||||
if($pay_info) { |
</div> |
||||||
$is_begin = 1; |
|
||||||
$real_pay = $pay_info->base_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($real_pay,2)?>元
|
|
||||||
</td> |
|
||||||
<td align="center" class="td_bg" nowrap><?=$item->is_leave?'是':''?></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> |
<?php $this->beginBlock('footer_js'); ?> |
||||||
<td align="center" class="td_bg" nowrap> |
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">详情</a>]
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
</td> |
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
</tr> |
<script> |
||||||
<?php |
var o = {}; |
||||||
|
function opFormatter(value, row, index) { |
||||||
|
var opStr = []; |
||||||
|
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||||
|
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||||
|
opStr.push('</a>'); |
||||||
|
|
||||||
|
return opStr.join(' '); |
||||||
} |
} |
||||||
?> |
function edit(id) { |
||||||
</form> |
var title = '工资详情'; |
||||||
<tr > |
layer_show(title, '/personnel/pay-info?id=' + id); |
||||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/common2.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> |
|
||||||
<script type="text/javascript"> |
|
||||||
//上传文件 |
|
||||||
$('#fileupload').fileupload({ |
|
||||||
url: '/personnel/upload', |
|
||||||
dataType: 'json', |
|
||||||
done: function (e, data) { |
|
||||||
var file_info = data.result.files[0]; |
|
||||||
$('#urlfile').val(file_info.url); |
|
||||||
$('#submit-btn').removeAttr('disabled'); |
|
||||||
} |
} |
||||||
|
function refreshList() { |
||||||
|
$('#listTable').bootstrapTable('refresh'); |
||||||
|
} |
||||||
|
function search() { |
||||||
|
o = {}; |
||||||
|
var params = $("#searchFrm").serializeArray(); |
||||||
|
$.each(params, function(index) { |
||||||
|
o[this['name']] = this['value']; |
||||||
}); |
}); |
||||||
|
$('#listTable').bootstrapTable('destroy'); |
||||||
//提交 |
$('#listTable').bootstrapTable({ |
||||||
$('#submit-btn').click(function(){ |
url: "/personnel/pay-list-json", |
||||||
if(confirm('是否确认提交?')){ |
pagination: false, |
||||||
var file_path = $('#urlfile').val(); |
sidePagination: 'server', |
||||||
var time = $("input[name='time']").val(); |
queryParams: function(params) { |
||||||
|
o['offset'] = params['offset']; |
||||||
if(file_path == ''){ |
o['limit'] = params['limit']; |
||||||
alert('请先选择文件!'); |
return o; |
||||||
return; |
|
||||||
} |
} |
||||||
if(time == ''){ |
}); |
||||||
alert('请选择时间!'); |
return false; |
||||||
return; |
|
||||||
} |
} |
||||||
|
|
||||||
var params = $('#theFrm').serialize(); |
$(function() { |
||||||
|
search(); |
||||||
|
|
||||||
$.post('/personnel/import', params, function(obj){ |
$('.date').datepicker({ |
||||||
alert(obj.msg); |
minViewMode: 1, |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
autoclose: true, |
||||||
|
todayHighlight: true, |
||||||
|
format: "yyyy-mm" |
||||||
}); |
}); |
||||||
} |
|
||||||
}); |
}); |
||||||
|
|
||||||
|
|
||||||
mySearch('username', 'search-btn'); |
|
||||||
mySearch('name', 'search-btn'); |
|
||||||
</script> |
</script> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
Loading…
Reference in new issue