Keine Beschreibung

WorkIsproresult.html 50KB

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