Commit 6b1ad920d597399672eb5713aebc5b230324041f
1 parent
02141577
界面修改
Showing
2 changed files
with
6 additions
and
20 deletions
src/main/resources/templates/config/shipmentPreference/add.html
... | ... | @@ -50,14 +50,8 @@ |
50 | 50 | <div class="form-group"> |
51 | 51 | <label class="col-sm-3 control-label">允许越库:</label> |
52 | 52 | <div class="col-sm-8"> |
53 | - <div class="onoffswitch"> | |
54 | - <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowCross" name="allowCross"> | |
55 | - <label class="onoffswitch-label" for="allowCross"> | |
56 | - <span class="onoffswitch-inner"></span> | |
57 | - <span class="onoffswitch-switch"></span> | |
58 | - </label> | |
59 | - </div> | |
60 | - </div> | |
53 | + <input id="allowCross" name="allowCross" class="form-control" type="text"> | |
54 | + </div> | |
61 | 55 | </div> |
62 | 56 | <div class="form-group"> |
63 | 57 | <label class="col-sm-3 control-label">允许未质检的出库:</label> |
... | ... | @@ -232,8 +226,7 @@ |
232 | 226 | }, |
233 | 227 | submitHandler: function(form) { |
234 | 228 | var tableValue = $.common.getTableValue("#form-shipmentPreference-add"); |
235 | - tableValue = formValueReplace(tableValue, "allowCross", $("input[name='allowCross']").is(':checked')); | |
236 | - $.operate.save(prefix + "/edit", tableValue); | |
229 | + $.operate.save(prefix + "/add", tableValue); | |
237 | 230 | } |
238 | 231 | }); |
239 | 232 | </script> |
... | ... |
src/main/resources/templates/config/shipmentPreference/edit.html
... | ... | @@ -51,14 +51,7 @@ |
51 | 51 | <div class="form-group"> |
52 | 52 | <label class="col-sm-3 control-label">允许越库:</label> |
53 | 53 | <div class="col-sm-8"> |
54 | - <div class="onoffswitch"> | |
55 | - <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" | |
56 | - id="allowCross" name="allowCross" th:field="*{allowCross}"> | |
57 | - <label class="onoffswitch-label" for="allowCross"> | |
58 | - <span class="onoffswitch-inner"></span> | |
59 | - <span class="onoffswitch-switch"></span> | |
60 | - </label> | |
61 | - </div> | |
54 | + <input id="allowCross" name="allowCross" class="form-control" type="text" th:field="*{allowCross}"> | |
62 | 55 | </div> |
63 | 56 | </div> |
64 | 57 | <div class="form-group"> |
... | ... | @@ -187,8 +180,8 @@ |
187 | 180 | </div> |
188 | 181 | <div th:include="include::footer"></div> |
189 | 182 | <script type="text/javascript"> |
190 | - var prefix = ctx + "config/receiptPreference"; | |
191 | - $("#form-receiptPreference-edit").validate({ | |
183 | + var prefix = ctx + "config/shipmentPreference"; | |
184 | + $("#form-shipmentPreference-edit").validate({ | |
192 | 185 | rules:{ |
193 | 186 | code:{ |
194 | 187 | required: true, |
... | ... |