Brak opisu

comprehensiveMenu.html 50KB

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