|
1
2
3
4
5
6
7
|
<!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="btn-group hidden-xs" id="toolbar" role="group">
|
|
8
|
<a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="shipment:container:add">
|
|
9
10
|
<i class="fa fa-plus"></i> 新增
</a>
|
|
11
|
<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="shipment:container:remove">
|
|
12
13
14
15
16
17
18
19
20
21
|
<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">
|
|
22
23
|
var editFlag = [[${@permission.hasPermi('shipment:container:edit')}]];
var removeFlag = [[${@permission.hasPermi('shipment:container:remove')}]];
|
|
24
25
26
27
28
29
30
31
32
|
var prefix = ctx + "shipment/shipmentContainerHeader"
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
modalName: "出库组盘明细",
|
huhai
authored
|
33
|
search: false,
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
columns: [{
checkbox: true
},
{
field : 'id',
title : 'id号'
},
{
field : 'shipmentContainerCode',
title : '容器编号'
},
{
field : 'warehouseId',
title : '仓库id号'
},
{
field : 'warehouseCode',
title : '仓库编号'
},
{
field : 'taskType',
title : '预处理任务类型'
},
{
field : 'status',
title : '容器任务状态'
},
{
field : 'created',
title : '创建日期'
},
{
field : 'createdBy',
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.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
75
76
|
actions.push('<a class="btn btn-info btn-xs " href="#" onclick="detail(\'' + row.id + '\')"><i class="fa fa-list-ul"></i>列表</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
77
78
79
80
81
82
|
return actions.join('');
}
}]
};
$.table.init(options);
});
|
|
83
84
85
86
87
88
|
/*入库单列表-详细*/
function detail(headerId) {
var url = 'shipment/shipmentContainerDetail/' + headerId;
createMenuItem(url, "入库单明细");
}
|
|
89
90
91
|
</script>
</body>
</html>
|