Нет описания

integratedQuery.html 51KB

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