Bez popisu

toSupervListMedia.html 42KB

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