济源12345的前端

LeaderDCL.html 36KB

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