12345市长热线标准版-前端

tuihuisq.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="2"><textarea id="backreason" name="" rows="" cols=""></textarea></td>
  17. </tr>
  18. </table>
  19. <div class="btn_box">
  20. <button class="btns">保存</button>
  21. </div>
  22. </div>
  23. <script src="../css/laydate/laydate.js"></script>
  24. <script>
  25. var wid = helper.request.queryString("wid");
  26. $(document).ready(function() {
  27. $(".btns").click(function(){
  28. if($("#backreason").val()==''){
  29. layer.msg("退回原因不为空");
  30. }else {
  31. JA();
  32. }
  33. })
  34. })
  35. //批示
  36. function JA() {
  37. $.post(huayi.config.callcenter_url + 'WorkOrder/RebackWorkOrder', {
  38. workorderid: wid,
  39. backreason:$("#backreason").val(),
  40. "token": $.cookie("token")
  41. }, function(result) {
  42. result = JSON.parse(result);
  43. if(result.state.toLowerCase() == "success") {
  44. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  45. parent.layer.close(index); //再执行关闭
  46. parent.load();
  47. parent.layer.msg("申请退回成功");
  48. }
  49. })
  50. }
  51. </script>
  52. </body>
  53. </html>