Brak opisu

Lawsuit.html 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  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. position: absolute;
  91. background-color: rgb(255, 255, 255);
  92. box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
  93. margin: 20% auto;
  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. .inpBox {
  134. border: 1px solid #cccccc;
  135. height: 31px;
  136. width: 220px;
  137. display: inline-block;
  138. position: relative;
  139. vertical-align: middle;
  140. position: absolute;
  141. left: 0px;
  142. top: 0px;
  143. z-index: 111;
  144. }
  145. .selDpart1 {
  146. position: absolute;
  147. left: 0px;
  148. top: 30px;
  149. z-index: 11111;
  150. width: 220px;
  151. line-height: 30px;
  152. background: #ffffff;
  153. display: none;
  154. }
  155. #sponsor {
  156. width: 218px;
  157. border: 1px solid #00a1cb;
  158. margin: 0;
  159. padding: 0;
  160. list-style: none;
  161. max-height: 212px;
  162. overflow-x: hidden;
  163. overflow-y: scroll;
  164. }
  165. #sponsor li {
  166. margin: 0;
  167. padding-left: 10px;
  168. width: 220px;
  169. height: 30px;
  170. line-height: 30px;
  171. list-style: none;
  172. }
  173. #sponsor li:hover {
  174. background: #00a1cb;
  175. }
  176. .addTree {
  177. background: #fff;
  178. position: absolute;
  179. width: 100%;
  180. border: 1px solid darkgrey;
  181. right: 0;
  182. top: 29px;
  183. display: none;
  184. z-index: 222;
  185. }
  186. .xl {
  187. display: inline-block;
  188. background: url(../../img/dropDown.png) no-repeat;
  189. height: 100%;
  190. background-position: center center;
  191. width: 20px;
  192. position: absolute;
  193. right: 0;
  194. top: 0px;
  195. /* background-color: #f7bc8b; */
  196. cursor: pointer;
  197. }
  198. .ztree li span {
  199. border: none;
  200. padding: 0;
  201. }
  202. .inps {
  203. width: 217px;
  204. height: 29px;
  205. outline: none;
  206. border: 0;
  207. border-image-width: 0;
  208. padding: 0;
  209. padding-left: 3px;
  210. }
  211. .xl {
  212. display: inline-block;
  213. background: url(../img/dropDown.png) no-repeat;
  214. height: 100%;
  215. background-position: center center;
  216. width: 20px;
  217. position: absolute;
  218. right: 0;
  219. top: 0px;
  220. /* background-color: #f7bc8b; */
  221. cursor: pointer;
  222. }
  223. .Cleans {
  224. display: inline-block;
  225. width: 20px;
  226. position: absolute;
  227. right: 21px;
  228. top: 8px;
  229. display: none;
  230. }
  231. .Min-width {
  232. width: 150px;
  233. }
  234. .btn-default {
  235. background: #ffffff;
  236. color: #000000;
  237. }
  238. </style>
  239. </head>
  240. <body class="gray-bg">
  241. <div class="wrapper wrapper-content animated fadeInRight">
  242. <div class="daoHang clearfix">
  243. <div class="dhLeft">
  244. <sapn>
  245. <i class="syIcon"></i>位置:
  246. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  247. <a href="javaScript:;">工单处理</a>&gt;
  248. <a href="" class="nowPosition">查询工单</a>
  249. </sapn>
  250. </div>
  251. <div class="dhRight">
  252. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  253. </div>
  254. </div>
  255. <div style="padding: 10px" class="tj_content clearFix">
  256. <div style="padding: 10px" class="tj_content clearFix">
  257. <div>
  258. <span>【搜索信息】</span>
  259. <div class="box_content">
  260. <table id="sqzx" style="width: 100%" border="0" cellspacing="0" cellpadding="0">
  261. <tr>
  262. <th>关键字:</th>
  263. <td>
  264. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  265. </td>
  266. <th>事项编号:</th>
  267. <td>
  268. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  269. </td>
  270. <th>时间:</th>
  271. <td>
  272. <input type="text" id="starttime" class="" placeholder="请选择时间" style="height: 32px" />
  273. </td>
  274. <th>工单状态:</th>
  275. <td>
  276. <select name="" id="state" class="select">
  277. <option selected="selected" value="">
  278. 请选择
  279. </option>
  280. <option value="0">新工单</option>
  281. <option value="1">待交办</option>
  282. <option value="10">待审核</option>
  283. <option value="2">待查收</option>
  284. <option value="3">
  285. 退回审核中
  286. </option>
  287. <option value="4">办理中</option>
  288. <option value="5">
  289. 延时审核中
  290. </option>
  291. <option value="6">已办理</option>
  292. <option value="7">已回访</option>
  293. <option value="11">
  294. 重办待交办
  295. </option>
  296. <option value="13">重办驳回</option>
  297. <option value="8">重办中</option>
  298. <option value="9">已结案</option>
  299. </select>
  300. </td>
  301. </tr>
  302. <tr>
  303. <th>工单来源:</th>
  304. <td>
  305. <select class="select_" id="source"></select>
  306. </td>
  307. <th>主题词:</th>
  308. <td>
  309. <select id="keyid" name="" class="select"></select>
  310. </td>
  311. <th>来电号码:</th>
  312. <td>
  313. <input type="text" id="tel" placeholder="请输入来电号码" />
  314. </td>
  315. <th>来电人:</th>
  316. <td>
  317. <input type="text" id="name" class="Min-width" autocomplete="off" />
  318. </td>
  319. </tr>
  320. <tr>
  321. <th>处理类型:</th>
  322. <td>
  323. <select class="select_" id="dealtype">
  324. <option value="">请选择</option>
  325. <option value="0">网络转派</option>
  326. <option value="1">当即办理</option>
  327. </select>
  328. </td>
  329. <th>类型:</th>
  330. <td>
  331. <select class="select_" id="type"></select>
  332. </td>
  333. <th>区域:</th>
  334. <td>
  335. <select class="select_" id="sourceAreas"></select>
  336. </td>
  337. <th>承办单位:</th>
  338. <td style="position: relative">
  339. <div class="inpBox">
  340. <input type="text" class="inps" onkeyup="darptSearch()" />
  341. <i class="Cleans fa fa-close"></i>
  342. <i class="xl xl_one"></i>
  343. <div class="addTree xlAdd">
  344. <ul id="addTreeDemo" class="ztree"></ul>
  345. </div>
  346. </div>
  347. <div class="selDpart1">
  348. <ul id="sponsor"></ul>
  349. </div>
  350. </td>
  351. </tr>
  352. <tr>
  353. <th>坐席:</th>
  354. <td>
  355. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  356. <option value="">请选择坐席</option>
  357. </select>
  358. </td>
  359. <th>审核员:</th>
  360. <td>
  361. <select id="yardman" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  362. <option value="">
  363. 请选择调度员
  364. </option>
  365. </select>
  366. </td>
  367. <td colspan="7" style="text-align: center">
  368. <botton class="btns Seach">搜索</botton>
  369. <botton class="btns Export">导出</botton>
  370. </td>
  371. </tr>
  372. </table>
  373. </div>
  374. </div>
  375. <div>
  376. <div style="width: 100%; padding: 10px">
  377. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  378. <thead>
  379. <tr>
  380. <th data-field="F_WorkOrderId" data-align="center">
  381. 工单单号
  382. </th>
  383. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  384. 诉求标题
  385. </th>
  386. <th data-field="DeptName" data-align="center">
  387. 承办单位
  388. </th>
  389. <th data-field="OtherDeptName" data-align="center">
  390. 协办单位
  391. </th>
  392. <th data-field="UserName" data-align="center">
  393. 受理人
  394. </th>
  395. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  396. 办理状态
  397. </th>
  398. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  399. 时限
  400. </th>
  401. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  402. 办理时限
  403. </th>
  404. <th data-field="FilePath" data-formatter="setCode" data-align="center">
  405. 录音
  406. </th>
  407. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  408. 操作
  409. </th>
  410. </tr>
  411. </thead>
  412. <tbody class="list"></tbody>
  413. </table>
  414. </div>
  415. </div>
  416. </div>
  417. </div>
  418. <!--下载框-->
  419. <div class="t-shade lyxz">
  420. <div class="shade_k">
  421. <div class="shade_title">
  422. <span>录音播放与下载<srong class="cknum"></srong></span>
  423. <span class="setwin gbly"><a>x</a></span>
  424. </div>
  425. <div class="shade_content">
  426. <div class="Ly_box audiojs"></div>
  427. </div>
  428. </div>
  429. </div>
  430. <input type="hidden" id="PID" />
  431. <input type="hidden" id="Dpment" />
  432. </div>
  433. <script src="../js/bootstrap-select.js"></script>
  434. <script src="../js/laydate/laydate.js"></script>
  435. <script src="../My97DatePicker/WdatePicker.js"></script>
  436. <script src="../js/zTree/jquery.ztree.core.js"></script>
  437. <script src="../js/search/screen.js"></script>
  438. <script>
  439. $(document).ready(function() {
  440. var wid = helper.request.queryString("wid");
  441. if(wid) {
  442. $("#tel").val(wid);
  443. load();
  444. }
  445. laydate.render({
  446. elem: "#starttime", //指定元素
  447. range: "~",
  448. });
  449. load();
  450. });
  451. //关闭录音弹出
  452. $(".gbly").click(function() {
  453. $(".lyxz").removeClass("cx");
  454. $("audio")[0].pause();
  455. });
  456. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  457. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  458. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  459. });
  460. //获取查询信息
  461. function load() {
  462. //坐席
  463. var usercodeID = "";
  464. var usercode_ = $("#ZX").val(); //坐席
  465. if(usercode_ != null) {
  466. $(usercode_).each(function(i, n) {
  467. var obj1 = "";
  468. obj1 = n + ",";
  469. usercodeID += obj1;
  470. });
  471. } else {
  472. usercodeID = "";
  473. }
  474. // 调度员
  475. var ddusercodeID = "";
  476. var ddusercode_ = $("#yardman").val(); //坐席
  477. if(ddusercode_ != null) {
  478. $(ddusercode_).each(function(i, n) {
  479. var obj2 = "";
  480. obj2 = n + ",";
  481. ddusercodeID += obj2;
  482. });
  483. } else {
  484. ddusercodeID = "";
  485. }
  486. //先销毁表格
  487. $("#orderlist").bootstrapTable("destroy");
  488. //初始化表格,动态从服务器加载数据
  489. $("#orderlist").bootstrapTable({
  490. method: "get", //使用get请求到服务器获取数据
  491. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  492. contentType: "application/x-www-form-urlencoded",
  493. striped: true, //表格显示条纹
  494. pagination: true, //启动分页
  495. pageSize: 10, //每页显示的记录数
  496. pageNumber: 1, //当前第几页
  497. pageList: [10, 20, 50, 100], //记录数可选列表
  498. search: false, //是否启用查询
  499. showColumns: false, //显示下拉框勾选要显示的列
  500. showRefresh: false, //显示刷新按钮
  501. sidePagination: "server", //表示服务端请求
  502. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  503. //设置为limit可以获取limit, offset, search, sort, order
  504. queryParamsType: "undefined",
  505. queryParams: function queryParams(params) {
  506. //设置查询参数
  507. //alert(params.pageNumber)
  508. var param = {
  509. page: params.pageNumber,
  510. pagesize: params.pageSize,
  511. workid: $("#wids").val(),
  512. state: $("#state").val(), //=工单状态
  513. type: $("#type").val(), //=工单类型
  514. //bigtype: $("#bigtype").val(), //=大类别
  515. //smalltype: $("#smalltype").val(), //=小类别
  516. key: $("#key").val(), //=关键字
  517. tel: $("#tel").val(), //=客户电话
  518. name: $("#name").val(), //=客户名称
  519. usercode: usercodeID, //=坐席工号
  520. ddusercode: ddusercodeID,
  521. keyid: $("#keyid").val(), //=关键词id
  522. source: $("#source").val(), //=来源&
  523. starttime: $("#starttime").val() &&
  524. $("#starttime").val().split(" ~ ")[0], //=开始时间
  525. endtime: $("#starttime").val() &&
  526. $("#starttime").val().split(" ~ ")[1], //=结束时间
  527. deptid: $("#PID").val(),
  528. type: $("#type").val(),
  529. dealtype: $("#dealtype").val(),
  530. sourcearea: $("#sourceAreas").val(), //区域
  531. token: $.cookie("token"),
  532. };
  533. return param;
  534. },
  535. onLoadSuccess: function(data) {
  536. //加载成功时执行
  537. // layer.msg("加载成功");
  538. //console.log(data);
  539. },
  540. onLoadError: function() {
  541. //加载失败时执行
  542. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  543. },
  544. });
  545. }
  546. //状态
  547. function States(val, row) {
  548. var html = "";
  549. switch(val + "") {
  550. case "0":
  551. html = "新工单";
  552. if(row.F_IsReturn == 1) {
  553. html = "新工单(回退)";
  554. }
  555. break;
  556. case "1":
  557. html = "待交办";
  558. break;
  559. case "2":
  560. html = '<span style="color:#FF0000;">待查收</span>';
  561. break;
  562. case "3":
  563. html = "退回审核中";
  564. break;
  565. case "4":
  566. html = "办理中";
  567. break;
  568. case "5":
  569. html = "延时审核";
  570. break;
  571. case "6":
  572. html = "已办理";
  573. break;
  574. case "7":
  575. html = "已回访";
  576. break;
  577. case "8":
  578. html = "重办中";
  579. break;
  580. case "9":
  581. html = "已结案";
  582. break;
  583. case "10":
  584. html = "待审核";
  585. break;
  586. case "11":
  587. html = "重办待交办";
  588. break;
  589. // case '12':
  590. // html = '待审核';
  591. // break;
  592. case "13":
  593. html = "重办驳回";
  594. break;
  595. }
  596. return html;
  597. }
  598. //音频
  599. function setCode(val) {
  600. if(val) {
  601. return(
  602. '<div class="imgs" style="cursor: pointer;">' +
  603. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  604. val +
  605. '" />' +
  606. "</div>"
  607. );
  608. } else {
  609. return "";
  610. }
  611. }
  612. function GetCont(val) {
  613. if(val) {
  614. var str = "<div ";
  615. if(val.length > 10) {
  616. str = str + ' title="' + val + '" ';
  617. val = val.substr(0, 10) + "...";
  618. }
  619. return str + ">" + val + "</div>";
  620. } else {
  621. return "";
  622. }
  623. }
  624. //操作
  625. function Dispose(val, row) {
  626. var Rows = row.Buttons;
  627. var html = "";
  628. for(var i = 0; i < Rows.length; i++) {
  629. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  630. if(html1) {
  631. html1 = html1.replace("data", val);
  632. html1 = html1.replace("isProtect", row.F_IsProtect);
  633. html1 = html1.replace("row", row.F_MainDeptId);
  634. }
  635. html += html1;
  636. }
  637. return html;
  638. }
  639. //查看详情
  640. function ckxq(str) {
  641. layer.open({
  642. type: 2,
  643. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  644. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  645. title: "工单详情",
  646. area: ["100%", "100%"], //宽高
  647. });
  648. }
  649. //时限
  650. function OverTime(val, row) {
  651. if(val == 1) {
  652. return(
  653. '<div class="" style="cursor: pointer;">' +
  654. '<span class="Greens">' +
  655. row.GapTime +
  656. "</span>" +
  657. "</div>"
  658. );
  659. } else if(val == 2) {
  660. return(
  661. '<div class="" style="cursor: pointer;">' +
  662. '<span class="Yellows">' +
  663. row.GapTime +
  664. "</span>" +
  665. "</div>"
  666. );
  667. } else if(val == 3) {
  668. return(
  669. '<div class="" style="cursor: pointer;">' +
  670. '<span class="Reds">' +
  671. row.GapTime +
  672. "</span>" +
  673. "</div>"
  674. );
  675. }
  676. }
  677. //办理时限
  678. function BanTime(val) {
  679. if(val) {
  680. var time = val.substring(0, val.indexOf(" "));
  681. return(
  682. '<div class="" style="cursor: pointer;">' +
  683. "<span>" +
  684. time +
  685. "</span>" +
  686. "</div>"
  687. );
  688. }
  689. }
  690. //派单
  691. function pd(str) {
  692. layer.open({
  693. type: 2,
  694. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  695. title: "办理工单",
  696. area: ["87%", "80%"], //宽高
  697. });
  698. }
  699. //处理审核
  700. function auditdeal(str) {
  701. layer.open({
  702. type: 2,
  703. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  704. title: "处理审核",
  705. area: ["80%", "80%"], //宽高
  706. });
  707. }
  708. //编辑
  709. function bj(str) {
  710. layer.open({
  711. type: 2,
  712. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  713. title: "编辑工单",
  714. area: ["96%", "80%"], //宽高
  715. });
  716. }
  717. //删除
  718. function move(str) {
  719. layer.confirm(
  720. "确定删除工单?", {
  721. btn: ["是", "否"], //按钮
  722. },
  723. function() {
  724. $.post(
  725. huayi.config.callcenter_url +
  726. "WorkOrder/DelWorkOrder", {
  727. ids: str,
  728. token: $.cookie("token"),
  729. },
  730. function(result) {
  731. result = JSON.parse(result);
  732. if(result.state.toLowerCase() == "success") {
  733. debugger;
  734. layer.msg("删除成功");
  735. $("#orderlist").bootstrapTable("refresh");
  736. }
  737. }
  738. );
  739. }
  740. );
  741. }
  742. //提交
  743. function tj(str) {
  744. layer.confirm(
  745. "确定要提交工单么?", {
  746. btn: ["确定", "取消"], //按钮
  747. },
  748. function() {
  749. //请求后台数据
  750. /*发送请求*/
  751. $.post(
  752. huayi.config.callcenter_url +
  753. "WorkOrder/SubmitWorkOrder", {
  754. ids: str,
  755. token: $.cookie("token"),
  756. },
  757. function(result) {
  758. result = JSON.parse(result);
  759. if(result.state.toLowerCase() == "success") {
  760. layer.msg("提交成功");
  761. $("#orderlist").bootstrapTable("refresh");
  762. //load();
  763. }
  764. }
  765. );
  766. }
  767. );
  768. }
  769. //交办
  770. function jb(str) {
  771. layer.open({
  772. type: 2,
  773. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  774. title: "工单交办",
  775. area: ["87%", "80%"], //宽高
  776. });
  777. }
  778. //领导批示
  779. function lader(str) {
  780. layer.open({
  781. type: 2,
  782. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  783. title: "领导批示",
  784. area: ["60%", "80%"], //宽高
  785. });
  786. }
  787. //市长批示
  788. function city(str) {
  789. layer.open({
  790. type: 2,
  791. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  792. title: "市长批示",
  793. area: ["60%", "80%"], //宽高
  794. });
  795. }
  796. //办理
  797. function bl(str, isProtect) {
  798. console.log("isProtect2222", isProtect);
  799. layer.open({
  800. type: 2,
  801. content: "../CommonHtml/banli.html?wid=" +
  802. str +
  803. "&isProtect=" +
  804. isProtect, //iframe的url,no代表不显示滚动条
  805. title: "办理工单",
  806. area: ["60%", "80%"], //宽高
  807. });
  808. }
  809. //督办
  810. function Supervision(str) {
  811. layer.open({
  812. type: 2,
  813. content: "../CommonHtml/Supervision_.html?wid=" +
  814. str +
  815. "&type=1", //iframe的url,no代表不显示滚动条
  816. title: "督办",
  817. area: ["60%", "80%"], //宽高
  818. });
  819. }
  820. //督查
  821. function Supervision_(str) {
  822. layer.open({
  823. type: 2,
  824. content: "../CommonHtml/Supervision_.html?wid=" +
  825. str +
  826. "&type=2", //iframe的url,no代表不显示滚动条
  827. title: "监察",
  828. area: ["60%", "80%"], //宽高
  829. });
  830. }
  831. //审核
  832. function audit(str) {
  833. layer.open({
  834. type: 2,
  835. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  836. title: "审核",
  837. area: ["60%", "80%"], //宽高
  838. });
  839. }
  840. //转督办
  841. function zdb(str, row) {
  842. layer.open({
  843. type: 2,
  844. content: "../CommonHtml/superTrunl.html?wid=" +
  845. str +
  846. "&depId=" +
  847. row, //iframe的url,no代表不显示滚动条
  848. title: "督办工单",
  849. area: ["60%", "80%"], //宽高
  850. });
  851. }
  852. //不督办
  853. function ndb(str) {
  854. layer.confirm(
  855. "确定督办吗?", {
  856. btn: ["是", "否"], //按钮
  857. },
  858. function() {
  859. $.post(
  860. huayi.config.callcenter_url +
  861. "WorkOrder/RemindWorkOrder", {
  862. workorderid: str,
  863. type: 1,
  864. state: 2,
  865. token: $.cookie("token"),
  866. },
  867. function(result) {
  868. result = JSON.parse(result);
  869. if(result.state.toLowerCase() == "success") {
  870. layer.msg("操作成功");
  871. //load();
  872. $("#orderlist").bootstrapTable("refresh");
  873. }
  874. }
  875. );
  876. }
  877. );
  878. }
  879. //强制结案
  880. function StrongLawsuit(str) {
  881. layer.open({
  882. type: 2,
  883. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  884. title: "强制结案",
  885. area: ["60%", "80%"], //宽高
  886. });
  887. }
  888. //回退BackDtail
  889. function BackDtail(str) {
  890. layer.open({
  891. type: 2,
  892. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  893. title: "工单督办",
  894. area: ["60%", "80%"], //宽高
  895. });
  896. }
  897. //查收
  898. function cs(str) {
  899. layer.confirm(
  900. "确定要查收?", {
  901. btn: ["是", "否"], //按钮
  902. },
  903. function() {
  904. $.post(
  905. huayi.config.callcenter_url +
  906. "WorkOrder/ReceiveWorkOrder", {
  907. workorderid: str,
  908. token: $.cookie("token"),
  909. },
  910. function(result) {
  911. result = JSON.parse(result);
  912. if(result.state.toLowerCase() == "success") {
  913. layer.msg("查收成功");
  914. //load();
  915. $("#orderlist").bootstrapTable("refresh");
  916. }
  917. }
  918. );
  919. }
  920. );
  921. }
  922. //收回
  923. function sh(str) {
  924. layer.confirm(
  925. "确定要回收?", {
  926. btn: ["是", "否"], //按钮
  927. },
  928. function() {
  929. $.post(
  930. huayi.config.callcenter_url +
  931. "WorkOrder/TakeBackWorkOrder", {
  932. workorderid: str,
  933. token: $.cookie("token"),
  934. },
  935. function(result) {
  936. result = JSON.parse(result);
  937. if(result.state.toLowerCase() == "success") {
  938. layer.msg("回收");
  939. //load();
  940. $("#orderlist").bootstrapTable("refresh");
  941. }
  942. }
  943. );
  944. }
  945. );
  946. }
  947. //强制回收
  948. function recycles() {
  949. layer.confirm("确定要强制退回吗?", {
  950. btn: ["是", "否"], //按钮
  951. });
  952. }
  953. //审核退回申请
  954. function shth(str) {
  955. layer.open({
  956. type: 2,
  957. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  958. title: "审核退回申请",
  959. area: ["60%", "80%"], //宽高
  960. });
  961. }
  962. //申请延时
  963. function ys(str) {
  964. layer.open({
  965. type: 2,
  966. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  967. title: "申请延时",
  968. area: ["60%", "80%"], //宽高
  969. });
  970. }
  971. //审核申请延时
  972. function shys(str) {
  973. layer.open({
  974. type: 2,
  975. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  976. title: "审核延时申请",
  977. area: ["60%", "80%"], //宽高
  978. });
  979. }
  980. //审核
  981. function hf(str) {
  982. layer.open({
  983. type: 2,
  984. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  985. title: "工单审核",
  986. area: ["60%", "80%"], //宽高
  987. });
  988. }
  989. //重办工单
  990. function cb(str) {
  991. layer.open({
  992. type: 2,
  993. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  994. title: "重办工单",
  995. area: ["60%", "80%"], //宽高
  996. });
  997. }
  998. //提交重办
  999. function bhcb(str) {
  1000. //回退BackDtail
  1001. layer.open({
  1002. type: 2,
  1003. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1004. title: "驳回重办",
  1005. area: ["60%", "80%"], //宽高
  1006. });
  1007. }
  1008. //提交重办
  1009. function tjcb(str) {
  1010. layer.open({
  1011. type: 2,
  1012. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1013. title: "提交重办",
  1014. area: ["50%", "40%"], //宽高
  1015. });
  1016. // layer.confirm('确认提交重办吗?', {
  1017. // btn: ['是', '否'] //按钮
  1018. // }, function () {
  1019. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1020. // ids: str,
  1021. // "token": $.cookie("token")
  1022. // }, function(result) {
  1023. // result = JSON.parse(result);
  1024. // if(result.state.toLowerCase() == "success") {
  1025. // layer.msg("操作成功");
  1026. // //load();
  1027. // $("#orderlist").bootstrapTable('refresh');
  1028. // }
  1029. // })
  1030. // });
  1031. }
  1032. //结案
  1033. function Lawsuit(str) {
  1034. layer.open({
  1035. type: 2,
  1036. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1037. title: "诉求单结案",
  1038. area: ["60%", "80%"], //宽高
  1039. });
  1040. }
  1041. //上传文件
  1042. function upload() {
  1043. if(document.getElementById("upFile").files.length > 0) {
  1044. var formData = new FormData();
  1045. formData.append(
  1046. "upFile",
  1047. document.getElementById("upFile").files[0]
  1048. );
  1049. formData.append("token", $.cookie("token"));
  1050. $.ajax({
  1051. url: huayi.config.callcenter_url +
  1052. "/WorkOrder/UploadFile",
  1053. type: "POST",
  1054. data: formData,
  1055. /**
  1056. *必须false才会自动加上正确的Content-Type
  1057. */
  1058. contentType: false,
  1059. /**
  1060. * 必须false才会避开jQuery对 formdata 的默认处理
  1061. * XMLHttpRequest会对 formdata 进行正确的处理
  1062. */
  1063. processData: false,
  1064. success: function(result) {
  1065. document.getElementById(
  1066. "upFile"
  1067. ).outerHTML = document.getElementById(
  1068. "upFile"
  1069. ).outerHTML;
  1070. $("#upFile").change(function() {
  1071. upload();
  1072. });
  1073. var r = $.parseJSON(result);
  1074. if(r.state.toLowerCase() == "success") {
  1075. $(".fjnr").text(r.data);
  1076. $("#scfj").show();
  1077. }
  1078. },
  1079. });
  1080. } else {
  1081. layer.confirm("请上传文件!", {
  1082. btn: ["确定"],
  1083. });
  1084. }
  1085. }
  1086. //来源
  1087. function LY(obj) {
  1088. obj.empty();
  1089. obj.append(
  1090. '<option selected="selected" value="">请选择</option>'
  1091. );
  1092. $.getJSON(
  1093. huayi.config.callcenter_url +
  1094. "Dictionary/GetDicValueListById", {
  1095. token: $.cookie("token"),
  1096. id: 1,
  1097. },
  1098. function(data) {
  1099. if(data.state.toLowerCase() == "success") {
  1100. var content = data.data;
  1101. $(content).each(function(i, n) {
  1102. $(
  1103. "<option value='" +
  1104. n.F_ValueId +
  1105. "'>" +
  1106. n.F_Value +
  1107. "</option>"
  1108. ).appendTo(obj);
  1109. });
  1110. }
  1111. }
  1112. );
  1113. }
  1114. //类别
  1115. function LB(obj) {
  1116. obj.empty();
  1117. obj.append(
  1118. '<option selected="selected" value="">请选择</option>'
  1119. );
  1120. $.getJSON(
  1121. huayi.config.callcenter_url +
  1122. "Dictionary/GetDicValueListById", {
  1123. token: $.cookie("token"),
  1124. id: 2,
  1125. },
  1126. function(data) {
  1127. if(data.state.toLowerCase() == "success") {
  1128. var content = data.data;
  1129. $(content).each(function(i, n) {
  1130. $(
  1131. "<option value='" +
  1132. n.F_ValueId +
  1133. "'>" +
  1134. n.F_Value +
  1135. "</option>"
  1136. ).appendTo(obj);
  1137. });
  1138. }
  1139. }
  1140. );
  1141. }
  1142. // 主题
  1143. function ZT(obj) {
  1144. obj.empty();
  1145. obj.append(
  1146. '<option selected="selected" value="">请选择</option>'
  1147. );
  1148. $.getJSON(
  1149. huayi.config.callcenter_url +
  1150. "Dictionary/GetDicValueListById", {
  1151. token: $.cookie("token"),
  1152. id: 3,
  1153. },
  1154. function(data) {
  1155. if(data.state.toLowerCase() == "success") {
  1156. var content = data.data;
  1157. $(content).each(function(i, n) {
  1158. $(
  1159. "<option value='" +
  1160. n.F_ValueId +
  1161. "'>" +
  1162. n.F_Value +
  1163. "</option>"
  1164. ).appendTo(obj);
  1165. });
  1166. }
  1167. }
  1168. );
  1169. }
  1170. function tree() {
  1171. $.get(
  1172. huayi.config.callcenter_url + "Department/GetDeptList", {
  1173. token: $.cookie("token"),
  1174. // "pid": pid
  1175. },
  1176. function(result) {
  1177. result = $.parseJSON(result);
  1178. $.fn.zTree.init(
  1179. $("#addTreeDemo"),
  1180. setting1,
  1181. result.data
  1182. ); //实例化树形图
  1183. }
  1184. );
  1185. }
  1186. var setting1 = {
  1187. data: {
  1188. key: {
  1189. name: "F_DeptName",
  1190. },
  1191. simpleData: {
  1192. enable: true,
  1193. idKey: "F_DeptId",
  1194. pIdKey: "F_PartentId",
  1195. rootPId: 0,
  1196. },
  1197. },
  1198. callback: {
  1199. onClick: zTreeOnClick,
  1200. },
  1201. };
  1202. function zTreeOnClick(event, treeId, treeNode) {
  1203. if(treeNode.level >= 2) {
  1204. $(".inps").val(treeNode.F_DeptName);
  1205. $("#PID").val(treeNode.F_DeptId);
  1206. $("#Dpment").val(treeNode.F_DeptId);
  1207. $(".Cleans").show();
  1208. }
  1209. }
  1210. function Close() {
  1211. $(".lyxz").removeClass("cx");
  1212. if($("audio").length > 0) {
  1213. $("audio")[0].pause();
  1214. }
  1215. }
  1216. </script>
  1217. </body>
  1218. </html>