inventoryTransactionReport.html
3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<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="inventory-form">
<div class="select-list">
<ul>
<li>
储货库区:
<select name="zoneCode" th:with="zone=${@zone.getCode()}">
<option value="">所有</option>
<option th:each="e : ${zone}" th:text="${e['name']}" th:value="${e['code']}"></option>
</select>
</li>
<li>
物料编码:<input type="text" name="materialCode"/>
</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('inventory-form')"><i
class="fa fa-refresh"></i> 重置</a>
<!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i> 导出</a>-->
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-info">
<table id="bootstrap-table" data-mobile-responsive="true"
class="table table-bordered table-hover text-nowrap"></table>
</div>
</div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
var prefix = ctx + "inventory/inventoryTransactionReport";
$(function () {
var options = {
url: prefix + "/inventoryTransactionReport",
modalName: "SKU热度",
sortName: "materialCode",
sortOrder: "desc",
search: false,
pagination: false, // 是否显示分页(*)
// showColumns: true, //列选择
showExport: true, //导出
pageNumber: 1, // 初始化加载第一页,默认第一页
pageSize: 10000,
sidePagination: "server",// 每页的记录行数(*)
columns: [
{
checkbox: true
},
{
field: 'materialCode',
title: '物料编码'
},
{
field: 'materialName',
title: '物料名称'
},
{
field: 'zs',
title: '出入库次数'
},
{
field: 'rk',
title: '入库次数'
},
{
field: 'ck',
title: '出库次数'
}
// {
// field: 'created',
// title: '交易时间',
// sortable: true,
// visible: false
// },
]
};
$.table.init(options);
});
</script>
</body>
</html>