Sin descripción

WorkIsproresult.html 35KB

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