Keine Beschreibung

UnsuccessfulLevel2.html 49KB

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