Blame view

src/main/resources/templates/config/shipmentPreference/add.html 14.3 KB
pengcheng authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!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">
    <form class="form-horizontal m" id="form-shipmentPreference-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">编码:</label>
            <div class="col-sm-8">
                <input id="code" name="code" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">名称:</label>
            <div class="col-sm-8">
                <input id="name" name="name" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
21
22
23
24
25
26
            <label class="col-sm-3 control-label">只有分拣出库:</label>
            <div class="col-sm-8">
                <input id="onlyPicking" name="onlyPicking" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
pengcheng authored
27
28
            <label class="col-sm-3 control-label">出库流程:</label>
            <div class="col-sm-8">
pengcheng authored
29
30
31
                <select id="shippingFlow" name="shippingFlow" class="form-control" th:with="shippingFlow=${@StatusFlow.shipmentStatusFlowHeaders('shipment')}">
                    <option th:each="item : ${shippingFlow}" th:text="${item['name']}" th:value="${item['code']}"></option>
                </select>
pengcheng authored
32
33
34
            </div>
        </div>
        <div class="form-group">
35
            <label class="col-sm-3 control-label">库存分配规则:</label>
pengcheng authored
36
            <div class="col-sm-8">
pengcheng authored
37
38
39
                <select id="allocationRule" name="allocationRule" class="form-control" th:with="allocationRule=${@filterConfigHeaderService.getFilterConfigHeaderService('shipment','allocationRule')}">
                    <option th:each="item : ${allocationRule}" th:text="${item['filterName']}" th:value="${item['filterCode']}"></option>
                </select>
pengcheng authored
40
41
42
43
44
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">拣货规则:</label>
            <div class="col-sm-8">
pengcheng authored
45
46
47
                <select id="shipmentPickingRule" name="shipmentPickingRule" class="form-control" th:with="shipmentPickingRule=${@filterConfigHeaderService.getFilterConfigHeaderService('shipment','shipmentPickingRule')}">
                    <option th:each="item : ${shipmentPickingRule}" th:text="${item['filterName']}" th:value="${item['filterCode']}"></option>
                </select>
pengcheng authored
48
49
50
51
52
53
54
55
56
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">拣货库位范围规则:</label>
            <div class="col-sm-8">
                <input id="shipmentPickingLocRange" name="shipmentPickingLocRange" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
57
            <label class="col-sm-3 control-label">自动生成托盘号:</label>
pengcheng authored
58
            <div class="col-sm-8">
59
60
61
62
63
64
65
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="autoAssignLPN" name="autoAssignLPN">
                    <label class="onoffswitch-label" for="autoAssignLPN">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
pengcheng authored
66
67
68
69
70
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">允许越库:</label>
            <div class="col-sm-8">
71
72
73
74
75
76
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowCross" name="allowCross">
                    <label class="onoffswitch-label" for="allowCross">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
pengcheng authored
77
                </div>
pengcheng authored
78
            </div>
pengcheng authored
79
80
81
82
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">允许未质检的出库:</label>
            <div class="col-sm-8">
83
84
85
86
87
88
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowQcCheckResult" name="allowQcCheckResult">
                    <label class="onoffswitch-label" for="allowQcCheckResult">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
pengcheng authored
89
                </div>
pengcheng authored
90
91
92
93
94
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">显示库存数量:</label>
            <div class="col-sm-8">
95
96
97
98
99
100
101
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="showInventoryQty" name="showInventoryQty">
                    <label class="onoffswitch-label" for="showInventoryQty">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
pengcheng authored
102
103
104
105
106
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF组车收货:</label>
            <div class="col-sm-8">
107
108
109
110
111
112
113
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="groupPutaway" name="groupPutaway">
                    <label class="onoffswitch-label" for="groupPutaway">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
pengcheng authored
114
115
116
117
118
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">人工组盘:</label>
            <div class="col-sm-8">
119
120
121
122
123
124
125
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="manuallyBuildLPN" name="manuallyBuildLPN">
                    <label class="onoffswitch-label" for="manuallyBuildLPN">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
pengcheng authored
126
127
128
129
130
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF逐件拣货:</label>
            <div class="col-sm-8">
131
132
133
134
135
136
137
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="checkinByPiece" name="checkinByPiece">
                    <label class="onoffswitch-label" for="checkinByPiece">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
pengcheng authored
138
139
140
141
142
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF快速拣货:</label>
            <div class="col-sm-8">
143
144
145
146
147
148
149
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowQuickPickup" name="allowQuickPickup">
                    <label class="onoffswitch-label" for="allowQuickPickup">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
pengcheng authored
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
            </div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">数据版本:</label>
            <div class="col-sm-8">
                <input id="version" name="version" class="form-control" type="text">
            </div>
        </div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">创建时间:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="created" name="created" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">创建者:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="createdBy" name="createdBy" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">创建时间:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="lastUpdated" name="lastUpdated" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">更新者:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="lastUpdatedBy" name="lastUpdatedBy" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">是否有效:</label>-->
        <!--<div class="col-sm-8">-->
        <!--&lt;!&ndash;<input id="enable" name="enable" class="form-control" type="text">&ndash;&gt;-->
        <!--<div class="onoffswitch">-->
        <!--<input type="checkbox" th:checked="true" 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>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">是否删除:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="deleted" name="deleted" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段1:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef1" name="userDef1" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段2:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef2" name="userDef2" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段3:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef3" name="userDef3" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段4:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef4" name="userDef4" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段5:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef5" name="userDef5" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="form-control-static col-sm-offset-9">
                <button type="submit" class="btn btn-primary">提交</button>
                <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">
    var prefix = ctx + "config/shipmentPreference";
    $("#form-shipmentPreference-add").validate({
        rules:{
            code:{
                required: true,
            },
            name:{
                required: true,
            },
250
251
252
            onlyPicking:{
                required: true,
            },
pengcheng authored
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
            shippingFlow:{
                required: true,
            },
            shipmentPickingRule:{
                required: true,
            },
            shipmentPickingLocRange:{
                required: true,
            },
            allocationRule: {
                required: true,
            },
            autoAssignLPN: {
                required: true,
            },
            allowCross: {
                required: true,
            },
            allowQcCheckResult: {
                required: true,
            },
            showInventoryQty: {
                required: true,
            },
            groupPickup: {
                required: true,
            },
            manuallyBuildLPN: {
                required: true,
            },
            checkinByPiece: {
                required: true,
            },
            allowQuickPickup: {
                required: true,
            }
        },
        submitHandler: function(form) {
            var tableValue = $.common.getTableValue("#form-shipmentPreference-add");
292
293
294
295
296
297
298
299
            tableValue = formValueReplace(tableValue, "autoAssignLPN", $("input[name='autoAssignLPN']").is(':checked'));
            tableValue = formValueReplace(tableValue, "allowCross", $("input[name='allowCross']").is(':checked'));
            tableValue = formValueReplace(tableValue, "allowQcCheckResult", $("input[name='allowQcCheckResult']").is(':checked'));
            tableValue = formValueReplace(tableValue, "showInventoryQty", $("input[name='showInventoryQty']").is(':checked'));
            tableValue = formValueReplace(tableValue, "groupPickup", $("input[name='groupPickup']").is(':checked'));
            tableValue = formValueReplace(tableValue, "manuallyBuildLPN", $("input[name='manuallyBuildLPN']").is(':checked'));
            tableValue = formValueReplace(tableValue, "checkinByPiece", $("input[name='checkinByPiece']").is(':checked'));
            tableValue = formValueReplace(tableValue, "allowQuickPickup", $("input[name='allowQuickPickup']").is(':checked'));
pengcheng authored
300
            $.operate.save(prefix + "/add", tableValue);
pengcheng authored
301
302
303
304
305
        }
    });
</script>
</body>
</html>