暫無描述

StrongLawsuit.html 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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 type="text/css">
  11. .isStandard,
  12. .bulletUnit{
  13. display: none;
  14. }
  15. .bulletUnit ul{
  16. list-style: none;
  17. margin: 0;
  18. padding: 0;
  19. }
  20. .bulletUnit ul li{
  21. float: left;
  22. margin-right: 20px;
  23. text-align: center;
  24. padding: 6px 0;
  25. }
  26. .bulletUnit li input{
  27. display: none;
  28. }
  29. .bulletUnit li label{
  30. margin: 0;
  31. font-weight: normal;
  32. display: block;
  33. width: 100%;
  34. border: 1px solid #ccc;
  35. padding: 2px 10px;
  36. cursor: pointer;
  37. }
  38. /* .bulletUnit li label:hover{
  39. border-color: #fe6604;
  40. } */
  41. .bulletUnit .checkedDept{
  42. border-color: #fe6604;
  43. }
  44. select:disabled{
  45. background-color: #eee;
  46. }
  47. .reasons{
  48. display: none;
  49. height: 160px;
  50. }
  51. #reasons{
  52. height: 160px;
  53. }
  54. </style>
  55. </head>
  56. <body>
  57. <div class="Common">
  58. <table >
  59. <!--<tr>
  60. <th class="Importent">满意度:</th>
  61. <td>
  62. <input checked="true" type="radio" value="1" name="huifang" />满意
  63. <input type="radio" value="0" name="huifang"/>不满意
  64. </td>
  65. </tr>-->
  66. <!--<tr>
  67. <th class="Importent">是否通报:</th>
  68. <td>
  69. <select class="select_" id='isBulletin'>
  70. <option value="0">否</option>
  71. <option value="1">是</option>
  72. </select>
  73. </td>
  74. </tr>
  75. <tr id="bulletinUnit" class="bulletUnit">
  76. <th class="Importent">通报单位:</th>
  77. <td>
  78. <ul>
  79. </ul>
  80. </td>
  81. </tr>-->
  82. <tr class="bulletUnit">
  83. <th>通报原因:</th>
  84. <td>
  85. <select name="" class="form-control orderType">
  86. <option value="0">请选择通报原因</option>
  87. </select>
  88. </td>
  89. <!--<td><textarea name="" rows="4" cols="" id="bulletinReason"></textarea></td>-->
  90. </tr>
  91. <tr class="reasons">
  92. <th>其他原因:</th>
  93. <td colspan="2"><textarea data-adaptheight id="reasons" name="" rows="6" cols=""></textarea></td>
  94. </tr>
  95. <!--<tr>
  96. <th class="Importent">是否规范:</th>
  97. <td>
  98. <select class="select_" id='isStandard'>
  99. <option value="0">是</option>
  100. <option value="1">否</option>
  101. </select>
  102. </td>
  103. </tr>-->
  104. <tr>
  105. <th>备注:</th>
  106. <td><textarea name="" rows="4" cols="" id="finalopinion"></textarea></td>
  107. </tr>
  108. <!-- <tr>
  109. <th>处理结果:</th>
  110. <td><textarea data-adaptheight name="" rows="4" cols="" id="result"></textarea></td>
  111. </tr>
  112. -->
  113. </table>
  114. <div class="btn_box">
  115. <button class="btns BC ">保存</button>
  116. </div>
  117. </div>
  118. <input type="hidden" name="depid" id="depID" value="" />
  119. <script src="../js/adjustHeight.js"></script>
  120. <script>
  121. var wid = helper.request.queryString("wid");
  122. var bulletinUnits = '';//通报单位
  123. $(document).ready(function() {
  124. //通报原因
  125. getOrderType();
  126. //获取单位
  127. getUnit();
  128. //不规范原因
  129. getIsStandard();
  130. //是否通报
  131. $('#isBulletin').change(function(){
  132. if($('#isBulletin').val() == '0'){
  133. //默认不通报,通报单位通报原因不显示
  134. $('.bulletUnit').hide();
  135. }else if($('#isBulletin').val()== '1'){
  136. //选择是 ,显示通报单位和通报原因;
  137. $('.bulletUnit').show();
  138. }
  139. });
  140. //是否规范
  141. $('#isStandard').change(function(){
  142. if($('#isStandard').val() == '0'){
  143. //默认规范
  144. $('.isStandard').hide();
  145. }else if($('#isStandard').val()== '1'){
  146. $('.isStandard').show();
  147. }
  148. });
  149. //保存
  150. $('.BC').click(function() {
  151. JA();
  152. // if($('#isBulletin').val() == 0){
  153. // if(!$("#result").val()){
  154. // layer.msg("处理结果不能为空");
  155. // }else{
  156. // JA(bulletinUnits);
  157. // }
  158. // }else if($('#isBulletin').val() == 1){
  159. // if(!$(".orderType").val() || $('.orderType').val()==0){
  160. // layer.msg("通报原因没有填写。");
  161. // return
  162. // }else if ($(".orderType").val()==76&& !$('#reasons').val()){
  163. // layer.msg('其他通报原因没有填写');
  164. // return
  165. // }else {
  166. // $("input[name='checkbox']:checkbox:checked").each(function(){
  167. // bulletinUnits += $(this).val() + ',';
  168. // });
  169. // bulletinUnits = bulletinUnits.substring(0,bulletinUnits.length-1);
  170. // JA(bulletinUnits);
  171. // }
  172. // }
  173. });
  174. });
  175. //回退
  176. function JA() {
  177. // if($('#finalopinion').val()==""){
  178. // layer.msg('请输入结案意见');
  179. // return
  180. // }else if($('#result').val()=="") {
  181. // layer.msg('请输入处理结果');
  182. // return
  183. // }
  184. $.post(huayi.config.callcenter_url + 'WorkOrder/ForceFinishWorkOrder', {
  185. workorderid: wid,
  186. finalopinion:$("#finalopinion").val(),
  187. result:$("#result").val(),//处理结果
  188. issatisfie:$('input[name="huifang"]:checked ').val(),
  189. isnotice: $('#isBulletin').val(),//0不通告1通告
  190. deptids: $('#depID').val(),//通报单位
  191. // noticereson: $('#bulletinReason').val(),//通报原因
  192. noticeid:$('.orderType').val(),//通报id
  193. noticeinfo:$('.orderType').find("option:selected").text(),
  194. noticereson:$('#reasons').val(),//其他通报原因
  195. isstandard:$('#isStandard').val(),//是否规范0是1否
  196. token: $.cookie("token")
  197. }, function(result) {
  198. //debugger;
  199. result = JSON.parse(result);
  200. if(result.state.toLowerCase() == "success") {
  201. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  202. parent.layer.close(index); //再执行关闭
  203. parent.$('#orderlist').bootstrapTable('refresh');
  204. parent.layer.msg("操作成功");
  205. }
  206. })
  207. }
  208. //获取单位
  209. function getUnit() {
  210. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAllAssignDept', {
  211. workorderid: wid,
  212. token: $.cookie("token")
  213. }, function(result) {
  214. if(result.state.toLowerCase() == "success") {
  215. $('#depID').val(result.data[0].F_DeptId)
  216. if(result.data.length > 0) {
  217. $('#isBulletin').removeAttr("disabled");
  218. for(var i = 0; i < result.data.length; i++){
  219. $('#bulletinUnit ul').append('<li><input type="checkbox" name="checkbox" id="unit'+i+'" value=""/>'+
  220. '<label for="unit'+i+'">'+ result.data[i].F_DeptName +'</label></li>');
  221. }
  222. if(('#bulletinUnit input').length>0){
  223. $('#bulletinUnit input').each(function(index){
  224. if($(this).is('[type=checkbox]')){
  225. var cinput = $(this);
  226. var label = $('label[for='+cinput.attr('id')+']');
  227. cinput.bind('updateState', function(){
  228. if(cinput.is(':checked')){
  229. label.addClass('checkedDept');
  230. cinput.val(result.data[index].F_DeptId);
  231. }else{
  232. label.removeClass('checkedDept');
  233. cinput.val('');
  234. }
  235. })
  236. .trigger('updateState')
  237. .click(function(){
  238. $('input[name='+ $(this).attr('name') +']').trigger('updateState');
  239. });
  240. }
  241. });
  242. }
  243. }else{
  244. $('#isBulletin').attr("disabled","disabled");
  245. }
  246. }
  247. })
  248. }
  249. function getOrderType() {
  250. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
  251. "token": $.cookie("token"),
  252. pid: 62
  253. }, function(result) {
  254. result = $.parseJSON(result);
  255. var Count = result.data;
  256. $(Count).each(function(i, n) {
  257. $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".orderType"));
  258. })
  259. });
  260. }
  261. //不规范原因
  262. function getIsStandard() {
  263. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
  264. "token": $.cookie("token"),
  265. pid: 78
  266. }, function(result) {
  267. result = $.parseJSON(result);
  268. var Count = result.data;
  269. $(Count).each(function(i, n) {
  270. $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".standard"));
  271. })
  272. });
  273. }
  274. $('.orderType').change(()=>{
  275. if($('.orderType').val()==76){
  276. $('.reasons').show()
  277. }else{
  278. $('.reasons').hide()
  279. }
  280. })
  281. </script>
  282. </body>
  283. </html>