修改查看保养工单数据
parent
dc9191630f
commit
c354b57a9a
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('轮胎安装记录列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<p>轮胎芯片:</p>
|
||||
<input type="text" name="tyreRfid"/>
|
||||
</li>
|
||||
<li>
|
||||
<p>胎号:</p>
|
||||
<input type="text" name="tyreNo"/>
|
||||
</li>
|
||||
<li>
|
||||
<p>自编号:</p>
|
||||
<input type="text" name="selfNo"/>
|
||||
</li>
|
||||
<li>
|
||||
<p>车牌号:</p>
|
||||
<input type="text" name="carNo"/>
|
||||
</li>
|
||||
<li>
|
||||
轮位:<select name="wheelPostion" th:with="type=${@dict.getType('WheelPosition')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
轮胎品牌:<select name="tyreBrand" th:with="type=${@dict.getType('brand')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<p>操作类型</p>
|
||||
<select name="type" th:with="type=${@dict.getType('install_type')}">
|
||||
<option value="1">卸下</option>
|
||||
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="tyre:install:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="tyre:install:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="tyre:install:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="tyre:install:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('tyre:install:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('tyre:install:remove')}]];
|
||||
var prefix = ctx + "tyre/install";
|
||||
var datas = [[${@dict.getType('install_type')}]];
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "轮胎安装记录",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'id',
|
||||
title : '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field : 'tyreRfid',
|
||||
title : '轮胎芯片'
|
||||
},
|
||||
{
|
||||
field : 'tyreNo',
|
||||
title : '外胎号'
|
||||
},
|
||||
{
|
||||
field : 'selfNo',
|
||||
title : '自编号'
|
||||
},
|
||||
{
|
||||
field : 'tyreBrand',
|
||||
title : '品牌'
|
||||
},
|
||||
{
|
||||
field : 'tyreModel',
|
||||
title : '规格型号'
|
||||
},
|
||||
{
|
||||
field : 'team',
|
||||
title : '所属分公司车队'
|
||||
},
|
||||
{
|
||||
field : 'carNo',
|
||||
title : '车辆'
|
||||
},
|
||||
{
|
||||
field : 'wheelPostion',
|
||||
title : '轮位'
|
||||
},
|
||||
{
|
||||
field : 'type',
|
||||
title : '类型',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(datas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field : 'mileage',
|
||||
title : '里程(公里数)'
|
||||
},
|
||||
{
|
||||
field : 'patternDepth',
|
||||
title : '花纹深度(毫米)'
|
||||
},
|
||||
{
|
||||
field : 'remark',
|
||||
title : '备注'
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '操作人'
|
||||
},
|
||||
{
|
||||
field : 'createTime',
|
||||
title : '操作时间'
|
||||
},
|
||||
// {
|
||||
// title: '操作',
|
||||
// align: 'center',
|
||||
// formatter: function(value, row, index) {
|
||||
// var actions = [];
|
||||
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
// return actions.join('');
|
||||
// }
|
||||
// }
|
||||
]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue