Ei kuvausta

UnsuccessfulLevel2.html 49KB

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