No Description

haveBeenReceived.html 49KB

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