Brak opisu

Lawsuit.html 32KB

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