parent
4786519a10
commit
4dc1925d69
@ -1,79 +1,105 @@ |
|||||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
<?php |
||||||
<form id="theFrm"> |
use \common\libs\MyLib; |
||||||
<input type="hidden" name="id" value="<?=$caiwu_info->id?>">
|
?> |
||||||
<tr> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<td width="100" height="25" class="td_bg">车牌号</td> |
<link href="/assets/css/plugins/iCheck/custom.css" rel="stylesheet"> |
||||||
<td colspan="3" height="25" class="td_bg"> |
<?php $this->endBlock(); ?> |
||||||
<?=$caiwu_info->car_no?> |
|
||||||
</td> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
</tr> |
<div class="ibox float-e-margins"> |
||||||
<tr> |
<div class="ibox-content"> |
||||||
<td width="100" height="25" class="td_bg">保险公司</td> |
<div class="row"> |
||||||
<td height="25" class="td_bg"> |
<div class="col-sm-12"> |
||||||
<?=$caiwu_info->company?> |
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
</td> |
<input type="hidden" name="id" value="<?=intval($caiwu_info->id)?>">
|
||||||
<td width="100" height="25" class="td_bg">保单号</td> |
<div class="form-group"> |
||||||
<td height="25" class="td_bg"> |
<label class="col-sm-2 control-label">无效理由</label> |
||||||
<input name="insurer_no" type="text" id="insurer_no" value="<?=$caiwu_info->insurer_no?>" style="width:300px;"/>
|
<div class="col-sm-3"> |
||||||
</td> |
<p class="form-control-static"><?=$caiwu_info->car_no?></p>
|
||||||
</tr> |
</div> |
||||||
<tr> |
</div> |
||||||
<td width="100" height="25" class="td_bg">总保费</td> |
<div class="form-group"> |
||||||
<td height="25" class="td_bg"> |
<label class="col-sm-2 control-label">保险公司</label> |
||||||
<?=$caiwu_info->total?> |
<div class="col-sm-3"> |
||||||
</td> |
<p class="form-control-static"><?=$caiwu_info->order->company2->name?></p>
|
||||||
<td width="100" height="25" class="td_bg">净保费</td> |
</div> |
||||||
<td height="25" class="td_bg"> |
<label class="col-sm-2 control-label">保单号</label> |
||||||
<?=$caiwu_info->total_clear?> |
<div class="col-sm-3"> |
||||||
</td> |
<input type="text" name="insurer_no" value="<?=$caiwu_info->insurer_no?>" class="form-control">
|
||||||
</tr> |
</div> |
||||||
<tr> |
</div> |
||||||
<td width="100" height="25" class="td_bg">手续费比例</td> |
<div class="form-group"> |
||||||
<td colspan="3" height="25" class="td_bg"> |
<label class="col-sm-2 control-label">总保费</label> |
||||||
<input name="total_rate" type="text" id="total_rate" value="<?=$caiwu_info->total_rate?>" style="width:100px;"/>%
|
<div class="col-sm-3"> |
||||||
</td> |
<p class="form-control-static"><?=$caiwu_info->total?></p>
|
||||||
</tr> |
</div> |
||||||
<tr> |
<label class="col-sm-2 control-label">净保费</label> |
||||||
<td width="100" height="25" class="td_bg">回款金额</td> |
<div class="col-sm-3"> |
||||||
<td height="25" class="td_bg"> |
<p class="form-control-static"><?=$caiwu_info->total_clear?></p>
|
||||||
<input name="r_total" type="text" id="r_total" value="<?=$caiwu_info->r_total?>" style="width:100px;"/>
|
</div> |
||||||
</td> |
</div> |
||||||
<td width="100" height="25" class="td_bg">回款日期</td> |
<div class="form-group"> |
||||||
<td height="25" class="td_bg"> |
<label class="col-sm-2 control-label">手续费比例</label> |
||||||
<input name="r_date" type="text" id="r_date" class="Wdate" value="<?=$caiwu_info->r_date?>" style="width:100px;" onclick="WdatePicker()"/>
|
<div class="col-sm-3"> |
||||||
</td> |
<div class="input-group"> |
||||||
</tr> |
<input type="text" name="total_rate" value="<?=$caiwu_info->total_rate?>" class="form-control">
|
||||||
</form> |
<div class="input-group-addon">%</div> |
||||||
<tr> |
</div> |
||||||
<td height="22" colspan="4" align="center" class="td_bg"> |
</div> |
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
</div> |
||||||
|
<div class="form-group"> |
||||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" value=" 返回 "> |
<label class="col-sm-2 control-label">回款金额</label> |
||||||
</td> |
<div class="col-sm-3"> |
||||||
</tr> |
<input type="text" name="r_total" value="<?=$caiwu_info->r_total?>" class="form-control">
|
||||||
</table> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<label class="col-sm-2 control-label">回款日期</label> |
||||||
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> |
<div class="col-sm-3"> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<input type="text" name="r_date" id="r_date" value="<?=$caiwu_info->r_date?>" class="form-control" autocomplete="off">
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
</div> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-sm-5 col-sm-offset-5"> |
||||||
|
<button class="btn btn-primary btn-save" type="button"> |
||||||
|
<strong>提 交</strong> |
||||||
|
</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<?php $this->beginBlock('footer_js'); ?> |
||||||
|
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script> |
||||||
<script type="text/javascript" language="javascript"> |
<script type="text/javascript" language="javascript"> |
||||||
$(function () { |
$(function () { |
||||||
|
laydate({ |
||||||
|
elem:'#r_date', |
||||||
|
format: 'YYYY-MM-DD' |
||||||
|
}); |
||||||
//提交按钮 |
//提交按钮 |
||||||
$("#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('/finance/receipt-save',params,function(obj){ |
$.post('/finance/receipt-save',params,function(obj){ |
||||||
alert(obj.msg); |
parent.layer.msg(obj.msg); |
||||||
if(obj.success) { |
if(obj.success) { |
||||||
$('#back-btn').click(); |
parent.refreshList(); |
||||||
|
layer_close(); |
||||||
} |
} |
||||||
},'json'); |
},'json'); |
||||||
} |
}, function(){ |
||||||
}); |
// |
||||||
|
}); |
||||||
//返回按钮 |
|
||||||
$('#back-btn').click(function(){ |
|
||||||
window.location.href='/finance/receipt?<?=$back_params?>';
|
|
||||||
}); |
}); |
||||||
}) |
}) |
||||||
</script> |
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
||||||
|
|
||||||
|
Loading…
Reference in new issue