list.html 10.5 KB
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    <div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-info">
				<form id="formId">
					<div class="select-list">
						<ul>
																																																																			<li>
											<label>内部任务类型:</label>
											<select name="internaltasktype">
												<option value="">所有</option>
												<option value="-1">代码生成请选择字典属性</option>
											</select>
										</li>
																																																																					<li>
											<label>100 搬运任务,200行走任务,300 取货任务,400放货任务;:</label>
											<select name="tasktype">
												<option value="">所有</option>
												<option value="-1">代码生成请选择字典属性</option>
											</select>
										</li>
																																																																					<li>
											<label>100 搬运任务,200行走任务,300 取货任务,400放货任务;:</label>
											<input type="text" name="companycode"/>
										</li>
																																																																					<li>
											<label>100 搬运任务,200行走任务,300 取货任务,400放货任务;:</label>
											<input type="text" name="warehousecode"/>
										</li>
																																																																					<li>
											<label>开始点位:</label>
											<input type="text" name="fromport"/>
										</li>
																																																																					<li>
											<label>结束点位:</label>
											<input type="text" name="toport"/>
										</li>
																																																																					<li>
											<label>容器号:</label>
											<input type="text" name="containercode"/>
										</li>
																																																																					<li>
											<label>agv任务状态 1生成 10下发 20执行 100 完成:</label>
											<select name="status">
												<option value="">所有</option>
												<option value="-1">代码生成请选择字典属性</option>
											</select>
										</li>
																																																																					<li>
											<label>小车编号:</label>
											<input type="text" name="carno"/>
										</li>
																																																																					<li>
											<label>任务优先级:</label>
											<input type="text" name="priority"/>
										</li>
																																																																					<li>
											<label>任务优先级:</label>
											<input type="text" name="taskheaderid"/>
										</li>
																																																																					<li>
											<label>任务优先级:</label>
											<input type="text" name="taskdetailid"/>
										</li>
																																																																					<li>
											<label>前置任务号:</label>
											<input type="text" name="pretaskno"/>
										</li>
																																																																					<li>
											<label>货架编码:</label>
											<input type="text" name="shelfno"/>
										</li>
																																																																					<li>
											<label>站台编码:</label>
											<input type="text" name="station"/>
										</li>
																																																																					<li>
											<label>方向:</label>
											<input type="text" name="orientation"/>
										</li>
																																																																					<li>
											<label>交互标识:</label>
											<input type="text" name="interactionid"/>
										</li>
																																																																					<li>
											<label>平台:</label>
											<input type="text" name="platform"/>
										</li>
																																																																					<li>
											<label>仓库ID:</label>
											<input type="text" name="warehouseid"/>
										</li>
																																																																					<li>
											<label>公司ID:</label>
											<input type="text" name="companyid"/>
										</li>
																																																																					<li class="select-time">
											<label>创建时间:</label>
											<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreatedtime]"/>
											<span>-</span>
											<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreatedtime]"/>
										</li>
																																																																					<li>
											<label>创建者:</label>
											<input type="text" name="createdby"/>
										</li>
																																																																					<li class="select-time">
											<label>更新时间:</label>
											<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginUpdated]"/>
											<span>-</span>
											<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endUpdated]"/>
										</li>
																																																																					<li>
											<label>更新者:</label>
											<input type="text" name="updatedby"/>
										</li>
																															<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索11</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
		</div>
		<div class="btn-group hidden-xs" id="toolbar" role="group">
			<a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="task:agvTask:add">
				<i class="fa fa-plus"></i> 新增
			</a>
			<a class="btn btn-outline btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="task:task:edit">
				<i class="fa fa-edit"></i> 修改
			</a>
			<a class="btn btn-outline btn-danger btn-rounded multiple disabled" onclick="$.operate.batRemove()" shiro:hasPermission="task:agvTask:remove">
				<i class="fa fa-trash-o"></i> 删除
			</a>
		</div>
			
		<div class="col-sm-12 select-info table-striped">
			<table id="bootstrap-table" data-mobile-responsive="true"></table>
		</div>
    </div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('task:agvTask:edit')}]];
        var removeFlag = [[${@permission.hasPermi('task:agvTask:remove')}]];
        var prefix = ctx + "task/agvTask"

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                modalName: "【请填写功能名称】",
                columns: [{
		            checkbox: true
		        },
																			{
							field: 'id',
							title: '更新者',
							visible: false
						},
																								{
							field: 'internaltasktype',
							title: '内部任务类型'
						},
																								{
							field: 'tasktype',
							title: '100 搬运任务,200行走任务,300 取货任务,400放货任务;'
						},
																								{
							field: 'companycode',
							title: '100 搬运任务,200行走任务,300 取货任务,400放货任务;'
						},
																								{
							field: 'warehousecode',
							title: '100 搬运任务,200行走任务,300 取货任务,400放货任务;'
						},
																								{
							field: 'fromport',
							title: '开始点位'
						},
																								{
							field: 'toport',
							title: '结束点位'
						},
																								{
							field: 'containercode',
							title: '容器号'
						},
																								{
							field: 'status',
							title: 'agv任务状态 1生成 10下发 20执行 100 完成'
						},
																								{
							field: 'carno',
							title: '小车编号'
						},
																								{
							field: 'priority',
							title: '任务优先级'
						},
																								{
							field: 'taskheaderid',
							title: '任务优先级'
						},
																								{
							field: 'taskdetailid',
							title: '任务优先级'
						},
																								{
							field: 'pretaskno',
							title: '前置任务号'
						},
																								{
							field: 'shelfno',
							title: '货架编码'
						},
																								{
							field: 'station',
							title: '站台编码'
						},
																								{
							field: 'orientation',
							title: '方向'
						},
																								{
							field: 'interactionid',
							title: '交互标识'
						},
																								{
							field: 'platform',
							title: '平台'
						},
																								{
							field: 'warehouseid',
							title: '仓库ID'
						},
																								{
							field: 'companyid',
							title: '公司ID'
						},
																								{
							field: 'createdtime',
							title: '创建时间'
						},
																								{
							field: 'createdby',
							title: '创建者'
						},
																								{
							field: 'updated',
							title: '更新时间'
						},
																								{
							field: 'updatedby',
							title: '更新者'
						},
											        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.${primaryKey.attrname} + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.${primaryKey.attrname} + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>