You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
simple-yewu/frontend/views/finance/receipt-error-list2.php

72 lines
3.7 KiB

<?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) {
window.location.href = '/finance/receipt-error-edit?id=' + id + '&back_params=' + encodeURIComponent("import_id=<?=$import_id?>");
}
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/finance/receipt-error-list?" + params;
});
$('#save-btn').click(function(){
var params = $('#theFrm').serialize();
$.post('/finance/receipt-error-list-save',params,function(obj){
alert(obj.msg);
},'json');
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="24" align="center" class="bg_tr">序号111</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="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="60" align="center" class="bg_tr">跟单手续费</td>
<td width="30" align="center" class="bg_tr">操作</td>
</tr>
<form id="theFrm">
<?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 ><?=$start_index+1?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->order->id_man,20)?></td>
<td class="td_bg" nowrap><?=$item->order->company?$item->order->company->name:''?></td>
<td class="td_bg" nowrap><?=$item->order->car_no?></td>
<td class="td_bg" nowrap><?=$item->order->insurer1_no?></td>
<td class="td_bg" nowrap><?=$item->order->insurer2_no?></td>
<td class="td_bg" nowrap><input type="text" name="total1_clears[<?=$item->order_id?>]" value="<?=$item->order->total1_clear?>"></td>
<td class="td_bg" nowrap><input type="text" name="total1_rates[<?=$item->order_id?>]" value="<?=$item->order->total1_rate?>"></td>
<td class="td_bg" nowrap><input type="text" name="total2_clears[<?=$item->order_id?>]" value="<?=$item->order->total2_clear?>"></td>
<td class="td_bg" nowrap><input type="text" name="total2_rates[<?=$item->order_id?>]" value="<?=$item->order->total2_rate?>"></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="info(<?=$item->order_id?>)">更正</a>]
</td>
</tr>
<?php
}
?>
</form>
<tr>
<td colspan="9" class="td_bg"></td>
<td colspan="2" class="td_bg"><input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/></td>
</tr>
<tr >
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>