Нет описания

commentList.html 34KB

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