Geen omschrijving

UnsuccessfulLevel2.html 49KB

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