Aucune description

expiredWorkOrdersMedia.html 38KB

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