Açıklama Yok

rejectionCB.html 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
  17. </tr>
  18. </table>
  19. <div class="btn_box">
  20. <button class="btns BC">保存</button>
  21. </div>
  22. </div>
  23. <script src="../js/adjustHeight.js"></script>
  24. <script>
  25. var wid = helper.request.queryString("wid");
  26. //alert(wid)
  27. $(document).ready(function() {
  28. $('.BC').click(function() {
  29. JA();
  30. })
  31. });
  32. //回退
  33. function JA() {
  34. $.post(huayi.config.callcenter_url + 'WorkOrder/RejReloadWorkOrder', {
  35. id: wid,
  36. reason:$("#result").val(),//回访内容
  37. token: $.cookie("token")
  38. }, function(result) {
  39. result = JSON.parse(result);
  40. if(result.state.toLowerCase() == "success") {
  41. debugger
  42. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  43. console.log(index);
  44. parent.layer.close(index); //再执行关闭
  45. parent.$('#orderlist').bootstrapTable('refresh');
  46. parent.layer.msg("操作成功");
  47. }
  48. })
  49. }
  50. </script>
  51. </body>
  52. </html>