説明なし

LeaderYJA.html 45KB

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