12345市长热线标准版-前端

tuihuisq.html 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. JA();
  29. })
  30. })
  31. //批示
  32. function JA() {
  33. $.post(huayi.config.callcenter_url + 'WorkOrder/RebackWorkOrder', {
  34. workorderid: wid,
  35. backreason:$("#backreason").val(),
  36. "token": $.cookie("token")
  37. }, function(result) {
  38. result = JSON.parse(result);
  39. if(result.state.toLowerCase() == "success") {
  40. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  41. parent.layer.close(index); //再执行关闭
  42. parent.load();
  43. parent.layer.msg("操作成功");
  44. }
  45. })
  46. }
  47. </script>
  48. </body>
  49. </html>