Nav apraksta

WorkIsproresult.html 49KB

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