rebateFeeEdit.jsp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  3. <html>
  4. <head>
  5. <title>编辑经理折扣</title>
  6. <meta name="decorator" content="default"/>
  7. <script type="text/javascript">
  8. $(document).ready(function () {
  9. $("#inputForm").validate({
  10. ignore: "",
  11. submitHandler: function (form) {
  12. loading('正在提交,请稍等...');
  13. form.submit();
  14. },
  15. errorContainer: "#messageBox",
  16. errorPlacement: function (error, element) {
  17. $("#messageBox").text("输入有误,请先更正。");
  18. if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
  19. error.appendTo(element.parent().parent());
  20. } else {
  21. error.insertAfter(element);
  22. }
  23. }
  24. });
  25. // $("#rebateFee").blur(function () {
  26. // var _discountFeeVal = $(this).val();
  27. // var _balancePayFee = $('#balancePayFee').text();
  28. // var _orderTotalFeeVal = $('#orderTotalFee').text();
  29. // var New_payTotalFeeVal = _orderTotalFeeVal - _discountFeeVal - _balancePayFee;
  30. // $('#payTotalFee').text(New_payTotalFeeVal);
  31. // if (New_payTotalFeeVal <= 0) {
  32. // $('#isnumber').show();
  33. // } else {
  34. // $('#isnumber').hide();
  35. // }
  36. // })
  37. });
  38. function submit() {
  39. var rebateFee = $("#rebateFee").val();
  40. return rebateFee;
  41. }
  42. function onlynum(obj) {
  43. obj.value = obj.value.replace(/[^\.\d]/g, ""); //清除"数字 . "以外的字符
  44. }
  45. </script>
  46. </head>
  47. <body>
  48. <br>
  49. <form:form id="inputForm" modelAttribute="newOrder" action="${ctx}/order/rebateFee" method="post"
  50. class="form-horizontal">
  51. <sys:message content="${message}"/>
  52. <div style="padding-top: 15px">
  53. <span><label class="control-label">返佣服务费:</label></span>
  54. <span><form:input path="rebateFee" htmlEscape="false" maxlength="20" class="input-medium"
  55. onkeyup="onlynum(this)" value="${order.rebateFee}"/></span>
  56. </div>
  57. </form:form>
  58. </body>
  59. </html>