No Description

haveAduitMedia.html 47KB

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