Нет описания

Lawsuit.html 51KB

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