No Description

rejection.html 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/RefuseWorkOrder', {
  35. workorderid: wid,
  36. reason:$("#result").val(),//回访内容
  37. token: $.cookie("token")
  38. }, function(result) {
  39. result = JSON.parse(result);
  40. if(result.state.toLowerCase() == "success") {
  41. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  42. console.log(index);
  43. parent.layer.close(index); //再执行关闭
  44. parent.$('#orderlist').bootstrapTable('refresh');
  45. parent.layer.msg("操作成功");
  46. }
  47. })
  48. }
  49. </script>
  50. </body>
  51. </html>