Нет описания

LeaderDCL.html 51KB

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