Açıklama Yok

reasonCB.html 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/SubReloadWorkOrder', {
  40. ids: wid,
  41. iszb: 1,
  42. reason: $('#replace').val(),
  43. token: $.cookie("token")
  44. }, function (result) {
  45. result = JSON.parse(result);
  46. if (result.state.toLowerCase() == "success") {
  47. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  48. console.log(index);
  49. parent.layer.close(index); //再执行关闭
  50. parent.$('#orderlist').bootstrapTable('refresh');
  51. parent.layer.msg("操作成功");
  52. }
  53. })
  54. }
  55. </script>
  56. </body>
  57. </html>