Aucune description

replyMultimedia.html 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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="organization" class="form-control" name="" rows="" cols=""></textarea>
  26. </td>
  27. </tr>
  28. <tr>
  29. <th>回复内容:</th>
  30. <td colspan="7">
  31. <textarea id="content" class="form-control" name="" rows="" cols=""></textarea>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td colspan="8" style="text-align: center">
  36. <button class="btns save">保存</button>
  37. </td>
  38. </tr>
  39. </table>
  40. </div>
  41. </div>
  42. </div>
  43. <script>
  44. var wid = helper.request.queryString("wid");
  45. $(document).ready(function () {
  46. $(".save").click(function () {
  47. Add();
  48. });
  49. });
  50. //修改工单
  51. function Add() {
  52. if ($("#content").val().length < 20) {
  53. layer.msg("回复内容不能少于20字");
  54. return;
  55. }
  56. if ($("#organization").val().length > 50) {
  57. layer.msg("回复机构名称不能多于20字");
  58. return;
  59. }
  60. $.ajax({
  61. type: "post",
  62. url: huayi.config.callcenter_url + "WorkOrder/Reply",
  63. dataType: "json",
  64. async: true,
  65. data: {
  66. token: $.cookie("token"),
  67. workorderid: wid,
  68. content: $("#content").val(), // 回复内容
  69. organization: $("#organization").val(), // 回复机构名称
  70. },
  71. success: function (data) {
  72. if (data.state.toLowerCase() == "success") {
  73. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  74. parent.layer.close(index); //再执行关闭
  75. parent.$("#orderlist").bootstrapTable("refresh");
  76. parent.layer.msg("操作成功");
  77. }
  78. },
  79. });
  80. }
  81. </script>
  82. </body>
  83. </html>