Sin descripción

haveAduitMedia.html 46KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286
  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-formatter="View" 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 View(val, row) {
  624. return '<div class="imgs" ><a class="" index="' + row.CreateUser +
  625. '" onclick= ckxq("' + row.F_WorkOrderId + '") >' + val + '</a></div>';
  626. }
  627. function GetCont(val) {
  628. if (val) {
  629. var str = "<div ";
  630. if (val.length > 10) {
  631. str = str + ' title="' + val + '" ';
  632. val = val.substr(0, 10) + "...";
  633. }
  634. return str + ">" + val + "</div>";
  635. } else {
  636. return "";
  637. }
  638. }
  639. //操作
  640. function Dispose(val, row) {
  641. var Rows = row.Buttons;
  642. var html = "";
  643. for (var i = 0; i < Rows.length; i++) {
  644. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  645. if (html1) {
  646. html1 = html1.replace("data", val);
  647. html1 = html1.replace("isProtect", row.F_IsProtect);
  648. html1 = html1.replace("row", row.F_MainDeptId);
  649. }
  650. bl
  651. html += html1;
  652. }
  653. return html;
  654. }
  655. //查看详情
  656. function ckxq(str) {
  657. layer.open({
  658. type: 2,
  659. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  660. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  661. title: "工单详情",
  662. area: ["100%", "100%"], //宽高
  663. });
  664. }
  665. //时限
  666. function OverTime(val, row) {
  667. if (val == 1) {
  668. return (
  669. '<div class="" style="cursor: pointer;">' +
  670. '<span class="Greens">' +
  671. row.GapTime +
  672. "</span>" +
  673. "</div>"
  674. );
  675. } else if (val == 2) {
  676. return (
  677. '<div class="" style="cursor: pointer;">' +
  678. '<span class="Yellows">' +
  679. row.GapTime +
  680. "</span>" +
  681. "</div>"
  682. );
  683. } else if (val == 3) {
  684. return (
  685. '<div class="" style="cursor: pointer;">' +
  686. '<span class="Reds">' +
  687. row.GapTime +
  688. "</span>" +
  689. "</div>"
  690. );
  691. }
  692. }
  693. //办理时限
  694. function BanTime(val) {
  695. if (val) {
  696. var time = val.substring(0, val.indexOf(" "));
  697. return (
  698. '<div class="" style="cursor: pointer;">' +
  699. "<span>" +
  700. time +
  701. "</span>" +
  702. "</div>"
  703. );
  704. }
  705. }
  706. //派单
  707. function pd(str) {
  708. layer.open({
  709. type: 2,
  710. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  711. title: "办理工单",
  712. area: ["87%", "80%"], //宽高
  713. });
  714. }
  715. //处理审核
  716. function auditdeal(str) {
  717. layer.open({
  718. type: 2,
  719. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  720. title: "处理审核",
  721. area: ["80%", "80%"], //宽高
  722. });
  723. }
  724. //编辑
  725. function bj(str) {
  726. layer.open({
  727. type: 2,
  728. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  729. title: "编辑工单",
  730. area: ["96%", "80%"], //宽高
  731. });
  732. }
  733. //删除
  734. function move(str) {
  735. layer.confirm(
  736. "确定删除工单?", {
  737. btn: ["是", "否"], //按钮
  738. },
  739. function () {
  740. $.post(
  741. huayi.config.callcenter_url +
  742. "WorkOrder/DelWorkOrder", {
  743. ids: str,
  744. token: $.cookie("token"),
  745. },
  746. function (result) {
  747. result = JSON.parse(result);
  748. if (result.state.toLowerCase() == "success") {
  749. debugger;
  750. layer.msg("删除成功");
  751. $("#orderlist").bootstrapTable("refresh");
  752. }
  753. }
  754. );
  755. }
  756. );
  757. }
  758. //提交
  759. function tj(str) {
  760. layer.confirm(
  761. "确定要提交工单么?", {
  762. btn: ["确定", "取消"], //按钮
  763. },
  764. function () {
  765. //请求后台数据
  766. /*发送请求*/
  767. $.post(
  768. huayi.config.callcenter_url +
  769. "WorkOrder/SubmitWorkOrder", {
  770. ids: str,
  771. token: $.cookie("token"),
  772. },
  773. function (result) {
  774. result = JSON.parse(result);
  775. if (result.state.toLowerCase() == "success") {
  776. layer.msg("提交成功");
  777. $("#orderlist").bootstrapTable("refresh");
  778. //load();
  779. }
  780. }
  781. );
  782. }
  783. );
  784. }
  785. //交办
  786. function jb(str) {
  787. layer.open({
  788. type: 2,
  789. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  790. title: "工单交办",
  791. area: ["87%", "80%"], //宽高
  792. });
  793. }
  794. //领导批示
  795. function lader(str) {
  796. layer.open({
  797. type: 2,
  798. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  799. title: "领导批示",
  800. area: ["60%", "80%"], //宽高
  801. });
  802. }
  803. //市长批示
  804. function city(str) {
  805. layer.open({
  806. type: 2,
  807. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  808. title: "市长批示",
  809. area: ["60%", "80%"], //宽高
  810. });
  811. }
  812. //办理
  813. function bl(str, isProtect) {
  814. console.log("isProtect2222", isProtect);
  815. layer.open({
  816. type: 2,
  817. content: "../CommonHtml/banli.html?wid=" +
  818. str +
  819. "&isProtect=" +
  820. isProtect, //iframe的url,no代表不显示滚动条
  821. title: "办理工单",
  822. area: ["60%", "80%"], //宽高
  823. });
  824. }
  825. //督办
  826. function Supervision(str) {
  827. layer.open({
  828. type: 2,
  829. // content: "../CommonHtml/Supervision_.html?wid=" + str +"&type=1" + "&state=1" + "&pageName=haveAduit", //iframe的url,no代表不显示滚动条
  830. content: "../CommonHtml/Supervision_.html?wid=" + str + "&type=1" +
  831. "&state=1", //iframe的url,no代表不显示滚动条
  832. title: "督办",
  833. area: ["90%", "90%"], //宽高
  834. });
  835. }
  836. //督查
  837. function Supervision_(str) {
  838. layer.open({
  839. type: 2,
  840. content: "../CommonHtml/Supervision_.html?wid=" +
  841. str +
  842. "&type=2", //iframe的url,no代表不显示滚动条
  843. title: "监察",
  844. area: ["60%", "80%"], //宽高
  845. });
  846. }
  847. //审核
  848. function audit(str) {
  849. layer.open({
  850. type: 2,
  851. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  852. title: "审核",
  853. area: ["60%", "80%"], //宽高
  854. });
  855. }
  856. //转督办
  857. function zdb(str, row) {
  858. layer.open({
  859. type: 2,
  860. content: "../CommonHtml/superTrunl.html?wid=" +
  861. str +
  862. "&depId=" +
  863. row, //iframe的url,no代表不显示滚动条
  864. title: "督办工单",
  865. area: ["60%", "80%"], //宽高
  866. });
  867. }
  868. //不督办
  869. function ndb(str) {
  870. layer.open({
  871. type: 2,
  872. state: 2,
  873. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  874. '&state=2', //iframe的url,no代表不显示滚动条
  875. title: '督办',
  876. area: ['60%', '80%'], //宽高
  877. });
  878. }
  879. //强制结案
  880. function StrongLawsuit(str) {
  881. layer.open({
  882. type: 2,
  883. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  884. title: "强制结案",
  885. area: ["60%", "80%"], //宽高
  886. });
  887. }
  888. //回退BackDtail
  889. function BackDtail(str) {
  890. layer.open({
  891. type: 2,
  892. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  893. title: "工单督办",
  894. area: ["60%", "80%"], //宽高
  895. });
  896. }
  897. //查收
  898. function cs(str) {
  899. layer.confirm(
  900. "确定要查收?", {
  901. btn: ["是", "否"], //按钮
  902. },
  903. function () {
  904. $.post(
  905. huayi.config.callcenter_url +
  906. "WorkOrder/ReceiveWorkOrder", {
  907. workorderid: str,
  908. token: $.cookie("token"),
  909. },
  910. function (result) {
  911. result = JSON.parse(result);
  912. if (result.state.toLowerCase() == "success") {
  913. layer.msg("查收成功");
  914. //load();
  915. $("#orderlist").bootstrapTable("refresh");
  916. }
  917. }
  918. );
  919. }
  920. );
  921. }
  922. //收回
  923. function sh(str) {
  924. layer.confirm(
  925. "确定要回收?", {
  926. btn: ["是", "否"], //按钮
  927. },
  928. function () {
  929. $.post(
  930. huayi.config.callcenter_url +
  931. "WorkOrder/TakeBackWorkOrder", {
  932. workorderid: str,
  933. token: $.cookie("token"),
  934. },
  935. function (result) {
  936. result = JSON.parse(result);
  937. if (result.state.toLowerCase() == "success") {
  938. layer.msg("回收");
  939. //load();
  940. $("#orderlist").bootstrapTable("refresh");
  941. }
  942. }
  943. );
  944. }
  945. );
  946. }
  947. //强制回收
  948. function recycles() {
  949. layer.confirm("确定要强制退回吗?", {
  950. btn: ["是", "否"], //按钮
  951. });
  952. }
  953. //审核退回申请
  954. function shth(str) {
  955. layer.open({
  956. type: 2,
  957. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  958. title: "审核退回申请",
  959. area: ["60%", "80%"], //宽高
  960. });
  961. }
  962. //申请延时
  963. function ys(str) {
  964. layer.open({
  965. type: 2,
  966. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  967. title: "申请延时",
  968. area: ["60%", "80%"], //宽高
  969. });
  970. }
  971. //审核申请延时
  972. function shys(str) {
  973. layer.open({
  974. type: 2,
  975. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  976. title: "审核延时申请",
  977. area: ["60%", "80%"], //宽高
  978. });
  979. }
  980. //工单审核
  981. function hf(str) {
  982. layer.open({
  983. type: 2,
  984. //content: "../CommonHtml/Back.html?wid=" + str, //之前的审核
  985. content: "../CommonHtml/auditBack.html?wid=" + str, //
  986. title: "工单审核",
  987. area: ["60%", "80%"], //宽高
  988. });
  989. }
  990. //重办工单
  991. function cb(str) {
  992. layer.open({
  993. type: 2,
  994. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  995. title: "重办工单",
  996. area: ["60%", "80%"], //宽高
  997. });
  998. }
  999. //提交重办
  1000. function bhcb(str) {
  1001. //回退BackDtail
  1002. layer.open({
  1003. type: 2,
  1004. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1005. title: "驳回重办",
  1006. area: ["60%", "80%"], //宽高
  1007. });
  1008. }
  1009. //提交重办
  1010. function tjcb(str) {
  1011. layer.open({
  1012. type: 2,
  1013. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1014. title: "提交重办",
  1015. area: ["50%", "40%"], //宽高
  1016. });
  1017. // layer.confirm('确认提交重办吗?', {
  1018. // btn: ['是', '否'] //按钮
  1019. // }, function () {
  1020. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1021. // ids: str,
  1022. // "token": $.cookie("token")
  1023. // }, function(result) {
  1024. // result = JSON.parse(result);
  1025. // if(result.state.toLowerCase() == "success") {
  1026. // layer.msg("操作成功");
  1027. // //load();
  1028. // $("#orderlist").bootstrapTable('refresh');
  1029. // }
  1030. // })
  1031. // });
  1032. }
  1033. //结案
  1034. function Lawsuit(str) {
  1035. layer.open({
  1036. type: 2,
  1037. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1038. title: "诉求单结案",
  1039. area: ["60%", "80%"], //宽高
  1040. });
  1041. }
  1042. //退回
  1043. function returnRedo(str) {
  1044. layer.open({
  1045. type: 2,
  1046. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1047. title: "退回",
  1048. area: ["50%", "40%"], //宽高
  1049. });
  1050. }
  1051. //退回
  1052. function returnAuditor(str) {
  1053. layer.open({
  1054. type: 2,
  1055. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1056. title: "退回",
  1057. area: ["50%", "40%"], //宽高
  1058. });
  1059. }
  1060. //上传文件
  1061. function upload() {
  1062. if (document.getElementById("upFile").files.length > 0) {
  1063. var formData = new FormData();
  1064. formData.append(
  1065. "upFile",
  1066. document.getElementById("upFile").files[0]
  1067. );
  1068. formData.append("token", $.cookie("token"));
  1069. $.ajax({
  1070. url: huayi.config.callcenter_url +
  1071. "/WorkOrder/UploadFile",
  1072. type: "POST",
  1073. data: formData,
  1074. /**
  1075. *必须false才会自动加上正确的Content-Type
  1076. */
  1077. contentType: false,
  1078. /**
  1079. * 必须false才会避开jQuery对 formdata 的默认处理
  1080. * XMLHttpRequest会对 formdata 进行正确的处理
  1081. */
  1082. processData: false,
  1083. success: function (result) {
  1084. document.getElementById(
  1085. "upFile"
  1086. ).outerHTML = document.getElementById(
  1087. "upFile"
  1088. ).outerHTML;
  1089. $("#upFile").change(function () {
  1090. upload();
  1091. });
  1092. var r = $.parseJSON(result);
  1093. if (r.state.toLowerCase() == "success") {
  1094. $(".fjnr").text(r.data);
  1095. $("#scfj").show();
  1096. }
  1097. },
  1098. });
  1099. } else {
  1100. layer.confirm("请上传文件!", {
  1101. btn: ["确定"],
  1102. });
  1103. }
  1104. }
  1105. //来源
  1106. function LY(obj) {
  1107. obj.empty();
  1108. obj.append(
  1109. '<option selected="selected" value="">请选择</option>'
  1110. );
  1111. $.getJSON(
  1112. huayi.config.callcenter_url +
  1113. "Dictionary/GetDicValueListById", {
  1114. token: $.cookie("token"),
  1115. id: 1,
  1116. },
  1117. function (data) {
  1118. if (data.state.toLowerCase() == "success") {
  1119. var content = data.data;
  1120. $(content).each(function (i, n) {
  1121. $(
  1122. "<option value='" +
  1123. n.F_ValueId +
  1124. "'>" +
  1125. n.F_Value +
  1126. "</option>"
  1127. ).appendTo(obj);
  1128. });
  1129. }
  1130. }
  1131. );
  1132. }
  1133. //类别
  1134. function LB(obj) {
  1135. obj.empty();
  1136. obj.append(
  1137. '<option selected="selected" value="">请选择</option>'
  1138. );
  1139. $.getJSON(
  1140. huayi.config.callcenter_url +
  1141. "Dictionary/GetDicValueListById", {
  1142. token: $.cookie("token"),
  1143. id: 2,
  1144. },
  1145. function (data) {
  1146. if (data.state.toLowerCase() == "success") {
  1147. var content = data.data;
  1148. $(content).each(function (i, n) {
  1149. $(
  1150. "<option value='" +
  1151. n.F_ValueId +
  1152. "'>" +
  1153. n.F_Value +
  1154. "</option>"
  1155. ).appendTo(obj);
  1156. });
  1157. }
  1158. }
  1159. );
  1160. }
  1161. // 主题
  1162. function ZT(obj) {
  1163. obj.empty();
  1164. obj.append(
  1165. '<option selected="selected" value="">请选择</option>'
  1166. );
  1167. $.getJSON(
  1168. huayi.config.callcenter_url +
  1169. "Dictionary/GetDicValueListById", {
  1170. token: $.cookie("token"),
  1171. id: 3,
  1172. },
  1173. function (data) {
  1174. if (data.state.toLowerCase() == "success") {
  1175. var content = data.data;
  1176. $(content).each(function (i, n) {
  1177. $(
  1178. "<option value='" +
  1179. n.F_ValueId +
  1180. "'>" +
  1181. n.F_Value +
  1182. "</option>"
  1183. ).appendTo(obj);
  1184. });
  1185. }
  1186. }
  1187. );
  1188. }
  1189. function tree() {
  1190. $.get(
  1191. huayi.config.callcenter_url + "Department/GetDeptList", {
  1192. token: $.cookie("token"),
  1193. // "pid": pid
  1194. },
  1195. function (result) {
  1196. result = $.parseJSON(result);
  1197. $.fn.zTree.init(
  1198. $("#addTreeDemo"),
  1199. setting1,
  1200. result.data
  1201. ); //实例化树形图
  1202. }
  1203. );
  1204. }
  1205. var setting1 = {
  1206. data: {
  1207. key: {
  1208. name: "F_DeptName",
  1209. },
  1210. simpleData: {
  1211. enable: true,
  1212. idKey: "F_DeptId",
  1213. pIdKey: "F_PartentId",
  1214. rootPId: 0,
  1215. },
  1216. },
  1217. callback: {
  1218. onClick: zTreeOnClick,
  1219. },
  1220. };
  1221. function zTreeOnClick(event, treeId, treeNode) {
  1222. if (treeNode.level >= 1) {
  1223. $(".inps").val(treeNode.F_DeptName);
  1224. $("#PID").val(treeNode.F_DeptId);
  1225. $("#Dpment").val(treeNode.F_DeptId);
  1226. $(".Cleans").show();
  1227. }
  1228. }
  1229. function Close() {
  1230. $(".lyxz").removeClass("cx");
  1231. if ($("audio").length > 0) {
  1232. $("audio")[0].pause();
  1233. }
  1234. }
  1235. </script>
  1236. </body>
  1237. </html>