暫無描述

LawsuitMedia.html 48KB

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