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

expiredWorkOrders.html 25KB

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