Нет описания

Lawsuit.html 48KB

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