Bez popisu

commentList.html 53KB

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