汇联通执法队后台管理系统
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

coupon.jsp 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!DOCTYPE html>
  2. <%@ page contentType="text/html;charset=utf-8"%>
  3. <%@ include file="/WEB-INF/jsp/include.jsp"%>
  4. <html>
  5. <head>
  6. <meta http-equiv="expires" content="0" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <script type="text/javascript">
  9. $(function(){
  10. $.ajaxSetup ({ cache: false});
  11. $("#submit").click(function(){
  12. $("#myManage").triggerHandler("taijiModalPost",[$("#myForm"),{table:"none"}]);
  13. });
  14. $("#reset").mouseup(function(){
  15. $("#mobile").html("");
  16. });
  17. $('.fee_row').hide();
  18. });
  19. function toggleFee(){
  20. if($('.serviceType').val()=="GAS_COUPON") $('.fee_row').show();
  21. //else $('.fee_row').hide();
  22. }
  23. function updateMobile(){
  24. var data = $("#applicantId").val();
  25. var url='${rootUrl}app/service/request/inquiry/coupon/getMobileByMemberId/'+data;
  26. $.ajax({
  27. url:url,
  28. data:data,
  29. method:'POST',
  30. success:function(res){
  31. $("#mobile").html(res.mobile);
  32. }
  33. });
  34. }
  35. </script>
  36. </head>
  37. <body>
  38. <div class="modal-header">
  39. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  40. <h4 class="modal-title">服务申请-加油劵</h4>
  41. </div>
  42. <div class="modal-body">
  43. <form:form modelAttribute="pageModel" id="myForm" name="myForm" cssClass="form-horizontal" action="${rootUrl}app/service/request/inquiry/coupon" method="post">
  44. <table>
  45. <tr>
  46. <th>服务类别</th>
  47. <td><select style="margin: 5px -2px" name="serviceType" id="serviceType"
  48. class='serviceType form-control' onchange="toggleFee()">
  49. <c:forEach items="${serviceTypes}" var="st">
  50. <option value="${st}">${st.value }</option>
  51. </c:forEach>
  52. </select></td>
  53. </tr>
  54. <tr>
  55. <th>车辆</th>
  56. <td><select name="vehicleId" id="vehicleId"
  57. class="form-control" style="margin: 5px -2px">
  58. <option value="">请选择</option>
  59. <c:forEach items="${vehicles}" var="v">
  60. <option value="${v.vehicleId}">${v.vehiclePalte }_${v.vehiclePlatecolor.value }</option>
  61. </c:forEach>
  62. </select></td>
  63. </tr>
  64. <tr>
  65. <th>金额</th>
  66. <td><input style="margin: 5px -2px" id="fee" name="fee" type="number" maxlength="100"
  67. class="form-control" placeholder="金额" /></td>
  68. </tr>
  69. <tr>
  70. <th>使用人</th>
  71. <td><select style="margin: 5px -2px" name="applicantId" id="applicantId"
  72. onchange="updateMobile()" class="form-control">
  73. <option value="">请选择</option>
  74. <c:forEach items="${members}" var="m">
  75. <option value="${m.id}">${m.name }</option>
  76. </c:forEach>
  77. </select></td>
  78. </tr>
  79. <tr>
  80. <th>手机号</th>
  81. <td><span id="mobile"></span></td>
  82. </tr>
  83. <tr>
  84. <th>备注</th>
  85. <td><input style="margin: 5px -2px; height: 100px"
  86. id="remarks" name="remarks" maxlength="100" class="form-control"
  87. placeholder="备注" /></td>
  88. </tr>
  89. <tr>
  90. <td><a href="#" style="margin-left: 10px; margin-top: 20px;"
  91. class="taiji_modal taiji_acl btn btn-success m-r-10" id="submit">提交</a></td>
  92. <td><input style="margin-top: 20px"
  93. class="taiji_modal taiji_acl btn btn-success m-r-10" id="reset"
  94. type="reset" value="清空" /></td>
  95. </tr>
  96. </table>
  97. </form:form>
  98. </div>
  99. </body>
  100. </html>