商丘12345 前端

LeaderDB.html 27KB

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