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.
227 lines
12 KiB
227 lines
12 KiB
5 years ago
|
<?php
|
||
|
use \common\libs\MyLib;
|
||
|
?>
|
||
|
<link href="/css/tabs.css" rel="stylesheet" type="text/css">
|
||
|
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table" style="table-layout: fixed;">
|
||
|
<form id="orderFrm">
|
||
|
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
||
|
<tr>
|
||
|
<td colspan="6" align="center">送单表</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">车牌</td>
|
||
|
<td width="300" height="25" class="td_bg"><input name="car_no" type="text" value="<?=$order_info->car_no?>" style="width:100px;" /></td>
|
||
|
<td width="100" height="25" class="td_bg">出单日期</td>
|
||
|
<td width="300" height="25" class="td_bg"><input name="upload_date" type="text" value="<?=$order_info->submit_date?>" style="width:100px;" /></td>
|
||
|
<td width="100" height="25" class="td_bg">送单日期</td>
|
||
|
<td width="300" height="25" class="td_bg"><input name="send_date" type="text" value="<?=$order_info->send_date?>" style="width:100px;" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">保险起期</td>
|
||
|
<td height="25" class="td_bg"><input name="insurer_date" type="text" value="<?=$order_info->insurer1_begin_date?>" style="width:100px;" /></td>
|
||
|
<td width="100" height="25" class="td_bg">保险公司</td>
|
||
|
<td height="25" class="td_bg"><input name="insurer_company" type="text" value="<?=$order_info->company?$order_info->company->name:''?>" style="width:100px;" /></td>
|
||
|
<td width="100" height="25" class="td_bg">缴费单号</td>
|
||
|
<td height="25" class="td_bg"><input name="pay_no" type="text" value="<?=$order_info->pay_no?>" style="width:100px;" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">车型种类</td>
|
||
|
<td height="25" class="td_bg"><input name="car_model" type="text" value="<?=$order_info->car->factory_model?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">联系人</td>
|
||
|
<td height="25" class="td_bg"><input name="link_man" type="text" value="<?=$order_info->link_man?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">电话</td>
|
||
|
<td height="25" class="td_bg"><input name="link_tel" type="text" value="<?=$order_info->link_phone?>" style="width:100px;"/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">交强签单</td>
|
||
|
<td height="25" class="td_bg"><input name="total4" type="text" value="<?=$order_info->total2?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">车船税</td>
|
||
|
<td height="25" class="td_bg"><input name="total5" type="text" value="<?=$order_info->total3?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">商业签单</td>
|
||
|
<td height="25" class="td_bg"><input name="total3" type="text" value="<?=$order_info->total1?>" style="width:100px;"/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">共计签单</td>
|
||
|
<td height="25" class="td_bg"><input name="total6" type="text" value="<?=$order_info->total_all?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">实收金额</td>
|
||
|
<td height="25" class="td_bg"><input name="total8" type="text" value="<?=$order_info->total_real?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">实际回款</td>
|
||
|
<td height="25" class="td_bg"> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">发票抬头</td>
|
||
|
<td colspan="3" height="25" class="td_bg"><input name="piao_header" type="text" value="个人" style="width:400px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">缴费方式</td>
|
||
|
<td height="25" class="td_bg"><input name="pay_type" type="text" value="<?=$order_info->payType?$order_info->payType->name:''?>" style="width:100px;"/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">送单备注</td>
|
||
|
<td colspan="5" height="25" class="td_bg"><input name="send_remark" type="text" value="<?=$order_info->remark?>" style="width:600px;"/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">礼品</td>
|
||
|
<td colspan="5" height="25" class="td_bg">
|
||
|
<input name="gift" type="text" value="<?=$gift_str?>" style="width:600px;"/>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">送单地址</td>
|
||
|
<td colspan="5" width="80%" height="25" class="td_bg">
|
||
|
<?php
|
||
|
$address1 = $order_info->direction1?$order_info->direction1->name:'';
|
||
|
$address1 .= $order_info->range1?$order_info->range1->name:'';
|
||
|
$address1 .= $order_info->city1?$order_info->city1->name:'';
|
||
|
$address1 .= $order_info->district1?$order_info->district1->name:'';
|
||
|
$address1 .= $order_info->send_address1;
|
||
|
?>
|
||
|
<input name="address1" type="text" value="<?=$address1?>" style="width: 600px;">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">正本送单地址</td>
|
||
|
<td colspan="5" width="80%" height="25" class="td_bg">
|
||
|
|
||
|
|
||
|
<?php if($order_info->send_address2){
|
||
|
$address2 = $order_info->city2?$order_info->city2->name:'';
|
||
|
$address2 .= $order_info->district2?$order_info->district2->name:'';
|
||
|
$address2 .= $order_info->send_address2;
|
||
|
?>
|
||
|
|
||
|
|
||
|
<?php }elseif($order_info->receiver_province){
|
||
|
$address2 = $order_info->receiver_province;
|
||
|
$address2 .= $order_info->receiver_city;
|
||
|
$address2 .= $order_info->receiver_county;
|
||
|
$address2 .= $order_info->receiver_address;
|
||
|
?>
|
||
|
<?php }else{
|
||
|
$address2 =$order_info->addr->regionP->name;
|
||
|
$address2.=$order_info->addr->regionC->name;
|
||
|
$address2.=$order_info->addr->regionD->name;
|
||
|
if(is_string($order_info->addr->regionT)){
|
||
|
$address2.= $order_info->addr->regionT;
|
||
|
|
||
|
}else{
|
||
|
$address2.= $order_info->addr->regionT->name;
|
||
|
}
|
||
|
$address2.=$order_info->addr->regionT->name;
|
||
|
$address2.=$order_info->addr->address;
|
||
|
?>
|
||
|
|
||
|
<?php }?>
|
||
|
<input name="address1" type="text" value="<?=$address2?>" style="width: 600px;">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">业务员</td>
|
||
|
<td height="25" class="td_bg"><input name="sale_man" type="text" value="<?=$order_info->user?$order_info->user->getShowName():''?>" style="width:100px;"/></td>
|
||
|
<td width="100" height="25" class="td_bg">电话</td>
|
||
|
<td height="25" class="td_bg"><input name="sale_tel" type="text" value="<?=$order_info->user?$order_info->user->phone:''?>" /></td>
|
||
|
<td width="100" height="25" class="td_bg">送单员</td>
|
||
|
<td height="25" class="td_bg">
|
||
|
<select name="lock_id" id="lock_id">
|
||
|
<option value="0">---请选择---</option>
|
||
|
<?php
|
||
|
foreach($user_items as $item) {
|
||
|
echo '<option value="'.$item->id.'"';
|
||
|
if($order_info->lock_id == $item->id)
|
||
|
echo ' selected ';
|
||
|
echo '>'.$item->getShowName().'</option>';
|
||
|
}
|
||
|
?>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" height="25" class="td_bg">优惠金额</td>
|
||
|
<td height="25" class="td_bg"><input name="total9" type="text" value="<?=$order_info->total1_dis?>" /></td>
|
||
|
<td width="100" height="25" class="td_bg">被保险人</td>
|
||
|
<td height="25" class="td_bg"><input name="insurer_man" type="text" value="<?=$order_info->id_man?>" /></td>
|
||
|
<td width="100" height="25" class="td_bg">签字</td>
|
||
|
<td height="25" class="td_bg"></td>
|
||
|
</tr>
|
||
|
</form>
|
||
|
<tr>
|
||
|
<td height="22" colspan="6" 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=Submit1 value=" 放弃处理 "/>
|
||
|
|
||
|
<input id="submit-btn" type=button class="ACT_btn" name=Submit3 value=" 分配 "/>
|
||
|
<!--
|
||
|
<input id="next-btn" type=button class="ACT_btn" name=Submit3 value=" 提交 "/>
|
||
|
//-->
|
||
|
<input id="back-btn" type="button" class="ACT_btn" name="Submit4" 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">
|
||
|
//保单处理
|
||
|
function SaveOrder(status_id) {
|
||
|
var param = $('#orderFrm').serialize();
|
||
|
param = param + '&status_id=' + status_id;
|
||
|
$.post('/insurer/send-mng-save',param,function(obj){
|
||
|
if(obj.success) {
|
||
|
$('#back-btn').click();
|
||
|
} else {
|
||
|
alert(obj.msg);
|
||
|
}
|
||
|
},'json');
|
||
|
}
|
||
|
$(function () {
|
||
|
//退回处理
|
||
|
$('#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');
|
||
|
}
|
||
|
});
|
||
|
//分配
|
||
|
$('#submit-btn').click(function(){
|
||
|
if(confirm('是否分配此保单?')) {
|
||
|
SaveOrder(4);
|
||
|
}
|
||
|
});
|
||
|
//提交
|
||
|
$('#next-btn').click(function(){
|
||
|
if(confirm('是否提交此保单?')) {
|
||
|
SaveOrder(5);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
//返回按钮
|
||
|
$('#back-btn').click(function(){
|
||
|
window.location.href='/insurer/send-mng?<?=$back_params?>';
|
||
|
});
|
||
|
})
|
||
|
</script>
|