Açıklama Yok

haveBeenReceived.html 36KB

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