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.
400 lines
29 KiB
400 lines
29 KiB
6 years ago
|
<?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 colspan="13" height="22" class="td_bg">
|
||
|
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
|
<TBODY>
|
||
|
<TR>
|
||
|
<TD height="30" align="center" class=tab-on id=navcell onclick=switchCell(1) name="navcell">保单信息</TD>
|
||
|
<TD height="30" align="center" class=tab-off id=navcell onclick=switchCell(2) name="navcell">快递信息</TD>
|
||
|
<TD height="30" align="center" class=tab-off id=navcell onclick=switchCell(3) name="navcell">礼品信息</TD>
|
||
|
<TD height="30" align="center" class=tab-off id=navcell onclick=switchCell(4) name="navcell">操作记录</TD>
|
||
|
<TD height="30" class=tab-none> </TD>
|
||
|
</TR>
|
||
|
</TBODY>
|
||
|
</TABLE>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<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 id=tb 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 colspan="7" height="25" class="td_bg"><?=$car_info->remark?></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($tmp_row->is_nopay == 1) {
|
||
|
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 colspan="3" class="td_bg"><?=$order_info->price_remark?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
||
|
<tr>
|
||
|
<td width="100" class="bg_tr">领款人</td>
|
||
|
<td class="td_bg"><?=$order_info->money_man?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="bg_tr">银行账号</td>
|
||
|
<td class="td_bg"><?=$order_info->money_no?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="bg_tr">开户行</td>
|
||
|
<td class="td_bg"><?=$order_info->money_bank?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<TABLE id=tb cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
|
||
|
<TR>
|
||
|
<TD vAlign=top>
|
||
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
|
||
|
<form id="emsFrm">
|
||
|
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
|
||
|
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
||
|
<tr>
|
||
|
<td width="100" align="right" class="bg_tr">快递公司:</td>
|
||
|
<td class="td_bg">
|
||
|
<select name="ems_company">
|
||
|
<option>德邦</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
<td width="100" align="right" class="bg_tr">快递单号:</td>
|
||
|
<td class="td_bg">
|
||
|
<input name="ems_no" type="text" value=""/>
|
||
|
</td>
|
||
|
<td width="100" align="right" class="bg_tr">配送员电话:</td>
|
||
|
<td class="td_bg">
|
||
|
<input name="ems_phone" type="text" value=""/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="100" align="right" class="bg_tr">描述:</td>
|
||
|
<td colspan="5" class="td_bg">
|
||
|
<input name="ems_remark" type="text" value="" style="width:600px;"/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td height="22" colspan="6" align="center" class="td_bg">
|
||
|
<input id="ems-save-btn" type=button class="ACT_btn" name="ems-save-btn" value=" 添加快递 "/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</form>
|
||
|
</table>
|
||
|
<div id="ems_list"></div>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<TABLE id=tb cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
|
||
|
<TR>
|
||
|
<TD vAlign=top>
|
||
|
<input type="button" class="ACT_btn ok-btn" name="Submit1" value=" 出库 ">
|
||
|
<input type="button" class="ACT_btn cancel-btn" name="Submit2" value=" 退回 ">
|
||
|
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table" style="table-layout: fixed;">
|
||
|
<form id="listFrm">
|
||
|
<input type="hidden" name="order_id" id="order_id" value="<?=$order_info->id?>">
|
||
|
<tr>
|
||
|
<td width="50" align="center" class="bg_tr" nowrap><input type="checkbox" id="all">选择</td>
|
||
|
<td width="150" align="center" class="bg_tr" nowrap>礼品名称</td>
|
||
|
<td width="80" align="center" class="bg_tr" nowrap>类型</td>
|
||
|
<td width="50%" align="center" class="bg_tr" nowrap>描述</td>
|
||
|
<td width="80" align="center" class="bg_tr" nowrap>分类</td>
|
||
|
<td width="80" align="center" class="bg_tr" nowrap>添加者</td>
|
||
|
<td width="130" align="center" class="bg_tr" nowrap>操作时间</td>
|
||
|
<td width="50" align="center" class="bg_tr" nowrap>状态</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
foreach($gift_items as $index => $item) {
|
||
|
if(!$item->gift) continue;
|
||
|
?>
|
||
|
<tr>
|
||
|
<td align="center" class="td_bg"nowrap ><?php
|
||
|
if($item->status == 0 || $item->status == 2) {
|
||
|
echo '<input type="checkbox" name="gift_ids[]" value="'.$item->id.'">';
|
||
|
} else {
|
||
|
echo '';
|
||
|
}
|
||
|
?></td>
|
||
|
<td class="td_bg" style="word-break: break-all;"><?=$item->gift->name?></td>
|
||
|
<td align="center" class="td_bg" nowrap><?=$item->gift->type->name?></td>
|
||
|
<td class="td_bg" style="word-break: break-all;"><?=$item->gift->remark?></td>
|
||
|
<td align="center" class="td_bg" nowrap><?=$item->strategy_id>0?'公司礼品':'自费礼品'?></td>
|
||
|
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
|
||
|
<td align="center" class="td_bg" nowrap><?=date('Y-m-d H:i:s',$item->submit_time)?></td>
|
||
|
<td align="center" class="td_bg" nowrap>
|
||
|
<?php
|
||
|
if($item->status == 0) echo '未出库';
|
||
|
if($item->status == 1) echo '已出库';
|
||
|
if($item->status == 2) echo '正在退换';
|
||
|
?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</form>
|
||
|
</table>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<TABLE id=tb 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="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/ajax.js"></script>
|
||
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
$(function(){
|
||
|
//操作历史
|
||
|
gotoPage('/car/ajax-history-index?car_id=<?=$car_info->id?>&page=1&t='+Math.random(),'car_history_list');
|
||
|
//返回
|
||
|
$('#back-btn').click(function(){
|
||
|
window.location.href = '/gift/mng-list';
|
||
|
});
|
||
|
$('#all').click(function(){
|
||
|
if($(this).prop('checked')==true) {
|
||
|
$('input:checkbox').each(function() {
|
||
|
$(this).prop('checked', true);
|
||
|
});
|
||
|
} else {
|
||
|
$('input:checkbox').each(function () {
|
||
|
$(this).prop('checked',false);
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
//添加EMS
|
||
|
$('#ems-save-btn').click(function(){
|
||
|
var params = $('#emsFrm').serialize();
|
||
|
$.post('/ems/save',params,function(obj){
|
||
|
alert(obj.msg);
|
||
|
if(obj.success) {
|
||
|
$('#emsFrm')[0].reset();
|
||
|
gotoPage('/ems/ajax-car-index?car_id=<?=$car_info->id?>&order_id=<?=$order_info->id?>&t='+Math.random(),'ems_list');
|
||
|
}
|
||
|
},'json');
|
||
|
});
|
||
|
gotoPage('/ems/ajax-car-index?car_id=<?=$car_info->id?>&order_id=<?=$order_info->id?>&t='+Math.random(),'ems_list');
|
||
|
//出库
|
||
|
$('.ok-btn').click(function(){
|
||
|
var params = $('#listFrm').serialize();
|
||
|
if(confirm('是否出库选择礼品?')) {
|
||
|
$.post('/gift/ok-save',params,function(obj){
|
||
|
alert(obj.msg);
|
||
|
if(obj.success) {
|
||
|
window.location.reload();
|
||
|
}
|
||
|
},'json');
|
||
|
}
|
||
|
});
|
||
|
//退库
|
||
|
$('.cancel-btn').click(function(){
|
||
|
var params = $('#listFrm').serialize();
|
||
|
if(confirm('是否退回礼品?')) {
|
||
|
$.post('/gift/cancel-save',params,function(obj){
|
||
|
alert(obj.msg);
|
||
|
if(obj.success) {
|
||
|
window.location.reload();
|
||
|
}
|
||
|
},'json');
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
</script>
|