No Description

WorkTHCB.html 46KB

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