Nenhuma Descrição

复制 detailEditVisit.html 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. .input {
  12. background-color: #FFF;
  13. background-image: none;
  14. border: 1px solid #ccc;
  15. border-radius: 1px;
  16. color: inherit;
  17. padding: 6px 12px
  18. }
  19. .fjnr {
  20. padding: 0!important;
  21. border: none!important;
  22. }
  23. .HT {
  24. display: none;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="Common">
  30. <table>
  31. <th class="Importent">回访结果:</th>
  32. <td>
  33. <input checked="true" type="radio" value="1" name="huifang" />满意
  34. <input type="radio" value="0" name="huifang" />不满意
  35. </td>
  36. <tr>
  37. <th>附件上传:</th>
  38. <td colspan="7">
  39. <div class="fileBox"></div>
  40. <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
  41. <input class="input" type="button" value="上传" id="scwj" />
  42. <input type="hidden" id="file" />
  43. <span style="color:#FF0000; border: none;">
  44. (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
  45. </span>
  46. </td>
  47. </tr>
  48. </table>
  49. <div class="btn_box">
  50. <button class="btns">保存</button>
  51. </div>
  52. </div>
  53. <script src="../../css/laydate/laydate.js"></script>
  54. <script src="../../js/adjustHeight.js"></script>
  55. <script src="../../Script/Common/huayi.common.js"></script>
  56. <script>
  57. var wid = helper.request.queryString("wid");
  58. var type = helper.request.queryString("type");
  59. console.log(type)
  60. $(document).ready(function() {
  61. XQ();
  62. })
  63. //上传附件
  64. $("#scwj").click(function() {
  65. $("#upFile").trigger("click");
  66. })
  67. $("#upFile").change(function() {
  68. upload('upFile', '.fileBox', ['png', 'jpg', 'mp3', 'mp4', 'pdf', 'doc', 'docx', 'xls', 'xlsx'], "#file");
  69. })
  70. $("#scfj").click(function() {
  71. $(".fjnr").text("");
  72. $("#scfj").hide();
  73. })
  74. $(".btns").click(function() {
  75. JA();
  76. })
  77. //批示
  78. function JA() {
  79. $.post(huayi.config.callcenter_url + 'WorkOrder/EditSuperInfoByAdmin', {
  80. id: wid,
  81. type: $("#Types").val(), //(1领导批示 2市长指示)
  82. superuser: $("#superuser").val(), //批示人&
  83. superopinion: $('#superopinion').val(), //批示内容&
  84. files: $("#file").val(), //附件id(多个用英文逗号,隔开
  85. "token": $.cookie("token")
  86. }, function(result) {
  87. result = JSON.parse(result);
  88. if(result.state.toLowerCase() == "success") {
  89. parent.parent.layer.closeAll();
  90. parent.parent.$('#orderlist').bootstrapTable('refresh');
  91. parent.parent.layer.msg("操作成功!");
  92. }
  93. })
  94. }
  95. function XQ() {
  96. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrderNew', {
  97. workorderid: wid,
  98. type: 6,
  99. token: $.cookie("token")
  100. }, function(result) {
  101. if(result.state.toLowerCase() == "success") {
  102. console.log(result)
  103. }
  104. })
  105. }
  106. </script>
  107. </body>
  108. </html>