Geen omschrijving

handleMethod.html 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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="../../css/Table/table1.css" rel="stylesheet" />
  9. <link href="../../css/init.css" rel="stylesheet" />
  10. <link rel="stylesheet" type="text/css" href="../../css/lookMsg.css" />
  11. </head>
  12. <style>
  13. table th {
  14. width: 150px;
  15. text-align: center;
  16. }
  17. .zhujie {
  18. margin-bottom: 20px;
  19. }
  20. </style>
  21. <body style="padding: 30px;">
  22. <div class="zhujie">
  23. <label>是否完结:</label>
  24. <!--<input type="radio" name="zhu" value="1" checked="checked">自动完结-->
  25. <input type="radio" name="zhu" value="2">是
  26. <input type="radio" name="zhu" value="3">否
  27. </div>
  28. <div>
  29. <table class="table table-bordered table-hover tabbox" border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none;">
  30. <tr>
  31. <th>处理结果:</th>
  32. <td colspan="3">
  33. <div>
  34. <textarea id="contres" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入处理结果"></textarea>
  35. </div>
  36. </td>
  37. </tr>
  38. <tr>
  39. <th>问题原因:</th>
  40. <td colspan="3">
  41. <div>
  42. <textarea id="cont1" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入问题原因"></textarea>
  43. </div>
  44. </td>
  45. </tr>
  46. <tr>
  47. <th>责任单位:</th>
  48. <td colspan="3">
  49. <div>
  50. <textarea id="cont2" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入责任单位"></textarea>
  51. </div>
  52. </td>
  53. </tr>
  54. <tr>
  55. <th>整改计划:</th>
  56. <td colspan="3">
  57. <div>
  58. <textarea id="cont3" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入整改计划"></textarea>
  59. </div>
  60. </td>
  61. </tr>
  62. <tr>
  63. <th>重要级别:</th>
  64. <td>
  65. <select class="form-control input-sm " id="level" style="height: 45px;">
  66. <option value="0">请选择重要级别</option>
  67. </select>
  68. </td>
  69. </tr>
  70. <tr>
  71. <th>是否高层审批:</th>
  72. <td>
  73. <div id="high_level">
  74. <input type="radio" name="high" id="" value="0" checked="checked" />否
  75. <input type="radio" name="high" id="" value="1" />是
  76. </div>
  77. </td>
  78. </tr>
  79. </table>
  80. <!--<label>注解原因:</label>
  81. <textarea id="reception" rows="3" cols="20" class="form-control" placeholder="请输入注解原因"></textarea>-->
  82. </div>
  83. <div style="text-align: center;margin-top: 20px;">
  84. <button type="button" id="btn_submit" class="btn btn-primary">确定</button>
  85. </div>
  86. </body>
  87. <script>
  88. var oid = helper.request.queryString('oid')
  89. var flag = helper.request.queryString('flag')
  90. $(document).ready(function() {
  91. ZYJB($("#level")); //重要级别
  92. var obj = JSON.parse(localStorage.getItem('handleMethod'))
  93. $("#contres").val(obj.contres) //处理内容
  94. $("#cont1").val(obj.EventReason) //问题原因
  95. $("#cont2").val(obj.ResponsibleUnit) //责任单位
  96. $("#cont3").val(obj.ImprovementRequirements) //整改计划
  97. $("#level").val(obj.TS_Level); //重要级别
  98. $("#level").text(obj.TS_Level); //重要级别
  99. })
  100. //重要级别
  101. function ZYJB(obj) {
  102. obj.empty();
  103. obj.append('<option selected="selected" value="">请选择</option>');
  104. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
  105. "token": $.cookie("token"),
  106. flag: "ZYJB",
  107. }, function(data) {
  108. if(data.state.toLowerCase() == "success") {
  109. var content = data.data;
  110. $(content).each(function(i, n) {
  111. $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
  112. })
  113. }
  114. })
  115. }
  116. $('input[name="zhu"]').change(function() {
  117. if($('input[name="zhu"]:checked').val() == '2') {
  118. $(".tabbox").show()
  119. } else {
  120. $(".tabbox").hide()
  121. }
  122. })
  123. $("#btn_submit").click(function() {
  124. parent.Assign(oid, flag, $('input[name="zhu"]:checked').val(), $("#contres").val(), $("#cont1").val(), $("#cont2").val(), $("#cont3").val(), $("#level").val(),$("#high_level").find('input[type="radio"]:checked').val())
  125. })
  126. </script>
  127. </html>