Няма описание

commentList.html 33KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189
  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 rel="stylesheet" href="../css/bootstrap-select.css" />
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <link rel="stylesheet" href="../js/layui/css/layui.css">
  12. <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
  13. </head>
  14. <body class="gray-bg">
  15. <div class="wrapper wrapper-content animated fadeInRight">
  16. <div class="daoHang clearfix">
  17. <div class="dhLeft">
  18. <sapn>
  19. <i class="syIcon"></i>位置:
  20. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  21. <a href="" class="nowPosition">市民评议</a>
  22. </sapn>
  23. </div>
  24. <div class="dhRight">
  25. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  26. </div>
  27. </div>
  28. <div style="padding: 10px" class="tj_content clearFix">
  29. <div style="padding: 10px" class="tj_content clearFix">
  30. <div>
  31. <span>【搜索信息】</span>
  32. <div class="box_content">
  33. <table id="sqzx" style="width: 100%" border="0" cellspacing="0" cellpadding="0">
  34. <tr>
  35. <th>工单来源:</th>
  36. <td>
  37. <select class="form-control" id="source"></select>
  38. </td>
  39. <th>来电号码:</th>
  40. <td>
  41. <input type="text" id="tel" class="form-control" placeholder="请输入来电号码" />
  42. </td>
  43. <th>录入时间:</th>
  44. <td colspan="3">
  45. <input id="starttime" class="photo x-color laydate-icon" type="text" autocomplete="off" style="height: 35px;" />-<input id="endtime" class="photo x-color laydate-icon" type="text" autocomplete="off" style="height: 35px;" />
  46. </td>
  47. </tr>
  48. <tr>
  49. <th>事项编号:</th>
  50. <td>
  51. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  52. </td>
  53. <th><span class="nameJustified">来电人:</span></th>
  54. <td>
  55. <input type="text" id="name" class="form-control" autocomplete="off" />
  56. </td>
  57. <th>办理时间:</th>
  58. <td colspan="3">
  59. <input id="dealstarttime" class="photo x-color laydate-icon" type="text" autocomplete="off" style="height: 35px;" />-<input id="dealstrendtime" class="photo x-color laydate-icon" type="text" autocomplete="off" style="height: 35px;" />
  60. </td>
  61. </tr>
  62. <tr>
  63. <th>工单标题:</th>
  64. <td>
  65. <input type="text" placeholder="输入工单标题" id="workOrderTitle" class="form-control" />
  66. </td>
  67. <th>受话坐席:</th>
  68. <td>
  69. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  70. <option value="">请选择坐席</option>
  71. </select>
  72. </td>
  73. <th>反映区域:</th>
  74. <td>
  75. <select class="form-control Min-width" id="sourceAreas"></select>
  76. </td>
  77. <td></td>
  78. <td></td>
  79. </tr>
  80. <tr>
  81. <th>来电内容:</th>
  82. <td>
  83. <input type="text" placeholder="输入来电内容" id="workOrderContent" class="form-control" />
  84. </td>
  85. <th><span class="nameJustified">审核员:</span></th>
  86. <td>
  87. <select id="yardman" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  88. <option value="">
  89. 请选择调度员
  90. </option>
  91. </select>
  92. </td>
  93. <th>处理类型:</th>
  94. <td>
  95. <select class="form-control Min-width" id="dealtype">
  96. <option value="">请选择</option>
  97. <option value="0">网络转派</option>
  98. <option value="1">当即办理</option>
  99. </select>
  100. </td>
  101. </tr>
  102. <tr>
  103. <th>办理结果:</th>
  104. <td>
  105. <input type="text" placeholder="输入办理结果" id="workOrderProcessingResult" class="form-control" />
  106. </td>
  107. <th>工单状态:</th>
  108. <td>
  109. <select name="" id="state" class="form-control">
  110. <option selected="selected" value="">
  111. 请选择
  112. </option>
  113. <option value="0">新工单</option>
  114. <option value="1">待交办</option>
  115. <!-- <option value="10">待审核</option> -->
  116. <option value="2">待查收</option>
  117. <option value="3">
  118. 退回审核中
  119. </option>
  120. <option value="4">办理中</option>
  121. <option value="5">
  122. 延时审核中
  123. </option>
  124. <option value="6">已办理</option>
  125. <!-- <option value="7">已回访</option> -->
  126. <option value="11">
  127. 重办待交办
  128. </option>
  129. <option value="13">重办驳回</option>
  130. <option value="8">重办中</option>
  131. <option value="9">已结案</option>
  132. </select>
  133. </td>
  134. <th>来电类型:</th>
  135. <td>
  136. <select class="form-control Min-width" id="type"></select>
  137. <botton class="btns Seach">搜索</botton>
  138. </td>
  139. </tr>
  140. <tr>
  141. <th>承办单位:</th>
  142. <td style="position: relative">
  143. <div class="inpBox">
  144. <input type="text" class="inps" />
  145. <i class="Cleans fa fa-close"></i>
  146. <i class="xl xl_one"></i>
  147. <div class="addTree xlAdd">
  148. <ul id="addTreeDemo" class="ztree"></ul>
  149. </div>
  150. </div>
  151. <div class="selDpart1">
  152. <ul id="sponsor"></ul>
  153. </div>
  154. </td>
  155. <th>反映类别:</th>
  156. <td style="position: relative;">
  157. <div class="inpBox">
  158. <input type="text" class="inpsReactionCategory" />
  159. <input type="hidden" id="keyid" />
  160. <i class="CleansReactionCategory fa fa-close"></i>
  161. <i class="xlReactionCategory xl_one"></i>
  162. <div class="addTreeReactionCategory xlAddReactionCategory">
  163. <ul id="addTreeDemoReactionCategory" class="ztree"></ul>
  164. </div>
  165. </div>
  166. </td>
  167. <th>是否公开:</th>
  168. <td>
  169. <select id="isopen" class="form-control Min-width" name="select">
  170. <option value="">
  171. 请选择是否公开
  172. </option>
  173. <option value="0">
  174. 未公开
  175. </option>
  176. <option value="1">
  177. 已公开
  178. </option>
  179. </select>
  180. <botton class="btns exportFile">导出</botton>
  181. </td>
  182. </tr>
  183. <tr>
  184. <th>三方通话:</th>
  185. <td>
  186. <select id="threeWayCall" class="form-control" name="select">
  187. <option value="">
  188. 请选择是否三方通话
  189. </option>
  190. <option value="1">
  191. </option>
  192. <option value="0">
  193. </option>
  194. </select>
  195. </td>
  196. <th>分管领导:</th>
  197. <td>
  198. <select id="leaderCharge" class="form-control" name="select">
  199. <option value="">
  200. 请选择
  201. </option>
  202. <option value="省长">
  203. 省长
  204. </option>
  205. <option value="市长">
  206. 市长
  207. </option>
  208. </select>
  209. </td>
  210. <th>查询类型:</th>
  211. <td>
  212. <select id="islike" class="form-control Min-width" name="select">
  213. <option value="1">
  214. 模糊查询
  215. </option>
  216. <option value="0">
  217. 精确查询
  218. </option>
  219. </select>
  220. </td>
  221. </tr>
  222. <tr>
  223. <th>评议方式:</th>
  224. <td>
  225. <select id="commentType" class="form-control" name="select">
  226. <option value="">请选择</option>
  227. <option value="系统自动结案">系统自动结案</option>
  228. <option value="市民评议网站">市民评议网站</option>
  229. <option value="市民评议短信">市民评议短信</option>
  230. </select>
  231. </td>
  232. <th><span class="nameJustified">满意度:</span></th>
  233. <td>
  234. <select id="satisfaction" class="form-control" name="select">
  235. <option value="">请选择</option>
  236. <option value="基本满意">基本满意</option>
  237. <option value="满意">满意</option>
  238. <option value="非常满意">非常满意</option>
  239. <option value="不满意">不满意</option>
  240. <option value="非常不满意">非常不满意</option>
  241. </select>
  242. </td>
  243. <th>评议类型:</th>
  244. <td>
  245. <select id="str_type" class="form-control Min-width" name="select">
  246. <option value="">请选择</option>
  247. <option value="0">网站</option>
  248. <option value="1">短信</option>
  249. </select>
  250. </td>
  251. </tr>
  252. <tr>
  253. <th>评议筛选结果:</th>
  254. <td>
  255. <select id="py_type" class="form-control" name="select">
  256. <option value="">请选择</option>
  257. <option value="1">一次评议筛选结果</option>
  258. <option value="2">二次评议筛选结果</option>
  259. </select>
  260. </td>
  261. </tr>
  262. </table>
  263. </div>
  264. </div>
  265. <div>
  266. <div style="width: 100%; padding: 10px">
  267. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  268. <thead>
  269. <tr>
  270. <th data-formatter="serialNumber" data-align="center">
  271. 序号
  272. </th>
  273. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  274. 工单单号
  275. </th>
  276. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  277. 诉求标题
  278. </th>
  279. <th data-field="DeptName" data-align="center">
  280. 承办单位
  281. </th>
  282. <!-- <th data-field="OtherDeptName" data-align="center">
  283. 协办单位
  284. </th> -->
  285. <th data-field="UserName" data-align="center">
  286. 受理人
  287. </th>
  288. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  289. 办理状态
  290. </th>
  291. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  292. 时限
  293. </th>
  294. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  295. 办理时限
  296. </th>
  297. <th data-field="FilePath" data-formatter="setCode" data-align="center">
  298. 录音
  299. </th>
  300. <th data-field="strWrkOrder_Cst_Ssf_Cd" data-align="center">
  301. 市民满意度
  302. </th>
  303. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  304. 操作
  305. </th>
  306. </tr>
  307. </thead>
  308. <tbody class="list"></tbody>
  309. </table>
  310. </div>
  311. </div>
  312. </div>
  313. </div>
  314. <!--下载框-->
  315. <div class="t-shade lyxz">
  316. <div class="shade_k">
  317. <div class="shade_title">
  318. <span>录音播放与下载<srong class="cknum"></srong></span>
  319. <span class="setwin gbly"><a>x</a></span>
  320. </div>
  321. <div class="shade_content">
  322. <div class="Ly_box audiojs"></div>
  323. </div>
  324. </div>
  325. </div>
  326. <input type="hidden" id="PID" />
  327. <input type="hidden" id="Dpment" />
  328. </div>
  329. <script src="../js/layui/layui.js"></script>
  330. <script src="../js/bootstrap-select.js"></script>
  331. <script src="../css/laydate/laydate.js"></script>
  332. <script src="../My97DatePicker/WdatePicker.js"></script>
  333. <script src="../js/zTree/jquery.ztree.core.js"></script>
  334. <script src="../js/search/screen.js"></script>
  335. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  336. <script>
  337. var wid = helper.request.queryString("wid");
  338. var exportParams; // 导出参数
  339. $(document).ready(function() {
  340. if(wid) {
  341. $("#tel").val(wid);
  342. load();
  343. }
  344. laydate.skin('blue');
  345. laydate({
  346. elem: '#starttime',
  347. event: 'focus',
  348. istime: true,
  349. format: 'YYYY-MM-DD hh:mm:ss'
  350. });
  351. laydate({
  352. elem: '#endtime',
  353. event: 'focus',
  354. istime: true,
  355. format: 'YYYY-MM-DD hh:mm:ss'
  356. });
  357. laydate({
  358. elem: '#dealstarttime',
  359. event: 'focus',
  360. istime: true,
  361. format: 'YYYY-MM-DD hh:mm:ss'
  362. });
  363. laydate({
  364. elem: '#dealstrendtime',
  365. event: 'focus',
  366. istime: true,
  367. format: 'YYYY-MM-DD hh:mm:ss'
  368. });
  369. load();
  370. });
  371. //关闭录音弹出
  372. $(".gbly").click(function() {
  373. $(".lyxz").removeClass("cx");
  374. $("audio")[0].pause();
  375. });
  376. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  377. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  378. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  379. });
  380. //获取查询信息
  381. function load() {
  382. //坐席
  383. var usercodeID = "";
  384. var usercode_ = $("#ZX").val(); //坐席
  385. if(usercode_ != null) {
  386. $(usercode_).each(function(i, n) {
  387. var obj1 = "";
  388. obj1 = n + ",";
  389. usercodeID += obj1;
  390. });
  391. } else {
  392. usercodeID = "";
  393. }
  394. // 调度员
  395. var ddusercodeID = "";
  396. var ddusercode_ = $("#yardman").val(); //坐席
  397. if(ddusercode_ != null) {
  398. $(ddusercode_).each(function(i, n) {
  399. var obj2 = "";
  400. obj2 = n + ",";
  401. ddusercodeID += obj2;
  402. });
  403. } else {
  404. ddusercodeID = "";
  405. }
  406. var zdpy = 0 // 自动评议
  407. var smpy = 0 // 市民评议
  408. if($("#commentType").val() === "系统自动结案") {
  409. zdpy = 1
  410. smpy = 0
  411. } else if($("#commentType").val() === "市民评议网站") {
  412. zdpy = 0
  413. smpy = 1
  414. } else if($("#commentType").val() === "市民评议短信") {
  415. zdpy = 0
  416. smpy = 2
  417. }
  418. //先销毁表格
  419. $("#orderlist").bootstrapTable("destroy");
  420. //初始化表格,动态从服务器加载数据
  421. $("#orderlist").bootstrapTable({
  422. method: "get", //使用get请求到服务器获取数据
  423. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  424. contentType: "application/x-www-form-urlencoded",
  425. striped: true, //表格显示条纹
  426. pagination: true, //启动分页
  427. pageSize: 10, //每页显示的记录数
  428. pageNumber: 1, //当前第几页
  429. pageList: [10, 20, 50, 100], //记录数可选列表
  430. search: false, //是否启用查询
  431. showColumns: false, //显示下拉框勾选要显示的列
  432. showRefresh: false, //显示刷新按钮
  433. sidePagination: "server", //表示服务端请求
  434. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  435. //设置为limit可以获取limit, offset, search, sort, order
  436. queryParamsType: "undefined",
  437. queryParams: function queryParams(params) {
  438. //设置查询参数
  439. //alert(params.pageNumber)
  440. var param = {
  441. page: params.pageNumber,
  442. pagesize: params.pageSize,
  443. workid: $("#wids").val().replace(/\s+/g, ""),
  444. state: $("#state").val(), //=工单状态
  445. type: $("#type").val(), //=工单类型
  446. //bigtype: $("#bigtype").val(), //=大类别
  447. //smalltype: $("#smalltype").val(), //=小类别
  448. key: $("#key").val(), //=关键字
  449. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  450. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  451. usercode: usercodeID, //=坐席工号
  452. ddusercode: ddusercodeID,
  453. keyid: $("#keyid").val(), //=关键词id
  454. source: $("#source").val(), //=来源&
  455. starttime: $("#starttime").val(), //=开始时间
  456. endtime: $("#endtime").val(), //=结束时间
  457. deptid: $("#PID").val(),
  458. type: $("#type").val(),
  459. dealtype: $("#dealtype").val(),
  460. sourcearea: $("#sourceAreas").val(), // 区域
  461. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  462. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  463. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  464. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  465. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  466. isopen: $("#isopen").val(), //是否公开
  467. business: $("#threeWayCall").val(), // 三方通话
  468. splituser: $("#leaderCharge").val(), // 分管领导
  469. islike: $("#islike").val(), // 查询类型
  470. pydt: 1,
  471. zdpy: zdpy, // 自动评议
  472. smpy: smpy, // 市民评议
  473. myd: $("#satisfaction").val(), // 满意度
  474. str_type:$("#str_type").val(), //
  475. pynumber:$("#py_type").val(),
  476. token: $.cookie("token"),
  477. };
  478. // 导出参数
  479. exportParams = param;
  480. return param;
  481. },
  482. onLoadSuccess: function(data) {
  483. //加载成功时执行
  484. // layer.msg("加载成功");
  485. //console.log(data);
  486. },
  487. // responseHandler:function(res){
  488. // return{
  489. // "total":92,
  490. // "rows":res.rows
  491. // }
  492. // },
  493. onLoadError: function() {
  494. //加载失败时执行
  495. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  496. },
  497. });
  498. }
  499. //状态
  500. function States(val, row) {
  501. var html = "";
  502. switch(val + "") {
  503. case "0":
  504. html = "新工单";
  505. if(row.F_IsReturn == 1) {
  506. html = "新工单(回退)";
  507. }
  508. break;
  509. case "1":
  510. html = "待交办";
  511. break;
  512. case "2":
  513. html = '<span style="color:#FF0000;">待查收</span>';
  514. break;
  515. case "3":
  516. html = "退回审核中";
  517. break;
  518. case "4":
  519. html = "办理中";
  520. break;
  521. case "5":
  522. html = "延时审核";
  523. break;
  524. case "6":
  525. if(row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  526. html = "已办未果"
  527. } else {
  528. html = "已办理";
  529. }
  530. break;
  531. case "7":
  532. html = "已回访";
  533. break;
  534. case "8":
  535. html = "重办中";
  536. break;
  537. case "9":
  538. html = "已结案";
  539. break;
  540. case "10":
  541. html = "待审核";
  542. break;
  543. case "11":
  544. html = "重办待交办";
  545. break;
  546. // case '12':
  547. // html = '待审核';
  548. // break;
  549. case "13":
  550. html = "重办驳回";
  551. break;
  552. }
  553. return html;
  554. }
  555. //音频
  556. function setCode(val) {
  557. if(val) {
  558. return(
  559. '<div class="imgs" style="cursor: pointer;">' +
  560. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  561. val +
  562. '" />' +
  563. "</div>"
  564. );
  565. } else {
  566. return "";
  567. }
  568. }
  569. //编号
  570. function serialNumber(val, row, index) {
  571. return index + 1;
  572. }
  573. function GetCont(val) {
  574. if(val) {
  575. var str = "<div ";
  576. if(val.length > 10) {
  577. str = str + ' title="' + val + '" ';
  578. val = val.substr(0, 10) + "...";
  579. }
  580. return str + ">" + val + "</div>";
  581. } else {
  582. return "";
  583. }
  584. }
  585. //操作
  586. function Dispose(val, row) {
  587. var Rows = row.Buttons;
  588. var html = "";
  589. for(var i = 0; i < Rows.length; i++) {
  590. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  591. if(html1) {
  592. html1 = html1.replace("data", val);
  593. html1 = html1.replace("isProtect", row.F_IsProtect);
  594. html1 = html1.replace("row", row.F_MainDeptId);
  595. }
  596. html += html1;
  597. }
  598. return html;
  599. }
  600. //查看详情
  601. function ckxq(str) {
  602. layer.open({
  603. type: 2,
  604. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  605. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  606. title: "工单详情",
  607. area: ["100%", "100%"], //宽高
  608. });
  609. }
  610. //时限
  611. function OverTime(val, row) {
  612. if(val == 1) {
  613. return(
  614. '<div class="" style="cursor: pointer;">' +
  615. '<span class="Greens">' +
  616. row.GapTime +
  617. "</span>" +
  618. "</div>"
  619. );
  620. } else if(val == 2) {
  621. return(
  622. '<div class="" style="cursor: pointer;">' +
  623. '<span class="Yellows">' +
  624. row.GapTime +
  625. "</span>" +
  626. "</div>"
  627. );
  628. } else if(val == 3) {
  629. return(
  630. '<div class="" style="cursor: pointer;">' +
  631. '<span class="Reds">' +
  632. row.GapTime +
  633. "</span>" +
  634. "</div>"
  635. );
  636. }
  637. }
  638. //办理时限
  639. function BanTime(val) {
  640. if(val) {
  641. var time = val.substring(0, val.indexOf(" "));
  642. return(
  643. '<div class="" style="cursor: pointer;">' +
  644. "<span>" +
  645. time +
  646. "</span>" +
  647. "</div>"
  648. );
  649. }
  650. }
  651. //派单
  652. function pd(str) {
  653. layer.open({
  654. type: 2,
  655. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  656. title: "办理工单",
  657. area: ["87%", "80%"], //宽高
  658. });
  659. }
  660. //处理审核
  661. function auditdeal(str) {
  662. layer.open({
  663. type: 2,
  664. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  665. title: "处理审核",
  666. area: ["80%", "80%"], //宽高
  667. });
  668. }
  669. //编辑
  670. function bj(str) {
  671. layer.open({
  672. type: 2,
  673. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  674. title: "编辑工单",
  675. area: ["96%", "80%"], //宽高
  676. });
  677. }
  678. //删除
  679. function move(str) {
  680. layer.confirm(
  681. "确定删除工单?", {
  682. btn: ["是", "否"], //按钮
  683. },
  684. function() {
  685. $.post(
  686. huayi.config.callcenter_url +
  687. "WorkOrder/DelWorkOrder", {
  688. ids: str,
  689. token: $.cookie("token"),
  690. },
  691. function(result) {
  692. result = JSON.parse(result);
  693. if(result.state.toLowerCase() == "success") {
  694. debugger;
  695. layer.msg("删除成功");
  696. $("#orderlist").bootstrapTable("refresh");
  697. }
  698. }
  699. );
  700. }
  701. );
  702. }
  703. //提交
  704. function tj(str) {
  705. layer.confirm(
  706. "确定要提交工单么?", {
  707. btn: ["确定", "取消"], //按钮
  708. },
  709. function() {
  710. //请求后台数据
  711. /*发送请求*/
  712. $.post(
  713. huayi.config.callcenter_url +
  714. "WorkOrder/SubmitWorkOrder", {
  715. ids: str,
  716. token: $.cookie("token"),
  717. },
  718. function(result) {
  719. result = JSON.parse(result);
  720. if(result.state.toLowerCase() == "success") {
  721. layer.msg("提交成功");
  722. $("#orderlist").bootstrapTable("refresh");
  723. //load();
  724. }
  725. }
  726. );
  727. }
  728. );
  729. }
  730. //交办
  731. function jb(str) {
  732. layer.open({
  733. type: 2,
  734. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  735. title: "工单交办",
  736. area: ["87%", "80%"], //宽高
  737. });
  738. }
  739. //领导批示
  740. function lader(str) {
  741. layer.open({
  742. type: 2,
  743. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  744. title: "领导批示",
  745. area: ["60%", "80%"], //宽高
  746. });
  747. }
  748. //市长批示
  749. function city(str) {
  750. layer.open({
  751. type: 2,
  752. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  753. title: "市长批示",
  754. area: ["60%", "80%"], //宽高
  755. });
  756. }
  757. //办理
  758. function bl(str, isProtect) {
  759. layer.open({
  760. type: 2,
  761. content: "../CommonHtml/banli.html?wid=" +
  762. str +
  763. "&isProtect=" +
  764. isProtect, //iframe的url,no代表不显示滚动条
  765. title: "办理工单",
  766. area: ["60%", "80%"], //宽高
  767. });
  768. }
  769. //督办
  770. function Supervision(str) {
  771. layer.open({
  772. type: 2,
  773. content: "../CommonHtml/Supervision_.html?wid=" +
  774. str +
  775. "&type=1", //iframe的url,no代表不显示滚动条
  776. title: "督办",
  777. area: ["60%", "80%"], //宽高
  778. });
  779. }
  780. //督查
  781. function Supervision_(str) {
  782. layer.open({
  783. type: 2,
  784. content: "../CommonHtml/Supervision_.html?wid=" +
  785. str +
  786. "&type=2", //iframe的url,no代表不显示滚动条
  787. title: "监察",
  788. area: ["60%", "80%"], //宽高
  789. });
  790. }
  791. //审核
  792. function audit(str) {
  793. layer.open({
  794. type: 2,
  795. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  796. title: "审核",
  797. area: ["60%", "80%"], //宽高
  798. });
  799. }
  800. //转督办
  801. function zdb(str, row) {
  802. layer.open({
  803. type: 2,
  804. content: "../CommonHtml/superTrunl.html?wid=" +
  805. str +
  806. "&depId=" +
  807. row, //iframe的url,no代表不显示滚动条
  808. title: "督办工单",
  809. area: ["60%", "80%"], //宽高
  810. });
  811. }
  812. //不督办
  813. function ndb(str) {
  814. layer.confirm(
  815. "确定督办吗?", {
  816. btn: ["是", "否"], //按钮
  817. },
  818. function() {
  819. $.post(
  820. huayi.config.callcenter_url +
  821. "WorkOrder/RemindWorkOrder", {
  822. workorderid: str,
  823. type: 1,
  824. state: 2,
  825. token: $.cookie("token"),
  826. },
  827. function(result) {
  828. result = JSON.parse(result);
  829. if(result.state.toLowerCase() == "success") {
  830. layer.msg("操作成功");
  831. //load();
  832. $("#orderlist").bootstrapTable("refresh");
  833. }
  834. }
  835. );
  836. }
  837. );
  838. }
  839. //强制结案
  840. function StrongLawsuit(str) {
  841. layer.open({
  842. type: 2,
  843. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  844. title: "强制结案",
  845. area: ["60%", "80%"], //宽高
  846. });
  847. }
  848. //回退BackDtail
  849. function BackDtail(str) {
  850. layer.open({
  851. type: 2,
  852. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  853. title: "工单督办",
  854. area: ["60%", "80%"], //宽高
  855. });
  856. }
  857. //查收
  858. function cs(str) {
  859. layer.confirm(
  860. "确定要查收?", {
  861. btn: ["是", "否"], //按钮
  862. },
  863. function() {
  864. $.post(
  865. huayi.config.callcenter_url +
  866. "WorkOrder/ReceiveWorkOrder", {
  867. workorderid: str,
  868. token: $.cookie("token"),
  869. },
  870. function(result) {
  871. result = JSON.parse(result);
  872. if(result.state.toLowerCase() == "success") {
  873. layer.msg("查收成功");
  874. //load();
  875. $("#orderlist").bootstrapTable("refresh");
  876. }
  877. }
  878. );
  879. }
  880. );
  881. }
  882. //收回
  883. function sh(str) {
  884. layer.confirm(
  885. "确定要回收?", {
  886. btn: ["是", "否"], //按钮
  887. },
  888. function() {
  889. $.post(
  890. huayi.config.callcenter_url +
  891. "WorkOrder/TakeBackWorkOrder", {
  892. workorderid: str,
  893. token: $.cookie("token"),
  894. },
  895. function(result) {
  896. result = JSON.parse(result);
  897. if(result.state.toLowerCase() == "success") {
  898. layer.msg("回收");
  899. //load();
  900. $("#orderlist").bootstrapTable("refresh");
  901. }
  902. }
  903. );
  904. }
  905. );
  906. }
  907. //强制回收
  908. function recycles() {
  909. layer.confirm("确定要强制退回吗?", {
  910. btn: ["是", "否"], //按钮
  911. });
  912. }
  913. //审核退回申请
  914. function shth(str) {
  915. layer.open({
  916. type: 2,
  917. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  918. title: "审核退回申请",
  919. area: ["60%", "80%"], //宽高
  920. });
  921. }
  922. //申请延时
  923. function ys(str) {
  924. layer.open({
  925. type: 2,
  926. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  927. title: "申请延时",
  928. area: ["60%", "80%"], //宽高
  929. });
  930. }
  931. //审核申请延时
  932. function shys(str) {
  933. layer.open({
  934. type: 2,
  935. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  936. title: "审核延时申请",
  937. area: ["60%", "80%"], //宽高
  938. });
  939. }
  940. //审核
  941. function hf(str) {
  942. layer.open({
  943. type: 2,
  944. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  945. title: "工单审核",
  946. area: ["60%", "80%"], //宽高
  947. });
  948. }
  949. //重办工单
  950. function cb(str) {
  951. layer.open({
  952. type: 2,
  953. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  954. title: "重办工单",
  955. area: ["60%", "80%"], //宽高
  956. });
  957. }
  958. //提交重办
  959. function bhcb(str) {
  960. //回退BackDtail
  961. layer.open({
  962. type: 2,
  963. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  964. title: "驳回重办",
  965. area: ["60%", "80%"], //宽高
  966. });
  967. }
  968. //提交重办
  969. function tjcb(str) {
  970. layer.open({
  971. type: 2,
  972. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  973. title: "提交重办",
  974. area: ["50%", "40%"], //宽高
  975. });
  976. // layer.confirm('确认提交重办吗?', {
  977. // btn: ['是', '否'] //按钮
  978. // }, function () {
  979. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  980. // ids: str,
  981. // "token": $.cookie("token")
  982. // }, function(result) {
  983. // result = JSON.parse(result);
  984. // if(result.state.toLowerCase() == "success") {
  985. // layer.msg("操作成功");
  986. // //load();
  987. // $("#orderlist").bootstrapTable('refresh');
  988. // }
  989. // })
  990. // });
  991. }
  992. //结案
  993. function Lawsuit(str) {
  994. layer.open({
  995. type: 2,
  996. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  997. title: "诉求单结案",
  998. area: ["60%", "80%"], //宽高
  999. });
  1000. }
  1001. //退回
  1002. function returnRedo(str) {
  1003. layer.open({
  1004. type: 2,
  1005. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1006. title: "退回",
  1007. area: ["50%", "40%"], //宽高
  1008. });
  1009. }
  1010. //退回
  1011. function returnAuditor(str) {
  1012. layer.open({
  1013. type: 2,
  1014. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1015. title: "退回",
  1016. area: ["50%", "40%"], //宽高
  1017. });
  1018. }
  1019. //修改
  1020. function editProcessingResult(str) {
  1021. layer.open({
  1022. type: 2,
  1023. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1024. title: "修改",
  1025. area: ["50%", "70%"], //宽高
  1026. });
  1027. }
  1028. //来源
  1029. function LY(obj) {
  1030. obj.empty();
  1031. obj.append(
  1032. '<option selected="selected" value="">请选择</option>'
  1033. );
  1034. $.getJSON(
  1035. huayi.config.callcenter_url +
  1036. "Dictionary/GetDicValueListById", {
  1037. token: $.cookie("token"),
  1038. id: 1,
  1039. },
  1040. function(data) {
  1041. if(data.state.toLowerCase() == "success") {
  1042. var content = data.data;
  1043. $(content).each(function(i, n) {
  1044. $(
  1045. "<option value='" +
  1046. n.F_ValueId +
  1047. "'>" +
  1048. n.F_Value +
  1049. "</option>"
  1050. ).appendTo(obj);
  1051. });
  1052. }
  1053. }
  1054. );
  1055. }
  1056. //类别
  1057. function LB(obj) {
  1058. obj.empty();
  1059. obj.append(
  1060. '<option selected="selected" value="">请选择</option>'
  1061. );
  1062. $.getJSON(
  1063. huayi.config.callcenter_url +
  1064. "Dictionary/GetDicValueListById", {
  1065. token: $.cookie("token"),
  1066. id: 2,
  1067. },
  1068. function(data) {
  1069. if(data.state.toLowerCase() == "success") {
  1070. var content = data.data;
  1071. $(content).each(function(i, n) {
  1072. $(
  1073. "<option value='" +
  1074. n.F_ValueId +
  1075. "'>" +
  1076. n.F_Value +
  1077. "</option>"
  1078. ).appendTo(obj);
  1079. });
  1080. }
  1081. }
  1082. );
  1083. }
  1084. // 主题
  1085. function ZT(obj) {
  1086. obj.empty();
  1087. obj.append(
  1088. '<option selected="selected" value="">请选择</option>'
  1089. );
  1090. $.getJSON(
  1091. huayi.config.callcenter_url +
  1092. "Dictionary/GetDicValueListById", {
  1093. token: $.cookie("token"),
  1094. id: 3,
  1095. },
  1096. function(data) {
  1097. if(data.state.toLowerCase() == "success") {
  1098. var content = data.data;
  1099. $(content).each(function(i, n) {
  1100. $(
  1101. "<option value='" +
  1102. n.F_ValueId +
  1103. "'>" +
  1104. n.F_Value +
  1105. "</option>"
  1106. ).appendTo(obj);
  1107. });
  1108. }
  1109. }
  1110. );
  1111. }
  1112. function tree() {
  1113. $.get(
  1114. huayi.config.callcenter_url + "Department/GetDeptList", {
  1115. token: $.cookie("token"),
  1116. // "pid": pid
  1117. },
  1118. function(result) {
  1119. result = $.parseJSON(result);
  1120. $.fn.zTree.init(
  1121. $("#addTreeDemo"),
  1122. setting1,
  1123. result.data
  1124. ); //实例化树形图
  1125. }
  1126. );
  1127. }
  1128. var setting1 = {
  1129. data: {
  1130. key: {
  1131. name: "F_DeptName",
  1132. },
  1133. simpleData: {
  1134. enable: true,
  1135. idKey: "F_DeptId",
  1136. pIdKey: "F_PartentId",
  1137. rootPId: 0,
  1138. },
  1139. },
  1140. callback: {
  1141. onClick: zTreeOnClick,
  1142. },
  1143. };
  1144. function zTreeOnClick(event, treeId, treeNode) {
  1145. if(treeNode.level >= 1) {
  1146. $(".inps").val(treeNode.F_DeptName);
  1147. $("#PID").val(treeNode.F_DeptId);
  1148. $("#Dpment").val(treeNode.F_DeptId);
  1149. $(".Cleans").show();
  1150. }
  1151. }
  1152. function Close() {
  1153. $(".lyxz").removeClass("cx");
  1154. if($("audio").length > 0) {
  1155. $("audio")[0].pause();
  1156. }
  1157. }
  1158. // 导出文件
  1159. $(".exportFile").click(function() {
  1160. exportParams.isdc = 1;
  1161. exportFileFun("WorkOrder/GetList", exportParams)
  1162. })
  1163. </script>
  1164. </body>
  1165. </html>