parent
bf819df4a8
commit
dbfb9a369d
@ -1,187 +1,177 @@ |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<?php |
||||
if(count($type1_items) > 0) { |
||||
?> |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<div id="type1" class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>更换清单</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="type1ListTable"> |
||||
<thead> |
||||
<tr> |
||||
<td colspan="8" style="text-align: left">更换清单</td> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="name">名称</th> |
||||
<th data-field="price">价格</th> |
||||
<th data-field="count">数量</th> |
||||
<th data-field="total">合计</th> |
||||
<th data-field="">结算方式</th> |
||||
<th data-field="">实收</th> |
||||
<th data-field="type">分类</th> |
||||
<th data-field="">维修人</th> |
||||
<th data-field="fix_remark">备注</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div id="type2" class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>维修清单</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="type2ListTable"> |
||||
<thead> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="100" 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="100" align="center" class="bg_tr" nowrap>结算方式</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>实收</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>分类</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>维修人</td> |
||||
<td width="150" align="center" class="bg_tr" nowrap>备注</td> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="name">名称</th> |
||||
<th data-field="price">价格</th> |
||||
<th data-field="count">数量</th> |
||||
<th data-field="total">合计</th> |
||||
<th data-field="">结算方式</th> |
||||
<th data-field="">实收</th> |
||||
<th data-field="type">分类</th> |
||||
<th data-field="">维修人</th> |
||||
<th data-field="fix_remark">备注</th> |
||||
</tr> |
||||
<?php |
||||
foreach($type1_items as $index => $item) { |
||||
?> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div id="type3" class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>待定清单</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="type3ListTable"> |
||||
<thead> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" style="word-break: break-all"><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->price?>元</td>
|
||||
<td align="center" class="td_bg" style="word-break: break-all"><?=$item->count?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total?>元</td>
|
||||
<td class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->type?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->fix_remark?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
} |
||||
?> |
||||
<?php |
||||
if(count($type2_items) > 0) { |
||||
?> |
||||
<tr> |
||||
<td colspan="8" style="text-align: left">维修清单</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="100" 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="100" align="center" class="bg_tr" nowrap>结算方式</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>实收</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>分类</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>维修人</td> |
||||
<td width="150" align="center" class="bg_tr" nowrap>备注</td> |
||||
</tr> |
||||
<?php |
||||
foreach($type2_items as $index => $item) { |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" style="word-break: break-all"><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->price?>元</td>
|
||||
<td align="center" class="td_bg" style="word-break: break-all"><?=$item->count?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total?>元</td>
|
||||
<td class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->type?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->fix_remark?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
} |
||||
?> |
||||
<?php |
||||
if(count($type3_items) > 0) { |
||||
?> |
||||
<tr> |
||||
<td colspan="8" style="text-align: left">待定清单</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="100" 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="100" align="center" class="bg_tr" nowrap>结算方式</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>实收</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>分类</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>维修人</td> |
||||
<td width="150" align="center" class="bg_tr" nowrap>备注</td> |
||||
</tr> |
||||
<?php |
||||
foreach($type3_items as $index => $item) { |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" style="word-break: break-all"><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->price?>元</td>
|
||||
<td align="center" class="td_bg" style="word-break: break-all"><?=$item->count?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total?>元</td>
|
||||
<td class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->type?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->fix_remark?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
} |
||||
?> |
||||
<?php |
||||
if(count($type4_items) > 0) { |
||||
?> |
||||
<tr> |
||||
<td colspan="8" style="text-align: left">配件清单</td> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="name">名称</th> |
||||
<th data-field="price">价格</th> |
||||
<th data-field="count">数量</th> |
||||
<th data-field="total">合计</th> |
||||
<th data-field="">结算方式</th> |
||||
<th data-field="">实收</th> |
||||
<th data-field="type">分类</th> |
||||
<th data-field="">维修人</th> |
||||
<th data-field="fix_remark">备注</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div id="type4" class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>配件清单</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="type4ListTable"> |
||||
<thead> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="100" 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="100" align="center" class="bg_tr" nowrap>结算方式</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>实收</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>分类</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>维修人</td> |
||||
<td width="150" align="center" class="bg_tr" nowrap>备注</td> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="name">名称</th> |
||||
<th data-field="price">价格</th> |
||||
<th data-field="count">数量</th> |
||||
<th data-field="total">合计</th> |
||||
<th data-field="">结算方式</th> |
||||
<th data-field="">实收</th> |
||||
<th data-field="type">分类</th> |
||||
<th data-field="">维修人</th> |
||||
<th data-field="fix_remark">备注</th> |
||||
</tr> |
||||
<?php |
||||
foreach($type4_items as $index => $item) { |
||||
?> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div id="type5" class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>工时清单</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="type5ListTable"> |
||||
<thead> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" style="word-break: break-all"><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->price?>元</td>
|
||||
<td align="center" class="td_bg" style="word-break: break-all"><?=$item->count?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total?>元</td>
|
||||
<td class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->type?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->fix_remark?></td>
|
||||
<th data-field="id">ID</th> |
||||
<th data-field="name">名称</th> |
||||
<th data-field="price">价格</th> |
||||
<th data-field="count">数量</th> |
||||
<th data-field="total">合计</th> |
||||
<th data-field="">结算方式</th> |
||||
<th data-field="">实收</th> |
||||
<th data-field="type">分类</th> |
||||
<th data-field="">维修人</th> |
||||
<th data-field="fix_remark">备注</th> |
||||
</tr> |
||||
<?php |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script type="text/javascript" language="javascript"> |
||||
var items = { |
||||
type1: <?=json_encode($type1_items)?>,
|
||||
type2: <?=json_encode($type2_items)?>,
|
||||
type3: <?=json_encode($type3_items)?>,
|
||||
type4: <?=json_encode($type4_items)?>,
|
||||
type5: <?=json_encode($type5_items)?>,
|
||||
}; |
||||
|
||||
$.each(items,function(i,d)){ |
||||
var $table = $('#'+i+'ListTable'); |
||||
$table.hide(); |
||||
if(d.length>0){ |
||||
loadData($table.d); |
||||
$table.show(); |
||||
} |
||||
} |
||||
?> |
||||
<?php |
||||
if(count($type5_items) > 0) { |
||||
?> |
||||
<tr> |
||||
<td colspan="8" style="text-align: left">工时清单</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="50" align="center" class="bg_tr" nowrap>序号</td> |
||||
<td width="100" 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="100" align="center" class="bg_tr" nowrap>结算方式</td> |
||||
<td width="80" align="center" class="bg_tr" nowrap>实收</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>分类</td> |
||||
<td width="100" align="center" class="bg_tr" nowrap>维修人</td> |
||||
<td width="150" align="center" class="bg_tr" nowrap>备注</td> |
||||
</tr> |
||||
<?php |
||||
foreach($type5_items as $index => $item) { |
||||
?> |
||||
<tr> |
||||
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
|
||||
<td class="td_bg" style="word-break: break-all"><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->price?>元</td>
|
||||
<td align="center" class="td_bg" style="word-break: break-all"><?=$item->count?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total?>元</td>
|
||||
<td class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->type?></td>
|
||||
<td align="center" class="td_bg" nowrap></td> |
||||
<td align="center" class="td_bg" nowrap><?=$item->fix_remark?></td>
|
||||
</tr> |
||||
<?php |
||||
|
||||
function loadData(target,data) { |
||||
target.bootstrapTable('destroy'); |
||||
target.bootstrapTable({ |
||||
data: data, |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
return params; |
||||
} |
||||
}); |
||||
return false; |
||||
} |
||||
?> |
||||
</table> |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -1,74 +1,80 @@ |
||||
<?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> |
||||
<?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="/fix-car/my-search"> |
||||
<i class="fa fa-backward"></i> 返回 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="car_man">车主</th> |
||||
<th data-field="phone">电话</th> |
||||
<th data-field="engine_no">发动机号</th> |
||||
<th data-field="car_frame_no">车架号</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 type="text/javascript" language="javascript"> |
||||
//编辑 |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||
opStr.push('<i class="fa fa-edit" title="添加修车记录"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
|
||||
function edit(id) { |
||||
var title = '修车记录'; |
||||
window.location.href = '/fix-car/my-list-edit?car_id=' + id + '&status=0'; |
||||
} |
||||
//删除 |
||||
function del(id) { |
||||
if(confirm('是否确认删除?')) { |
||||
$.post('/fix-car/my-list-delete',{id:id},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
data: <?=json_encode($items)?>,
|
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
return params; |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/fix-car/my-list?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
window.location.href = '/fix-car/my-search'; |
||||
}); |
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/fix-car/my-search'; |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
搜索结果 |
||||
<input type="button" class="act_btn" id="back-btn" name="back-btn" value="返回"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td align="center" align="center" class="bg_tr">车牌号</td> |
||||
<td align="center" align="center" class="bg_tr">车主</td> |
||||
<td align="center" align="center" class="bg_tr">电话</td> |
||||
<td align="center" align="center" class="bg_tr">发动机号</td> |
||||
<td align="center" align="center" class="bg_tr">车架号</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->car_man?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->phone?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->engine_no?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->car_frame_no?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?= $item->id ?>)">添加修车记录</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
@ -1,69 +1,122 @@ |
||||
<?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> |
||||
<?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="username">车牌号</label> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary">搜索</button> |
||||
</form> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="link_man">联系人</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="brand">品牌</th> |
||||
<th data-field="series">车型</th> |
||||
<th data-field="address">地址</th> |
||||
<th data-field="">代步车</th> |
||||
<th data-field="receive_date">接车日期</th> |
||||
<th data-field="accident_type">事故类型</th> |
||||
<th data-field="responsibility">责任</th> |
||||
<th data-field="show_name">提单者</th> |
||||
<th data-field="status" data-formatter="statusFormatter">状态</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 type="text/javascript" language="javascript"> |
||||
//编辑 |
||||
function edit(id,status) { |
||||
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=2'; |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ',' + row.status +')">'); |
||||
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
function edit(id) { |
||||
var title = '司机接车'; |
||||
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=1'; |
||||
} |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/fix-car/step2-list-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
return params; |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/fix-car/step2-list?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
function statusFormatter(value){ |
||||
var result = ''; |
||||
switch(+value) { |
||||
case 1: |
||||
result = '维修调度'; |
||||
break; |
||||
case 2: |
||||
result = '司机接车'; |
||||
break; |
||||
case 3: |
||||
result = '前台派工'; |
||||
break; |
||||
case 4: |
||||
result = '查勘定损'; |
||||
break; |
||||
case 5: |
||||
result = '技工维修'; |
||||
break; |
||||
case 6: |
||||
result = '总检'; |
||||
break; |
||||
case 7: |
||||
result = '财务结算'; |
||||
break; |
||||
default: |
||||
result = ''; |
||||
} |
||||
return result; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
车牌号:<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="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td align="center" align="center" class="bg_tr">联系人</td> |
||||
<td align="center" align="center" class="bg_tr">车牌号</td> |
||||
<td align="center" align="center" class="bg_tr">品牌</td> |
||||
<td align="center" align="center" class="bg_tr">车型</td> |
||||
<td align="center" align="center" class="bg_tr">地址</td> |
||||
<td align="center" align="center" class="bg_tr">代步车</td> |
||||
<td align="center" align="center" class="bg_tr">事故类型</td> |
||||
<td align="center" align="center" class="bg_tr">责任</td> |
||||
<td align="center" align="center" class="bg_tr">提单者</td> |
||||
<td align="center" align="center" class="bg_tr">状态</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->link_man?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->brand?$item->brand->name:''?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->series?$item->series->name:''?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->address?></td>
|
||||
<td align="left" class="td_bg" nowrap></td> |
||||
<td align="left" class="td_bg" nowrap><?=$item->accident_type?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->responsibility?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->user->getShowName()?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->getStatus()?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?= $item->id ?>,<?=$item->status?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
@ -1,69 +1,92 @@ |
||||
<?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> |
||||
<?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="username">车牌号</label> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary">搜索</button> |
||||
</form> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="link_man">联系人</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="brand">品牌</th> |
||||
<th data-field="series">车型</th> |
||||
<th data-field="address">地址</th> |
||||
<th data-field="">代步车</th> |
||||
<th data-field="receive_date">接车日期</th> |
||||
<th data-field="accident_type">事故类型</th> |
||||
<th data-field="responsibility">责任</th> |
||||
<th data-field="show_name">提单者</th> |
||||
<th data-field="status_txt">状态</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 type="text/javascript" language="javascript"> |
||||
//编辑 |
||||
function edit(id,status) { |
||||
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=3&gift_enable=1'; |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ',' + row.status +')">'); |
||||
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
function edit(id) { |
||||
var title = '前台派工'; |
||||
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=1'; |
||||
} |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/fix-car/step3-list-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
return params; |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/fix-car/step3-list?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
车牌号:<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="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td align="center" align="center" class="bg_tr">联系人</td> |
||||
<td align="center" align="center" class="bg_tr">车牌号</td> |
||||
<td align="center" align="center" class="bg_tr">品牌</td> |
||||
<td align="center" align="center" class="bg_tr">车型</td> |
||||
<td align="center" align="center" class="bg_tr">地址</td> |
||||
<td align="center" align="center" class="bg_tr">代步车</td> |
||||
<td align="center" align="center" class="bg_tr">事故类型</td> |
||||
<td align="center" align="center" class="bg_tr">责任</td> |
||||
<td align="center" align="center" class="bg_tr">提单者</td> |
||||
<td align="center" align="center" class="bg_tr">状态</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->link_man?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->brand?$item->brand->name:''?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->series?$item->series->name:''?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->address?></td>
|
||||
<td align="left" class="td_bg" nowrap></td> |
||||
<td align="left" class="td_bg" nowrap><?=$item->accident_type?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->responsibility?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->user->getShowName()?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->getStatus()?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?= $item->id ?>,<?=$item->status?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
@ -1,69 +1,92 @@ |
||||
<?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> |
||||
<?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="username">车牌号</label> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary">搜索</button> |
||||
</form> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="link_man">联系人</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="brand">品牌</th> |
||||
<th data-field="series">车型</th> |
||||
<th data-field="address">地址</th> |
||||
<th data-field="">代步车</th> |
||||
<th data-field="receive_date">接车日期</th> |
||||
<th data-field="accident_type">事故类型</th> |
||||
<th data-field="responsibility">责任</th> |
||||
<th data-field="show_name">提单者</th> |
||||
<th data-field="status_txt">状态</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 type="text/javascript" language="javascript"> |
||||
//编辑 |
||||
function edit(id,status) { |
||||
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=4'; |
||||
function opFormatter(value, row, index) { |
||||
var opStr = []; |
||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ',' + row.status +')">'); |
||||
opStr.push('<i class="fa fa-edit" title="详情"></i>'); |
||||
opStr.push('</a>'); |
||||
|
||||
return opStr.join(' '); |
||||
} |
||||
function edit(id) { |
||||
var title = '查勘定损'; |
||||
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=1'; |
||||
} |
||||
|
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/fix-car/step4-list-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
return params; |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/fix-car/step4-list?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
车牌号:<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="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td align="center" align="center" class="bg_tr">联系人</td> |
||||
<td align="center" align="center" class="bg_tr">车牌号</td> |
||||
<td align="center" align="center" class="bg_tr">品牌</td> |
||||
<td align="center" align="center" class="bg_tr">车型</td> |
||||
<td align="center" align="center" class="bg_tr">地址</td> |
||||
<td align="center" align="center" class="bg_tr">代步车</td> |
||||
<td align="center" align="center" class="bg_tr">事故类型</td> |
||||
<td align="center" align="center" class="bg_tr">责任</td> |
||||
<td align="center" align="center" class="bg_tr">提单者</td> |
||||
<td align="center" align="center" class="bg_tr">状态</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->link_man?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->car_no?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->brand?$item->brand->name:''?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->series?$item->series->name:''?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->address?></td>
|
||||
<td align="left" class="td_bg" nowrap></td> |
||||
<td align="left" class="td_bg" nowrap><?=$item->accident_type?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->responsibility?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->user->getShowName()?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->getStatus()?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?= $item->id ?>,<?=$item->status?>)">详情</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
||||
<?php $this->endBlock(); ?> |
Loading…
Reference in new issue