Aucune description

replyUnsuccessful.html 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. <style>
  11. .reminderContent {
  12. width: 90%;
  13. margin: 0 auto;
  14. }
  15. .reminderContent th.Importent {
  16. width: 14%;
  17. text-align: left;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div class="Common reminderContent">
  23. <table>
  24. <tr>
  25. <th style="text-align: left;">办理内容:</th>
  26. <td><span class=" handleContent"></span></td>
  27. </tr>
  28. <tr>
  29. <th class="Importent">回复:</th>
  30. <td colspan="2"><textarea data-adaptheight id="replycount" name="" rows="6" cols=""></textarea></td>
  31. </tr>
  32. <tr class="files-wrappper">
  33. <th class="Importent">附件:</th>
  34. <td colspan="5">
  35. <div class="fileBox"></div>
  36. <!--<span class="fjnr"></span>-->
  37. <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
  38. style="display: none" />
  39. <input class="input" type="button" value="上传" id="scwj" />
  40. <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
  41. <input type="hidden" id="file" />
  42. <span style="color: #ff0000; border: none">
  43. (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
  44. </span>
  45. </td>
  46. </tr>
  47. </table>
  48. <div class="btn_box">
  49. <button class="replyBtn btns">保存</button>
  50. </div>
  51. </div>
  52. <script src="../css/laydate/laydate.js"></script>
  53. <script src="../js/adjustHeight.js"></script>
  54. <script src="../Script/Common/huayi.common.js"></script>
  55. <script>
  56. var wid = helper.request.queryString("wid");
  57. var callid = helper.request.queryString("callid");
  58. var depId = helper.request.queryString("depId");
  59. $(document).ready(function () {
  60. getDetail()
  61. $(".replyBtn").click(function () {
  62. replyhande();
  63. })
  64. })
  65. //催单
  66. function replyhande() {
  67. $.post(huayi.config.callcenter_url + 'WorkOrder/ReplyWorkOrder', {
  68. workorderid: wid, //工单号
  69. files: $('#file').val(),
  70. replycount: $('#replycount').val(), //回复内容
  71. token : $.cookie("token")
  72. }, function (result) {
  73. result = JSON.parse(result);
  74. if (result.state.toLowerCase() =="success") {
  75. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  76. parent.layer.close(index); //再执行关闭
  77. //debugger;
  78. parent.load();
  79. parent.layer.msg("操作成功");
  80. }
  81. })
  82. }
  83. //催单
  84. function getDetail() {
  85. $.ajax({
  86. type:"get",
  87. url: huayi.config.callcenter_url +"WorkOrder/GetWorkOrder",
  88. dataType: 'json',
  89. async: false,
  90. data: {
  91. workorderid: wid,
  92. token: $.cookie("token")
  93. },
  94. success: function (result) {
  95. if (result.state.toLowerCase() =="success") {
  96. bldataLengt = result.data.bldata.length
  97. if (bldataLengt > 0) {
  98. $(".handleContent").text(result.data.bldata[bldataLengt - 1].F_Result)
  99. }
  100. }
  101. }
  102. })
  103. }
  104. //上传附件
  105. $("#scwj").click(function () {
  106. $("#upFile").trigger("click");
  107. });
  108. $("#upFile").change(function () {
  109. upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
  110. });
  111. </script>
  112. </body>
  113. </html>