睢县12345_前端

tuihuisqCounty.html 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>申请退回</title>
  10. </head>
  11. <body>
  12. <div class="Common">
  13. <table>
  14. <tr>
  15. <th class="Importent">申请退回原因:</th>
  16. <td colspan="4">
  17. <textarea data-adaptheight id="backreason" name="" rows="" cols=""></textarea>
  18. </td>
  19. </tr>
  20. </table>
  21. <div class="btn_box">
  22. <button class="btns">保存</button>
  23. </div>
  24. </div>
  25. <script src="../css/laydate/laydate.js"></script>
  26. <script src="../js/adjustHeight.js" ></script>
  27. <script>
  28. var wid = helper.request.queryString("wid");
  29. $(document).ready(function() {
  30. $(".btns").click(function(){
  31. if($("#backreason").val()==''){
  32. layer.msg("退回原因不为空");
  33. }else {
  34. JA();
  35. }
  36. })
  37. })
  38. //批示
  39. function JA() {
  40. $.post(huayi.config.callcenter_url + '/WorkOrder/RefuseCityWorkOrder', {
  41. workorderid: wid,
  42. backreason:$("#backreason").val(),
  43. "token": $.cookie("token")
  44. }, function(result) {
  45. result = JSON.parse(result);
  46. if(result.state.toLowerCase() == "success") {
  47. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  48. parent.layer.close(index); //再执行关闭
  49. parent.load();
  50. parent.layer.msg("申请退回成功");
  51. }
  52. })
  53. }
  54. </script>
  55. </body>
  56. </html>