12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
- <html>
- <head>
- <title>编辑经理折扣</title>
- <meta name="decorator" content="default"/>
- <script type="text/javascript">
- $(document).ready(function () {
- $("#inputForm").validate({
- ignore: "",
- submitHandler: function (form) {
- loading('正在提交,请稍等...');
- form.submit();
- },
- errorContainer: "#messageBox",
- errorPlacement: function (error, element) {
- $("#messageBox").text("输入有误,请先更正。");
- if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
- error.appendTo(element.parent().parent());
- } else {
- error.insertAfter(element);
- }
- }
- });
- // $("#rebateFee").blur(function () {
- // var _discountFeeVal = $(this).val();
- // var _balancePayFee = $('#balancePayFee').text();
- // var _orderTotalFeeVal = $('#orderTotalFee').text();
- // var New_payTotalFeeVal = _orderTotalFeeVal - _discountFeeVal - _balancePayFee;
- // $('#payTotalFee').text(New_payTotalFeeVal);
- // if (New_payTotalFeeVal <= 0) {
- // $('#isnumber').show();
- // } else {
- // $('#isnumber').hide();
- // }
- // })
- });
- function submit() {
- var rebateFee = $("#rebateFee").val();
- return rebateFee;
- }
- function onlynum(obj) {
- obj.value = obj.value.replace(/[^\.\d]/g, ""); //清除"数字 . "以外的字符
- }
- </script>
- </head>
- <body>
- <br>
- <form:form id="inputForm" modelAttribute="newOrder" action="${ctx}/order/rebateFee" method="post"
- class="form-horizontal">
- <sys:message content="${message}"/>
- <div style="padding-top: 15px">
- <span><label class="control-label">返佣服务费:</label></span>
- <span><form:input path="rebateFee" htmlEscape="false" maxlength="20" class="input-medium"
- onkeyup="onlynum(this)" value="${order.rebateFee}"/></span>
- </div>
- </form:form>
- </body>
- </html>
|