No Description

WorkYCS.html 50KB

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