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

expiredWorkOrders.html 24KB

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