暫無描述

LeaderDCL.html 50KB

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