商丘12345 前端

LeaderYYS.html 27KB

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