商丘12345 前端

XGHF.html 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>工单回访</title>
  10. </head>
  11. <body>
  12. <div class="Common">
  13. <table >
  14. <tr>
  15. <th class="Importent">
  16. 回访人:
  17. <td><input type="text" id="visituser"/></td>
  18. </th>
  19. <th>
  20. 回访方式:
  21. <td>
  22. <select class="select_" id="type">
  23. <option value="0">电话</option>
  24. <option value="1">微信</option>
  25. </select>
  26. </td>
  27. </th>
  28. </tr>
  29. <tr>
  30. <th class="Importent">回访结果:</th>
  31. <td>
  32. <select class="select_" id='issatisfie'>
  33. <option value="0">不满意</option>
  34. <option value="1">满意</option>
  35. </select>
  36. </td>
  37. </tr>
  38. <tr>
  39. <th class="Importent">回访内容:</th>
  40. <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
  41. </tr>
  42. </table>
  43. <div class="btn_box">
  44. <button class="btns BC">保存</button>
  45. </div>
  46. </div>
  47. <script src="../js/adjustHeight.js"></script>
  48. <script>
  49. var wid = helper.request.queryString("wid");
  50. $(document).ready(function() {
  51. XQ();
  52. $('.BC').click(function() {
  53. JA();
  54. })
  55. });
  56. //回访
  57. function JA() {
  58. $.post(huayi.config.callcenter_url + 'WorkOrder/EditVisitInfoByAdmin', {
  59. id: wid,
  60. visituser:$("#visituser").val(),//回访人
  61. result:$("#result").val(),//回访内容
  62. type:$("#type").val(),
  63. issatisfie:$("#issatisfie").val(),
  64. token: $.cookie("token")
  65. }, function(result) {
  66. result = JSON.parse(result);
  67. if(result.state.toLowerCase() == "success") {
  68. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  69. console.log(index);
  70. parent.layer.close(index); //再执行关闭
  71. parent.layer.msg("操作成功");
  72. }
  73. })
  74. }
  75. function XQ(){
  76. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
  77. id: wid,
  78. type:6,
  79. token: $.cookie("token")
  80. }, function(result) {
  81. if(result.state.toLowerCase() == "success") {
  82. $("#visituser").val(result.data[0].F_VisitUser);
  83. $("#result").val(result.data[0].F_Result);
  84. $("#type").val(result.data[0].F_Type),
  85. $("#issatisfie").val(result.data[0].F_IsSatisfie);
  86. console.log(result);
  87. }
  88. })
  89. }
  90. </script>
  91. </body>
  92. </html>