Нет описания

WorkYBL_zlei.html 39KB

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