济源12345的前端

LeaderYTH.html 28KB

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