Няма описание

XGHF.html 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. <option value="2">APP</option>
  26. <option value="3">网站</option>
  27. <option value="4">微博</option>
  28. <option value="5">信箱</option>
  29. </select>
  30. </td>
  31. </th>
  32. </tr>
  33. <tr>
  34. <th class="Importent">回访结果:</th>
  35. <td>
  36. <select class="select_" id='issatisfie'>
  37. <option value="0">不满意</option>
  38. <option value="1">满意</option>
  39. <option value="2">基本满意</option>
  40. </select>
  41. </td>
  42. </tr>
  43. <tr>
  44. <th class="Importent">回访内容:</th>
  45. <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
  46. </tr>
  47. </table>
  48. <div class="btn_box">
  49. <button class="btns BC">保存</button>
  50. </div>
  51. </div>
  52. <script src="../js/adjustHeight.js"></script>
  53. <script>
  54. var wid = helper.request.queryString("wid");
  55. $(document).ready(function() {
  56. XQ();
  57. $('.BC').click(function() {
  58. JA();
  59. })
  60. });
  61. //回访
  62. function JA() {
  63. $.post(huayi.config.callcenter_url + 'WorkOrder/EditVisitInfoByAdmin', {
  64. id: wid,
  65. visituser:$("#visituser").val(),//回访人
  66. result:$("#result").val(),//回访内容
  67. type:$("#type").val(),
  68. issatisfie:$("#issatisfie").val(),
  69. token: $.cookie("token")
  70. }, function(result) {
  71. result = JSON.parse(result);
  72. if(result.state.toLowerCase() == "success") {
  73. parent.parent.layer.closeAll();
  74. parent.parent.$('#orderlist').bootstrapTable('refresh');
  75. parent.parent.layer.msg("操作成功!");
  76. }
  77. })
  78. }
  79. function XQ(){
  80. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
  81. id: wid,
  82. type:6,
  83. token: $.cookie("token")
  84. }, function(result) {
  85. if(result.state.toLowerCase() == "success") {
  86. $("#visituser").val(result.data[0].F_VisitUser);
  87. $("#result").val(result.data[0].F_Result);
  88. $("#type").val(result.data[0].F_Type),
  89. $("#issatisfie").val(result.data[0].F_IsSatisfie);
  90. console.log(result);
  91. }
  92. })
  93. }
  94. </script>
  95. </body>
  96. </html>