|
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
|
</div>
|
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
</div>prompAdjustQty
<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="true" class="onoffswitch-checkbox" id="prompAdjustQty"
name="prompAdjustQty">
<label class="onoffswitch-label" for="prompAdjustQty">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
|
|
75
|
</div>
|
|
76
|
|
|
77
|
<div class="form-group">
|
|
78
|
<label class="col-sm-3 control-label">显示库存数量:</label>
|
|
79
|
<div class="col-sm-8">
|
|
80
81
82
83
84
85
86
87
|
<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>
|
|
88
89
|
</div>
</div>
|
|
90
91
|
<div class="form-group">
<label class="col-sm-3 control-label">是否有效:</label>
|
|
92
|
<div class="col-sm-8">
|
|
93
|
<div class="onoffswitch">
|
|
94
95
96
|
<input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable"
name="enable">
<label class="onoffswitch-label" for="enable">
|
|
97
98
99
100
|
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
|
|
101
|
</div>
|
|
102
|
</div>
|
|
103
104
|
<div class="form-group">
<div class="form-control-static col-sm-offset-9">
|
|
105
|
<input type="submit" class="btn btn-primary" value="提交">
|
|
106
107
108
109
110
111
112
|
<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">
|
|
113
114
|
var prefix = ctx + "config/cycleCountPreference";
$("#form-cycleCountPreference-add").validate({
|
|
115
116
|
rules: {
code: {
|
|
117
118
|
required: true,
},
|
|
119
|
name: {
|
|
120
121
|
required: true,
},
|
|
122
|
|
|
123
|
},
|
|
124
|
submitHandler: function (form) {
|
|
125
|
var tableValue = $.common.getTableValue("#form-cycleCountPreference-add");
|
|
126
127
|
tableValue = formValueReplace(tableValue, "promptLocation", $("input[name='promptLocation']").is(':checked'));
tableValue = formValueReplace(tableValue, "promptLpn", $("input[name='promptLpn']").is(':checked'));
|
|
128
|
tableValue = formValueReplace(tableValue, "prompAdjustQty", $("input[name='prompAdjustQty']").is(':checked'));
|
|
129
130
131
|
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'));
|
|
132
|
$.operate.save(prefix + "/addSave", tableValue);
|
|
133
134
135
136
137
|
}
});
</script>
</body>
</html>
|