|
1
2
3
4
5
6
|
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
7
|
<form class="form-horizontal m" id="form-cycleCountPreference-edit" th:object="${cycleCountPreference}">
|
|
8
|
<div class="form-group">
|
|
9
|
<label class="col-sm-3 control-label">ID:</label>
|
|
10
|
<div class="col-sm-8">
|
|
11
|
<input id="id" name="id" class="form-control" type="text" th:field="*{id}" readonly="readonly">
|
|
12
13
14
|
</div>
</div>
<div class="form-group">
|
|
15
|
<label class="col-sm-3 control-label">盘点首选项编码:</label>
|
|
16
|
<div class="col-sm-8">
|
|
17
|
<input id="code" name="code" class="form-control" type="text" th:field="*{code}" readonly="readonly">
|
|
18
19
20
|
</div>
</div>
<div class="form-group">
|
|
21
|
<label class="col-sm-3 control-label">盘点首选项名称:</label>
|
|
22
|
<div class="col-sm-8">
|
|
23
|
<input id="name" name="name" class="form-control" type="text" th:field="*{name}" readonly="readonly">
|
|
24
25
|
</div>
</div>
|
|
26
|
<!--<div class="form-group">
|
|
27
|
<label class="col-sm-3 control-label">仓库:</label>
|
|
28
|
<div class="col-sm-8">
|
|
29
|
<input id="warehouseCode" name="warehouseCode" class="form-control" type="text" th:field="*{warehouseCode}" readonly="readonly">
|
|
30
|
</div>
|
|
31
|
</div>-->
|
|
32
|
<div class="form-group">
|
|
33
|
<label class="col-sm-3 control-label">系统提示货位:</label>
|
|
34
|
<div class="col-sm-8">
|
|
35
36
37
38
39
40
41
42
|
<div class="onoffswitch">
<input type="checkbox" th:checked="*{promptLocation}" class="onoffswitch-checkbox" id="promptLocation"
name="promptLocation">
<label class="onoffswitch-label" for="promptLocation">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
43
44
45
|
</div>
</div>
<div class="form-group">
|
|
46
|
<label class="col-sm-3 control-label">系统提示容器:</label>
|
|
47
|
<div class="col-sm-8">
|
|
48
|
<div class="onoffswitch">
|
|
49
50
|
<input type="checkbox" th:checked="*{promptLpn}" class="onoffswitch-checkbox" id="promptLpn"
name="promptLpn" >
|
|
51
52
53
54
55
|
<label class="onoffswitch-label" for="promptLpn">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
56
|
</div>
|
|
57
|
</div>
|
|
58
|
<div class="form-group">
|
|
59
|
<label class="col-sm-3 control-label">系统提示物料:</label>
|
|
60
|
<div class="col-sm-8">
|
|
61
62
63
64
65
66
67
68
|
<div class="onoffswitch">
<input type="checkbox" th:checked="*{promptItem}" class="onoffswitch-checkbox" id="promptItem"
name="promptItem">
<label class="onoffswitch-label" for="promptItem">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
69
70
71
|
</div>
</div>
<div class="form-group">
|
|
72
|
<label class="col-sm-3 control-label">显示库存数量:</label>
|
|
73
|
<div class="col-sm-8">
|
|
74
75
76
77
78
79
80
81
|
<div class="onoffswitch">
<input type="checkbox" th:checked="*{promptQuantity}" class="onoffswitch-checkbox" id="promptQuantity"
name="promptQuantity">
<label class="onoffswitch-label" for="promptQuantity">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
82
83
|
</div>
</div>
|
|
84
|
<!--<div class="form-group">
|
|
85
|
<label class="col-sm-3 control-label">允许添加库存:</label>
|
|
86
|
<div class="col-sm-8">
|
|
87
|
<input id="allowAddNewInventory" name="allowAddNewInventory" class="form-control" type="text" th:field="*{allowAddNewInventory}">
|
|
88
89
90
|
</div>
</div>
<div class="form-group">
|
|
91
|
<label class="col-sm-3 control-label">RF逐件盘点:</label>
|
|
92
|
<div class="col-sm-8">
|
|
93
|
<input id="countByPiece" name="countByPiece" class="form-control" type="text" th:field="*{countByPiece}">
|
|
94
95
96
|
</div>
</div>
<div class="form-group">
|
|
97
|
<label class="col-sm-3 control-label">数据版本:</label>
|
|
98
|
<div class="col-sm-8">
|
|
99
|
<input id="version" name="version" class="form-control" type="text" th:field="*{version}">
|
|
100
|
</div>
|
|
101
|
</div>-->
|
|
102
|
<div class="form-group">
|
|
103
104
105
|
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<input id="created" name="created" class="form-control" type="text" th:field="*{created}" readonly="readonly">
|
|
106
107
108
|
</div>
</div>
<div class="form-group">
|
|
109
110
111
|
<label class="col-sm-3 control-label">创建者:</label>
<div class="col-sm-8">
<input id="createdBy" name="createdBy" class="form-control" type="text" th:field="*{createdBy}" readonly="readonly">
|
|
112
113
|
</div>
</div>
|
|
114
|
<!--<div class="form-group">
|
|
115
116
117
118
119
|
<label class="col-sm-3 control-label">处理标记:</label>
<div class="col-sm-8">
<input id="processStamp" name="processStamp" class="form-control" type="text" th:field="*{processStamp}" />
</div>
</div>-->
|
|
120
121
122
123
124
125
126
127
128
129
130
131
132
|
<div class="form-group">
<label class="col-sm-3 control-label">是否有效:</label>
<div class="col-sm-8">
<div class="onoffswitch">
<input type="checkbox" th:checked="*{enable}" class="onoffswitch-checkbox" id="enable"
name="enable" >
<label class="onoffswitch-label" for="enable">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
|
|
133
134
|
<div class="form-group">
<div class="form-control-static col-sm-offset-9">
|
|
135
|
<input type="submit" class="btn btn-primary" value="提交">
|
|
136
137
138
139
140
141
142
|
<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
</div>
</div>
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
|
|
143
144
|
var prefix = ctx + "config/cycleCountPreference";
$("#form-cycleCountPreference-edit").validate({
|
|
145
146
147
148
149
150
151
|
rules:{
code:{
required: true,
},
name:{
required: true,
},
|
|
152
|
warehouseCode:{
|
|
153
154
|
required: true,
},
|
|
155
|
promptLocation:{
|
|
156
157
|
required: true,
},
|
|
158
|
promptLpn:{
|
|
159
160
|
required: true,
},
|
|
161
|
promptItem: {
|
|
162
163
|
required: true,
},
|
|
164
|
promptQuantity: {
|
|
165
166
|
required: true,
},
|
|
167
|
allowAddNewInventory: {
|
|
168
169
170
171
|
required: true,
}
},
submitHandler: function(form) {
|
|
172
173
|
var tableValue = $.common.getTableValue("#form-cycleCountPreference-edit");
/*tableValue = formValueReplace(tableValue, "id", $("input[name='id']").is(':checked'));*/
|
|
174
175
176
177
178
179
|
$.operate.save(prefix + "/edit", tableValue);
}
});
</script>
</body>
</html>
|