Nenhuma Descrição

LeaderDCL.html 45KB

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