Bez popisu

applicationDelayed.html 49KB

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. <div style="width: 100%; padding: 10px">
  389. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  390. data-pagination="true">
  391. <thead>
  392. <tr>
  393. <th data-formatter="serialNumber" data-align="center">
  394. 序号
  395. </th>
  396. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  397. 工单单号
  398. </th>
  399. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  400. 诉求标题
  401. </th>
  402. <th data-field="DeptName" data-align="center">
  403. 承办单位
  404. </th>
  405. <!-- <th data-field="OtherDeptName" data-align="center">
  406. 协办单位
  407. </th> -->
  408. <!-- <th data-field="UserName" data-align="center">
  409. 受理人
  410. </th> -->
  411. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  412. 办理状态
  413. </th>
  414. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  415. 时限
  416. </th>
  417. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  418. 办理时限
  419. </th>
  420. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">
  421. 录音
  422. </th>-->
  423. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  424. 操作
  425. </th>
  426. </tr>
  427. </thead>
  428. <tbody class="list"></tbody>
  429. </table>
  430. </div>
  431. </div>
  432. </div>
  433. </div>
  434. <!--下载框-->
  435. <div class="t-shade lyxz">
  436. <div class="shade_k">
  437. <div class="shade_title">
  438. <span>录音播放与下载<srong class="cknum"></srong></span>
  439. <span class="setwin gbly"><a>x</a></span>
  440. </div>
  441. <div class="shade_content">
  442. <div class="Ly_box audiojs"></div>
  443. </div>
  444. </div>
  445. </div>
  446. <input type="hidden" id="PID" />
  447. <input type="hidden" id="Dpment" />
  448. </div>
  449. <script src="../js/bootstrap-select.js"></script>
  450. <script src="../css/laydate/laydate.js"></script>
  451. <script src="../My97DatePicker/WdatePicker.js"></script>
  452. <script src="../js/zTree/jquery.ztree.core.js"></script>
  453. <script src="../js/search/screen.js"></script>
  454. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  455. <script>
  456. $(document).ready(function () {
  457. var wid = helper.request.queryString("wid");
  458. if (wid) {
  459. $("#tel").val(wid);
  460. load();
  461. }
  462. laydate.skin('blue');
  463. laydate({
  464. elem: '#starttime',
  465. event: 'focus',
  466. istime: true,
  467. format: 'YYYY-MM-DD hh:mm:ss'
  468. });
  469. laydate({
  470. elem: '#endtime',
  471. event: 'focus',
  472. istime: true,
  473. format: 'YYYY-MM-DD hh:mm:ss'
  474. });
  475. load();
  476. });
  477. //关闭录音弹出
  478. $(".gbly").click(function () {
  479. $(".lyxz").removeClass("cx");
  480. $("audio")[0].pause();
  481. });
  482. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  483. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  484. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  485. });
  486. //获取查询信息
  487. function load() {
  488. //坐席
  489. var usercodeID = "";
  490. var usercode_ = $("#ZX").val(); //坐席
  491. if (usercode_ != null) {
  492. $(usercode_).each(function (i, n) {
  493. var obj1 = "";
  494. obj1 = n + ",";
  495. usercodeID += obj1;
  496. });
  497. } else {
  498. usercodeID = "";
  499. }
  500. // 调度员
  501. var ddusercodeID = "";
  502. var ddusercode_ = $("#yardman").val(); //坐席
  503. if (ddusercode_ != null) {
  504. $(ddusercode_).each(function (i, n) {
  505. var obj2 = "";
  506. obj2 = n + ",";
  507. ddusercodeID += obj2;
  508. });
  509. } else {
  510. ddusercodeID = "";
  511. }
  512. //先销毁表格
  513. $("#orderlist").bootstrapTable("destroy");
  514. //初始化表格,动态从服务器加载数据
  515. $("#orderlist").bootstrapTable({
  516. method: "get", //使用get请求到服务器获取数据
  517. url: huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList", //获取数据的Servlet地址
  518. contentType: "application/x-www-form-urlencoded",
  519. striped: true, //表格显示条纹
  520. pagination: true, //启动分页
  521. pageSize: 10, //每页显示的记录数
  522. pageNumber: 1, //当前第几页
  523. pageList: [10, 20, 50, 100], //记录数可选列表
  524. search: false, //是否启用查询
  525. showColumns: false, //显示下拉框勾选要显示的列
  526. showRefresh: false, //显示刷新按钮
  527. sidePagination: "server", //表示服务端请求
  528. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  529. //设置为limit可以获取limit, offset, search, sort, order
  530. queryParamsType: "undefined",
  531. queryParams: function queryParams(params) {
  532. //设置查询参数
  533. //alert(params.pageNumber)
  534. var param = {
  535. page: params.pageNumber,
  536. pagesize: params.pageSize,
  537. // isproresult: 2, // 已办未果
  538. workid: $("#wids").val(),
  539. state: "", //=工单状态
  540. type: $("#type").val(), //=工单类型
  541. //bigtype: $("#bigtype").val(), //=大类别
  542. //smalltype: $("#smalltype").val(), //=小类别
  543. key: $("#key").val(), //=关键字
  544. tel: $("#tel").val(), //=客户电话
  545. name: $("#name").val(), //=客户名称
  546. usercode: usercodeID, //=坐席工号
  547. ddusercode: ddusercodeID,
  548. keyid: $("#keyid").val(), //=关键词id
  549. source: $("#source").val(), //=来源&
  550. starttime: $("#starttime").val(), //=开始时间
  551. endtime: $("#endtime").val(), //=结束时间
  552. deptid: $("#PID").val(),
  553. type: $("#type").val(),
  554. tab: 5,
  555. dealtype: $("#dealtype").val(),
  556. sourcearea: $("#sourceAreas").val(), //区域
  557. token: $.cookie("token"),
  558. };
  559. return param;
  560. },
  561. onLoadSuccess: function (data) {
  562. //加载成功时执行
  563. // layer.msg("加载成功");
  564. //console.log(data);
  565. },
  566. onLoadError: function () {
  567. //加载失败时执行
  568. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  569. },
  570. });
  571. }
  572. //状态
  573. function States(val, row) {
  574. var html = "";
  575. switch (val + "") {
  576. case "0":
  577. html = "新工单";
  578. if (row.F_IsReturn == 1) {
  579. html = "新工单(回退)";
  580. }
  581. break;
  582. case "1":
  583. html = "待交办";
  584. break;
  585. case "2":
  586. html = '<span style="color:#FF0000;">待查收</span>';
  587. break;
  588. case "3":
  589. html = "退回审核中";
  590. break;
  591. case "4":
  592. html = "办理中";
  593. break;
  594. case "5":
  595. html = "延时审核";
  596. break;
  597. case "6":
  598. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  599. html = "已办未果"
  600. } else {
  601. html = "已办理";
  602. }
  603. break;
  604. case "7":
  605. html = "已回访";
  606. break;
  607. case "8":
  608. html = "重办中";
  609. break;
  610. case "9":
  611. html = "已结案";
  612. break;
  613. case "10":
  614. html = "待审核";
  615. break;
  616. case "11":
  617. html = "重办待交办";
  618. break;
  619. // case '12':
  620. // html = '待审核';
  621. // break;
  622. case "13":
  623. html = "重办驳回";
  624. break;
  625. }
  626. return html;
  627. }
  628. //音频
  629. function setCode(val) {
  630. if (val) {
  631. return (
  632. '<div class="imgs" style="cursor: pointer;">' +
  633. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  634. val +
  635. '" />' +
  636. "</div>"
  637. );
  638. } else {
  639. return "";
  640. }
  641. }
  642. function GetCont(val) {
  643. if (val) {
  644. var str = "<div ";
  645. if (val.length > 10) {
  646. str = str + ' title="' + val + '" ';
  647. val = val.substr(0, 10) + "...";
  648. }
  649. return str + ">" + val + "</div>";
  650. } else {
  651. return "";
  652. }
  653. }
  654. //编号
  655. function serialNumber(val, row, index) {
  656. return index + 1;
  657. }
  658. //操作
  659. function Dispose(val, row) {
  660. var Rows = row.Buttons;
  661. var html = ''
  662. for (var i = 0; i < Rows.length; i++) {
  663. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  664. if (html1) {
  665. html1 = html1.replace("data", val);
  666. html1 = html1.replace("isProtect", row.F_IsProtect);
  667. html1 = html1.replace("row", row.F_MainDeptId);
  668. }
  669. html += html1;
  670. }
  671. // html += '<a class="xg" onclick="replyUnsuccessful(\'' + row.F_WorkOrderId + '\')" title="回复">回复</a>';
  672. return html;
  673. }
  674. //查看详情
  675. function ckxq(str) {
  676. layer.open({
  677. type: 2,
  678. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  679. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  680. title: "工单详情",
  681. area: ["100%", "100%"], //宽高
  682. });
  683. }
  684. //时限
  685. function OverTime(val, row) {
  686. if (val == 1) {
  687. return (
  688. '<div class="" style="cursor: pointer;">' +
  689. '<span class="Greens">' +
  690. row.GapTime +
  691. "</span>" +
  692. "</div>"
  693. );
  694. } else if (val == 2) {
  695. return (
  696. '<div class="" style="cursor: pointer;">' +
  697. '<span class="Yellows">' +
  698. row.GapTime +
  699. "</span>" +
  700. "</div>"
  701. );
  702. } else if (val == 3) {
  703. return (
  704. '<div class="" style="cursor: pointer;">' +
  705. '<span class="Reds">' +
  706. row.GapTime +
  707. "</span>" +
  708. "</div>"
  709. );
  710. }
  711. }
  712. //办理时限
  713. function BanTime(val) {
  714. if (val) {
  715. var time = val.substring(0, val.indexOf(" "));
  716. return (
  717. '<div class="" style="cursor: pointer;">' +
  718. "<span>" +
  719. time +
  720. "</span>" +
  721. "</div>"
  722. );
  723. }
  724. }
  725. //派单
  726. function pd(str) {
  727. layer.open({
  728. type: 2,
  729. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  730. title: "办理工单",
  731. area: ["87%", "80%"], //宽高
  732. });
  733. }
  734. //处理审核
  735. function auditdeal(str) {
  736. layer.open({
  737. type: 2,
  738. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  739. title: "处理审核",
  740. area: ["80%", "80%"], //宽高
  741. });
  742. }
  743. //编辑
  744. function bj(str) {
  745. layer.open({
  746. type: 2,
  747. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  748. title: "编辑工单",
  749. area: ["96%", "80%"], //宽高
  750. });
  751. }
  752. //删除
  753. function move(str) {
  754. layer.confirm(
  755. "确定删除工单?", {
  756. btn: ["是", "否"], //按钮
  757. },
  758. function () {
  759. $.post(
  760. huayi.config.callcenter_url +
  761. "WorkOrder/DelWorkOrder", {
  762. ids: str,
  763. token: $.cookie("token"),
  764. },
  765. function (result) {
  766. result = JSON.parse(result);
  767. if (result.state.toLowerCase() == "success") {
  768. debugger;
  769. layer.msg("删除成功");
  770. $("#orderlist").bootstrapTable("refresh");
  771. }
  772. }
  773. );
  774. }
  775. );
  776. }
  777. //提交
  778. function tj(str) {
  779. layer.confirm(
  780. "确定要提交工单么?", {
  781. btn: ["确定", "取消"], //按钮
  782. },
  783. function () {
  784. //请求后台数据
  785. /*发送请求*/
  786. $.post(
  787. huayi.config.callcenter_url +
  788. "WorkOrder/SubmitWorkOrder", {
  789. ids: str,
  790. token: $.cookie("token"),
  791. },
  792. function (result) {
  793. result = JSON.parse(result);
  794. if (result.state.toLowerCase() == "success") {
  795. layer.msg("提交成功");
  796. $("#orderlist").bootstrapTable("refresh");
  797. //load();
  798. }
  799. }
  800. );
  801. }
  802. );
  803. }
  804. //交办
  805. function jb(str) {
  806. layer.open({
  807. type: 2,
  808. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  809. title: "工单交办",
  810. area: ["87%", "80%"], //宽高
  811. });
  812. }
  813. //领导批示
  814. function lader(str) {
  815. layer.open({
  816. type: 2,
  817. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  818. title: "领导批示",
  819. area: ["60%", "80%"], //宽高
  820. });
  821. }
  822. //市长批示
  823. function city(str) {
  824. layer.open({
  825. type: 2,
  826. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  827. title: "市长批示",
  828. area: ["60%", "80%"], //宽高
  829. });
  830. }
  831. //办理
  832. function bl(str, isProtect) {
  833. layer.open({
  834. type: 2,
  835. content: "../CommonHtml/banli.html?wid=" +
  836. str +
  837. "&isProtect=" +
  838. isProtect, //iframe的url,no代表不显示滚动条
  839. title: "办理工单",
  840. area: ["60%", "80%"], //宽高
  841. });
  842. }
  843. //督办
  844. function Supervision(str) {
  845. layer.open({
  846. type: 2,
  847. content: "../CommonHtml/Supervision_.html?wid=" +
  848. str +
  849. "&type=1", //iframe的url,no代表不显示滚动条
  850. title: "督办",
  851. area: ["60%", "80%"], //宽高
  852. });
  853. }
  854. //督查
  855. function Supervision_(str) {
  856. layer.open({
  857. type: 2,
  858. content: "../CommonHtml/Supervision_.html?wid=" +
  859. str +
  860. "&type=2", //iframe的url,no代表不显示滚动条
  861. title: "监察",
  862. area: ["60%", "80%"], //宽高
  863. });
  864. }
  865. //审核
  866. function audit(str) {
  867. layer.open({
  868. type: 2,
  869. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  870. title: "审核",
  871. area: ["60%", "80%"], //宽高
  872. });
  873. }
  874. //转督办
  875. function zdb(str, row) {
  876. layer.open({
  877. type: 2,
  878. content: "../CommonHtml/superTrunl.html?wid=" +
  879. str +
  880. "&depId=" +
  881. row, //iframe的url,no代表不显示滚动条
  882. title: "督办工单",
  883. area: ["60%", "80%"], //宽高
  884. });
  885. }
  886. //不督办
  887. function ndb(str) {
  888. layer.confirm(
  889. "确定督办吗?", {
  890. btn: ["是", "否"], //按钮
  891. },
  892. function () {
  893. $.post(
  894. huayi.config.callcenter_url +
  895. "WorkOrder/RemindWorkOrder", {
  896. workorderid: str,
  897. type: 1,
  898. state: 2,
  899. token: $.cookie("token"),
  900. },
  901. function (result) {
  902. result = JSON.parse(result);
  903. if (result.state.toLowerCase() == "success") {
  904. layer.msg("操作成功");
  905. //load();
  906. $("#orderlist").bootstrapTable("refresh");
  907. }
  908. }
  909. );
  910. }
  911. );
  912. }
  913. //强制结案
  914. function StrongLawsuit(str) {
  915. layer.open({
  916. type: 2,
  917. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  918. title: "强制结案",
  919. area: ["60%", "80%"], //宽高
  920. });
  921. }
  922. //回退BackDtail
  923. function BackDtail(str) {
  924. layer.open({
  925. type: 2,
  926. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  927. title: "工单督办",
  928. area: ["60%", "80%"], //宽高
  929. });
  930. }
  931. //查收
  932. function cs(str) {
  933. layer.confirm(
  934. "确定要查收?", {
  935. btn: ["是", "否"], //按钮
  936. },
  937. function () {
  938. $.post(
  939. huayi.config.callcenter_url +
  940. "WorkOrder/ReceiveWorkOrder", {
  941. workorderid: str,
  942. token: $.cookie("token"),
  943. },
  944. function (result) {
  945. result = JSON.parse(result);
  946. if (result.state.toLowerCase() == "success") {
  947. layer.msg("查收成功");
  948. //load();
  949. $("#orderlist").bootstrapTable("refresh");
  950. }
  951. }
  952. );
  953. }
  954. );
  955. }
  956. //收回
  957. function sh(str) {
  958. layer.confirm(
  959. "确定要回收?", {
  960. btn: ["是", "否"], //按钮
  961. },
  962. function () {
  963. $.post(
  964. huayi.config.callcenter_url +
  965. "WorkOrder/TakeBackWorkOrder", {
  966. workorderid: str,
  967. token: $.cookie("token"),
  968. },
  969. function (result) {
  970. result = JSON.parse(result);
  971. if (result.state.toLowerCase() == "success") {
  972. layer.msg("回收");
  973. //load();
  974. $("#orderlist").bootstrapTable("refresh");
  975. }
  976. }
  977. );
  978. }
  979. );
  980. }
  981. //强制回收
  982. function recycles() {
  983. layer.confirm("确定要强制退回吗?", {
  984. btn: ["是", "否"], //按钮
  985. });
  986. }
  987. //退回申请
  988. function th(str) {
  989. layer.open({
  990. type: 2,
  991. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  992. title: "申请退回工单",
  993. area: ["60%", "80%"], //宽高
  994. });
  995. }
  996. //审核退回申请
  997. function shth(str) {
  998. layer.open({
  999. type: 2,
  1000. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1001. title: "审核退回申请",
  1002. area: ["60%", "80%"], //宽高
  1003. });
  1004. }
  1005. //申请延时
  1006. function ys(str) {
  1007. layer.open({
  1008. type: 2,
  1009. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1010. title: "申请延时",
  1011. area: ["60%", "80%"], //宽高
  1012. });
  1013. }
  1014. //审核申请延时
  1015. function shys(str) {
  1016. layer.open({
  1017. type: 2,
  1018. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1019. title: "审核延时申请",
  1020. area: ["60%", "80%"], //宽高
  1021. });
  1022. }
  1023. //诉求回访
  1024. function hf(str) {
  1025. layer.open({
  1026. type: 2,
  1027. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1028. title: "工单回访",
  1029. area: ["60%", "80%"], //宽高
  1030. });
  1031. }
  1032. //重办工单
  1033. function cb(str) {
  1034. layer.open({
  1035. type: 2,
  1036. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1037. title: "重办工单",
  1038. area: ["60%", "80%"], //宽高
  1039. });
  1040. }
  1041. //驳回重办
  1042. function bhcb(str) {
  1043. //回退BackDtail
  1044. layer.open({
  1045. type: 2,
  1046. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1047. title: "驳回重办",
  1048. area: ["60%", "80%"], //宽高
  1049. });
  1050. }
  1051. //提交重办
  1052. function tjcb(str) {
  1053. layer.open({
  1054. type: 2,
  1055. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1056. title: "提交重办",
  1057. area: ["50%", "40%"], //宽高
  1058. });
  1059. // layer.confirm('确认提交重办吗?', {
  1060. // btn: ['是', '否'] //按钮
  1061. // }, function () {
  1062. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1063. // ids: str,
  1064. // "token": $.cookie("token")
  1065. // }, function(result) {
  1066. // result = JSON.parse(result);
  1067. // if(result.state.toLowerCase() == "success") {
  1068. // layer.msg("操作成功");
  1069. // //load();
  1070. // $("#orderlist").bootstrapTable('refresh');
  1071. // }
  1072. // })
  1073. // });
  1074. }
  1075. //回复
  1076. function replyUnsuccessful(str) {
  1077. //回退BackDtail
  1078. layer.open({
  1079. type: 2,
  1080. content: "../CommonHtml/replyUnsuccessful.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1081. title: "回复",
  1082. area: ["60%", "80%"], //宽高
  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 = 2 // 已办未果
  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 = "" //=工单状态
  1307. var tab = 5
  1308. var keyid = $("#keyid").val() //=关键词id
  1309. var url = huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList?token=" + $.cookie("token");
  1310. url += "&workid=" + workid + "&state=" + state + "&tab=" + tab + "&type=" + type + "&key=" + key +
  1311. "&tel=" + tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode +
  1312. "&keyid=" + keyid + "&source=" + source + "&starttime=" + starttime + "&endtime=" + endtime +
  1313. "&deptid=" + deptid + "&sourcearea=" + sourcearea + "&dealtype=" + dealtype + "&isdc=1";
  1314. window.location.href = url;
  1315. })
  1316. </script>
  1317. </body>
  1318. </html>