No Description

StrongLawsuit.html 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. result = JSON.parse(result);
  199. if(result.state.toLowerCase() == "success") {
  200. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  201. parent.layer.close(index); //再执行关闭
  202. parent.$('#orderlist').bootstrapTable('refresh');
  203. parent.layer.msg("操作成功");
  204. }
  205. })
  206. }
  207. //获取单位
  208. function getUnit() {
  209. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAllAssignDept', {
  210. workorderid: wid,
  211. token: $.cookie("token")
  212. }, function(result) {
  213. if(result.state.toLowerCase() == "success") {
  214. $('#depID').val(result.data[0].F_DeptId)
  215. if(result.data.length > 0) {
  216. $('#isBulletin').removeAttr("disabled");
  217. for(var i = 0; i < result.data.length; i++){
  218. $('#bulletinUnit ul').append('<li><input type="checkbox" name="checkbox" id="unit'+i+'" value=""/>'+
  219. '<label for="unit'+i+'">'+ result.data[i].F_DeptName +'</label></li>');
  220. }
  221. if(('#bulletinUnit input').length>0){
  222. $('#bulletinUnit input').each(function(index){
  223. if($(this).is('[type=checkbox]')){
  224. var cinput = $(this);
  225. var label = $('label[for='+cinput.attr('id')+']');
  226. cinput.bind('updateState', function(){
  227. if(cinput.is(':checked')){
  228. label.addClass('checkedDept');
  229. cinput.val(result.data[index].F_DeptId);
  230. }else{
  231. label.removeClass('checkedDept');
  232. cinput.val('');
  233. }
  234. })
  235. .trigger('updateState')
  236. .click(function(){
  237. $('input[name='+ $(this).attr('name') +']').trigger('updateState');
  238. });
  239. }
  240. });
  241. }
  242. }else{
  243. $('#isBulletin').attr("disabled","disabled");
  244. }
  245. }
  246. })
  247. }
  248. function getOrderType() {
  249. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
  250. "token": $.cookie("token"),
  251. pid: 62
  252. }, function(result) {
  253. result = $.parseJSON(result);
  254. var Count = result.data;
  255. $(Count).each(function(i, n) {
  256. $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".orderType"));
  257. })
  258. });
  259. }
  260. //不规范原因
  261. function getIsStandard() {
  262. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
  263. "token": $.cookie("token"),
  264. pid: 78
  265. }, function(result) {
  266. result = $.parseJSON(result);
  267. var Count = result.data;
  268. $(Count).each(function(i, n) {
  269. $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".standard"));
  270. })
  271. });
  272. }
  273. $('.orderType').change(()=>{
  274. if($('.orderType').val()==76){
  275. $('.reasons').show()
  276. }else{
  277. $('.reasons').hide()
  278. }
  279. })
  280. </script>
  281. </body>
  282. </html>