|
1
|
<!DOCTYPE HTML>
|
|
2
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
|
3
4
5
6
|
<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-add">
|
|
8
|
<!--<div class="form-group">
|
|
9
|
<label class="col-sm-3 control-label">盘点首选项编码:</label>
|
|
10
11
12
|
<div class="col-sm-8">
<input id="code" name="code" class="form-control" type="text">
</div>
|
|
13
|
</div>-->
|
|
14
|
<div class="form-group">
|
|
15
|
<label class="col-sm-3 control-label">盘点首选项名称:</label>
|
|
16
17
18
19
|
<div class="col-sm-8">
<input id="name" name="name" class="form-control" type="text">
</div>
</div>
|
|
20
|
|
|
21
|
<div class="form-group">
|
|
22
|
<label class="col-sm-3 control-label">系统提示库位:</label>
|
|
23
|
<div class="col-sm-8">
|
|
24
|
<div class="onoffswitch">
|
|
25
26
|
<input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLocation"
name="promptLocation">
|
|
27
28
29
30
31
|
<label class="onoffswitch-label" for="promptLocation">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
32
33
|
</div>
</div>
|
|
34
|
|
|
35
|
<div class="form-group">
|
|
36
|
<label class="col-sm-3 control-label">系统提示容器:</label>
|
|
37
38
|
<div class="col-sm-8">
<div class="onoffswitch">
|
|
39
40
|
<input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLpn"
name="promptLpn">
|
|
41
|
<label class="onoffswitch-label" for="promptLpn">
|
|
42
43
44
45
|
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
46
47
48
|
</div>
</div>
|
|
49
|
<div class="form-group">
|
|
50
|
<label class="col-sm-3 control-label">系统提示物料:</label>
|
|
51
|
<div class="col-sm-8">
|
|
52
|
<div class="onoffswitch">
|
|
53
54
55
|
<input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptItem"
name="promptItem">
<label class="onoffswitch-label" for="promptItem">
|
|
56
57
58
59
|
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
60
61
|
</div>
</div>
|
|
62
|
|
|
63
|
<div class="form-group">
|
|
64
|
<label class="col-sm-3 control-label">显示库存数量:</label>
|
|
65
|
<div class="col-sm-8">
|
|
66
67
68
69
70
71
72
73
|
<div class="onoffswitch">
<input type="checkbox" th:checked="true" 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>
|
|
74
75
|
</div>
</div>
|
|
76
77
|
<div class="form-group">
<label class="col-sm-3 control-label">是否有效:</label>
|
|
78
|
<div class="col-sm-8">
|
|
79
|
<div class="onoffswitch">
|
|
80
81
82
|
<input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable"
name="enable">
<label class="onoffswitch-label" for="enable">
|
|
83
84
85
86
|
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
87
|
</div>
|
|
88
|
</div>
|
|
89
90
|
<div class="form-group">
<div class="form-control-static col-sm-offset-9">
|
|
91
|
<input type="submit" class="btn btn-primary" value="提交">
|
|
92
93
94
95
96
97
98
|
<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">
|
|
99
100
|
var prefix = ctx + "config/cycleCountPreference";
$("#form-cycleCountPreference-add").validate({
|
|
101
102
|
rules: {
code: {
|
|
103
104
|
required: true,
},
|
|
105
|
name: {
|
|
106
107
|
required: true,
},
|
|
108
|
|
|
109
|
},
|
|
110
|
submitHandler: function (form) {
|
|
111
|
var tableValue = $.common.getTableValue("#form-cycleCountPreference-add");
|
|
112
113
114
115
116
|
tableValue = formValueReplace(tableValue, "promptLocation", $("input[name='promptLocation']").is(':checked'));
tableValue = formValueReplace(tableValue, "promptLpn", $("input[name='promptLpn']").is(':checked'));
tableValue = formValueReplace(tableValue, "promptItem", $("input[name='promptItem']").is(':checked'));
tableValue = formValueReplace(tableValue, "promptQuantity", $("input[name='promptQuantity']").is(':checked'));
tableValue = formValueReplace(tableValue, "enable", $("input[name='enable']").is(':checked'));
|
|
117
|
$.operate.save(prefix + "/addSave", tableValue);
|
|
118
119
120
121
122
|
}
});
</script>
</body>
</html>
|