Geen omschrijving

auditMultimedia.html 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. .Common table th {
  12. width: 120px;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div class="Common">
  18. <div class="complain">
  19. <div style="width: 100%; padding: 10px">
  20. <table id="tableList" data-row-style="rowStyle" data-query-params="queryParams"
  21. data-pagination="true">
  22. <thead>
  23. <tr>
  24. <th data-formatter="serialNumber" data-align="center">
  25. 序号
  26. </th>
  27. <th data-field="AuditUser" data-align="center">
  28. 审核人
  29. </th>
  30. <th data-field="DeptNames" data-align="center">
  31. 承办单位
  32. </th>
  33. <th data-field="F_Result" data-align="center">
  34. 审核说明
  35. </th>
  36. </tr>
  37. </thead>
  38. <tbody class="list"></tbody>
  39. </table>
  40. </div>
  41. </div>
  42. <div>
  43. <table>
  44. <tr class="nexttype-wrapper">
  45. <th>是否通过:</th>
  46. <td>
  47. <select class="form-control" id='nexttype'>
  48. <option value="">请选择</option>
  49. <option value="0">审核通过</option>
  50. <option value="1">审核不通过</option>
  51. </select>
  52. </td>
  53. </tr>
  54. <tr>
  55. <th>审核说明:</th>
  56. <td colspan="7"><textarea class="form-control" data-adaptheight id="cbreason" name="" rows="4" cols=""></textarea></td>
  57. </tr>
  58. </table>
  59. <div class="btn_box">
  60. <button class="btns BC">保存</button>
  61. </div>
  62. </div>
  63. </div>
  64. <script src="../js/adjustHeight.js"></script>
  65. <script src="../css/laydate/laydate.js"></script>
  66. <script>
  67. var wid = helper.request.queryString("wid");
  68. var nexttype = helper.request.queryString("nexttype");
  69. $(document).ready(function () {
  70. if (nexttype) {
  71. $("#nexttype").val(nexttype).attr("disabled", true)
  72. }
  73. $('.BC').click(function () {
  74. JA();
  75. })
  76. // 审核信息
  77. initTable();
  78. });
  79. // 保存
  80. function JA() {
  81. $.post(huayi.config.callcenter_url + 'WorkOrder/AuditDispatch', {
  82. workorderid: wid,
  83. nexttype: $("#nexttype").val(),
  84. cbreason: $("#cbreason").val(),
  85. token: $.cookie("token")
  86. }, function (result) {
  87. result = JSON.parse(result);
  88. if (result.state.toLowerCase() == "success") {
  89. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  90. parent.layer.close(index); //再执行关闭
  91. parent.$("#orderlist").bootstrapTable("refresh");
  92. parent.layer.msg("操作成功");
  93. if (typeof(parent.closePage) === "function") {
  94. parent.closePage();
  95. }
  96. }
  97. })
  98. }
  99. // 审核信息
  100. function initTable() {
  101. $.ajax({
  102. url: huayi.config.callcenter_url + 'WorkOrder/GetWorkOrderNew',
  103. type: 'get',
  104. data: {
  105. workorderid: wid,
  106. type: 13,
  107. token: $.cookie("token")
  108. },
  109. dataType: "json",
  110. async: true,
  111. success: function (result) {
  112. if (result.state.toLowerCase() == "success") {
  113. var resultData = result.data
  114. $('#tableList').bootstrapTable('load', resultData);
  115. }
  116. //异步获取数据
  117. }
  118. });
  119. $('#tableList').bootstrapTable('destroy').bootstrapTable({
  120. striped: true,
  121. pagination: false,
  122. });
  123. }
  124. //编号
  125. function serialNumber(val, row, index) {
  126. return index + 1;
  127. }
  128. </script>
  129. </body>
  130. </html>