Нет описания

WorkIsproresult.html 56KB

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