Brak opisu

returnDiscipline.html 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 rel="stylesheet" href="../css/init.css" />
  8. <title>退回</title>
  9. </head>
  10. <body>
  11. <div class="Common">
  12. <table>
  13. <tr>
  14. <th class="Importent">退回原因:</th>
  15. <td colspan="7"><textarea data-adaptheight id="replace" name="" rows="" cols=""></textarea></td>
  16. </tr>
  17. </table>
  18. <div class="btn_box">
  19. <input type="hidden" id="F_guid" value="" />
  20. <button class="btns CB">保存</button>
  21. </div>
  22. </div>
  23. <!--<script src="../js/main.js?v=1.5"></script>-->
  24. <script src="../js/adjustHeight.js"></script>
  25. <script src="../js/guid.js"></script>
  26. <script>
  27. var wid = helper.request.queryString("wid");
  28. $(document).ready(function () {
  29. $('.CB').click(function () {
  30. CB();
  31. })
  32. });
  33. //重办
  34. function CB() {
  35. if ($('#replace').val() == '') {
  36. layer.msg("请输入重办原因");
  37. return;
  38. }
  39. $.post(huayi.config.callcenter_url + 'WorkOrder/BackJwWorkorder', {
  40. workorderid: wid,
  41. reason: $('#replace').val(),
  42. token: $.cookie("token")
  43. }, function (result) {
  44. result = JSON.parse(result);
  45. if (result.state.toLowerCase() == "success") {
  46. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  47. console.log(index);
  48. parent.layer.close(index); //再执行关闭
  49. parent.$('#orderlist').bootstrapTable('refresh');
  50. parent.layer.msg("操作成功");
  51. }
  52. })
  53. }
  54. </script>
  55. </body>
  56. </html>