No Description

auditMultimedia.html 3.7KB

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