Нет описания

WorkDSZB.html 45KB

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