Нет описания

reasonCB.html 1.8KB

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