Нет описания

reasonCB.html 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/adjustHeight.js"></script>
  24. <script src="../js/guid.js"></script>
  25. <script>
  26. var wid = helper.request.queryString("wid");
  27. $(document).ready(function() {
  28. $('.CB').click(function() {
  29. CB();
  30. })
  31. });
  32. //重办
  33. function CB() {
  34. if($('#replace').val()==''){
  35. layer.msg("请输入重办原因");
  36. return ;
  37. }
  38. $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  39. ids: wid,
  40. reason:$('#replace').val(),
  41. token: $.cookie("token")
  42. }, function(result) {
  43. result = JSON.parse(result);
  44. if(result.state.toLowerCase() == "success") {
  45. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  46. console.log(index);
  47. parent.layer.close(index); //再执行关闭
  48. parent.$('#orderlist').bootstrapTable('refresh');
  49. parent.layer.msg("操作成功");
  50. }
  51. })
  52. }
  53. </script>
  54. </body>
  55. </html>