Нет описания

UnsuccessfulLevel3.html 49KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368
  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-formatter="View" 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: 3,
  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 View(val, row) {
  639. return '<div class="imgs" ><a class="" index="' + row.CreateUser +
  640. '" onclick= ckxq("' + row.F_WorkOrderId + '") >' + val + '</a></div>';
  641. }
  642. function GetCont(val) {
  643. if (val) {
  644. var str = "<div ";
  645. if (val.length > 10) {
  646. str = str + ' title="' + val + '" ';
  647. val = val.substr(0, 10) + "...";
  648. }
  649. return str + ">" + val + "</div>";
  650. } else {
  651. return "";
  652. }
  653. }
  654. //操作
  655. function Dispose(val, row) {
  656. var Rows = row.Buttons;
  657. var html = ''
  658. for (var i = 0; i < Rows.length; i++) {
  659. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  660. if (html1) {
  661. html1 = html1.replace("data", val);
  662. html1 = html1.replace("isProtect", row.F_IsProtect);
  663. html1 = html1.replace("row", row.F_MainDeptId);
  664. }
  665. html += html1;
  666. }
  667. html += '<a class="xg" onclick="replyUnsuccessful(\'' + row.F_WorkOrderId + '\')" title="追加回复">追加回复</a>';
  668. return html;
  669. }
  670. //查看详情
  671. function ckxq(str) {
  672. layer.open({
  673. type: 2,
  674. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  675. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  676. title: "工单详情",
  677. area: ["100%", "100%"], //宽高
  678. });
  679. }
  680. //时限
  681. function OverTime(val, row) {
  682. if (val == 1) {
  683. return (
  684. '<div class="" style="cursor: pointer;">' +
  685. '<span class="Greens">' +
  686. row.GapTime +
  687. "</span>" +
  688. "</div>"
  689. );
  690. } else if (val == 2) {
  691. return (
  692. '<div class="" style="cursor: pointer;">' +
  693. '<span class="Yellows">' +
  694. row.GapTime +
  695. "</span>" +
  696. "</div>"
  697. );
  698. } else if (val == 3) {
  699. return (
  700. '<div class="" style="cursor: pointer;">' +
  701. '<span class="Reds">' +
  702. row.GapTime +
  703. "</span>" +
  704. "</div>"
  705. );
  706. }
  707. }
  708. //办理时限
  709. function BanTime(val) {
  710. if (val) {
  711. var time = val.substring(0, val.indexOf(" "));
  712. return (
  713. '<div class="" style="cursor: pointer;">' +
  714. "<span>" +
  715. time +
  716. "</span>" +
  717. "</div>"
  718. );
  719. }
  720. }
  721. //派单
  722. function pd(str) {
  723. layer.open({
  724. type: 2,
  725. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  726. title: "办理工单",
  727. area: ["87%", "80%"], //宽高
  728. });
  729. }
  730. //处理审核
  731. function auditdeal(str) {
  732. layer.open({
  733. type: 2,
  734. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  735. title: "处理审核",
  736. area: ["80%", "80%"], //宽高
  737. });
  738. }
  739. //编辑
  740. function bj(str) {
  741. layer.open({
  742. type: 2,
  743. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  744. title: "编辑工单",
  745. area: ["96%", "80%"], //宽高
  746. });
  747. }
  748. //删除
  749. function move(str) {
  750. layer.confirm(
  751. "确定删除工单?", {
  752. btn: ["是", "否"], //按钮
  753. },
  754. function () {
  755. $.post(
  756. huayi.config.callcenter_url +
  757. "WorkOrder/DelWorkOrder", {
  758. ids: str,
  759. token: $.cookie("token"),
  760. },
  761. function (result) {
  762. result = JSON.parse(result);
  763. if (result.state.toLowerCase() == "success") {
  764. debugger;
  765. layer.msg("删除成功");
  766. $("#orderlist").bootstrapTable("refresh");
  767. }
  768. }
  769. );
  770. }
  771. );
  772. }
  773. //提交
  774. function tj(str) {
  775. layer.confirm(
  776. "确定要提交工单么?", {
  777. btn: ["确定", "取消"], //按钮
  778. },
  779. function () {
  780. //请求后台数据
  781. /*发送请求*/
  782. $.post(
  783. huayi.config.callcenter_url +
  784. "WorkOrder/SubmitWorkOrder", {
  785. ids: str,
  786. token: $.cookie("token"),
  787. },
  788. function (result) {
  789. result = JSON.parse(result);
  790. if (result.state.toLowerCase() == "success") {
  791. layer.msg("提交成功");
  792. $("#orderlist").bootstrapTable("refresh");
  793. //load();
  794. }
  795. }
  796. );
  797. }
  798. );
  799. }
  800. //交办
  801. function jb(str) {
  802. layer.open({
  803. type: 2,
  804. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  805. title: "工单交办",
  806. area: ["87%", "80%"], //宽高
  807. });
  808. }
  809. //领导批示
  810. function lader(str) {
  811. layer.open({
  812. type: 2,
  813. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  814. title: "领导批示",
  815. area: ["60%", "80%"], //宽高
  816. });
  817. }
  818. //市长批示
  819. function city(str) {
  820. layer.open({
  821. type: 2,
  822. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  823. title: "市长批示",
  824. area: ["60%", "80%"], //宽高
  825. });
  826. }
  827. //办理
  828. function bl(str, isProtect) {
  829. layer.open({
  830. type: 2,
  831. content: "../CommonHtml/banli.html?wid=" +
  832. str +
  833. "&isProtect=" +
  834. isProtect, //iframe的url,no代表不显示滚动条
  835. title: "办理工单",
  836. area: ["60%", "80%"], //宽高
  837. });
  838. }
  839. //督办
  840. function Supervision(str) {
  841. layer.open({
  842. type: 2,
  843. content: "../CommonHtml/Supervision_.html?wid=" +
  844. str +
  845. "&type=1", //iframe的url,no代表不显示滚动条
  846. title: "督办",
  847. area: ["60%", "80%"], //宽高
  848. });
  849. }
  850. //督查
  851. function Supervision_(str) {
  852. layer.open({
  853. type: 2,
  854. content: "../CommonHtml/Supervision_.html?wid=" +
  855. str +
  856. "&type=2", //iframe的url,no代表不显示滚动条
  857. title: "监察",
  858. area: ["60%", "80%"], //宽高
  859. });
  860. }
  861. //审核
  862. function audit(str) {
  863. layer.open({
  864. type: 2,
  865. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  866. title: "审核",
  867. area: ["60%", "80%"], //宽高
  868. });
  869. }
  870. //转督办
  871. function zdb(str, row) {
  872. layer.open({
  873. type: 2,
  874. content: "../CommonHtml/superTrunl.html?wid=" +
  875. str +
  876. "&depId=" +
  877. row, //iframe的url,no代表不显示滚动条
  878. title: "督办工单",
  879. area: ["60%", "80%"], //宽高
  880. });
  881. }
  882. //不督办
  883. function ndb(str) {
  884. layer.confirm(
  885. "确定督办吗?", {
  886. btn: ["是", "否"], //按钮
  887. },
  888. function () {
  889. $.post(
  890. huayi.config.callcenter_url +
  891. "WorkOrder/RemindWorkOrder", {
  892. workorderid: str,
  893. type: 1,
  894. state: 2,
  895. token: $.cookie("token"),
  896. },
  897. function (result) {
  898. result = JSON.parse(result);
  899. if (result.state.toLowerCase() == "success") {
  900. layer.msg("操作成功");
  901. //load();
  902. $("#orderlist").bootstrapTable("refresh");
  903. }
  904. }
  905. );
  906. }
  907. );
  908. }
  909. //强制结案
  910. function StrongLawsuit(str) {
  911. layer.open({
  912. type: 2,
  913. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  914. title: "强制结案",
  915. area: ["60%", "80%"], //宽高
  916. });
  917. }
  918. //回退BackDtail
  919. function BackDtail(str) {
  920. layer.open({
  921. type: 2,
  922. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  923. title: "工单督办",
  924. area: ["60%", "80%"], //宽高
  925. });
  926. }
  927. //查收
  928. function cs(str) {
  929. layer.confirm(
  930. "确定要查收?", {
  931. btn: ["是", "否"], //按钮
  932. },
  933. function () {
  934. $.post(
  935. huayi.config.callcenter_url +
  936. "WorkOrder/ReceiveWorkOrder", {
  937. workorderid: str,
  938. token: $.cookie("token"),
  939. },
  940. function (result) {
  941. result = JSON.parse(result);
  942. if (result.state.toLowerCase() == "success") {
  943. layer.msg("查收成功");
  944. //load();
  945. $("#orderlist").bootstrapTable("refresh");
  946. }
  947. }
  948. );
  949. }
  950. );
  951. }
  952. //收回
  953. function sh(str) {
  954. layer.confirm(
  955. "确定要回收?", {
  956. btn: ["是", "否"], //按钮
  957. },
  958. function () {
  959. $.post(
  960. huayi.config.callcenter_url +
  961. "WorkOrder/TakeBackWorkOrder", {
  962. workorderid: str,
  963. token: $.cookie("token"),
  964. },
  965. function (result) {
  966. result = JSON.parse(result);
  967. if (result.state.toLowerCase() == "success") {
  968. layer.msg("回收");
  969. //load();
  970. $("#orderlist").bootstrapTable("refresh");
  971. }
  972. }
  973. );
  974. }
  975. );
  976. }
  977. //强制回收
  978. function recycles() {
  979. layer.confirm("确定要强制退回吗?", {
  980. btn: ["是", "否"], //按钮
  981. });
  982. }
  983. //退回申请
  984. function th(str) {
  985. layer.open({
  986. type: 2,
  987. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  988. title: "申请退回工单",
  989. area: ["60%", "80%"], //宽高
  990. });
  991. }
  992. //审核退回申请
  993. function shth(str) {
  994. layer.open({
  995. type: 2,
  996. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  997. title: "审核退回申请",
  998. area: ["60%", "80%"], //宽高
  999. });
  1000. }
  1001. //申请延时
  1002. function ys(str) {
  1003. layer.open({
  1004. type: 2,
  1005. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1006. title: "申请延时",
  1007. area: ["60%", "80%"], //宽高
  1008. });
  1009. }
  1010. //审核申请延时
  1011. function shys(str) {
  1012. layer.open({
  1013. type: 2,
  1014. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1015. title: "审核延时申请",
  1016. area: ["60%", "80%"], //宽高
  1017. });
  1018. }
  1019. //诉求回访
  1020. function hf(str) {
  1021. layer.open({
  1022. type: 2,
  1023. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1024. title: "工单回访",
  1025. area: ["60%", "80%"], //宽高
  1026. });
  1027. }
  1028. //重办工单
  1029. function cb(str) {
  1030. layer.open({
  1031. type: 2,
  1032. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1033. title: "重办工单",
  1034. area: ["60%", "80%"], //宽高
  1035. });
  1036. }
  1037. //驳回重办
  1038. function bhcb(str) {
  1039. //回退BackDtail
  1040. layer.open({
  1041. type: 2,
  1042. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1043. title: "驳回重办",
  1044. area: ["60%", "80%"], //宽高
  1045. });
  1046. }
  1047. //提交重办
  1048. function tjcb(str) {
  1049. layer.open({
  1050. type: 2,
  1051. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1052. title: "提交重办",
  1053. area: ["50%", "40%"], //宽高
  1054. });
  1055. // layer.confirm('确认提交重办吗?', {
  1056. // btn: ['是', '否'] //按钮
  1057. // }, function () {
  1058. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1059. // ids: str,
  1060. // "token": $.cookie("token")
  1061. // }, function(result) {
  1062. // result = JSON.parse(result);
  1063. // if(result.state.toLowerCase() == "success") {
  1064. // layer.msg("操作成功");
  1065. // //load();
  1066. // $("#orderlist").bootstrapTable('refresh');
  1067. // }
  1068. // })
  1069. // });
  1070. }
  1071. //回复
  1072. function replyUnsuccessful(str) {
  1073. //回退BackDtail
  1074. layer.open({
  1075. type: 2,
  1076. content: "../CommonHtml/replyUnsuccessful.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1077. title: "回复",
  1078. area: ["60%", "80%"], //宽高
  1079. });
  1080. }
  1081. //结案
  1082. function Lawsuit(str) {
  1083. layer.open({
  1084. type: 2,
  1085. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1086. title: "诉求单结案",
  1087. area: ["60%", "80%"], //宽高
  1088. });
  1089. }
  1090. //上传文件
  1091. function upload() {
  1092. if (document.getElementById("upFile").files.length > 0) {
  1093. var formData = new FormData();
  1094. formData.append(
  1095. "upFile",
  1096. document.getElementById("upFile").files[0]
  1097. );
  1098. formData.append("token", $.cookie("token"));
  1099. $.ajax({
  1100. url: huayi.config.callcenter_url +
  1101. "/WorkOrder/UploadFile",
  1102. type: "POST",
  1103. data: formData,
  1104. /**
  1105. *必须false才会自动加上正确的Content-Type
  1106. */
  1107. contentType: false,
  1108. /**
  1109. * 必须false才会避开jQuery对 formdata 的默认处理
  1110. * XMLHttpRequest会对 formdata 进行正确的处理
  1111. */
  1112. processData: false,
  1113. success: function (result) {
  1114. document.getElementById(
  1115. "upFile"
  1116. ).outerHTML = document.getElementById(
  1117. "upFile"
  1118. ).outerHTML;
  1119. $("#upFile").change(function () {
  1120. upload();
  1121. });
  1122. var r = $.parseJSON(result);
  1123. if (r.state.toLowerCase() == "success") {
  1124. $(".fjnr").text(r.data);
  1125. $("#scfj").show();
  1126. }
  1127. },
  1128. });
  1129. } else {
  1130. layer.confirm("请上传文件!", {
  1131. btn: ["确定"],
  1132. });
  1133. }
  1134. }
  1135. //来源
  1136. function LY(obj) {
  1137. obj.empty();
  1138. obj.append(
  1139. '<option selected="selected" value="">请选择</option>'
  1140. );
  1141. $.getJSON(
  1142. huayi.config.callcenter_url +
  1143. "Dictionary/GetDicValueListById", {
  1144. token: $.cookie("token"),
  1145. id: 1,
  1146. },
  1147. function (data) {
  1148. if (data.state.toLowerCase() == "success") {
  1149. var content = data.data;
  1150. $(content).each(function (i, n) {
  1151. $(
  1152. "<option value='" +
  1153. n.F_ValueId +
  1154. "'>" +
  1155. n.F_Value +
  1156. "</option>"
  1157. ).appendTo(obj);
  1158. });
  1159. }
  1160. }
  1161. );
  1162. }
  1163. //类别
  1164. function LB(obj) {
  1165. obj.empty();
  1166. obj.append(
  1167. '<option selected="selected" value="">请选择</option>'
  1168. );
  1169. $.getJSON(
  1170. huayi.config.callcenter_url +
  1171. "Dictionary/GetDicValueListById", {
  1172. token: $.cookie("token"),
  1173. id: 2,
  1174. },
  1175. function (data) {
  1176. if (data.state.toLowerCase() == "success") {
  1177. var content = data.data;
  1178. $(content).each(function (i, n) {
  1179. $(
  1180. "<option value='" +
  1181. n.F_ValueId +
  1182. "'>" +
  1183. n.F_Value +
  1184. "</option>"
  1185. ).appendTo(obj);
  1186. });
  1187. }
  1188. }
  1189. );
  1190. }
  1191. // 主题
  1192. function ZT(obj) {
  1193. obj.empty();
  1194. obj.append(
  1195. '<option selected="selected" value="">请选择</option>'
  1196. );
  1197. $.getJSON(
  1198. huayi.config.callcenter_url +
  1199. "Dictionary/GetDicValueListById", {
  1200. token: $.cookie("token"),
  1201. id: 3,
  1202. },
  1203. function (data) {
  1204. if (data.state.toLowerCase() == "success") {
  1205. var content = data.data;
  1206. $(content).each(function (i, n) {
  1207. $(
  1208. "<option value='" +
  1209. n.F_ValueId +
  1210. "'>" +
  1211. n.F_Value +
  1212. "</option>"
  1213. ).appendTo(obj);
  1214. });
  1215. }
  1216. }
  1217. );
  1218. }
  1219. function tree() {
  1220. $.get(
  1221. huayi.config.callcenter_url + "Department/GetDeptList", {
  1222. token: $.cookie("token"),
  1223. // "pid": pid
  1224. },
  1225. function (result) {
  1226. result = $.parseJSON(result);
  1227. $.fn.zTree.init(
  1228. $("#addTreeDemo"),
  1229. setting1,
  1230. result.data
  1231. ); //实例化树形图
  1232. }
  1233. );
  1234. }
  1235. var setting1 = {
  1236. data: {
  1237. key: {
  1238. name: "F_DeptName",
  1239. },
  1240. simpleData: {
  1241. enable: true,
  1242. idKey: "F_DeptId",
  1243. pIdKey: "F_PartentId",
  1244. rootPId: 0,
  1245. },
  1246. },
  1247. callback: {
  1248. onClick: zTreeOnClick,
  1249. },
  1250. };
  1251. function zTreeOnClick(event, treeId, treeNode) {
  1252. if (treeNode.level >= 2) {
  1253. $(".inps").val(treeNode.F_DeptName);
  1254. $("#PID").val(treeNode.F_DeptId);
  1255. $("#Dpment").val(treeNode.F_DeptId);
  1256. $(".Cleans").show();
  1257. }
  1258. }
  1259. function Close() {
  1260. $(".lyxz").removeClass("cx");
  1261. if ($("audio").length > 0) {
  1262. $("audio")[0].pause();
  1263. }
  1264. }
  1265. $(".exportFile").click(function () {
  1266. var usercode_ = $("#ZX").val(); //坐席
  1267. if (usercode_ != null) {
  1268. $(usercode_).each(function (i, n) {
  1269. var obj1 = "";
  1270. obj1 = n + ",";
  1271. usercodeID += obj1;
  1272. });
  1273. } else {
  1274. usercodeID = "";
  1275. }
  1276. // 调度员
  1277. var ddusercodeID = "";
  1278. var ddusercode_ = $("#yardman").val(); //坐席
  1279. if (ddusercode_ != null) {
  1280. $(ddusercode_).each(function (i, n) {
  1281. var obj2 = "";
  1282. obj2 = n + ",";
  1283. ddusercodeID += obj2;
  1284. });
  1285. } else {
  1286. ddusercodeID = "";
  1287. }
  1288. // var isproresult = 2 // 已办未果
  1289. var key = $("#key").val() //=关键字
  1290. var tel = $("#tel").val() //=客户电话
  1291. var name = $("#name").val() //=客户名称
  1292. var usercode = usercodeID //=坐席工号
  1293. var ddusercode = ddusercodeID
  1294. var source = $("#source").val() //=来源&
  1295. var starttime = $("#starttime").val() //=开始时间
  1296. var endtime = $("#endtime").val() //=结束时间
  1297. var deptid = $("#PID").val()
  1298. var type = $("#type").val() //=工单类型
  1299. var dealtype = $("#dealtype").val()
  1300. var sourcearea = $("#sourceAreas").val() //区域
  1301. var workid = $("#wids").val()
  1302. var state = "" //=工单状态
  1303. var tab = 3
  1304. var keyid = $("#keyid").val() //=关键词id
  1305. var url = huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList?token=" + $.cookie("token");
  1306. url += "&workid=" + workid + "&state=" + state + "&tab=" + tab + "&type=" + type + "&key=" + key +
  1307. "&tel=" + tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode +
  1308. "&keyid=" + keyid + "&source=" + source + "&starttime=" + starttime + "&endtime=" + endtime +
  1309. "&deptid=" + deptid + "&sourcearea=" + sourcearea + "&dealtype=" + dealtype + "&isdc=1";
  1310. window.location.href = url;
  1311. })
  1312. </script>
  1313. </body>
  1314. </html>