12345市长热线标准版-前端

WorkDCCO.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  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. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <style>
  11. #sqzx th {
  12. padding: 5px 8px 5px 0;
  13. text-align: right;
  14. }
  15. .select {
  16. width: 150px;
  17. background-color: #FFF;
  18. background-image: none;
  19. border: 1px solid #ccc;
  20. border-radius: 1px;
  21. color: inherit;
  22. padding: 6px 12px;
  23. }
  24. #sex {
  25. background-color: #FFF;
  26. background-image: none;
  27. border: 1px solid #ccc;
  28. border-radius: 1px;
  29. color: inherit;
  30. padding: 6px 12px;
  31. }
  32. input {
  33. background-color: #FFF;
  34. background-image: none;
  35. border: 1px solid #ccc;
  36. border-radius: 1px;
  37. color: inherit;
  38. padding: 6px 12px;
  39. }
  40. #sqzx td {
  41. padding: 6px 0 5px 10px;
  42. }
  43. .lxr ul li {
  44. float: left;
  45. list-style: none;
  46. width: 30%;
  47. margin-bottom: 5px;
  48. padding-top: 10px;
  49. }
  50. .clearFix:after {
  51. content: "";
  52. display: block;
  53. clear: both;
  54. }
  55. .form-group {
  56. padding-left: 40px;
  57. margin-bottom: 0;
  58. }
  59. textarea {
  60. height: 70px;
  61. border: 1px solid #ccc;
  62. border-radius: 1px;
  63. width: 50%;
  64. resize: none;
  65. }
  66. .textarea_box {
  67. margin-top: 10px;
  68. }
  69. .box_content {
  70. border-bottom: 1px solid #ccc;
  71. }
  72. .tj_content {
  73. border: 1px solid #e6e6e6;
  74. border-radius: 5px;
  75. }
  76. .t-shade {
  77. position: fixed;
  78. top: 0;
  79. left: 0;
  80. width: 100%;
  81. height: 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: 60%;
  89. margin: 10% auto;
  90. background-color: #fff;
  91. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  92. border-radius: 5px;
  93. }
  94. .shade_title {
  95. padding: 0 80px 0 20px;
  96. height: 42px;
  97. line-height: 42px;
  98. border-bottom: 1px solid #eee;
  99. font-size: 16px;
  100. color: #FFFFFF;
  101. overflow: hidden;
  102. background-color: #00a1cb;
  103. border-radius: 2px 2px 0 0;
  104. position: relative;
  105. border-top-left-radius: 5px;
  106. border-top-right-radius: 5px;
  107. }
  108. .cx {
  109. display: block;
  110. }
  111. .setwin {
  112. position: absolute;
  113. right: 15px;
  114. top: 5px;
  115. font-size: 0;
  116. line-height: initial;
  117. }
  118. .setwin a {
  119. position: relative;
  120. width: 16px;
  121. height: 16px;
  122. font-size: 20px;
  123. color: #fff;
  124. }
  125. .xg i {
  126. font-size: 16px;
  127. }
  128. .hidens {
  129. display: none;
  130. }
  131. .Min-width{
  132. width: 150px;
  133. }
  134. .hidens {
  135. display: none;
  136. }
  137. .inpBox {
  138. border: 1px solid #a9a9a9;
  139. height: 27px;
  140. width: 220px;
  141. display: inline-block;
  142. position: relative;
  143. vertical-align: middle;
  144. }
  145. .inps {
  146. width: 217px;
  147. height: 24px;
  148. outline: none;
  149. border: 0;
  150. border-image-width: 0;
  151. padding: 0;
  152. padding-left: 3px;
  153. }
  154. .Cleans{
  155. display: inline-block;
  156. width: 20px;
  157. position: absolute;
  158. right: 21px;
  159. top: 5px;
  160. display: none;
  161. }
  162. </style>
  163. </head>
  164. <body class="gray-bg">
  165. <div class="wrapper wrapper-content animated fadeInRight">
  166. <div class="daoHang clearfix">
  167. <div class="dhLeft">
  168. <sapn>
  169. <i class="syIcon"></i>位置:
  170. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  171. <a href="javaScript:;">业务监督</a>&gt;
  172. <a class="nowPosition">协办待处理工单</a>
  173. </sapn>
  174. </div>
  175. <div class="dhRight">
  176. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  177. </div>
  178. </div>
  179. <div style="padding: 10px;" class="tj_content clearFix">
  180. <div style="padding: 10px;" class="tj_content clearFix">
  181. <div>
  182. <span>【搜索信息】</span>
  183. <div class="box_content">
  184. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  185. <tr>
  186. <th>关键字:</th>
  187. <td>
  188. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  189. </td>
  190. <th>工单号:</th>
  191. <td>
  192. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  193. </td>
  194. <th>时间:</th>
  195. <td colspan="3">
  196. <input type="text" id="starttime" class="laydate-icon Min-width" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon Min-width" style="height: 32px;" />
  197. </td>
  198. </tr>
  199. <tr>
  200. <th>工单来源:</th>
  201. <td>
  202. <select class="select_" id="source">
  203. </select>
  204. </td>
  205. <th>主题词:</th>
  206. <td>
  207. <select id="keyid" name="" class="select"></select>
  208. </td>
  209. <th>坐席:</th>
  210. <td>
  211. <select id="ZX" name="" class="select"></select>
  212. </td>
  213. </tr>
  214. <tr>
  215. <th>投诉电话:</th>
  216. <td>
  217. <input type="text" id="tel" class="Min-width" />
  218. </td>
  219. <th>投诉人:</th>
  220. <td>
  221. <input type="text" id="name" class="Min-width"/>
  222. </td>
  223. <th>类型:</th>
  224. <td>
  225. <select class="select_" id="type">
  226. </select>
  227. </td>
  228. <th></th>
  229. <td style="text-align: center;">
  230. <botton class="btns Seach">搜索</botton>
  231. <!--<botton class="btns ">导出</botton></td>-->
  232. </tr>
  233. </table>
  234. </div>
  235. </div>
  236. <div>
  237. <div style="width: 100%;padding: 10px;">
  238. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  239. <thead>
  240. <tr>
  241. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  242. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  243. <th data-field="DeptName" data-align="center">主办单位</th>
  244. <th data-field="OtherDeptName" data-align="center">协办单位</th>
  245. <th data-field="UserName" data-align="center">受理人</th>
  246. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  247. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  248. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  249. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  250. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  251. </tr>
  252. </thead>
  253. <tbody class="list"></tbody>
  254. </table>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <!--下载框-->
  260. <div class="t-shade lyxz">
  261. <div class="shade_k">
  262. <div class="shade_title">
  263. <span>录音播放与下载<srong class="cknum"></srong></span>
  264. <span class="setwin gbly"><a>x</a></span>
  265. </div>
  266. <div class="shade_content">
  267. <div class="Ly_box audiojs">
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. <input type="hidden" id="PID" />
  273. <input type="hidden" id="Dpment" />
  274. </div>
  275. <script src="../css/laydate/laydate.js"></script>
  276. <script src="../My97DatePicker/WdatePicker.js"></script>
  277. <script src="../js/zTree/jquery.ztree.core.js"></script>
  278. <script>
  279. $(document).ready(function() {
  280. //返回首页
  281. $('#ReIndex').click(function() {
  282. top.home_index();
  283. })
  284. load();
  285. LY($("#source"));
  286. LB($("#type"));
  287. ZT($("#keyid"));
  288. ZX($("#ZX"));
  289. laydate.skin('blue');
  290. laydate({
  291. elem: '#starttime',
  292. event: 'focus'
  293. });
  294. laydate({
  295. elem: '#endtime',
  296. event: 'focus'
  297. });
  298. ///搜素
  299. $(".Seach").click(function() {
  300. load();
  301. });
  302. });
  303. //关闭录音弹出
  304. $(".gbly").click(function() {
  305. $(".lyxz").removeClass("cx");
  306. $('audio')[0].pause();
  307. });
  308. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  309. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  310. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  311. });
  312. //获取查询信息
  313. function load() {
  314. //先销毁表格
  315. $('#orderlist').bootstrapTable('destroy');
  316. //初始化表格,动态从服务器加载数据
  317. $("#orderlist").bootstrapTable({
  318. method: "get", //使用get请求到服务器获取数据
  319. url: huayi.config.callcenter_url + "WorkOrder/GetXBDWDealList", //获取数据的Servlet地址
  320. contentType: "application/x-www-form-urlencoded",
  321. striped: true, //表格显示条纹
  322. pagination: true, //启动分页
  323. pageSize: 10, //每页显示的记录数
  324. pageNumber: 1, //当前第几页
  325. pageList: [10, 20, 50, 100], //记录数可选列表
  326. search: false, //是否启用查询
  327. showColumns: false, //显示下拉框勾选要显示的列
  328. showRefresh: false, //显示刷新按钮
  329. sidePagination: "server", //表示服务端请求
  330. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  331. //设置为limit可以获取limit, offset, search, sort, order
  332. queryParamsType: "undefined",
  333. queryParams: function queryParams(params) { //设置查询参数
  334. var param = {
  335. page: params.pageNumber,
  336. pagesize: params.pageSize,
  337. workid: $("#wids").val(),
  338. state: $("#state").val(), //=工单状态
  339. type: $("#type").val(), //=工单类型
  340. bigtype: $("#bigtype").val(), //=大类别
  341. smalltype: $("#smalltype").val(), //=小类别
  342. key: $("#key").val(), //=关键字
  343. tel: $("#tel").val(), //=客户电话
  344. name: $("#name").val(), //=客户名称
  345. usercode: $("#ZX").val(), //=坐席工号
  346. keyid: $("#keyid").val(), //=关键词id
  347. source: $("#source").val(), //=来源&
  348. starttime: $("#starttime").val(), //=开始时间
  349. endtime: $("#endtime").val(), //=结束时间
  350. deptid:$("#PID").val(),
  351. type:$("#type").val(),
  352. tab: 0,//待处理
  353. token: $.cookie("token")
  354. };
  355. return param;
  356. },
  357. onLoadSuccess: function(data) { //加载成功时执行
  358. // layer.msg("加载成功");
  359. //console.log(data);
  360. },
  361. onLoadError: function() { //加载失败时执行
  362. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  363. }
  364. });
  365. }
  366. //状态
  367. function States(val,row) {
  368. var html = '';
  369. switch(val + '') {
  370. case '0':
  371. html = '新工单';
  372. if(row.F_IsReturn==1){
  373. html = '新工单(回退)';
  374. }
  375. break;
  376. case '1':
  377. html = '待交办';
  378. break;
  379. case '2':
  380. html = '待查收';
  381. break;
  382. case '3':
  383. html = '退回审核中';
  384. break;
  385. case '4':
  386. html = '办理中';
  387. break;
  388. case '5':
  389. html = '延时审核';
  390. break;
  391. case '6':
  392. html = '已办理';
  393. break;
  394. case '7':
  395. html = '已回访';
  396. break;
  397. case '8':
  398. html = '重办中';
  399. break;
  400. case '9':
  401. html = '已结案';
  402. break;
  403. }
  404. return html;
  405. }
  406. //时限
  407. function OverTime(val,row){
  408. if(val==1){
  409. return '<div class="" style="cursor: pointer;">' +
  410. '<span class="Greens">'+row.GapTime+'</span>'+
  411. '</div>';
  412. }else if(val==2){
  413. return '<div class="" style="cursor: pointer;">' +
  414. '<span class="Yellows">'+row.GapTime+'</span>'+
  415. '</div>';
  416. }else if(val==3){
  417. return '<div class="" style="cursor: pointer;">' +
  418. '<span class="Reds">'+row.GapTime+'</span>'+
  419. '</div>';
  420. }
  421. }
  422. //办理时限
  423. function BanTime(val){
  424. if(val){
  425. var time=val.substring(0,val.indexOf(' '));
  426. return '<div class="" style="cursor: pointer;">' +
  427. '<span>'+time+'</span>'+
  428. '</div>';
  429. }
  430. }
  431. //音频
  432. function setCode(val) {
  433. if(val) {
  434. return '<div class="imgs" style="cursor: pointer;">' +
  435. '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  436. '</div>';
  437. } else {
  438. return '';
  439. }
  440. }
  441. //录音
  442. function ck(val) {
  443. var path = $(val).attr("item");
  444. $(".lyxz").addClass("cx");
  445. $(".Ly_box").empty();
  446. $(".down").attr("href", path);
  447. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  448. $('.shade_k').css({
  449. 'top' : $(document).scrollTop() + ($(window).height() - $('.shade_k').height() - 289)/2,
  450. 'left' : ($(window).width()-$('.shade_k').width())/2,
  451. 'position' : 'absolute'
  452. });
  453. }
  454. function GetCont(val) {
  455. if(val) {
  456. var str = '<div '
  457. if(val.length > 10) {
  458. str = str + ' title="' + val + '" ';
  459. val = val.substr(0, 10) + "...";
  460. }
  461. return str + '>' + val + '</div>';
  462. } else {
  463. return '';
  464. }
  465. }
  466. //操作
  467. function Dispose(val, row) {
  468. var Rows = row.Buttons;
  469. var html = '';
  470. for(var i = 0; i < Rows.length; i++) {
  471. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  472. if(html1) {
  473. html1 = html1.replace("data", val);
  474. }
  475. html += html1;
  476. }
  477. return html;
  478. }
  479. //查看详情
  480. function ckxq(str) {
  481. layer.open({
  482. type: 2,
  483. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  484. title: '工单详情',
  485. area: ['85%', '80%'], //宽高
  486. });
  487. }
  488. //编辑
  489. function bj(str) {
  490. layer.open({
  491. type: 2,
  492. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  493. title: '编辑工单',
  494. area: ['96%', '80%'], //宽高
  495. });
  496. }
  497. //删除
  498. function move(str) {
  499. layer.confirm('确定删除工单?', {
  500. btn: ['是', '否'] //按钮
  501. }, function() {
  502. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  503. ids: str,
  504. token: $.cookie("token")
  505. }, function(result) {
  506. result = JSON.parse(result);
  507. if(result.state.toLowerCase() == "success") {
  508. layer.msg("删除成功");
  509. load();
  510. }
  511. })
  512. });
  513. }
  514. //提交
  515. function tj(str) {
  516. layer.confirm('确定要提交工单么?', {
  517. btn: ['确定', '取消'] //按钮
  518. }, function() {
  519. //请求后台数据
  520. /*发送请求*/
  521. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  522. ids: str,
  523. token: $.cookie("token")
  524. }, function(result) {
  525. result = JSON.parse(result);
  526. if(result.state.toLowerCase() == "success") {
  527. layer.msg("提交成功");
  528. load();
  529. }
  530. })
  531. });
  532. }
  533. //交办
  534. function jb(str) {
  535. layer.open({
  536. type: 2,
  537. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  538. title: '工单交办',
  539. area: ['87%', '80%'], //宽高
  540. });
  541. }
  542. //领导批示
  543. function lader(str) {
  544. layer.open({
  545. type: 2,
  546. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  547. title: '领导批示',
  548. area: ['60%', '80%'], //宽高
  549. });
  550. }
  551. //市长批示
  552. function city(str) {
  553. layer.open({
  554. type: 2,
  555. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  556. title: '领导批示',
  557. area: ['60%', '80%'], //宽高
  558. });
  559. }
  560. //办理
  561. function bl(str) {
  562. layer.open({
  563. type: 2,
  564. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  565. title: '办理工单',
  566. area: ['60%', '80%'], //宽高
  567. });
  568. }
  569. //督办
  570. function Supervision(str) {
  571. layer.open({
  572. type: 2,
  573. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  574. title: '督办',
  575. area: ['60%', '80%'], //宽高
  576. });
  577. }
  578. //督查
  579. function Supervision_(str) {
  580. layer.open({
  581. type: 2,
  582. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  583. title: '监察',
  584. area: ['60%', '80%'], //宽高
  585. });
  586. }
  587. //强制结案
  588. function StrongLawsuit(str) {
  589. layer.open({
  590. type: 2,
  591. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  592. title: '强制结案',
  593. area: ['60%', '80%'], //宽高
  594. });
  595. }
  596. //回退BackDtail
  597. function BackDtail(str) {
  598. layer.open({
  599. type: 2,
  600. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  601. title: '工单回退',
  602. area: ['60%', '80%'], //宽高
  603. });
  604. }
  605. //查收
  606. function cs(str) {
  607. layer.confirm('确定要查收?', {
  608. btn: ['是', '否'] //按钮
  609. }, function() {
  610. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  611. workorderid: str,
  612. token: $.cookie("token")
  613. }, function(result) {
  614. result = JSON.parse(result);
  615. if(result.state.toLowerCase() == "success") {
  616. layer.msg("查收成功");
  617. load();
  618. }
  619. })
  620. });
  621. }
  622. //收回
  623. function sh(str) {
  624. layer.confirm('确定要回收?', {
  625. btn: ['是', '否'] //按钮
  626. }, function() {
  627. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  628. workorderid: str,
  629. token: $.cookie("token")
  630. }, function(result) {
  631. result = JSON.parse(result);
  632. if(result.state.toLowerCase() == "success") {
  633. layer.msg("回收");
  634. load();
  635. }
  636. })
  637. });
  638. }
  639. //强制回收
  640. function recycles() {
  641. layer.confirm('确定要强制退回吗?', {
  642. btn: ['是', '否'] //按钮
  643. });
  644. }
  645. //退回申请
  646. function th(str) {
  647. layer.open({
  648. type: 2,
  649. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  650. title: '申请退回工单',
  651. area: ['60%', '80%'], //宽高
  652. });
  653. }
  654. //审核退回申请
  655. function shth(str) {
  656. layer.open({
  657. type: 2,
  658. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  659. title: '审核退回申请',
  660. area: ['60%', '80%'], //宽高
  661. });
  662. }
  663. //办理
  664. // function th(str) {
  665. // layer.open({
  666. // type: 2,
  667. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  668. // title: '办理工单',
  669. // area: ['35%', '30%'], //宽高
  670. // });
  671. // }
  672. //申请延时
  673. function ys(str) {
  674. layer.open({
  675. type: 2,
  676. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  677. title: '申请延时',
  678. area: ['60%', '80%'], //宽高
  679. });
  680. }
  681. //审核申请延时
  682. function shys(str) {
  683. layer.open({
  684. type: 2,
  685. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  686. title: '审核延时申请',
  687. area: ['60%', '80%'], //宽高
  688. });
  689. }
  690. //诉求回访
  691. function hf(str) {
  692. layer.open({
  693. type: 2,
  694. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  695. title: '工单回访',
  696. area: ['60%', '80%'], //宽高
  697. });
  698. }
  699. //重办工单
  700. function cb(str) {
  701. layer.open({
  702. type: 2,
  703. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  704. title: '重办工单',
  705. area: ['60%', '80%'], //宽高
  706. });
  707. }
  708. //结案
  709. function Lawsuit(str) {
  710. layer.open({
  711. type: 2,
  712. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  713. title: '诉求单结案',
  714. area: ['60%', '80%'], //宽高
  715. });
  716. }
  717. $('.Appeal').click(function() {
  718. layer.open({
  719. type: 2,
  720. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  721. title: '新增诉求',
  722. area: ['85%', '80%'], //宽高
  723. });
  724. })
  725. //上传文件
  726. function upload() {
  727. if(document.getElementById("upFile").files.length > 0) {
  728. var formData = new FormData();
  729. formData.append("upFile", document.getElementById("upFile").files[0]);
  730. formData.append("token", $.cookie("token"));
  731. $.ajax({
  732. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  733. type: "POST",
  734. data: formData,
  735. /**
  736. *必须false才会自动加上正确的Content-Type
  737. */
  738. contentType: false,
  739. /**
  740. * 必须false才会避开jQuery对 formdata 的默认处理
  741. * XMLHttpRequest会对 formdata 进行正确的处理
  742. */
  743. processData: false,
  744. success: function(result) {
  745. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  746. $("#upFile").change(function() {
  747. upload();
  748. });
  749. var r = $.parseJSON(result);
  750. if(r.state.toLowerCase() == "success") {
  751. $(".fjnr").text(r.data);
  752. $("#scfj").show();
  753. }
  754. }
  755. });
  756. } else {
  757. layer.confirm('请上传文件!', {
  758. btn: ['确定']
  759. });
  760. }
  761. }
  762. //来源
  763. function LY(obj) {
  764. obj.empty();
  765. obj.append('<option selected="selected" value="">请选择</option>');
  766. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
  767. "token": $.cookie("token"),
  768. id: 1
  769. }, function(data) {
  770. if(data.state.toLowerCase() == "success") {
  771. var content = data.data;
  772. $(content).each(function(i, n) {
  773. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  774. })
  775. }
  776. })
  777. }
  778. //类别
  779. function LB(obj) {
  780. obj.empty();
  781. obj.append('<option selected="selected" value="">请选择</option>');
  782. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
  783. "token": $.cookie("token"),
  784. id: 2
  785. }, function(data) {
  786. if(data.state.toLowerCase() == "success") {
  787. var content = data.data;
  788. $(content).each(function(i, n) {
  789. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  790. })
  791. }
  792. })
  793. }
  794. // 主题
  795. function ZT(obj) {
  796. obj.empty();
  797. obj.append('<option selected="selected" value="">请选择</option>');
  798. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
  799. "token": $.cookie("token"),
  800. id: 3
  801. }, function(data) {
  802. if(data.state.toLowerCase() == "success") {
  803. var content = data.data;
  804. $(content).each(function(i, n) {
  805. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  806. })
  807. }
  808. })
  809. }
  810. ///坐席
  811. function ZX(obj) {
  812. obj.empty();
  813. obj.append('<option selected="selected" value="">请选择</option>');
  814. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  815. "token": $.cookie("token"),
  816. }, function(data) {
  817. if(data.state.toLowerCase() == "success") {
  818. var content = data.data;
  819. $(content).each(function(i, n) {
  820. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
  821. })
  822. }
  823. })
  824. }
  825. </script>
  826. </body>
  827. </html>