parent
dd7172af88
commit
75dcf8cf5c
@ -0,0 +1,63 @@ |
||||
<?php |
||||
|
||||
namespace common\models; |
||||
|
||||
use Yii; |
||||
|
||||
/** |
||||
* This is the model class for table "car_log_t". |
||||
* |
||||
* @property integer $id |
||||
* @property integer $car_id |
||||
* @property string $op_man |
||||
* @property integer $op_time |
||||
* @property string $group_name |
||||
* @property integer $type |
||||
* @property string $remark |
||||
* @property string $info |
||||
* @property string $created_at |
||||
* @property string $updated_at |
||||
*/ |
||||
class GiftUseLogT extends \common\models\Base |
||||
{ |
||||
/** |
||||
* @inheritdoc |
||||
*/ |
||||
public static function tableName() |
||||
{ |
||||
return 'gift_use_log_t'; |
||||
} |
||||
|
||||
/** |
||||
* @inheritdoc |
||||
*/ |
||||
public function rules() |
||||
{ |
||||
return [ |
||||
[['gift_use_id', 'op_man', 'op_time'], 'required'], |
||||
[['gift_use_id', 'op_time','type'], 'integer'], |
||||
[['created_at', 'updated_at'], 'safe'], |
||||
[['op_man'], 'string', 'max' => 50], |
||||
[['group_name', 'remark','info'], 'string', 'max' => 100], |
||||
]; |
||||
} |
||||
|
||||
/** |
||||
* @inheritdoc |
||||
*/ |
||||
public function attributeLabels() |
||||
{ |
||||
return [ |
||||
'id' => 'ID', |
||||
'gift_use_id' => 'Gift Use ID', |
||||
'op_man' => 'Op Man', |
||||
'op_time' => 'Op Time', |
||||
'group_name' => 'Group Name', |
||||
'type' => 'Type', |
||||
'remark' => 'Remark', |
||||
'info' => 'Info', |
||||
'created_at' => 'Created At', |
||||
'updated_at' => 'Updated At', |
||||
]; |
||||
} |
||||
} |
@ -1,75 +0,0 @@ |
||||
<?php |
||||
use yii\helpers\Html; |
||||
?> |
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
||||
<title>车务管理系统</title> |
||||
<link href="/css/left_css.css" rel="stylesheet" type="text/css"> |
||||
<?=Html::csrfMetaTags() ?> |
||||
</head> |
||||
<body bgcolor="16ACFF"> |
||||
<table width="170" border="0" cellpadding="0" cellspacing="0" background="/images/tablemde.jpg"> |
||||
<?php |
||||
foreach($menu_items as $item) { |
||||
?> |
||||
<tr> |
||||
<td height="5" background="/images/tableline_top.jpg" bgcolor="#16ACFF"></td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<TABLE width="97%" border=0 align=right cellPadding=0 cellSpacing=0 class=leftframetable> |
||||
<TBODY> |
||||
<TR> |
||||
<TD height="25" style="background:url(/images/left_tt.gif) no-repeat"> |
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
||||
<tr> |
||||
<TD width="20"></TD> |
||||
<TD class=STYLE1 style="CURSOR: hand" onclick=showsubmenu(<?=$item['id']?>); height=25><?=$item['name']?></TD>
|
||||
</tr> |
||||
</table> |
||||
</TD> |
||||
</TR> |
||||
<TR> |
||||
<TD> |
||||
<TABLE id="submenu<?=$item['id']?>" cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||||
<TBODY> |
||||
<?php |
||||
if(isset($item['children'])) { |
||||
foreach($item['children'] as $sub_item) { |
||||
?> |
||||
<TR> |
||||
<TD width="2%"><IMG src="/images/closed.gif"></TD> |
||||
<TD height=23><A href="javascript:void(0);" onclick="parent.openTab({'id':<?=$sub_item['id']?>,'name':'<?=$sub_item['name']?>','path':'<?=$sub_item['path']?>'});"><?=$sub_item['name']?></A></TD>
|
||||
</TR> |
||||
<?php |
||||
}} |
||||
?> |
||||
</TBODY> |
||||
</TABLE> |
||||
</TD> |
||||
</TR> |
||||
</TBODY> |
||||
</TABLE> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="5" background="/images/tableline_bottom.jpg" bgcolor="#9BC2ED"></td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
||||
<SCRIPT language=JavaScript> |
||||
function showsubmenu(sid) { |
||||
whichEl = eval("submenu" + sid); |
||||
if (whichEl.style.display == "none") { |
||||
eval("submenu" + sid + ".style.display=\"\";"); |
||||
} |
||||
else { |
||||
eval("submenu" + sid + ".style.display=\"none\";"); |
||||
} |
||||
} |
||||
</SCRIPT> |
||||
</body> |
||||
</html> |
@ -1,100 +0,0 @@ |
||||
<?php |
||||
use yii\helpers\Html; |
||||
?> |
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
||||
<title>车务管理系统</title> |
||||
<link href="/css/top_css.css" rel="stylesheet" type="text/css"> |
||||
<?=Html::csrfMetaTags() ?> |
||||
</head> |
||||
<body bgcolor="#03A8F6"> |
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
||||
<tr> |
||||
<td width="194" height="60" align="center" background="/images/top_logo.png"></td> |
||||
<td align="center" style="background:url(/images/top_bg.jpg) no-repeat"> |
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%" height="33"> |
||||
<tbody> |
||||
<tr> |
||||
<td width="0" align="left"> |
||||
</td> |
||||
<td align="right"> |
||||
<!-- <button disabled>不需要签入、签出</button>--> |
||||
<!-- <input id="tpy_phone" name="tpy_phone" type="Text">--> |
||||
<!-- <button id="tpy_call_in" onclick="tpy_call_in()">拨号</button>--> |
||||
<!-- <button id="tpy_call_out" onclick="tpy_call_out()">挂断</button>--> |
||||
当前用户:<?=$this->context->my->getShowName()?>
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="2"> |
||||
<div id="tip_info"> |
||||
<!-- 今日提单数:0个 未处理退单数: 0个--> |
||||
</div> |
||||
</td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<table height="26" border="0" align="right" cellpadding="0" cellspacing="0" class="subbg" NAME=t1> |
||||
<tbody> |
||||
<tr align="middle"> |
||||
<td width="71" align="center" valign="middle" background="/images/top_tt_bg.gif"><a href="javascript:void(0);" class="STYLE2" onclick="parent.openTab({'id':0,'name':'修改密码','path':'/common/update-pwd'});">修改密码</a></td> |
||||
<td width="71" align="center" valign="middle" background="/images/top_tt_bg.gif"><a href="javascript:void(0);" id="logout-btn" target="_top" class="STYLE2">退出登录</a></td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
<tr height="6"> |
||||
<td bgcolor="#1F3A65" background="/images/top_bg.jpg"></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"> |
||||
<!-- |
||||
$(function(){ |
||||
$("#logout-btn").click(function(){ |
||||
window.top.location.href = "/common/logout"; |
||||
}); |
||||
|
||||
}); |
||||
//--> |
||||
|
||||
//太平洋测试拨号挂断 |
||||
function tpy_call_in(){ |
||||
|
||||
var tpy_phone = $("#tpy_phone").val(); |
||||
alert(tpy_phone); |
||||
if(tpy_phone == ""){ |
||||
alert("请输入号码"); |
||||
return false; |
||||
} |
||||
var ext_phone = '<?= $this->context->my->ext_phone ?>';
|
||||
$.post('/tpy-phone/call-to',{ext_phone:ext_phone,phone_num:tpy_phone},function(obj){ |
||||
if(obj.success) { |
||||
//$('#tpy_call_in').attr('disabled',true); |
||||
//$('#tpy_call_out').removeAttr('disabled'); |
||||
alert(obj.msg); |
||||
}else{ |
||||
alert(obj.msg); |
||||
} |
||||
},'json'); |
||||
} |
||||
//太平洋测试挂断电话 |
||||
function tpy_call_out(){ |
||||
|
||||
var ext_phone = '<?= $this->context->my->ext_phone ?>';
|
||||
$.post('/tpy-phone/hang-up',{ext_phone:ext_phone},function(obj){ |
||||
if(obj.success) { |
||||
//$('#tpy_call_out').attr('disabled',true); |
||||
//$('#tpy_call_in').removeAttr('disabled'); |
||||
alert(obj.msg); |
||||
}else{ |
||||
alert(obj.msg); |
||||
} |
||||
},'json'); |
||||
} |
||||
</script> |
||||
</body> |
||||
</html> |
@ -1,233 +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 edit(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/car/edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
//详情 |
||||
function info(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/filtrationt/info?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
function getData() { |
||||
$.get('/database/ajax-a-data', function (obj) { |
||||
alert(obj.msg); |
||||
if (obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
}, 'json'); |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/database/ad-clean-index?" + params; |
||||
}); |
||||
$('#all-assign-btn').click(function(){ |
||||
if(confirm('是否确认批量分配操作?')) { |
||||
var params = $('#searchForm').serialize(); |
||||
$.post('/database/b-all-assign',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('.invalid-btn').click(function(){ |
||||
if(confirm('是否确认无效?')) { |
||||
var params = $('#listFrm').serialize(); |
||||
var invalid_id = $('#invalid_id').val(); |
||||
params = params + '&invalid_id=' + invalid_id; |
||||
$.post('/database/invalid',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#assign-btn').click(function(){ |
||||
if(confirm('是否确认分配操作?')) { |
||||
var params = $('#listFrm').serialize(); |
||||
var user_id = $('#user_id').val(); |
||||
params = params + '&user_id=' + user_id; |
||||
$.post('/database/clean-assign',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#return-btn').click(function(){ |
||||
var yuyue = $('#yuyue').val(); |
||||
var fenpei = $('#fenpei').val(); |
||||
if(yuyue!=1 || fenpei!=1){ |
||||
alert('请先选择未预约选项和未分配选项'); |
||||
return; |
||||
} |
||||
|
||||
if(confirm('是否确认收回操作?')) { |
||||
var params = $('#listFrm').serialize(); |
||||
$.post('/database/clean-return-a',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#return-all-btn').click(function(){ |
||||
var yuyue = $('#yuyue').val(); |
||||
var fenpei = $('#fenpei').val(); |
||||
if(yuyue!=1 || fenpei!=1){ |
||||
alert('请先选择未预约选项和未分配选项'); |
||||
return; |
||||
} |
||||
|
||||
if(confirm('是否确认收回操作?')) { |
||||
var params = $('#searchForm').serialize(); |
||||
$.post('/database/clean-return-all-a',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
$('#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); |
||||
}); |
||||
} |
||||
}); |
||||
}); |
||||
</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="car_no" type="text" value="<?=$car_no?>" style="width:100px;">
|
||||
车主:<input name="car_man" type="text" value="<?=$car_man?>" style="width:100px;">
|
||||
联系电话:<input name="phone" type="text" value="<?=$phone?>" style="width:100px;">
|
||||
初登日期:从<input class="act_date" name="register_begin" type="text" value="<?=$register_begin?>" onclick="WdatePicker()">至<input class="act_date" name="register_end" type="text" value="<?=$register_end?>" onclick="WdatePicker()">截止
|
||||
保险公司:<input name="company" type="text" value="<?=$company?>" style="width:100px;">
|
||||
</td> |
||||
</tr> |
||||
<style> |
||||
/*.day_date{*/ |
||||
/*width: 10px;*/ |
||||
/*}*/ |
||||
</style> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
保险日期:从<input class="act_date" name="insurer1_begin" type="text" value="<?=$insurer1_begin?>" onclick="WdatePicker()">至<input class="act_date" name="insurer1_end" type="text" value="<?=$insurer1_end?>" onclick="WdatePicker()">截止
|
||||
|
||||
预约状态:<select name="yuyue" id="yuyue"> |
||||
<option value="">全部</option> |
||||
<option value="1" <?=$yuyue==1?'selected':''?>>未预约</option>
|
||||
<option value="2" <?=$yuyue==2?'selected':''?>>已预约</option>
|
||||
</select> |
||||
|
||||
分配状态:<select name="status" id="fenpei"> |
||||
<option value="3">全部</option> |
||||
<option value="1" <?=$status==1?'selected':''?>>未分配</option>
|
||||
<option value="2" <?=$status==2?'selected':''?>>已分配</option>
|
||||
</select> |
||||
|
||||
导入状态:<select name="repeat"> |
||||
<option value="0">全部</option> |
||||
<option value="1" <?=$repeat==1?'selected':''?>>原始导入</option>
|
||||
<option value="2" <?=$repeat==2?'selected':''?>>二次导入</option>
|
||||
</select> |
||||
<!-- 工号:<input name="username" type="text" value="--><?//=$username?><!--" style="width:50px;">-->
|
||||
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<!-- 业务员:<select name="user_id" id="user_id">--> |
||||
<!-- <option value="0">请选择</option>--> |
||||
<!-- --><?php |
||||
// foreach($user_items as $item) { |
||||
// echo '<option value="'.$item->id.'"'; |
||||
// if($item->id == $user_id) |
||||
// echo ' selected '; |
||||
// echo '>'.$item->getShowName().'</option>'; |
||||
// } |
||||
// ?> |
||||
<!-- </select>--> |
||||
<!-- <input type="button" class="act_btn" id="assign-btn" name="assign-btn" value="勾选分配">--> |
||||
|
||||
<input type="button" class="act_btn" id="return-btn" name="return-btn" value="勾选收回"> |
||||
<input type="button" class="act_btn" id="return-all-btn" name="return-all-btn" value="批量收回"> |
||||
|
||||
<!-- 分配给业务员 <input id="assign_users" name="assign_users" type="text" value="" style="width:100px;">--> |
||||
<!-- 每个业务员分配 <input id="assign_count" name="assign_count" type="text" value="" style="width:50px;"> 条记录--> |
||||
<!-- <input type="button" class="act_btn" id="all-assign-btn" name="all-assign-btn" value="批量分配">--> |
||||
</td> |
||||
</tr> |
||||
|
||||
</form> |
||||
<tr> |
||||
<td class="td_bg"><span>总任务数:<?=$carAcount?></span> <input class="act_btn" type="button" onclick="getData()" value="领取数据"></td>
|
||||
</tr> |
||||
</table> |
||||
|
||||
<form id="listFrm"> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" width="24" align="center" class="bg_tr"><input type="checkbox" id="all"></td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>车牌</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>车型</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>车主</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>联系电话</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>初登日期</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>保险日期</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>保险公司</td> |
||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>发动机号</td> |
||||
<td width="96" align="center" align="center" class="bg_tr" nowrap>车架号</td> |
||||
<td width="50" align="center" align="center" class="bg_tr" nowrap>操作员</td> |
||||
<!-- <td width="50" align="center" align="center" class="bg_tr" nowrap>详情</td>--> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$car_info = $item->car; |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><input type="checkbox" name="ids[]" value="<?=$car_info->id?>"></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_no?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($car_info->factory_model,10)?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($car_info->car_man,10)?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->phone?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->register_date?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->insurer1_date?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->company?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->engine_no?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_frame_no?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$item->user?$item->user->getShowName():''?></td>
|
||||
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr > |
||||
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
||||
</form> |
@ -1,94 +0,0 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-content"> |
||||
<form role="form" class="form-horizontal" id="searchFrm" onsubmit="return search();"> |
||||
<div class="form-group"> |
||||
<label class="control-label col-sm-1">车牌</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<label class="control-label col-sm-1">车主</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" id="car_man" name="car_man" class="form-control"> |
||||
</div> |
||||
<label class="control-label col-sm-1">联系电话</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" id="phone" name="phone" class="form-control"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="control-label col-sm-1">初登日期</label> |
||||
<div class="col-sm-3"> |
||||
<div class="input-daterange input-group" id="datepicker"> |
||||
<input type="text" class="input-sm form-control" name="register_begin" value="" autocomplete="off" /> |
||||
<span class="input-group-addon">到</span> |
||||
<input type="text" class="input-sm form-control" name="register_end" value="" autocomplete="off" /> |
||||
</div> |
||||
</div> |
||||
<label class="control-label col-sm-1">保险日期</label> |
||||
<div class="col-sm-3"> |
||||
<div class="input-daterange input-group" id="datepicker"> |
||||
<input type="text" class="input-sm form-control" name="insurer1_begin" value="" autocomplete="off" /> |
||||
<span class="input-group-addon">到</span> |
||||
<input type="text" class="input-sm form-control" name="insurer1_end" value="" autocomplete="off" /> |
||||
</div> |
||||
</div> |
||||
<label class="control-label col-sm-1">保险公司</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" id="company" name="company" class="form-control"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="control-label col-sm-1">无效理由</label> |
||||
<div class="col-sm-3"> |
||||
<select class="form-control" id="invalid_id" name="invalid_id"> |
||||
<option value="0">请选择无效理由</option> |
||||
<?php foreach($invalid_items as $item) { |
||||
echo '<option value="'.$item->id.'">'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</div> |
||||
<label class="control-label col-sm-1">操作者</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" id="username" name="username" class="form-control"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<div class="col-sm-3 col-sm-offset-5"> |
||||
<button type="submit" class="btn btn-primary">搜索</button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script type="text/javascript" language="javascript"> |
||||
function search() { |
||||
var o = {}; |
||||
var params = $("#searchFrm").serializeArray(); |
||||
$.each(params, function(index) { |
||||
o[this['name']] = this['value']; |
||||
}); |
||||
parent.o = o; |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} |
||||
|
||||
$(function () { |
||||
$('.input-daterange').datepicker({ |
||||
keyboardNavigation: false, |
||||
forceParse: false, |
||||
autoclose: true |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -1,170 +0,0 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>礼品出库</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<form role="form" class="form-horizontal" onsubmit="return search();"> |
||||
<div class="form-group"> |
||||
<label class="control-label col-md-1">礼品编号</label> |
||||
<div class="col-md-2"> |
||||
<input type="text" id="code" name="code" class="form-control"> |
||||
</div> |
||||
<label class="control-label col-md-1">车牌</label> |
||||
<div class="col-md-2"> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<label class="control-label col-md-1">车架号</label> |
||||
<div class="col-md-2"> |
||||
<input type="text" id="frame_no" name="frame_no" class="form-control"> |
||||
</div> |
||||
<label class="control-label col-md-1">发动机号</label> |
||||
<div class="col-md-2"> |
||||
<input type="text" id="engine_no" name="engine_no" class="form-control"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="control-label col-md-1">状态</label> |
||||
<div class="col-md-2"> |
||||
<select name="status" class="form-control"> |
||||
<option value="0" >全部</option> |
||||
<option value="4">未出库</option> |
||||
<option value="5">已出库</option> |
||||
</select> |
||||
</div> |
||||
<label class="control-label col-md-1">分类</label> |
||||
<div class="col-md-2"> |
||||
<select name="type_id" class="form-control"> |
||||
<option value="0">---请选择---</option> |
||||
<?php |
||||
foreach($type_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</div> |
||||
<label class="control-label col-md-1">业务工号</label> |
||||
<div class="col-md-2"> |
||||
<input type="text" id="username" name="username" class="form-control"> |
||||
</div> |
||||
<label class="control-label col-md-1">商业保单号</label> |
||||
<div class="col-md-2"> |
||||
<input type="text" id="insurer1_no" name="insurer1_no" class="form-control"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="control-label col-md-1">提单日期</label> |
||||
<div class="col-md-2"> |
||||
<div class="input-daterange input-group" id="datepicker"> |
||||
<input type="text" class="input-sm form-control" id="s_start_date" name="s_start_date" autocomplete="off" value="" /> |
||||
<span class="input-group-addon">到</span> |
||||
<input type="text" class="input-sm form-control" id="s_end_date" name="s_end_date" autocomplete="off" value="" /> |
||||
</div> |
||||
</div> |
||||
<label class="control-label col-md-1">正本日期</label> |
||||
<div class="col-md-2"> |
||||
<div class="input-daterange input-group" id="datepicker"> |
||||
<input type="text" class="input-sm form-control" id="p_start_date" name="p_start_date" autocomplete="off" value="" /> |
||||
<span class="input-group-addon">到</span> |
||||
<input type="text" class="input-sm form-control" id="p_end_date" name="p_end_date" autocomplete="off" value="" /> |
||||
</div> |
||||
</div> |
||||
<div class="col-md-3"> |
||||
<button type="submit" class="btn btn-primary">搜索</button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th width="50" data-field="id">ID</th> |
||||
<th data-field="code">礼品编号</th> |
||||
<th data-field="name">礼品</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_frame_no">车架号</th> |
||||
<th data-field="use_total">提单人</th> |
||||
<th data-field="use_total">出库时间</th> |
||||
<th data-field="use_total">状态</th> |
||||
<th data-field="use_total">操作员</th> |
||||
<th data-formatter="opFormatter">操作</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<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> |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||
if(row.use_num > row.finish_num) { |
||||
opStr.push('<i class="fa fa-edit" title="出库"></i>'); |
||||
} else { |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
} |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/gift/gift-out-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
params.code = $('#code').val(); |
||||
params.car_no = $('#car_no').val(); |
||||
params.frame_no = $('#frame_no').val(); |
||||
params.engine_no = $('#engine_no').val(); |
||||
params.status = $('#status').val(); |
||||
params.type_id = $('#type_id').val(); |
||||
params.username = $('#username').val(); |
||||
params.insurer1_no = $('#insurer1_no').val(); |
||||
params.s_start_date = $('#s_start_date').val(); |
||||
params.s_end_date = $('#s_end_date').val(); |
||||
params.p_start_date = $('#p_start_date').val(); |
||||
params.p_end_date = $('#p_end_date').val(); |
||||
return params; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
$('.input-daterange').datepicker({ |
||||
keyboardNavigation: false, |
||||
forceParse: false, |
||||
autoclose: true |
||||
}); |
||||
search(); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
@ -0,0 +1,127 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=intval($info->id)?>">
|
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">编号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->code?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">车牌号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->car_no?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">车架号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->order->car_frame_no?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">发动机号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->order->engine_no?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">商业保单号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->order->insurer1_no?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">备注</label> |
||||
<div class="col-sm-8"> |
||||
<textarea name="remark" class="form-control"></textarea> |
||||
</div> |
||||
</div> |
||||
<?php if($info->typeNew->use_num > $info->finished_num) {?> |
||||
<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> |
||||
<?php } ?> |
||||
</form> |
||||
</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-sm-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">序号</th> |
||||
<th data-field="op_man">操作者</th> |
||||
<th data-field="op_time">操作时间</th> |
||||
<th data-field="remark">备注</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<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 type="text/javascript" language="javascript"> |
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/gift/history-log-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
params.id = <?=$info->id?>;
|
||||
return params; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
$(function () { |
||||
search(); |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
params += '&status=2'; |
||||
$.post('/gift/use-save',params,function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -1,400 +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 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> |
@ -1,74 +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) { |
||||
window.location.href = '/gift/mng-list-info?id=' + id; |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/gift/mng-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="car_man" type="text" value="<?=$car_man?>">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<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="50" 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="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="60" 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><?=MyLib::substr_cut($item->car_man,15)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->submit_date?></td>
|
||||
<td class="td_bg" nowrap><?=$item->send_date?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car?MyLib::substr_cut($item->car->factory_model,15):''?></td>
|
||||
<td class="td_bg" nowrap><?=$item->total_all?></td>
|
||||
<td class="td_bg" ><?=$item->total_real?> </td>
|
||||
<td class="td_bg" ><?=$item->status->name?></td>
|
||||
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?></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,65 +0,0 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>礼品盘库</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th width="50" data-field="id">ID</th> |
||||
<th data-field="name">名称</th> |
||||
<th data-field="total">总数量</th> |
||||
<th data-field="out_total">已出库</th> |
||||
<th data-field="use_total">已使用</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<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> |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/gift/stastics-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
return params; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
@ -0,0 +1,142 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=intval($info->id)?>">
|
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">编号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->code?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">车牌号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->car_no?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">车架号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->order->car_frame_no?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">发动机号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->order->engine_no?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">商业保单号</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->order->insurer1_no?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">有效期时间</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->end_date?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">共使用数</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->typeNew->use_num?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">剩余使用次数</label> |
||||
<div class="col-sm-4"> |
||||
<p class="form-control-static"><?=$info->typeNew->use_num - $info->finished_num?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">备注</label> |
||||
<div class="col-sm-8"> |
||||
<textarea name="remark" class="form-control"></textarea> |
||||
</div> |
||||
</div> |
||||
<?php if($info->typeNew->use_num > $info->finished_num) {?> |
||||
<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> |
||||
<?php } ?> |
||||
</form> |
||||
</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-sm-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">序号</th> |
||||
<th data-field="op_man">操作者</th> |
||||
<th data-field="op_time">操作时间</th> |
||||
<th data-field="info">操作内容</th> |
||||
<th data-field="remark">备注</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<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 type="text/javascript" language="javascript"> |
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/gift/history-log-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
params.id = <?=$info->id?>;
|
||||
return params; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
$(function () { |
||||
search(); |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
params += '&status=2'; |
||||
$.post('/gift/use-save',params,function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -0,0 +1,169 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>礼券使用</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<form role="form" class="form-inline" onsubmit="return search();"> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="code">礼券编号</label> |
||||
<input type="text" id="code" name="code" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="car_no">车牌</label> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="frame_no">车架号</label> |
||||
<input type="text" id="frame_no" name="frame_no" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="engine_no">发动机号</label> |
||||
<input type="text" id="engine_no" name="engine_no" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="status">状态</label> |
||||
<select name="status" id="status" class="form-control"> |
||||
<option value="0" >全部</option> |
||||
<option value="1">未使用</option> |
||||
<option value="2">使用中</option> |
||||
<option value="3">使用完</option> |
||||
</select> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="type_id">分类</label> |
||||
<select name="type_id" id="type_id" class="form-control"> |
||||
<option value="0">---请选择---</option> |
||||
<?php |
||||
foreach($type_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="username">业务工号</label> |
||||
<input type="text" id="username" name="username" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="insurer1_no">商业保单号</label> |
||||
<input type="text" id="insurer1_no" name="insurer1_no" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="datepicker1">提单日期</label> |
||||
<div class="input-daterange input-group" id="datepicker1"> |
||||
<input type="text" class="input-sm form-control" id="s_start_date" name="s_start_date" autocomplete="off" value="" /> |
||||
<span class="input-group-addon">到</span> |
||||
<input type="text" class="input-sm form-control" id="s_end_date" name="s_end_date" autocomplete="off" value="" /> |
||||
</div> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="datepicker2">正本日期</label> |
||||
<div class="input-daterange input-group" id="datepicker2"> |
||||
<input type="text" class="input-sm form-control" id="p_start_date" name="p_start_date" autocomplete="off" value="" /> |
||||
<span class="input-group-addon">到</span> |
||||
<input type="text" class="input-sm form-control" id="p_end_date" name="p_end_date" autocomplete="off" value="" /> |
||||
</div> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||
</form> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th width="50" data-field="id">ID</th> |
||||
<th data-field="code">礼券编号</th> |
||||
<th data-field="name">礼品</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_frame_no">车架号</th> |
||||
<th data-field="input_date">发放日期</th> |
||||
<th data-field="end_date">有效期日期</th> |
||||
<th data-field="submit_user">提单人</th> |
||||
<th data-field="use_date">使用日期</th> |
||||
<th data-field="status">状态</th> |
||||
<th data-field="username">操作员</th> |
||||
<th data-formatter="opFormatter">操作</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<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> |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||
if(row.use_num > row.finish_num) { |
||||
opStr.push('<i class="fa fa-edit" title="出库"></i>'); |
||||
} else { |
||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||
} |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
function edit(id) { |
||||
title = '礼品核销'; |
||||
layer_show(title, '/gift/ticket-use-edit?id='+id); |
||||
} |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/gift/ticket-use-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
params.code = $('#code').val(); |
||||
params.car_no = $('#car_no').val(); |
||||
params.frame_no = $('#frame_no').val(); |
||||
params.engine_no = $('#engine_no').val(); |
||||
params.status = $('#status').val(); |
||||
params.type_id = $('#type_id').val(); |
||||
params.username = $('#username').val(); |
||||
params.insurer1_no = $('#insurer1_no').val(); |
||||
params.s_start_date = $('#s_start_date').val(); |
||||
params.s_end_date = $('#s_end_date').val(); |
||||
params.p_start_date = $('#p_start_date').val(); |
||||
params.p_end_date = $('#p_end_date').val(); |
||||
return params; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
$('.input-daterange').datepicker({ |
||||
keyboardNavigation: false, |
||||
forceParse: false, |
||||
autoclose: true |
||||
}); |
||||
search(); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
@ -1,65 +0,0 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
<input type="button" class="act_btn" id="save-btn" name="save-btn" value="保存"> |
||||
<input type="button" class="act_btn" id="return-btn" name="return-btn" value="返回"> |
||||
<?=$group_info?$group_info->getPath():''?> |
||||
</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"><input type="checkbox" id="all"></td> |
||||
<td width="100" align="center" class="bg_tr">菜单名称</td> |
||||
<td width="70%" align="center" class="bg_tr">路径</td> |
||||
</tr> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="group_id" value="<?=$group_id?>">
|
||||
<?php |
||||
foreach($menu_items as $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td width="24" align="center" class="td_bg"> |
||||
<label> |
||||
<input class="checkbox" type="checkbox" name="menu_ids[]" value="<?=$item->id?>" <?=in_array($item->id,$menu_ids)?'checked':''?>>
|
||||
</label> |
||||
</td> |
||||
<td class="td_bg" nowrap><?= $item->name ?></td>
|
||||
<td class="td_bg" nowrap><?= $item->path ?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</form> |
||||
</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(){ |
||||
$('#save-btn').click(function(){ |
||||
var params = $('#theFrm').serialize(); |
||||
$.post('/group/permission',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.href = '/group/index'; |
||||
} |
||||
},'json'); |
||||
}); |
||||
$('#return-btn').click(function(){ |
||||
window.location.href = '/group/index'; |
||||
}); |
||||
$('#all').click(function(){ |
||||
var key = $(this).prop('checked'); |
||||
if(key) |
||||
$('.checkbox').prop('checked',true); |
||||
else |
||||
$('.checkbox').removeProp('checked'); |
||||
}); |
||||
}); |
||||
</script> |
@ -1,591 +1,379 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
use common\models\PriceT; |
||||
|
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<style> |
||||
label.control-label { |
||||
width: 120px; |
||||
} |
||||
|
||||
.form-inline .form-control { |
||||
width: 180px; |
||||
} |
||||
</style> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<form class="form-horizontal" id="orderFrm"> |
||||
<input type="hidden" name="car_id" value="<?=$order_info->car_id?>">
|
||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
||||
<input type="hidden" name="celuo_id" value="<?=$order_info->celuo_id?>">
|
||||
<input type="hidden" name="fanxian_id" value="<?=$order_info->fanxian_id?>">
|
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title fixed"> |
||||
<div class="ibox-title"> |
||||
<h5>保单信息</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="print_infos('insurer')"> |
||||
<i class="fa fa-plus"></i> 保单打印信息 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<div class="container"> |
||||
<input type="hidden" name="id" value="" class="form-control car-info"> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">车牌号</label> |
||||
<span class="car-info" data-name="car_no"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">厂牌型号</label> |
||||
<span class="car-info" data-name="factory_model"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">品牌</label> |
||||
<span class="car-info" data-name="brand_txt"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">车系</label> |
||||
<span class="car-info" data-name="series_txt"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">发动机号</label> |
||||
<span class="car-info" data-name="engine_no"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">车架号</label> |
||||
<span class="car-info" data-name="car_frame_no"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">初登日期</label> |
||||
<span class="car-info" data-name="register_date"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">排量</label> |
||||
<span class="car-info" data-name="displacement_txt"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">车辆类型</label> |
||||
<span class="car-info" data-name="car_type_txt"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">运营性质</label> |
||||
<span class="car-info" data-name="car_use_txt"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">座位数</label> |
||||
<span class="car-info" data-name="seats"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">年份</label> |
||||
<span class="car-info" data-name="car_year"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">车主</label> |
||||
<span class="car-info" data-name="car_man"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">联系电话</label> |
||||
<span class="car-info" data-name="phone"></span> |
||||
</div> |
||||
</div><hr> |
||||
<div class="container"> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">业务分组</label> |
||||
<span class="order-info" data-name="business_group_name"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">被保险人</label> |
||||
<span class="order-info" data-name="id_man"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">证件号码</label> |
||||
<span class="order-info" data-name="id_man_number"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">联系人</label> |
||||
<span class="order-info" data-name="link_man"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">联系电话</label> |
||||
<span class="order-info" data-name="link_man_phone"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">送单日期</label> |
||||
<span class="order-info" data-name="send_date"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">保险公司</label> |
||||
<span class="order-info" data-name="company_name"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">付款方式</label> |
||||
<span class="order-info" data-name="pay_type_txt"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">收款人</label> |
||||
<span class="order-info" data-name="payee_name"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">商业起保日期</label> |
||||
<span class="order-info" data-name="insurer1_begin_date"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">交强起保日期</label> |
||||
<span class="order-info" data-name="insurer2_begin_date"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">付款人</label> |
||||
<span class="order-info" data-name="payer_name"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">缴费单号</label> |
||||
<span class="order-info" data-name="pay_no"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">商业保单号</label> |
||||
<span class="order-info" data-name="insurer1_no"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">交强保单号</label> |
||||
<span class="order-info" data-name="insurer2_no"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">收款方式</label> |
||||
<span class="order-info" data-name="payment_name"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">送单地址</label> |
||||
<span class="order-info" data-name=""></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">备注</label> |
||||
<span class="order-info" data-name=""></span> |
||||
</div> |
||||
<div class="form-group col-md-6" style="margin-bottom: 8px;"> |
||||
<label class="control-label">正本送单地址</label> |
||||
<span class="order-info" data-name="receiver_addr_txt"></span> |
||||
</div> |
||||
</div><hr> |
||||
<div class="container"> |
||||
<table id="insurer_type_table"> |
||||
<thead> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="show_name">险种</th> |
||||
<th data-field="show_content">内容</th> |
||||
<th data-field="is_nopay_txt">不计免赔</th> |
||||
<th class="bg-warning">车牌号</th> |
||||
<td><?=$order_info->car_no?></td>
|
||||
<th class="bg-warning" nowrap>初登日期</th> |
||||
<td><?=$car_info->register_date?></td>
|
||||
<th class="bg-warning" nowrap>座位数</th> |
||||
<td><?=$order_info->seats?></td>
|
||||
<th class="bg-warning" nowrap>电子邮件</th> |
||||
<td><?=$order_info->email?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车型</th> |
||||
<td><?=$order_info->factory_model?></td>
|
||||
<th class="bg-warning" nowrap>发动机号</th> |
||||
<td><?=$order_info->engine_no?></td>
|
||||
<th class="bg-warning" nowrap>车架号</th> |
||||
<td><?=$order_info->car_frame_no?></td>
|
||||
<th class="bg-warning" nowrap>新车购置价</th> |
||||
<td><?=$order_info->purchase_price?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车主</th> |
||||
<td><?=$order_info->car_man?></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><?=$order_info->car_man_type?></td>
|
||||
<th class="bg-warning">证件号码</th> |
||||
<td><?=$order_info->car_man_number?></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><?=$order_info->car_man_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">被投保人</th> |
||||
<td><?=$order_info->id_man?></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><?=$order_info->id_man_type?></td>
|
||||
<th class="bg-warning">证件号码</th> |
||||
<td><?=$order_info->id_man_number?></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><?=$order_info->id_man_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">投保人</th> |
||||
<td><?=$order_info->link_man?></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><?=$order_info->link_man_type?></td>
|
||||
<th class="bg-warning">证件号码</th> |
||||
<td><?=$order_info->link_man_number?></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><?=$order_info->link_man_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>商业起保日期</th> |
||||
<td><?=$order_info->insurer1_begin_date?></td>
|
||||
<th class="bg-warning" nowrap>交强起保日期</th> |
||||
<td><?=$order_info->insurer2_begin_date?></td>
|
||||
<th class="bg-warning">保险公司</th> |
||||
<td><?=$order_info->company->name?></td>
|
||||
<th class="bg-warning">车辆使用性质</th> |
||||
<td><?=$order_info->car->carUse->name?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>商业保单号</th> |
||||
<td><?=$order_info->insurer1_no?></td>
|
||||
<th class="bg-warning" nowrap>商业PDF文件</th> |
||||
<td> |
||||
<?php if($order_info->shangye_src != '') { ?> |
||||
<a href="<?=$order_info->shangye_src?>"><i class="fa fa-image">保单</i></a>
|
||||
<?php } ?> |
||||
<?php if($order_info->fapiao_src != '') { ?> |
||||
<a href="<?=$order_info->fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
|
||||
<?php } ?> |
||||
</td> |
||||
<th class="bg-warning">交强保单号</th> |
||||
<td><?=$order_info->insurer2_no?></td>
|
||||
<th class="bg-warning">交强PDF文件</th> |
||||
<td> |
||||
<?php if($order_info->jiaoqiang_src != '') { ?> |
||||
<a href="<?=$order_info->jiaoqiang_src?>"><i class="fa fa-image">保单</i></a>
|
||||
<?php } ?> |
||||
<?php if($order_info->jq_fapiao_src != '') { ?> |
||||
<a href="<?=$order_info->jq_fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
|
||||
<?php } ?> |
||||
</td> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div><hr> |
||||
<div class="container"> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">商业总净保费</label> |
||||
<span class="order-info" data-name="total1_clear"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">商业含税总保费</label> |
||||
<span class="order-info" data-name="total1"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">交强总净保费</label> |
||||
<span class="order-info" data-name="total2_clear"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">交强含税总保费</label> |
||||
<span class="order-info" data-name="total2"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">车船税</label> |
||||
<span class="order-info" data-name="total3"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">共计签单</label> |
||||
<span class="order-info" data-name="total_all"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">折扣后商业净保费</label> |
||||
<span class="order-info" data-name="total1_real"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">减免金额</label> |
||||
<span class="order-info" data-name="total1_dis"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">商业折扣率</label> |
||||
<span class="order-info" data-name="total1_percent"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">应收</label> |
||||
<span class="order-info" data-name="total_real"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">备注</label> |
||||
<span class="order-info" data-name="price_remark"></span> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title fixed"> |
||||
<h5>保单文件信息</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" id="business_print_btn" href="javascript:void(0);" onclick="insurer_files_print('business')"> |
||||
<i class="fa fa-search"></i> 查看商业保单并打印 |
||||
</a> |
||||
<a class="btn btn-primary btn-xs edit-btn" id="compulsory_print_btn" href="javascript:void(0);" onclick="insurer_files_print('compulsory')"> |
||||
<i class="fa fa-search"></i> 查看交强保单并打印 |
||||
</a> |
||||
</div> |
||||
<div class="ibox-title"> |
||||
<h5>险种</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<form method="get" class="form-horizontal"> |
||||
<input type="hidden" name="id" class="form-control order-info"> |
||||
<div class="form-group"> |
||||
<label class="col-sm-4 control-label">商业保单文件</label> |
||||
<div class="col-sm-8"> |
||||
<div class="input-group"> |
||||
<input type="text" data-name="shangye_src" name="shangye_src" class="form-control order-info" value=""> |
||||
<a href="javascript:void(0);" class="input-group-addon upload"> |
||||
上传文件 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="hr-line-dashed"></div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-4 control-label">交强保单文件</label> |
||||
<div class="col-sm-8"> |
||||
<div class="input-group"> |
||||
<input type="text" data-name="jiaoqiang_src" name="jiaoqiang_src" class="form-control order-info" value=""> |
||||
<a href="javascript:void(0);" class="input-group-addon upload"> |
||||
上传文件 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="hr-line-dashed"></div> |
||||
<div class="form-group"> |
||||
<div class="text-center"> |
||||
<a class="btn btn-primary edit-btn" data-id="0" href="javascript:void(0);" onclick="insurer_files_save()"> |
||||
<i class="fa fa-save"></i> 保存 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<?php |
||||
$len = count($insurer_type_items); |
||||
$index = 0; |
||||
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 || $tmp_row->val == '' || $tmp_row->val == '否') continue; |
||||
?> |
||||
<th class="bg-warning"> |
||||
<?=$item->name?>(<?=$item->code?>)
|
||||
</th> |
||||
<td><?=$tmp_row->val?></td>
|
||||
<td><?=($tmp_row->is_nopay == 1)?'不计免赔':''?></td>
|
||||
<?php |
||||
if(($index+1)%3==0) { |
||||
echo '</tr>'; |
||||
echo '<tr>'; |
||||
} |
||||
$index++; |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title fixed"> |
||||
<h5>礼品信息</h5> |
||||
<div class="ibox-title"> |
||||
<h5>保费信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-6"> |
||||
<h4 class="title">免费礼品</h4> |
||||
<table id="free_gift_table"> |
||||
<thead> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="group_name">组名</th> |
||||
<th data-field="gift_name">礼品名</th> |
||||
<th class="bg-warning">商业总净保费</th> |
||||
<td><?=$order_info->total1_clear?></td>
|
||||
<th class="bg-warning">商业含税总保费</th> |
||||
<td><?=$order_info->total1?></td>
|
||||
<th class="bg-warning">车船税</th> |
||||
<td><?=$order_info->total3?></td>
|
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
<div class="col-md-6"> |
||||
<h4 class="title">自费礼品</h4> |
||||
<table id="private_gift_table"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="group_name">组名</th> |
||||
<th data-field="gift_name">礼品名</th> |
||||
<th class="bg-warning">交强总净保费</th> |
||||
<td><?=$order_info->total2_clear?></td>
|
||||
<th class="bg-warning">交强含税总保费</th> |
||||
<td><?=$order_info->total2?></td>
|
||||
<th class="bg-warning">业务自付金额</th> |
||||
<td><?=$order_info->yuangong_money?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">折扣后商业净保费</th> |
||||
<td><?=$order_info->total1_real?></td>
|
||||
<th class="bg-warning">减免金额</th> |
||||
<td><?=$order_info->total1_dis?></td>
|
||||
<th class="bg-warning">商业折扣率</th> |
||||
<td><?=$order_info->total1_percent?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">共计签单</th> |
||||
<td><?=$order_info->total_all?></td>
|
||||
<th class="bg-warning">应收</th> |
||||
<td><?=$order_info->total_real?></td>
|
||||
<th class="bg-warning">支付方式</th> |
||||
<td><?=$order_info->payType ? $order_info->payType->name : ''?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">备注</th> |
||||
<td colspan="5"><?=$order_info->price_remark?></td>
|
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title fixed"> |
||||
<h5>财务信息</h5> |
||||
<div class="ibox-title"> |
||||
<h5>礼券信息</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#giftTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">领款人</label> |
||||
<span class="order-insurer-info" data-name="money_man"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">开户行</label> |
||||
<span class="order-insurer-info" data-name="money_bank"></span> |
||||
</div> |
||||
<div class="form-group col-md-3" style="margin-bottom: 8px;"> |
||||
<label class="control-label">品牌</label> |
||||
<span class="order-insurer-info" data-name="money_no"></span> |
||||
<table id="giftTable"> |
||||
<thead> |
||||
<tr> |
||||
<th width="50" data-field="id">ID</th> |
||||
<th data-field="code">礼券编号</th> |
||||
<th data-field="name">礼品</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_frame_no">车架号</th> |
||||
<th data-field="input_date">发放日期</th> |
||||
<th data-field="end_date">有效期日期</th> |
||||
<th data-field="submit_user">提单人</th> |
||||
<th data-field="use_date">使用日期1</th> |
||||
<th data-field="status">状态</th> |
||||
<th data-field="username">操作员</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>其他信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">领款人</th> |
||||
<td><?=$order_info->money_man?></td>
|
||||
<th class="bg-warning">开户行</th> |
||||
<td><?=$order_info->money_bank?></td>
|
||||
<th class="bg-warning">银行账号</th> |
||||
<td><?=$order_info->money_no?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">送单地址</th> |
||||
<td colspan="5" class="form-inline"> |
||||
<?=$order_info->sendCity->name?> |
||||
<?=$order_info->sendDistrict->name?> |
||||
<?=$order_info->send_address?> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">备注</th> |
||||
<td colspan="5"><?=$order_info->remark?></td>
|
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title fixed"> |
||||
<div class="ibox-title"> |
||||
<h5>操作记录</h5> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#logTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="car_history_table"> |
||||
<table id="logTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="op_man">操作者</th> |
||||
<th data-field="op_time_txt">操作时间</th> |
||||
<th data-field="op_time">操作时间</th> |
||||
<th data-field="remark">操作内容</th> |
||||
</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title fixed"> |
||||
<div class="ibox-tools"> |
||||
<a class="btn btn-primary edit-btn" data-id="0" href="javascript:void(0);" |
||||
onclick="reBack()"> |
||||
<i class="fa fa-backward"></i> 退单 |
||||
</a> |
||||
<a class="btn btn-primary edit-btn" data-id="0" href="javascript:void(0);" |
||||
onclick="goBack()"> |
||||
<i class="fa fa-close"></i> 关闭 |
||||
</a> |
||||
</div> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
</div> |
||||
|
||||
</form> |
||||
</div> |
||||
|
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<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 src="/assets/js/plugins/webuploader/webuploader.min.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
var params = {}; |
||||
$(function () { |
||||
layui.use(['upload'], function(){ |
||||
var upload = layui.upload; |
||||
var uploadInst = upload.render({ |
||||
elem: '.upload' /*绑定元素*/, |
||||
url: '/common/upload' /*上传接口*/, |
||||
accept: 'file', |
||||
done: function(res){ |
||||
//上传完毕回调 |
||||
if(res.status == 'SUCCESS') { |
||||
$('#file').val(res.fileUrl); |
||||
} |
||||
}, |
||||
error: function(){ |
||||
//请求异常回调 |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
$('.input-date').datepicker({ |
||||
keyboardNavigation: false, |
||||
forceParse: false, |
||||
autoclose: true |
||||
}); |
||||
|
||||
// 获取数据,初始化 |
||||
$.get('info-json' + window.location.search, function (obj) { |
||||
if (obj.code == 200) { |
||||
params = obj.data; |
||||
init(); |
||||
<script> |
||||
var o = {}; |
||||
//判断是否填写了选项 |
||||
function isNull(data){ |
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
alert('数据加载错误'); |
||||
return false; |
||||
} |
||||
}, 'json'); |
||||
|
||||
$('#pdate').blur(function () { |
||||
var params = $("#appointmentFrm").serialize(); |
||||
$.post('/appointment/count', params, function (obj) { |
||||
if (obj.success) { |
||||
$('#day_count').val(obj.count); |
||||
} |
||||
}, 'json'); |
||||
}); |
||||
$('#brand_info').change(function () { |
||||
var brand_id = $(this).val(); |
||||
$('#series_info').html('<option value="0">---请选择---</option>'); |
||||
$('#displacement_info').html('<option value="0">---请选择---</option>'); |
||||
if (brand_id > 0) { |
||||
$.get('/car/series-fix', {brand_id: brand_id}, function (obj) { |
||||
if (obj.success) { |
||||
$('#series_info').html(obj.html); |
||||
} |
||||
}, 'json'); |
||||
function searchGifts() { |
||||
$('#giftTable').bootstrapTable('destroy'); |
||||
$('#giftTable').bootstrapTable({ |
||||
url: "/gift/ticket-use-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
o['order_id'] = '<?=$order_info->id?>';
|
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
$('#series_info').change(function () { |
||||
var series_id = $(this).val(); |
||||
$('#displacement_info').html('<option value="0">---请选择---</option>'); |
||||
if (series_id > 0) { |
||||
$.get('/car/displacements-fix', {series_id: series_id}, function (obj) { |
||||
if (obj.success) { |
||||
$('#displacement_info').html(obj.html); |
||||
return false; |
||||
} |
||||
}, 'json'); |
||||
//保存订单 |
||||
function saveOrder(status_id) { |
||||
var params = $('#orderFrm').serialize(); |
||||
params = params + '&status_id=' + status_id; |
||||
$.post('/insurer/office-mng-save',params,function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success && status_id>2) { |
||||
$('.btn-back').click(); |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
function init(){ |
||||
console.log(params); |
||||
carInfoInit(params['car_info']); |
||||
|
||||
if(!params['order_info']['shangye_src']){ |
||||
$('#business_print_btn').hide(); |
||||
} |
||||
if(!params['order_info']['jiaoqiang_src']){ |
||||
$('#compulsory_print_btn').hide(); |
||||
},'json'); |
||||
} |
||||
orderInfoInit(params['order_info']); |
||||
|
||||
orderInsurerInfoInit(params['order_insurer_info']); |
||||
|
||||
var free_gift = [], |
||||
private_gift = []; |
||||
$.each(params['gift_info'],function (i,d) { |
||||
if(d['is_free'] == 1){ |
||||
free_gift.push(d); |
||||
}else { |
||||
private_gift.push(d); |
||||
//操作记录 |
||||
function searchOps() { |
||||
$('#logTable').bootstrapTable('destroy'); |
||||
$('#logTable').bootstrapTable({ |
||||
url: "/car/history-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_id'] = '<?=$order_info->car_id?>';
|
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
var tables = { |
||||
'insurer_type': params['insurer_type_info'], |
||||
'free_gift': free_gift, |
||||
'private_gift': private_gift, |
||||
'car_history': { |
||||
url: '/car/ajax-history-index-json', |
||||
queryParamsFunc: function (param) { |
||||
param['car_id'] = params['car_info']['id']; |
||||
param['limit'] = param['limit']; |
||||
param['offset'] = param['offset']; |
||||
return param; |
||||
} |
||||
} |
||||
}; |
||||
tableInfoInit(tables, params); |
||||
} |
||||
|
||||
function insurer_files_print(type) { |
||||
if(type == 'compulsory' && params['order_info']['jiaoqiang_src']){ |
||||
window.open('/upload/files'+ params['order_info']['jiaoqiang_src']) |
||||
} |
||||
if(type == 'compulsory' && !params['order_info']['jiaoqiang_src']){ |
||||
alert('找不到文件,加载失败'); |
||||
} |
||||
if(type == 'business' && params['order_info']['shangye_src']){ |
||||
window.open('/upload/files'+ params['order_info']['shangye_src']) |
||||
} |
||||
if(type == 'business' && !params['order_info']['shangye_src']){ |
||||
alert('找不到文件,加载失败'); |
||||
} |
||||
} |
||||
|
||||
function insurer_files_save() { |
||||
var param = $(this).closest('form').serialize(); |
||||
$.post('/insurer/pdf-save',param,function(obj){ |
||||
console.log(obj); |
||||
$(function() { |
||||
searchOps(); |
||||
searchGifts(); |
||||
$('.btn-return').click(function(){ |
||||
var remark = $('#return_remark').val(); |
||||
if(remark === '') { |
||||
parent.layer.msg('请输入退回理由'); |
||||
return; |
||||
} |
||||
$.post('/insurer/return-op',{ |
||||
order_id:<?=$order_info->id?>,
|
||||
return_remark:remark, |
||||
return_status_id:<?=$order_info->status_id?> |
||||
},function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
alert('保单上传成功'); |
||||
window.location.reload(); |
||||
$('.btn-back').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
|
||||
function reBack(){ |
||||
if(confirm('请核对好出单日期,确认退回到正本?')) { |
||||
$.post('/insurer/tuidan-save',{id:params['order_info']['id']},function(obj){ |
||||
}); |
||||
$('.btn-cancel').click(function(){ |
||||
parent.layer.confirm('是否确认放弃处理?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/insurer/order-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
alert('退单成功'); |
||||
$('.btn-back').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
} |
||||
|
||||
function goBack(){ |
||||
window.close(); |
||||
} |
||||
|
||||
function tableInfoInit(tables){ |
||||
$.each(tables,function(name,data){ |
||||
var $table = $('#'+ name +'_table'); |
||||
var options = {}; |
||||
if(typeof data == 'String'){ |
||||
options = { |
||||
url: data.url, |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: data.queryParamsFunc |
||||
} |
||||
}else { |
||||
options = { |
||||
data: data |
||||
} |
||||
} |
||||
$table.bootstrapTable('destroy'); |
||||
$table.bootstrapTable(options); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
} |
||||
|
||||
// 页面车辆数据初始化 |
||||
function carInfoInit(data){ |
||||
$('.car-info:not(input)').each(function(key,item) { |
||||
$(item).html(data[$(item).data('name')]); |
||||
}); |
||||
$('.car-info:input').each(function(key,item) { |
||||
$(item).val(data[$(item).data('name')]); |
||||
}); |
||||
} |
||||
|
||||
function orderInfoInit(data){ |
||||
$('.order-info:not(input)').each(function(key,item) { |
||||
$(item).html(data[$(item).data('name')]); |
||||
$('.btn-save').click(function(){ |
||||
saveOrder(2); |
||||
}); |
||||
$('.order-info:input').each(function(key,item) { |
||||
$(item).val(data[$(item).data('name')]); |
||||
$('.btn-submit').click(function(){ |
||||
saveOrder(5); |
||||
}); |
||||
} |
||||
|
||||
function orderInsurerInfoInit(data){ |
||||
$('.order-insurer-info:not(input)').each(function(key,item) { |
||||
$(item).html(data[$(item).data('name')]); |
||||
$('.btn-back').click(function() { |
||||
window.location.href = '/insurer/office-mng'; |
||||
}); |
||||
$('.order-insurer-info:input').each(function(key,item) { |
||||
$(item).val(data[$(item).data('name')]); |
||||
}); |
||||
} |
||||
|
||||
function buttonInit(param) { |
||||
if(param){ |
||||
$('#appointment_btn').prepend('<button type="button" class="btn btn-primary" onclick="cancelAppointment()">放弃</button>'); |
||||
} |
||||
} |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
||||
<?php $this->endBlock(); ?> |
@ -1,143 +0,0 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<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 class="Ainput" name="insurer_name" type="text" value="<?=$order_info->id_man?>" style="width:250px;" /></td>
|
||||
<td width="100" height="25" class="td_bg">联系电话</td> |
||||
<td width="300" height="25" class="td_bg"><input class="Ainput" name="link_tel" type="text" value="<?=$order_info->link_phone?>" style="width:250px;" /></td>
|
||||
</tr> |
||||
<?php if($order_info->send_address2):?> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">正本送单地址</td> |
||||
<td colspan="3" height="25" class="td_bg"> |
||||
<?php |
||||
$address2 = $order_info->city2?$order_info->city2->name:''; |
||||
$address2 .= $order_info->district2?$order_info->district2->name:''; |
||||
$address2 .= $order_info->send_address2; |
||||
?> |
||||
<input class="Ainput" name="send_address" type="text" value="<?=$address2?>" style="width:770px;"/>
|
||||
</td> |
||||
</tr> |
||||
<?php endif;?> |
||||
|
||||
|
||||
<?php if($order_info->send_address2):?> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人省份</td> |
||||
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="" style="width:250px;"/></td> |
||||
<td width="100" height="25" class="td_bg">收货人城市</td> |
||||
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value=" " style="width:250px;"/></td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人区县</td> |
||||
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="" style="width:250px;"/></td> |
||||
<td width="100" height="25" class="td_bg">收货人详细地址</td> |
||||
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value="" style="width:250px;"/></td> |
||||
</tr> |
||||
<?php elseif($order_info->receiver_province):?> |
||||
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人省份</td> |
||||
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="<?=$order_info->receiver_province?>" style="width:250px;"/></td>
|
||||
<td width="100" height="25" class="td_bg">收货人城市</td> |
||||
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value="<?=$order_info->receiver_city?>" style="width:250px;"/></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人区县</td> |
||||
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="<?=$order_info->receiver_county?>" style="width:250px;"/></td>
|
||||
<td width="100" height="25" class="td_bg">收货人详细地址</td> |
||||
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value="<?=$order_info->receiver_address?>" style="width:250px;"/></td>
|
||||
</tr> |
||||
|
||||
|
||||
<?php else:?> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人省份</td> |
||||
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="<?=$order_info->addr->regionP->name?>" style="width:250px;"/></td>
|
||||
<td width="100" height="25" class="td_bg">收货人城市</td> |
||||
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value="<?php if($order_info->addr->regionC->name=='市辖区'|| $order_info->addr->regionC->name=='市辖县'|| $order_info->addr->regionC->name=='县'):?><?=$order_info->addr->regionP->name?><?php else:?><?=$order_info->addr->regionC->name?><?php endif;?> |
||||
|
||||
" style="width:250px;"/></td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人区县</td> |
||||
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="<?=$order_info->addr->regionD->name?>" style="width:250px;"/></td>
|
||||
<td width="100" height="25" class="td_bg">收货人详细地址</td> |
||||
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value=" <?=$order_info->addr->regionT->name?><?=$order_info->addr->address?>" style="width:250px;"/></td>
|
||||
</tr> |
||||
|
||||
<?php endif;?> |
||||
|
||||
|
||||
|
||||
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">保险公司</td> |
||||
<td height="25" class="td_bg"><input class="Ainput" name="sender_name" type="text" value="<?=$order_info->company2_id?$order_info->company2->name:''?>" style="width:250px;"/></td>
|
||||
<td height="25" class="td_bg" colspan="2"></td> |
||||
|
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="6" align="center" class="td_bg"> |
||||
<input id="print-btn" type=button class="ACT_btn" name=Submit1 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/ajax.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
function isNull(data){ |
||||
|
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
return false; |
||||
} |
||||
} |
||||
$(function () { |
||||
|
||||
//打印按钮 |
||||
$("#print-btn").click(function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
var province = $('.province').val(); |
||||
var city = $('.city').val(); |
||||
var county = $('.county').val(); |
||||
var address = $('.address').val() |
||||
if(isNull(province)){ |
||||
alert('收货人省份必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(city)){ |
||||
alert('收货人城市必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(county)){ |
||||
alert('收货人区县必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(address)){ |
||||
alert('收货人详细地址必填项!'); |
||||
return false; |
||||
} |
||||
|
||||
window.open('/print/op-ems-print1?'+params); |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
//window.location.href='/insurer/original-send-mng?<?=$back_params?>';
|
||||
window.close(); |
||||
}); |
||||
}) |
||||
</script> |
@ -1,143 +0,0 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
|
||||
<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 class="Ainput" name="insurer_name" type="text" value="" style="width:250px;" /></td> |
||||
<td width="100" height="25" class="td_bg">联系电话</td> |
||||
<td width="300" height="25" class="td_bg"><input class="Ainput" name="link_tel" type="text" value="" style="width:250px;" /></td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人省份</td> |
||||
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="" style="width:250px;"/></td> |
||||
<td width="100" height="25" class="td_bg">收货人城市</td> |
||||
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value="" style="width:250px;"/></td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">收货人区县</td> |
||||
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="" style="width:250px;"/></td> |
||||
<td width="100" height="25" class="td_bg">收货人详细地址</td> |
||||
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value="" style="width:250px;"/></td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">保险公司</td> |
||||
<td height="25" class="td_bg"><input class="Ainput sender_name" name="sender_name" type="text" value="人保" style="width:250px;"/></td> |
||||
<td width="100" height="25" class="td_bg">快递备注</td> |
||||
<td height="25" class="td_bg"><input class="Ainput sender_name" name="ems_remark" type="text" value="" style="width:250px;"/></td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">快递单号</td> |
||||
<td height="25" class="td_bg"><input class="Ainput ems_no_name" name="ems_no" type="text" value="" style="width:250px;"/></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="sub-btn" type=button class="ACT_btn" name=Submit2 value="提交"/> |
||||
<input id="print-btn" type=button class="ACT_btn" name=Submit1 value=" 打印 "/> |
||||
|
||||
<!-- <input id="back-btn" type="button" class="ACT_btn ui-icon-close" 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 isNull(data){ |
||||
|
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
return false; |
||||
} |
||||
} |
||||
|
||||
$(function () { |
||||
|
||||
|
||||
|
||||
//打印按钮 |
||||
$("#print-btn").click(function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
var province = $('.province').val(); |
||||
var city = $('.city').val(); |
||||
var county = $('.county').val(); |
||||
var address = $('.address').val() |
||||
var sender_name = $('.sender_name').val() |
||||
var ems_no = $('.ems_no_name').val() |
||||
if(isNull(province)){ |
||||
alert('收货人省份必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(city)){ |
||||
alert('收货人城市必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(county)){ |
||||
alert('收货人区县必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(address)){ |
||||
alert('收货人详细地址必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(sender_name)){ |
||||
alert('保险公司必填项!'); |
||||
return false; |
||||
} |
||||
window.open('/print/op-ems-print2?'+params); |
||||
}); |
||||
|
||||
$('#sub-btn').click(function(){ |
||||
var province = $('.province').val(); |
||||
var city = $('.city').val(); |
||||
var county = $('.county').val(); |
||||
var address = $('.address').val() |
||||
var sender_name = $('.sender_name').val() |
||||
var ems_no = $('.ems_no_name').val() |
||||
if(isNull(province)){ |
||||
alert('收货人省份必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(city)){ |
||||
alert('收货人城市必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(county)){ |
||||
alert('收货人区县必填项!'); |
||||
return false; |
||||
} |
||||
if(isNull(address)){ |
||||
alert('收货人详细地址必填项!'); |
||||
return false; |
||||
} |
||||
|
||||
var params = $('#theFrm').serialize(); |
||||
$.post('/insurer/kuaidi-save',params,function(obj){ |
||||
|
||||
if(obj.success) { |
||||
$('#sub-btn').attr('disabled',true); |
||||
alert(obj.msg); |
||||
}else{ |
||||
alert(obj.msg); |
||||
} |
||||
},'json'); |
||||
}); |
||||
|
||||
//返回按钮 |
||||
// $('#back-btn').click(function(){ |
||||
//// window.location.href='/insurer/original-send-mng?<?////=$back_params?>////';
|
||||
//// window.close(); |
||||
// }); |
||||
}) |
||||
</script> |
@ -1,566 +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"> |
||||
<!--保单信息--> |
||||
<form id="orderFrm"> |
||||
<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> |
||||
|
||||
<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="3" height="25" class="td_bg"><?=$car_info->remark?></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"> |
||||
<?php if($order_info->send_address2):?> |
||||
<?=$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?> |
||||
|
||||
<?php elseif($order_info->receiver_province):?> |
||||
<?=$order_info->receiver_province?> |
||||
<?=$order_info->receiver_city?> |
||||
<?=$order_info->receiver_county?> |
||||
<?=$order_info->receiver_address?> |
||||
<?php else:?> |
||||
<?=$order_info->addr->regionP->name?> |
||||
<?=$order_info->addr->regionC->name?> |
||||
<?=$order_info->addr->regionD->name?> |
||||
<?php if(is_string($order_info->addr->regionT)):?> |
||||
<?=$order_info->addr->regionT?> |
||||
<?php else:?> |
||||
<?=$order_info->addr->regionT->name?> |
||||
<?php endif;?> |
||||
<?=$order_info->addr->address?> |
||||
<?php endif;?> |
||||
</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> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<p>礼券</p> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<?php |
||||
$index = 0; |
||||
foreach($gift_free_group_items as $item) { |
||||
// $ticket_info = \common\models\GiftTicketT::find() |
||||
// ->where('group_id='.$item->id.' and car_no like "'.$order_info->car_no.'"') |
||||
// ->one(); |
||||
$index++; |
||||
echo '<tr>'; |
||||
echo '<td width="85" class="bg_tr">'.$index.'</td>'; |
||||
echo '<td class="td_bg"> '.$item->name.'</td>'; |
||||
|
||||
echo '<td class="td_bg">'; |
||||
echo '<select name="gift_types['.$item->id.']">'; |
||||
echo '<option value="0">---请选择---</option>'; |
||||
foreach($type_items as $type) { |
||||
echo '<option value="'.$type->id.'">'.$type->name.'</option>'; |
||||
} |
||||
echo '</selected>'; |
||||
echo '</td>'; |
||||
echo '<td class="td_bg">'; |
||||
echo '<input name="gifts['.$item->id.'][]" value="" style="width:200px;">'; |
||||
echo '</td>'; |
||||
} |
||||
echo '</tr>'; |
||||
|
||||
?> |
||||
</table> |
||||
<p>实物礼品</p> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<?php |
||||
$index = 0; |
||||
foreach($gift_group_items as $item) { |
||||
$ticket_info = \common\models\GiftTicketT::find() |
||||
->where('group_id='.$item->id.' and car_no="'.$order_info->car_no.'"') |
||||
->one(); |
||||
$index++; |
||||
echo '<tr>'; |
||||
echo '<td width="85" class="bg_tr">'.$index.'</td>'; |
||||
echo '<td class="td_bg"> '.$item->name.'</td>'; |
||||
if($ticket_info) { |
||||
echo '<td class="td_bg">'; |
||||
echo $ticket_info->type->name; |
||||
echo '</td>'; |
||||
echo '<td class="td_bg">'; |
||||
echo sprintf("%07d",$ticket_info->code); |
||||
echo '</td>'; |
||||
} else { |
||||
echo '<td class="td_bg">'; |
||||
echo '<select name="gift_types['.$item->id.']">'; |
||||
echo '<option value="0">---请选择---</option>'; |
||||
foreach($type_items as $type) { |
||||
echo '<option value="'.$type->id.'">'.$type->name.'</option>'; |
||||
} |
||||
echo '</selected>'; |
||||
echo '</td>'; |
||||
echo '<td class="td_bg">'; |
||||
echo '<input name="gifts['.$item->id.']" value="1" style="" type="radio">未出库<input name="gifts['.$item->id.']" value="2" style="" type="radio">已出库'; |
||||
echo '</td>'; |
||||
} |
||||
echo '</tr>'; |
||||
} |
||||
?> |
||||
</table> |
||||
|
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
<!--快递信息--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-on 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;"> |
||||
|
||||
<tr> |
||||
<td width="100" align="right" class="bg_tr">快递公司:</td> |
||||
<td class="td_bg"> |
||||
<select name="ems_company"> |
||||
<option value="1">德邦</option> |
||||
</select> |
||||
</td> |
||||
<td width="100" align="right" class="bg_tr">快递单号:</td> |
||||
<td class="td_bg"> |
||||
<input name="ems_no" type="text" value="<?=$order_info->mail_no?>"/>
|
||||
</td> |
||||
<td width="100" align="right" class="bg_tr">体检卡号:</td> |
||||
<td class="td_bg"> |
||||
<input name="physical_no" type="text" value=""/> |
||||
</td> |
||||
<td width="100" align="right" class="bg_tr">收件人姓名:</td> |
||||
<td class="td_bg"> |
||||
<input name="link_name" type="text" value="<?=$order_info->id_man?>"/>
|
||||
</td> |
||||
|
||||
</tr> |
||||
|
||||
<tr> |
||||
<td width="100" align="right" class="bg_tr">收件人电话:</td> |
||||
<td class="td_bg"> |
||||
<input name="link_tel" type="text" value="<?=$order_info->link_phone?>"/>
|
||||
</td> |
||||
|
||||
<td width="100" align="right" class="bg_tr">是否发送快递</td> |
||||
<td class="td_bg"> |
||||
发快递 <input type="radio" class="is_express" name="is_express" value="1"><span style="margin: 0 10px;">|</span>自上门或其它<input type="radio" class="is_express" name="is_express" value="2"> |
||||
</td> |
||||
<td width="100" align="right" class="bg_tr">收件人地址:</td> |
||||
|
||||
<?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->address; |
||||
?> |
||||
|
||||
<?php }?> |
||||
<td class="td_bg" colspan="3"> |
||||
<input name="link_address" type="text" value="<?=$address2?>" style="width: 300px;"/>
|
||||
</td> |
||||
|
||||
|
||||
|
||||
</tr> |
||||
</table> |
||||
|
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
</form> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(4) name="navcell">▼保单查看</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb4 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="110" align="left" class="bg_tr">保单文件打印:</td> |
||||
<td class="td_bg"> |
||||
<?php if($order_info->shangye_src):?> |
||||
<a href="/upload/files<?=$order_info->shangye_src?>" target="_blank">查看商业保单并打印</a>
|
||||
<?php endif;?> |
||||
|
||||
<?php if($order_info->jiaoqiang_src):?> |
||||
<a href="/upload/files<?=$order_info->jiaoqiang_src?>" target="_blank">查看交强保单并打印</a>
|
||||
<?php endif;?> |
||||
</td> |
||||
|
||||
|
||||
</tr> |
||||
|
||||
</table> |
||||
|
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
<!--操作记录--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(3) name="navcell">▲操作记录</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb3 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="ems-btn" type=button class="ACT_btn" name=Submit6 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 is_express=$('input:radio[name="is_express"]:checked').val(); |
||||
var param = $('#orderFrm').serialize(); |
||||
if(status_id > 8){ |
||||
if(isNull(is_express)){ |
||||
alert('是否发送快递必选项!'); |
||||
return false; |
||||
} |
||||
} |
||||
param = param + '&status_id=' + status_id; |
||||
$.post('/insurer/original-send-mng-save',param,function(obj){ |
||||
if(obj.success) { |
||||
if(status_id > 8) |
||||
$('#back-btn').click(); |
||||
else |
||||
alert(obj.msg); |
||||
} else { |
||||
alert(obj.msg); |
||||
} |
||||
},'json'); |
||||
} |
||||
//判断是否填写了选项 |
||||
function isNull(data){ |
||||
|
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
return false; |
||||
} |
||||
} |
||||
$(function(){ |
||||
// $('.shangy').click(function () { |
||||
// var dizhi=$(this).attr('texts'); |
||||
// window.location.href = "/insurer/arrived?dizhi=" + dizhi+"&stauts=1"; |
||||
// }); |
||||
// $('.xzj').click(function () { |
||||
// var dizhi=$(this).attr('texts'); |
||||
// window.location.href = "/insurer/arrived?dizhi=" + dizhi+"&stauts=2"; |
||||
// |
||||
// }); |
||||
|
||||
//操作历史 |
||||
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('不填写原因,无法退回'); |
||||
} |
||||
}); |
||||
//添加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');
|
||||
|
||||
//EMS打印 |
||||
$('#ems-btn').click(function(){ |
||||
window.open('/insurer/original-ems-edit?id=<?=$order_info->id?>');
|
||||
}); |
||||
//放弃处理 |
||||
$('#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(8); |
||||
}); |
||||
//提交 |
||||
$('#submit-btn').click(function(){ |
||||
if(confirm('是否提交此保单?')) { |
||||
SaveOrder(10); |
||||
} |
||||
}); |
||||
|
||||
//返回 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href = '/insurer/original-send-mng?<?=$back_params?>';
|
||||
}); |
||||
}); |
||||
</script> |
@ -1,85 +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/original-send-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
function ems_print(id) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/insurer/original-ems-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/insurer/original-send-mng?" + params; |
||||
}); |
||||
$("#kd-btn").click(function(){ |
||||
window.location.href = "/insurer/original-ems-edit1"; |
||||
}); |
||||
}); |
||||
</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="car_man" type="text" value="<?=$car_man?>">
|
||||
电话:<input name="phone" type="text" value="<?=$phone?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="kd-btn" name="kd-btn" value="快递模板"> |
||||
<!-- <a class="act_btn" href="/insurer/original-ems-edit1">快递模板</a> </td>--> |
||||
|
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="50" 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="80" align="center" class="bg_tr" nowrap>送单地址</td> |
||||
<td width="200" 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="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"nowrap ><?=$start_index + 1?></td>
|
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,10)?></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->send_date?></td>
|
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item['send_address2'],30)?></td>
|
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->remark,30)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?> </td>
|
||||
<td class="td_bg" nowrap><?=$item->status->name?></td>
|
||||
<td class="td_bg" nowrap><?=$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,226 +0,0 @@ |
||||
<?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> |
@ -1,91 +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) { |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = '/insurer/send-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params); |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/insurer/send-mng?" + 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="car_man" type="text" value="<?=$car_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="send_date" type="text" value="<?=$send_date?>" onclick="WdatePicker()" 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="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="40" 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="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="80" align="center" class="bg_tr" nowrap>送单地址</td> |
||||
<td width="150" align="center" class="bg_tr" nowrap>送单备注</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>商业起保时间</td> |
||||
<td width="60" align="center" class="bg_tr" nowrap>配送次数</td> |
||||
<td width="80" 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="30" align="center" class="bg_tr" nowrap>操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1)*20+$index; |
||||
$op_user = $item->getUsers()->where('type_id=2')->one(); |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,10)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->company?$item->company->name:''?></td>
|
||||
<td class="td_bg" nowrap><?=$item->send_date?></td>
|
||||
<td class="td_bg" align="center" nowrap><?=$item->direction1?$item->direction1->name:''?></td>
|
||||
<td class="td_bg" nowrap><?php |
||||
$address = $item->city1?$item->city1->name:''; |
||||
$address .= $item->district1?$item->district1->name:''; |
||||
$address .= $item->send_address1; |
||||
echo MyLib::substr_cut($address,30); |
||||
?> |
||||
</td> |
||||
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->remark,20)?></td>
|
||||
<td class="td_bg" nowrap><?=$item->insurer1_begin_date?></td>
|
||||
<td class="td_bg" align="center" ><?=$item->send_times?></td>
|
||||
<td class="td_bg" nowrap><?=$item->insurer2_begin_date?></td>
|
||||
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?> </td>
|
||||
<td class="td_bg" nowrap><?=$op_user && $op_user->user ? $op_user->user->getShowName():''?></td>
|
||||
<td class="td_bg" nowrap><?=$item->status->name?></td>
|
||||
<td class="td_bg" nowrap><?=$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="16" align="center" class="td_bg"><?=$page_info?></td>
|
||||
</tr> |
||||
</table> |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue