Нет описания

refuseList.html 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. .input {
  12. background-color: #FFF;
  13. background-image: none;
  14. border: 1px solid #ccc;
  15. border-radius: 1px;
  16. color: inherit;
  17. padding: 6px 12px
  18. }
  19. .fjnr {
  20. padding: 0 !important;
  21. border: none !important;
  22. }
  23. .HGXX td {
  24. padding: 8px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="Common" style="padding: 10px;">
  30. <table class="table" border="" cellspacing="0" cellpadding="0"
  31. style="border: 1px solid #e7eaec; text-align: center;">
  32. <theard>
  33. <tr>
  34. <td class="text-center" style="width:60px;">次数</td>
  35. <td class="text-center" style="width:114px;">交办时间</td>
  36. <td class="text-center" style="width:114px;">办理时限</td>
  37. <td class="text-center" style="min-width:80px;">承办单位</td>
  38. <td class="text-center" style="min-width:80px;">协办单位</td>
  39. <td class="text-center" style="min-width: 200px;">交办意见</td>
  40. <td class="text-center" style="min-width:100px;">拒收原因</td>
  41. <td class="text-center" style="min-width:80px;">附件</td>
  42. <td class="text-center authority" style="min-width: 100px;">操作</td>
  43. </tr>
  44. </theard>
  45. <tbody class="EJJBXX" style="border-top: none; padding: 8px;">
  46. </tbody>
  47. </table>
  48. </div>
  49. <script src="../js/jquery-photo-gallery/jquery.photo.gallery.js"></script>
  50. <script src="../css/laydate/laydate.js"></script>
  51. <script src="../js/adjustHeight.js"></script>
  52. <script>
  53. var wid = helper.request.queryString("wid");
  54. var State;
  55. var a = $("#ID").val()
  56. getDetail();
  57. // Detail();
  58. // Hove();
  59. $(document).ready(function () {
  60. //上传附件
  61. $("#scwj").click(function () {
  62. $("#upFile").trigger("click");
  63. })
  64. $("#upFile").change(function () {
  65. upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
  66. })
  67. $("#scfj").click(function () {
  68. $(".fjnr").text("");
  69. $("#scfj").hide();
  70. })
  71. // $('.BC').click(function () {
  72. // // if ($("#reason").val() == "") {
  73. // // layer.msg("请填写审核意见");
  74. // // } else {
  75. // State = 1;
  76. // JA();
  77. // // }
  78. //
  79. // })
  80. // $('.Submit').click(function () {
  81. // layer.open({
  82. // type: 2,
  83. // content: "./processing_refuse.html?wid=" + wid + "&backid=" +
  84. // ccc, //iframe的url,no代表不显示滚动条
  85. // title: "拒绝",
  86. // area: ["60%", "80%"], //宽高
  87. // });
  88. // })
  89. });
  90. //审批意见
  91. // function JA() {
  92. // $.post(huayi.config.callcenter_url + 'WorkOrder/AuditSplitWorkOrder', {
  93. // workorderid: wid,
  94. // // reason: $('#reason').val(), //办理内容
  95. // state: State,
  96. // backid: ccc,
  97. // token: $.cookie("token")
  98. // }, function (result) {
  99. // result = JSON.parse(result);
  100. // if (result.state.toLowerCase() == "success") {
  101. // var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  102. // parent.layer.close(index); //再执行关闭
  103. // parent.$('#orderlist').bootstrapTable('refresh');
  104. // parent.layer.msg("处理成功");
  105. // }
  106. // })
  107. // }
  108. // 获取详情
  109. function getDetail() {
  110. $.ajax({
  111. type: "get",
  112. url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
  113. dataType: 'json',
  114. async: false,
  115. data: {
  116. workorderid: wid,
  117. type: 1,
  118. token: $.cookie("token")
  119. },
  120. success: function (result) {
  121. var content = result.data;
  122. if (result.state.toLowerCase() == "success") {
  123. var ejjbxx = '';
  124. $(".EJJBXX").empty();
  125. $(result.data.ejjbdata).each(function(j, n) {
  126. if(n.F_IsSure != 3){
  127. return;
  128. }
  129. var OtherDeptName = n.OtherDeptName == null ? '-' :
  130. n
  131. .OtherDeptName;
  132. ejjbxx += '<tr><td class="text-center">' + (j + 1) + '</td>' +
  133. '<td class="text-center">' + n.F_CreateTime +
  134. '</td>' +
  135. '<td class="text-center">' + n.F_LimitTime +
  136. '</td>' +
  137. '<td class="text-center">' + n.DeptName +
  138. '</td>' +
  139. '<td class="text-center">' + OtherDeptName +
  140. '</td>' +
  141. '<td class="text-center">' + n
  142. .F_AssignedOpinion +
  143. '</td>' +'<td class="text-center">' + n
  144. .F_Remark +
  145. '</td>';
  146. ejjbxx += '<td class="gallerys">'
  147. var FileHtml;
  148. $(n.File).each(function(j, m) {
  149. if(m.F_FileType == ".jpg" || m
  150. .F_FileType == ".png") {
  151. FileHtml =
  152. '<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
  153. m.F_FileUrl + '" alt="' + m
  154. .F_FileName +
  155. '" fileId="' + m.F_FileId + '">'
  156. } else {
  157. FileHtml =
  158. '<div><a style="margin-right:5px;" target="view_window" href="' +
  159. m.F_FileUrl + '" download="' + m
  160. .F_FileName + '">' + m
  161. .F_FileName.substring(19) + '</a></div>'
  162. }
  163. ejjbxx += FileHtml;
  164. })
  165. ejjbxx += "</td>" +
  166. '<td class="text-center authority"><button class="btns refusedit" index="' +
  167. n.F_Id + '">拒绝</button>' +
  168. '<button class="btns tongyiedit" index="' +
  169. n.F_Id + '">同意</button></td>' +
  170. '</tr>'
  171. })
  172. $(ejjbxx).appendTo($('.EJJBXX'));
  173. }
  174. }
  175. })
  176. }
  177. $('.refusedit').click(function(){
  178. var index = $(this).attr('index');
  179. layer.open({
  180. type: 2,
  181. content: "./refuse.html?wid=" + wid+"&fid="+index+"&state=1", //iframe的url,no代表不显示滚动条
  182. title: "拒绝",
  183. area: ["60%", "80%"], //宽高
  184. });
  185. })
  186. $('.tongyiedit').click(function(){
  187. var index = $(this).attr('index');
  188. layer.open({
  189. type: 2,
  190. content: "./refuse.html?wid=" + wid+"&fid="+index+"&state=0", //iframe的url,no代表不显示滚动条
  191. title: "同意",
  192. area: ["60%", "80%"], //宽高
  193. });
  194. })
  195. // 判断附件
  196. // function Hove() {
  197. // $(document).on("mouseover mouseout", '.tiaozhuan', function (event) {
  198. // if (event.type == "mouseover") {
  199. // //鼠标悬浮
  200. // var miao = $(this).attr("href");
  201. // if (miao == "") {
  202. // $(this).removeAttr("href");
  203. // $(this).removeAttr("download");
  204. // $(this).html("")
  205. // } else {
  206. // $(this).attr("href");
  207. // $(this).attr("download");
  208. // }
  209. // } else if (event.type == "mouseout") {
  210. // //鼠标离开
  211. // }
  212. // })
  213. //
  214. // }
  215. //草稿详情
  216. // function Detail() {
  217. // $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
  218. // workorderid: wid,
  219. // type: 2,
  220. // token: $.cookie("token")
  221. // }, function (result) {
  222. // if (result.state.toLowerCase() == "success") {
  223. // if (result.data.length > 0) {
  224. // $("#dealman").val(result.data[0].F_DealUser);
  225. // $('#result').val(result.data[0].F_Result);
  226. // a = result.data[0].F_Id;
  227. // };
  228. // }
  229. // })
  230. // }
  231. //清除
  232. function Clean() {
  233. $("#startTime").val(''),
  234. $('#assignedopinion').val('')
  235. }
  236. // 关闭页面
  237. function closePage() {
  238. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  239. parent.layer.close(index); //再执行关闭
  240. parent.$('#orderlist').bootstrapTable('refresh');
  241. }
  242. function viewImage(file) {
  243. var json = {
  244. "title": "", //相册标题
  245. "id": 1, //相册id
  246. "start": 0, //初始显示的图片序号,默认0
  247. "data": [ //相册包含的图片,数组格式
  248. {
  249. "alt": $(file).attr("alt"),
  250. "pid": $(file).attr("fileId"), //图片id
  251. "src": $(file).attr("src"), //原图地址
  252. "thumb": "" //缩略图地址
  253. }
  254. ]
  255. }
  256. layer.photos({
  257. photos: json,
  258. anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
  259. });
  260. }
  261. </script>
  262. </body>
  263. </html>