永城市12345 (县级市)- 来源于虞城县12345 - 所有县级统一API

expiredWorkOrders.html 25KB

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