Aucune description

WorkYBL.html 50KB

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