Bez popisu

XGHF.html 2.6KB

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