Ei kuvausta

detalWorkOrder.html 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>历史工单管理</title>
  6. <script src="../../Script/Common/huayi.load.js"></script>
  7. <script src="../../Script/Common/huayi.config.js"></script>
  8. <link href="../../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
  9. <link rel="stylesheet" href="../css/call.css" />
  10. </head>
  11. <body>
  12. <div class="container greetings" style="overflow: hidden;">
  13. <ul class="row clearfix form-horizontal">
  14. <li class="form-group clearfix">
  15. <label for="workRemark" class="col-sm-2" class="consult">处理结果:</label>
  16. <div class="col-sm-10">
  17. <textarea id="order_detal" rows="3" cols="20" class="form-control" placeholder="请输入处理结果"></textarea>
  18. </div>
  19. </li>
  20. </ul>
  21. <div class="form-group clearfix row">
  22. <div class="col-sm-offset-2">
  23. <button class="btn sc_btn col-sm-2" id="work_time_btn_save" type="button">保存</button>
  24. </div>
  25. </div>
  26. </div>
  27. </body>
  28. <script src="../../js/autosize/autosize.min.js"></script>
  29. <script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
  30. <script src="../../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
  31. <script type="text/javascript">
  32. var id = helper.request.queryString("id");
  33. var type = helper.request.queryString("type");
  34. let wodetype; //工单状态
  35. let deptname; //科室名称
  36. let coustomname; //客户姓名
  37. let phoneinfo; //联系方式
  38. let centerinfo; //内容
  39. let jsdeptname; //接受部门
  40. let jspeople; //接收人员
  41. let memoinfo; //备注
  42. let createdate; //创建时间
  43. let centerinfotype;//投诉类型
  44. let jspeopleusercode;
  45. //详情
  46. getDetial(id)
  47. $('#work_time_btn_save').click(function(){
  48. $.ajax({
  49. type: "get",
  50. url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upcallcometpwode",
  51. dataType: 'json',
  52. async: true,
  53. data: {
  54. id: id,
  55. wodetype: wodetype,
  56. deptname: deptname,
  57. coustomname: coustomname,
  58. phoneinfo: phoneinfo,
  59. centerinfo: centerinfo,
  60. memoinfo: memoinfo,
  61. jspeople: jspeople,
  62. jsdeptname: jsdeptname,
  63. jspeopleusercode:jspeopleusercode,
  64. centerinfotype:centerinfotype,
  65. resultmassage : $('#order_detal').val()
  66. },
  67. success: function(res) {
  68. if(res.state.toLowerCase() === "success") {
  69. var index = parent.layer.getFrameIndex(window.name);
  70. parent.layer.close(index);
  71. layer.msg("处理成功");
  72. console.log(type)
  73. parent.initTable(type)
  74. }
  75. }
  76. })
  77. })
  78. function getDetial(id) {
  79. $.ajax({
  80. type: "get",
  81. url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getcallcometpwodebyid",
  82. dataType: 'json',
  83. async: false,
  84. data: {
  85. id: id
  86. },
  87. success: function(res) {
  88. wodetype = res.data[0].wodetype
  89. deptname = res.data[0].deptname; //科室名称
  90. coustomname = res.data[0].coustomname; //客户姓名
  91. phoneinfo = res.data[0].phoneinfo; //联系方式
  92. centerinfo = res.data[0].centerinfo; //内容
  93. jsdeptname = res.data[0].jsdeptname; //接受部门
  94. jspeople = res.data[0].jspeople; //接收人员
  95. memoinfo = res.data[0].memoinfo; //备注
  96. createdate = res.data[0].createdate; //创建时间
  97. jspeopleusercode = res.data[0].jspeopleusercode
  98. centerinfotype = res.data[0].centerinfotype
  99. }
  100. })
  101. }
  102. //编辑
  103. // function saveWorkOrder(dataInfo,type) {
  104. // $.ajax({
  105. // type: "get",
  106. // url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upcallcometpwode",
  107. // dataType: 'json',
  108. // async: true,
  109. // data: {
  110. // id: id,
  111. // wodetype: wodetype,
  112. // deptname: deptname,
  113. // coustomname: coustomname,
  114. // phoneinfo: phoneinfo,
  115. // centerinfo: centerinfo,
  116. // memoinfo: memoinfo,
  117. // jspeople: jspeople,
  118. // jsdeptname: jsdeptname,
  119. // jspeopleusercode:jspeopleusercode,
  120. // centerinfotype:centerinfotype,
  121. // resultmassage : $('#order_detal').val()
  122. // },
  123. // success: function(res) {
  124. // if(res.state.toLowerCase() === "success") {
  125. // var index = parent.layer.getFrameIndex(window.name);
  126. // parent.layer.close(index);
  127. // layer.msg("处理成功");
  128. // parent.initTable(type)
  129. // }
  130. // }
  131. // })
  132. // }
  133. </script>
  134. </html>