parent
6f14ece1c8
commit
f37dadb897
@ -1,186 +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(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/database/f1-index?" + params; |
|
||||||
}); |
|
||||||
|
|
||||||
$('.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'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-d-btn').click(function(){ |
|
||||||
if(confirm('是否确认批量移动B库操作?')) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
$.post('/database/f1-b',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
|
|
||||||
$('#move-btn').click(function(){ |
|
||||||
if(confirm('是否确认从F1库移到B库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f1-move-b',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-abtn').click(function(){ |
|
||||||
if(confirm('是否确认从F1库移到A库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f1-move-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="print_begin" type="text" value="<?=$print_begin?>" onclick="WdatePicker()">至<input class="act_date" name="print_end" type="text" value="<?=$print_end?>" onclick="WdatePicker()">截止
|
|
||||||
保险公司:<input name="company" type="text" value="<?=$company?>" style="width: 100px;">
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<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()">截止-->
|
|
||||||
保险日期: |
|
||||||
<input name="insurer1_month" class="day_date" type="text" value="<?=$insurer1_month?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day" class="day_date" type="text" value="<?=$insurer1_day?>" style="width:30px;" placeholder="天数">日
|
|
||||||
至 |
|
||||||
<input name="insurer1_month1" class="day_date" type="text" value="<?=$insurer1_month1?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day1" class="day_date" type="text" value="<?=$insurer1_day1?>" style="width:30px;" placeholder="天数">日
|
|
||||||
状态:<select name="status"> |
|
||||||
<option value="0">全部</option> |
|
||||||
<option value="1" <?=$status==1?'selected':''?>>未分配</option>
|
|
||||||
<option value="2" <?=$status==2?'selected':''?>>已分配</option>
|
|
||||||
</select> |
|
||||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
|
||||||
新保座席:<input name="user1" type="text" value="<?=$user1?>" style="width:100px;">
|
|
||||||
排序:<select name="sort_key"> |
|
||||||
<option value="car_t.print_date" <?=$sort_key=='car_t.print_date'?'selected':''?>>出单日期</option>
|
|
||||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>保险日期</option>
|
|
||||||
</select> |
|
||||||
<select name="sort_value"> |
|
||||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
|
||||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
<input type="button" class="act_btn" id="move-d-btn" name="move-d-btn" value="批量移到B库"> |
|
||||||
|
|
||||||
|
|
||||||
</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="move-btn" name="move-btn" value="勾选移到B库"> |
|
||||||
<input type="button" class="act_btn" id="move-abtn" name="move-abtn" value="勾选移到A库"> |
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</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="150" 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="78" 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="<?=$item->id?>"></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_no?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->factory_model?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_man?></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->print_date=='1970-01-01'?'':$car_info->print_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->insurer1_date!=''?$car_info->insurer1_date:$car_info->insurer2_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->company?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user1?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user2?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user3?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->user?$item->user->getShowName():''?></td>
|
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="13" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
@ -1,186 +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(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/database/f2-index?" + params; |
|
||||||
}); |
|
||||||
|
|
||||||
$('.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'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-d-btn').click(function(){ |
|
||||||
if(confirm('是否确认批量移动B库操作?')) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
$.post('/database/f2-b',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
|
|
||||||
$('#move-btn').click(function(){ |
|
||||||
if(confirm('是否确认从F2库移到B库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f2-move-b',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-abtn').click(function(){ |
|
||||||
if(confirm('是否确认从F库移到A库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f2-move-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="print_begin" type="text" value="<?=$print_begin?>" onclick="WdatePicker()">至<input class="act_date" name="print_end" type="text" value="<?=$print_end?>" onclick="WdatePicker()">截止
|
|
||||||
保险公司:<input name="company" type="text" value="<?=$company?>" style="width: 100px;">
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<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()">截止-->
|
|
||||||
保险日期: |
|
||||||
<input name="insurer1_month" class="day_date" type="text" value="<?=$insurer1_month?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day" class="day_date" type="text" value="<?=$insurer1_day?>" style="width:30px;" placeholder="天数">日
|
|
||||||
至 |
|
||||||
<input name="insurer1_month1" class="day_date" type="text" value="<?=$insurer1_month1?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day1" class="day_date" type="text" value="<?=$insurer1_day1?>" style="width:30px;" placeholder="天数">日
|
|
||||||
状态:<select name="status"> |
|
||||||
<option value="0">全部</option> |
|
||||||
<option value="1" <?=$status==1?'selected':''?>>未分配</option>
|
|
||||||
<option value="2" <?=$status==2?'selected':''?>>已分配</option>
|
|
||||||
</select> |
|
||||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
|
||||||
新保座席:<input name="user1" type="text" value="<?=$user1?>" style="width:100px;">
|
|
||||||
排序:<select name="sort_key"> |
|
||||||
<option value="car_t.print_date" <?=$sort_key=='car_t.print_date'?'selected':''?>>出单日期</option>
|
|
||||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>保险日期</option>
|
|
||||||
</select> |
|
||||||
<select name="sort_value"> |
|
||||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
|
||||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
<input type="button" class="act_btn" id="move-d-btn" name="move-d-btn" value="批量移到B库"> |
|
||||||
|
|
||||||
</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="move-btn" name="move-btn" value="勾选移到B库"> |
|
||||||
<input type="button" class="act_btn" id="move-abtn" name="move-abtn" value="勾选移到A库"> |
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</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="150" 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="78" 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="<?=$item->id?>"></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_no?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->factory_model?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_man?></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->print_date=='1970-01-01'?'':$car_info->print_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->insurer1_date!=''?$car_info->insurer1_date:$car_info->insurer2_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->company?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user1?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user2?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user3?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->user?$item->user->getShowName():''?></td>
|
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="13" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
@ -1,159 +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 del(id) { |
|
||||||
if(confirm('是否确认删除?')) { |
|
||||||
$.post('/car/delete',{id:id},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/invalid-index1?" + params; |
|
||||||
}); |
|
||||||
$('#move-btn').click(function(){ |
|
||||||
if(confirm('是否确认恢复操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/invalid1-a',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#all-move-btn').click(function(){ |
|
||||||
if(confirm('是否确认恢复操作?')) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
$.post('/database/invalid1-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="user1" type="text" value="<?=$user1?>" style="width:100px;">
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<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="invalid_id"> |
|
||||||
<option value="0"></option> |
|
||||||
<?php |
|
||||||
foreach($invalid_items as $item) { |
|
||||||
echo '<option value="'.$item->id.'"'; |
|
||||||
if($invalid_id == $item->id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$item->name.'</option>'; |
|
||||||
} |
|
||||||
?> |
|
||||||
</select> |
|
||||||
操作者:<input name="username" type="text" value="<?=$username?>" style="width:100px;">
|
|
||||||
排序:<select name="sort_key"> |
|
||||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>初登日期</option>
|
|
||||||
<option value="car_invalid_t.created_at" <?=$sort_key=='car_invalid_t.created_at'?'selected':''?>>无效时间</option>
|
|
||||||
</select> |
|
||||||
<select name="sort_value"> |
|
||||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
|
||||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
<input type="button" class="act_btn" id="move-btn" name="move-btn" value="勾选恢复"> |
|
||||||
<input type="button" class="act_btn" id="all-move-btn" name="all-move-btn" value="批量恢复"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</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">车牌</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">车型</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">车主</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">联系电话</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">初登日期</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">保险日期</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>新保座席</td> |
|
||||||
<td width="96" align="center" align="center" class="bg_tr">无效理由</td> |
|
||||||
<td width="96" align="center" align="center" class="bg_tr">无效时间</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">操作者</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$fact=$item->car; |
|
||||||
$fac=$fact['factory_model']; |
|
||||||
$carms=$fact['car_man']; |
|
||||||
$phones=$fact['phone']; |
|
||||||
$regs=$fact['register_date']; |
|
||||||
$insurs=$fact['insurer1_date']; |
|
||||||
$opes=$fact['op_user1']; |
|
||||||
|
|
||||||
?> |
|
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
|
||||||
<td align="center" class="td_bg"nowrap ><input type="checkbox" name="ids[]" value="<?=$item->id?>"></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->car?$item->car->car_no:''?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($fac,20)?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($carms,20)?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$phones?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$regs?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$insurs?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$opes?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->invalid?$item->invalid->getPath():''?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->created_at?></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,186 +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(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/database/f4-index?" + params; |
|
||||||
}); |
|
||||||
|
|
||||||
$('.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'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-d-btn').click(function(){ |
|
||||||
if(confirm('是否确认批量移动D库操作?')) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
$.post('/database/f4-d',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
|
|
||||||
$('#move-btn').click(function(){ |
|
||||||
if(confirm('是否确认从F4库移到D库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f4-move-d',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-abtn').click(function(){ |
|
||||||
if(confirm('是否确认从F4库移到A库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f4-move-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="print_begin" type="text" value="<?=$print_begin?>" onclick="WdatePicker()">至<input class="act_date" name="print_end" type="text" value="<?=$print_end?>" onclick="WdatePicker()">截止
|
|
||||||
保险公司:<input name="company" type="text" value="<?=$company?>" style="width: 100px;">
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<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()">截止-->
|
|
||||||
保险日期: |
|
||||||
<input name="insurer1_month" class="day_date" type="text" value="<?=$insurer1_month?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day" class="day_date" type="text" value="<?=$insurer1_day?>" style="width:30px;" placeholder="天数">日
|
|
||||||
至 |
|
||||||
<input name="insurer1_month1" class="day_date" type="text" value="<?=$insurer1_month1?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day1" class="day_date" type="text" value="<?=$insurer1_day1?>" style="width:30px;" placeholder="天数">日
|
|
||||||
状态:<select name="status"> |
|
||||||
<option value="0">全部</option> |
|
||||||
<option value="1" <?=$status==1?'selected':''?>>未分配</option>
|
|
||||||
<option value="2" <?=$status==2?'selected':''?>>已分配</option>
|
|
||||||
</select> |
|
||||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
|
||||||
新保座席:<input name="user1" type="text" value="<?=$user1?>" style="width:100px;">
|
|
||||||
排序:<select name="sort_key"> |
|
||||||
<option value="car_t.print_date" <?=$sort_key=='car_t.print_date'?'selected':''?>>出单日期</option>
|
|
||||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>保险日期</option>
|
|
||||||
</select> |
|
||||||
<select name="sort_value"> |
|
||||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
|
||||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
<input type="button" class="act_btn" id="move-d-btn" name="move-d-btn" value="批量移到D库"> |
|
||||||
|
|
||||||
</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="move-btn" name="move-btn" value="勾选移到D库"> |
|
||||||
<input type="button" class="act_btn" id="move-abtn" name="move-abtn" value="勾选移到A库"> |
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</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="150" 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="78" 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="<?=$item->id?>"></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_no?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->factory_model?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_man?></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->print_date=='1970-01-01'?'':$car_info->print_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->insurer1_date!=''?$car_info->insurer1_date:$car_info->insurer2_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->company?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user1?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user2?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user3?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->user?$item->user->getShowName():''?></td>
|
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="13" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
@ -1,186 +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(){ |
|
||||||
$("#search-btn").click(function(){ |
|
||||||
$('#page').val(0); |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
window.location.href = "/database/f5-index?" + params; |
|
||||||
}); |
|
||||||
|
|
||||||
$('.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'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-d-btn').click(function(){ |
|
||||||
if(confirm('是否确认批量移动D库操作?')) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
$.post('/database/f5-d',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
|
|
||||||
$('#move-btn').click(function(){ |
|
||||||
if(confirm('是否确认从f5库移到D库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f5-move-d',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#move-abtn').click(function(){ |
|
||||||
if(confirm('是否确认从f5库移到A库操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/f5-move-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="print_begin" type="text" value="<?=$print_begin?>" onclick="WdatePicker()">至<input class="act_date" name="print_end" type="text" value="<?=$print_end?>" onclick="WdatePicker()">截止
|
|
||||||
保险公司:<input name="company" type="text" value="<?=$company?>" style="width: 100px;">
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<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()">截止-->
|
|
||||||
保险日期: |
|
||||||
<input name="insurer1_month" class="day_date" type="text" value="<?=$insurer1_month?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day" class="day_date" type="text" value="<?=$insurer1_day?>" style="width:30px;" placeholder="天数">日
|
|
||||||
至 |
|
||||||
<input name="insurer1_month1" class="day_date" type="text" value="<?=$insurer1_month1?>" style="width:30px;" placeholder="月份">月
|
|
||||||
<input name="insurer1_day1" class="day_date" type="text" value="<?=$insurer1_day1?>" style="width:30px;" placeholder="天数">日
|
|
||||||
状态:<select name="status"> |
|
||||||
<option value="0">全部</option> |
|
||||||
<option value="1" <?=$status==1?'selected':''?>>未分配</option>
|
|
||||||
<option value="2" <?=$status==2?'selected':''?>>已分配</option>
|
|
||||||
</select> |
|
||||||
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
|
|
||||||
新保座席:<input name="user1" type="text" value="<?=$user1?>" style="width:100px;">
|
|
||||||
排序:<select name="sort_key"> |
|
||||||
<option value="car_t.print_date" <?=$sort_key=='car_t.print_date'?'selected':''?>>出单日期</option>
|
|
||||||
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>保险日期</option>
|
|
||||||
</select> |
|
||||||
<select name="sort_value"> |
|
||||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
|
||||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
<input type="button" class="act_btn" id="move-d-btn" name="move-d-btn" value="批量移到D库"> |
|
||||||
|
|
||||||
</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="move-btn" name="move-btn" value="勾选移到D库"> |
|
||||||
<input type="button" class="act_btn" id="move-abtn" name="move-abtn" value="勾选移到A库"> |
|
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</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="150" 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="78" 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="<?=$item->id?>"></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_no?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->factory_model?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->car_man?></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->print_date=='1970-01-01'?'':$car_info->print_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->insurer1_date!=''?$car_info->insurer1_date:$car_info->insurer2_date?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->company?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user1?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user2?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$car_info->op_user3?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->user?$item->user->getShowName():''?></td>
|
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
} |
|
||||||
?> |
|
||||||
<tr > |
|
||||||
<td height="25" colspan="13" align="center" class="td_bg"><?=$page_info?></td>
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</form> |
|
@ -1,159 +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 del(id) { |
|
||||||
if(confirm('是否确认删除?')) { |
|
||||||
$.post('/car/delete',{id:id},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/invalid-index2?" + params; |
|
||||||
}); |
|
||||||
$('#move-btn').click(function(){ |
|
||||||
if(confirm('是否确认恢复操作?')) { |
|
||||||
var params = $('#listFrm').serialize(); |
|
||||||
$.post('/database/invalid2-a',params,function(obj){ |
|
||||||
alert(obj.msg); |
|
||||||
if(obj.success) { |
|
||||||
window.location.reload(); |
|
||||||
} |
|
||||||
},'json'); |
|
||||||
} |
|
||||||
}); |
|
||||||
$('#all-move-btn').click(function(){ |
|
||||||
if(confirm('是否确认恢复操作?')) { |
|
||||||
var params = $('#searchForm').serialize(); |
|
||||||
$.post('/database/invalid2-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="user1" type="text" value="<?=$user1?>" style="width:100px;">
|
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<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="invalid_id"> |
|
||||||
<option value="0"></option> |
|
||||||
<?php |
|
||||||
foreach($invalid_items as $item) { |
|
||||||
echo '<option value="'.$item->id.'"'; |
|
||||||
if($invalid_id == $item->id) |
|
||||||
echo ' selected '; |
|
||||||
echo '>'.$item->name.'</option>'; |
|
||||||
} |
|
||||||
?> |
|
||||||
</select> |
|
||||||
操作者:<input name="username" type="text" value="<?=$username?>" style="width:100px;">
|
|
||||||
排序:<select name="sort_key"> |
|
||||||
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>初登日期</option>
|
|
||||||
<option value="car_invalid_t.created_at" <?=$sort_key=='car_invalid_t.created_at'?'selected':''?>>无效时间</option>
|
|
||||||
</select> |
|
||||||
<select name="sort_value"> |
|
||||||
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
|
|
||||||
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
|
|
||||||
</select> |
|
||||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="td_bg"> |
|
||||||
<input type="button" class="act_btn" id="move-btn" name="move-btn" value="勾选恢复"> |
|
||||||
<input type="button" class="act_btn" id="all-move-btn" name="all-move-btn" value="批量恢复"> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</form> |
|
||||||
</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">车牌</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">车型</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">车主</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">联系电话</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">初登日期</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">保险日期</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr" nowrap>新保座席</td> |
|
||||||
<td width="96" align="center" align="center" class="bg_tr">无效理由</td> |
|
||||||
<td width="96" align="center" align="center" class="bg_tr">无效时间</td> |
|
||||||
<td width="78" align="center" align="center" class="bg_tr">操作者</td> |
|
||||||
</tr> |
|
||||||
<?php |
|
||||||
foreach($items as $index => $item) { |
|
||||||
$fact=$item->car; |
|
||||||
$fac=$fact['factory_model']; |
|
||||||
$carms=$fact['car_man']; |
|
||||||
$phones=$fact['phone']; |
|
||||||
$regs=$fact['register_date']; |
|
||||||
$insurs=$fact['insurer1_date']; |
|
||||||
$opes=$fact['op_user1']; |
|
||||||
|
|
||||||
?> |
|
||||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
|
||||||
<td align="center" class="td_bg"nowrap ><input type="checkbox" name="ids[]" value="<?=$item->id?>"></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->car?$item->car->car_no:''?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($fac,20)?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($carms,20)?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$phones?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$regs?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$insurs?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$opes?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->invalid?$item->invalid->getPath():''?></td>
|
|
||||||
<td align="left" class="td_bg"nowrap ><?=$item->created_at?></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> |
|
Loading…
Reference in new issue