Ei kuvausta

applicationDelayed.html 49KB

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