Sin descripción

StrongLawsuit.html 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 style="display: none;">
  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 style="display: none;">
  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 class="Importent">通报原因:</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" style="display: none;">
  92. <th class="Importent">其他原因:</th>
  93. <td colspan="2"><textarea data-adaptheight id="reasons" name="" rows="6" cols=""></textarea></td>
  94. </tr>
  95. <tr style="display: none;">
  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 class="isStandard" style="display: none;">
  105. <th class="Importent">不规范原因:</th>
  106. <td>
  107. <select name="" class="form-control standard">
  108. <option value="0">请选择不规范原因</option>
  109. </select>
  110. </td>
  111. </tr>
  112. <tr>
  113. <th class="Importent">结案意见:</th>
  114. <td><textarea name="" rows="4" cols="" id="finalopinion"></textarea></td>
  115. </tr>
  116. <tr style="display: none;">
  117. <th class="Importent">处理结果:</th>
  118. <td><textarea data-adaptheight name="" rows="4" cols="" id="result"></textarea></td>
  119. </tr>
  120. </table>
  121. <div class="btn_box">
  122. <button class="btns BC ">保存</button>
  123. </div>
  124. </div>
  125. <input type="hidden" name="depid" id="depID" value="" />
  126. <script src="../js/adjustHeight.js"></script>
  127. <script>
  128. var wid = helper.request.queryString("wid");
  129. var bulletinUnits = '';//通报单位
  130. $(document).ready(function() {
  131. //通报原因
  132. getOrderType();
  133. //获取单位
  134. getUnit();
  135. //不规范原因
  136. getIsStandard();
  137. //是否通报
  138. $('#isBulletin').change(function(){
  139. if($('#isBulletin').val() == '0'){
  140. //默认不通报,通报单位通报原因不显示
  141. $('.bulletUnit').hide();
  142. }else if($('#isBulletin').val()== '1'){
  143. //选择是 ,显示通报单位和通报原因;
  144. $('.bulletUnit').show();
  145. }
  146. });
  147. //是否规范
  148. // $('#isStandard').change(function(){
  149. // if($('#isStandard').val() == '0'){
  150. // //默认规范
  151. // $('.isStandard').hide();
  152. // }else if($('#isStandard').val()== '1'){
  153. // $('.isStandard').show();
  154. // }
  155. // });
  156. //保存
  157. $('.BC').click(function() {
  158. // if($('#isBulletin').val() == 0){
  159. // if(!$("#result").val()){
  160. // layer.msg("处理结果不能为空");
  161. // }else{
  162. // JA(bulletinUnits);
  163. // }
  164. // }else if($('#isBulletin').val() == 1){
  165. // if(!$(".orderType").val() || $('.orderType').val()==0){
  166. // layer.msg("通报原因没有填写。");
  167. // return
  168. // }else if ($(".orderType").val()==76&& !$('#reasons').val()){
  169. // layer.msg('其他通报原因没有填写');
  170. // return
  171. // }else {
  172. // $("input[name='checkbox']:checkbox:checked").each(function(){
  173. // bulletinUnits += $(this).val() + ',';
  174. // });
  175. // bulletinUnits = bulletinUnits.substring(0,bulletinUnits.length-1);
  176. // JA(bulletinUnits);
  177. // }
  178. // }
  179. JA(bulletinUnits);
  180. });
  181. });
  182. //回退
  183. function JA(bUnits) {
  184. // var standardID=$('.standard').val()
  185. // if($('#isStandard').val()==1 && standardID==0){
  186. // layer.msg('请选择不规范原因');
  187. // return
  188. // }else if($('#isStandard').val()==0) {
  189. standardID=''
  190. // }
  191. $.post(huayi.config.callcenter_url + 'WorkOrder/ForceFinishWorkOrder', {
  192. workorderid: wid,
  193. finalopinion:$("#finalopinion").val(),
  194. result:$("#result").val(),//处理结果
  195. issatisfie:$('input[name="huifang"]:checked ').val(),
  196. isnotice: $('#isBulletin').val(),//0不通告1通告
  197. deptids: $('#depID').val(),//通报单位
  198. // noticereson: $('#bulletinReason').val(),//通报原因
  199. noticeid:$('.orderType').val(),//通报id
  200. noticeinfo:$('.orderType').find("option:selected").text(),
  201. noticereson:$('#reasons').val(),//其他通报原因
  202. isstandard:$('#isStandard').val(),//是否规范0是1否
  203. standardids:standardID,//不规范id
  204. token: $.cookie("token")
  205. }, function(result) {
  206. //debugger;
  207. result = JSON.parse(result);
  208. if(result.state.toLowerCase() == "success") {
  209. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  210. parent.layer.close(index); //再执行关闭
  211. parent.$('#orderlist').bootstrapTable('refresh');
  212. parent.layer.msg("操作成功");
  213. }
  214. })
  215. }
  216. //获取单位
  217. function getUnit() {
  218. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAllAssignDept', {
  219. workorderid: wid,
  220. token: $.cookie("token")
  221. }, function(result) {
  222. if(result.state.toLowerCase() == "success") {
  223. $('#depID').val(result.data[0].F_DeptId)
  224. if(result.data.length > 0) {
  225. $('#isBulletin').removeAttr("disabled");
  226. for(var i = 0; i < result.data.length; i++){
  227. $('#bulletinUnit ul').append('<li><input type="checkbox" name="checkbox" id="unit'+i+'" value=""/>'+
  228. '<label for="unit'+i+'">'+ result.data[i].F_DeptName +'</label></li>');
  229. }
  230. if(('#bulletinUnit input').length>0){
  231. $('#bulletinUnit input').each(function(index){
  232. if($(this).is('[type=checkbox]')){
  233. var cinput = $(this);
  234. var label = $('label[for='+cinput.attr('id')+']');
  235. cinput.bind('updateState', function(){
  236. if(cinput.is(':checked')){
  237. label.addClass('checkedDept');
  238. cinput.val(result.data[index].F_DeptId);
  239. }else{
  240. label.removeClass('checkedDept');
  241. cinput.val('');
  242. }
  243. })
  244. .trigger('updateState')
  245. .click(function(){
  246. $('input[name='+ $(this).attr('name') +']').trigger('updateState');
  247. });
  248. }
  249. });
  250. }
  251. }else{
  252. $('#isBulletin').attr("disabled","disabled");
  253. }
  254. }
  255. })
  256. }
  257. function getOrderType() {
  258. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
  259. "token": $.cookie("token"),
  260. pid: 62
  261. }, function(result) {
  262. result = $.parseJSON(result);
  263. var Count = result.data;
  264. $(Count).each(function(i, n) {
  265. $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".orderType"));
  266. })
  267. });
  268. }
  269. //不规范原因
  270. function getIsStandard() {
  271. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
  272. "token": $.cookie("token"),
  273. pid: 78
  274. }, function(result) {
  275. result = $.parseJSON(result);
  276. var Count = result.data;
  277. $(Count).each(function(i, n) {
  278. $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".standard"));
  279. })
  280. });
  281. }
  282. $('.orderType').change(()=>{
  283. if($('.orderType').val()==76){
  284. $('.reasons').show()
  285. }else{
  286. $('.reasons').hide()
  287. }
  288. })
  289. </script>
  290. </body>
  291. </html>