Aucune description

haveAduitMedia.html 46KB

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