Aucune description

haveDoneToAuditOperation.html 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/bootstrap-select.css" />
  8. <link rel="stylesheet" href="../css/layer/need/layer.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <title>添加</title>
  11. <style>
  12. .Common table th {
  13. width: 100px
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="wrapper wrapper-content animated fadeInRight">
  19. <div style="padding: 10px" class="tj_content clearFix">
  20. <div class="Common">
  21. <table>
  22. <tr>
  23. <th>审核说明:</th>
  24. <td colspan="7">
  25. <textarea id="cbreason" class="form-control" name="" rows="" cols="" style=""></textarea>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td colspan="8" style="text-align: center">
  30. <button class="btns save">保存</button>
  31. </td>
  32. </tr>
  33. </table>
  34. </div>
  35. </div>
  36. </div>
  37. <script>
  38. var wid = helper.request.queryString("wid");
  39. var nexttype = helper.request.queryString("nexttype");
  40. $(document).ready(function () {
  41. $(".save").click(function () {
  42. Add();
  43. });
  44. });
  45. //修改工单
  46. function Add() {
  47. $.ajax({
  48. type: "post",
  49. url: huayi.config.callcenter_url + "WorkOrder/ToExamineWorkOrder",
  50. dataType: "json",
  51. async: true,
  52. data: {
  53. token: $.cookie("token"),
  54. workorderid: wid,
  55. nexttype: nexttype, // 0审核通过 1审核不通过 2审核通过转办
  56. cbreason: $("#cbreason").val(),
  57. },
  58. success: function (data) {
  59. if (data.state.toLowerCase() == "success") {
  60. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  61. parent.layer.close(index); //再执行关闭
  62. parent.$("#orderlist").bootstrapTable("refresh");
  63. parent.layer.msg("操作成功");
  64. }
  65. },
  66. });
  67. }
  68. </script>
  69. </body>
  70. </html>