县级12345前端

WorkDCCO.html 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  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="daoHang clearfix">
  166. <div class="dhLeft">
  167. <sapn>
  168. <i class="syIcon"></i>位置:
  169. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  170. <a href="javaScript:;">业务监督</a>&gt;
  171. <a class="nowPosition">协办待处理工单</a>
  172. </sapn>
  173. </div>
  174. <div class="dhRight">
  175. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  176. </div>
  177. </div>
  178. <div class="wrapper wrapper-content">
  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. load();
  281. LY($("#source"));
  282. LB($("#type"));
  283. ZT($("#keyid"));
  284. ZX($("#ZX"));
  285. laydate.skin('blue');
  286. laydate({
  287. elem: '#starttime',
  288. event: 'focus'
  289. });
  290. laydate({
  291. elem: '#endtime',
  292. event: 'focus'
  293. });
  294. ///搜素
  295. $(".Seach").click(function() {
  296. load();
  297. });
  298. });
  299. //关闭录音弹出
  300. $(".gbly").click(function() {
  301. $(".lyxz").removeClass("cx");
  302. $('audio')[0].pause();
  303. });
  304. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  305. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  306. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  307. });
  308. //获取查询信息
  309. function load() {
  310. //先销毁表格
  311. $('#orderlist').bootstrapTable('destroy');
  312. //初始化表格,动态从服务器加载数据
  313. $("#orderlist").bootstrapTable({
  314. method: "get", //使用get请求到服务器获取数据
  315. url: huayi.config.callcenter_url + "WorkOrder/GetXBDWDealList", //获取数据的Servlet地址
  316. contentType: "application/x-www-form-urlencoded",
  317. striped: true, //表格显示条纹
  318. pagination: true, //启动分页
  319. pageSize: 10, //每页显示的记录数
  320. pageNumber: 1, //当前第几页
  321. pageList: [10, 20, 50, 100], //记录数可选列表
  322. search: false, //是否启用查询
  323. showColumns: false, //显示下拉框勾选要显示的列
  324. showRefresh: false, //显示刷新按钮
  325. sidePagination: "server", //表示服务端请求
  326. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  327. //设置为limit可以获取limit, offset, search, sort, order
  328. queryParamsType: "undefined",
  329. queryParams: function queryParams(params) { //设置查询参数
  330. var param = {
  331. page: params.pageNumber,
  332. pagesize: params.pageSize,
  333. workid: $("#wids").val(),
  334. state: $("#state").val(), //=工单状态
  335. type: $("#type").val(), //=工单类型
  336. bigtype: $("#bigtype").val(), //=大类别
  337. smalltype: $("#smalltype").val(), //=小类别
  338. key: $("#key").val(), //=关键字
  339. tel: $("#tel").val(), //=客户电话
  340. name: $("#name").val(), //=客户名称
  341. usercode: $("#ZX").val(), //=坐席工号
  342. keyid: $("#keyid").val(), //=关键词id
  343. source: $("#source").val(), //=来源&
  344. starttime: $("#starttime").val(), //=开始时间
  345. endtime: $("#endtime").val(), //=结束时间
  346. deptid:$("#PID").val(),
  347. type:$("#type").val(),
  348. tab: 0,//待处理
  349. token: $.cookie("token")
  350. };
  351. return param;
  352. },
  353. onLoadSuccess: function(data) { //加载成功时执行
  354. // layer.msg("加载成功");
  355. //console.log(data);
  356. },
  357. onLoadError: function() { //加载失败时执行
  358. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  359. }
  360. });
  361. }
  362. //状态
  363. function States(val,row) {
  364. var html = '';
  365. switch(val + '') {
  366. case '0':
  367. html = '新工单';
  368. if(row.F_IsReturn==1){
  369. html = '新工单(回退)';
  370. }
  371. break;
  372. case '1':
  373. html = '待交办';
  374. break;
  375. case '2':
  376. html = '待查收';
  377. break;
  378. case '3':
  379. html = '退回审核中';
  380. break;
  381. case '4':
  382. html = '办理中';
  383. break;
  384. case '5':
  385. html = '延时审核';
  386. break;
  387. case '6':
  388. html = '已办理';
  389. break;
  390. case '7':
  391. html = '已回访';
  392. break;
  393. case '8':
  394. html = '重办中';
  395. break;
  396. case '9':
  397. html = '已结案';
  398. break;
  399. }
  400. return html;
  401. }
  402. //时限
  403. function OverTime(val,row){
  404. if(val==1){
  405. return '<div class="" style="cursor: pointer;">' +
  406. '<span class="Greens">'+row.GapTime+'</span>'+
  407. '</div>';
  408. }else if(val==2){
  409. return '<div class="" style="cursor: pointer;">' +
  410. '<span class="Yellows">'+row.GapTime+'</span>'+
  411. '</div>';
  412. }else if(val==3){
  413. return '<div class="" style="cursor: pointer;">' +
  414. '<span class="Reds">'+row.GapTime+'</span>'+
  415. '</div>';
  416. }
  417. }
  418. //办理时限
  419. function BanTime(val){
  420. if(val){
  421. var time=val.substring(0,val.indexOf(' '));
  422. return '<div class="" style="cursor: pointer;">' +
  423. '<span>'+time+'</span>'+
  424. '</div>';
  425. }
  426. }
  427. //音频
  428. function setCode(val) {
  429. if(val) {
  430. return '<div class="imgs" style="cursor: pointer;">' +
  431. '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  432. '</div>';
  433. } else {
  434. return '';
  435. }
  436. }
  437. //录音
  438. function ck(val) {
  439. var path = $(val).attr("item");
  440. $(".lyxz").addClass("cx");
  441. $(".Ly_box").empty();
  442. $(".down").attr("href", path);
  443. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  444. $('.shade_k').css({
  445. 'top' : $(document).scrollTop() + ($(window).height() - $('.shade_k').height() - 289)/2,
  446. 'left' : ($(window).width()-$('.shade_k').width())/2,
  447. 'position' : 'absolute'
  448. });
  449. }
  450. function GetCont(val) {
  451. if(val) {
  452. var str = '<div '
  453. if(val.length > 10) {
  454. str = str + ' title="' + val + '" ';
  455. val = val.substr(0, 10) + "...";
  456. }
  457. return str + '>' + val + '</div>';
  458. } else {
  459. return '';
  460. }
  461. }
  462. //操作
  463. function Dispose(val, row) {
  464. var Rows = row.Buttons;
  465. var html = '';
  466. for(var i = 0; i < Rows.length; i++) {
  467. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  468. if(html1) {
  469. html1 = html1.replace("data", val);
  470. }
  471. html += html1;
  472. }
  473. return html;
  474. }
  475. //查看详情
  476. function ckxq(str) {
  477. layer.open({
  478. type: 2,
  479. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  480. title: '工单详情',
  481. area: ['85%', '80%'], //宽高
  482. });
  483. }
  484. //编辑
  485. function bj(str) {
  486. layer.open({
  487. type: 2,
  488. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  489. title: '编辑工单',
  490. area: ['96%', '80%'], //宽高
  491. });
  492. }
  493. //删除
  494. function move(str) {
  495. layer.confirm('确定删除工单?', {
  496. btn: ['是', '否'] //按钮
  497. }, function() {
  498. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  499. ids: str,
  500. token: $.cookie("token")
  501. }, function(result) {
  502. result = JSON.parse(result);
  503. if(result.state.toLowerCase() == "success") {
  504. layer.msg("删除成功");
  505. load();
  506. }
  507. })
  508. });
  509. }
  510. //提交
  511. function tj(str) {
  512. layer.confirm('确定要提交工单么?', {
  513. btn: ['确定', '取消'] //按钮
  514. }, function() {
  515. //请求后台数据
  516. /*发送请求*/
  517. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  518. ids: str,
  519. token: $.cookie("token")
  520. }, function(result) {
  521. result = JSON.parse(result);
  522. if(result.state.toLowerCase() == "success") {
  523. layer.msg("提交成功");
  524. load();
  525. }
  526. })
  527. });
  528. }
  529. //交办
  530. function jb(str) {
  531. layer.open({
  532. type: 2,
  533. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  534. title: '工单交办',
  535. area: ['87%', '80%'], //宽高
  536. });
  537. }
  538. //领导批示
  539. function lader(str) {
  540. layer.open({
  541. type: 2,
  542. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  543. title: '领导批示',
  544. area: ['60%', '80%'], //宽高
  545. });
  546. }
  547. //市长批示
  548. function city(str) {
  549. layer.open({
  550. type: 2,
  551. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  552. title: '领导批示',
  553. area: ['60%', '80%'], //宽高
  554. });
  555. }
  556. //办理
  557. function bl(str) {
  558. layer.open({
  559. type: 2,
  560. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  561. title: '办理工单',
  562. area: ['60%', '80%'], //宽高
  563. });
  564. }
  565. //督办
  566. function Supervision(str) {
  567. layer.open({
  568. type: 2,
  569. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  570. title: '督办',
  571. area: ['60%', '80%'], //宽高
  572. });
  573. }
  574. //督查
  575. function Supervision_(str) {
  576. layer.open({
  577. type: 2,
  578. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  579. title: '监察',
  580. area: ['60%', '80%'], //宽高
  581. });
  582. }
  583. //强制结案
  584. function StrongLawsuit(str) {
  585. layer.open({
  586. type: 2,
  587. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  588. title: '强制结案',
  589. area: ['60%', '80%'], //宽高
  590. });
  591. }
  592. //回退BackDtail
  593. function BackDtail(str) {
  594. layer.open({
  595. type: 2,
  596. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  597. title: '工单回退',
  598. area: ['60%', '80%'], //宽高
  599. });
  600. }
  601. //查收
  602. function cs(str) {
  603. layer.confirm('确定要查收?', {
  604. btn: ['是', '否'] //按钮
  605. }, function() {
  606. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  607. workorderid: str,
  608. token: $.cookie("token")
  609. }, function(result) {
  610. result = JSON.parse(result);
  611. if(result.state.toLowerCase() == "success") {
  612. layer.msg("查收成功");
  613. load();
  614. }
  615. })
  616. });
  617. }
  618. //收回
  619. function sh(str) {
  620. layer.confirm('确定要回收?', {
  621. btn: ['是', '否'] //按钮
  622. }, function() {
  623. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  624. workorderid: str,
  625. token: $.cookie("token")
  626. }, function(result) {
  627. result = JSON.parse(result);
  628. if(result.state.toLowerCase() == "success") {
  629. layer.msg("回收");
  630. load();
  631. }
  632. })
  633. });
  634. }
  635. //强制回收
  636. function recycles() {
  637. layer.confirm('确定要强制退回吗?', {
  638. btn: ['是', '否'] //按钮
  639. });
  640. }
  641. //退回申请
  642. function th(str) {
  643. layer.open({
  644. type: 2,
  645. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  646. title: '申请退回工单',
  647. area: ['60%', '80%'], //宽高
  648. });
  649. }
  650. //审核退回申请
  651. function shth(str) {
  652. layer.open({
  653. type: 2,
  654. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  655. title: '审核退回申请',
  656. area: ['60%', '80%'], //宽高
  657. });
  658. }
  659. //办理
  660. // function th(str) {
  661. // layer.open({
  662. // type: 2,
  663. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  664. // title: '办理工单',
  665. // area: ['35%', '30%'], //宽高
  666. // });
  667. // }
  668. //申请延时
  669. function ys(str) {
  670. layer.open({
  671. type: 2,
  672. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  673. title: '申请延时',
  674. area: ['60%', '80%'], //宽高
  675. });
  676. }
  677. //审核申请延时
  678. function shys(str) {
  679. layer.open({
  680. type: 2,
  681. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  682. title: '审核延时申请',
  683. area: ['60%', '80%'], //宽高
  684. });
  685. }
  686. //诉求回访
  687. function hf(str) {
  688. layer.open({
  689. type: 2,
  690. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  691. title: '工单回访',
  692. area: ['60%', '80%'], //宽高
  693. });
  694. }
  695. //重办工单
  696. function cb(str) {
  697. layer.open({
  698. type: 2,
  699. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  700. title: '重办工单',
  701. area: ['60%', '80%'], //宽高
  702. });
  703. }
  704. //结案
  705. function Lawsuit(str) {
  706. layer.open({
  707. type: 2,
  708. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  709. title: '诉求单结案',
  710. area: ['60%', '80%'], //宽高
  711. });
  712. }
  713. $('.Appeal').click(function() {
  714. layer.open({
  715. type: 2,
  716. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  717. title: '新增诉求',
  718. area: ['85%', '80%'], //宽高
  719. });
  720. })
  721. //上传文件
  722. function upload() {
  723. if(document.getElementById("upFile").files.length > 0) {
  724. var formData = new FormData();
  725. formData.append("upFile", document.getElementById("upFile").files[0]);
  726. formData.append("token", $.cookie("token"));
  727. $.ajax({
  728. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  729. type: "POST",
  730. data: formData,
  731. /**
  732. *必须false才会自动加上正确的Content-Type
  733. */
  734. contentType: false,
  735. /**
  736. * 必须false才会避开jQuery对 formdata 的默认处理
  737. * XMLHttpRequest会对 formdata 进行正确的处理
  738. */
  739. processData: false,
  740. success: function(result) {
  741. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  742. $("#upFile").change(function() {
  743. upload();
  744. });
  745. var r = $.parseJSON(result);
  746. if(r.state.toLowerCase() == "success") {
  747. $(".fjnr").text(r.data);
  748. $("#scfj").show();
  749. }
  750. }
  751. });
  752. } else {
  753. layer.confirm('请上传文件!', {
  754. btn: ['确定']
  755. });
  756. }
  757. }
  758. //来源
  759. function LY(obj) {
  760. obj.empty();
  761. obj.append('<option selected="selected" value="">请选择</option>');
  762. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  763. "token": $.cookie("token"),
  764. id: 1
  765. }, function(data) {
  766. if(data.state.toLowerCase() == "success") {
  767. var content = data.data;
  768. $(content).each(function(i, n) {
  769. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  770. })
  771. }
  772. })
  773. }
  774. //类别
  775. function LB(obj) {
  776. obj.empty();
  777. obj.append('<option selected="selected" value="">请选择</option>');
  778. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  779. "token": $.cookie("token"),
  780. id: 2
  781. }, function(data) {
  782. if(data.state.toLowerCase() == "success") {
  783. var content = data.data;
  784. $(content).each(function(i, n) {
  785. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  786. })
  787. }
  788. })
  789. }
  790. // 主题
  791. function ZT(obj) {
  792. obj.empty();
  793. obj.append('<option selected="selected" value="">请选择</option>');
  794. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  795. "token": $.cookie("token"),
  796. id: 3
  797. }, function(data) {
  798. if(data.state.toLowerCase() == "success") {
  799. var content = data.data;
  800. $(content).each(function(i, n) {
  801. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  802. })
  803. }
  804. })
  805. }
  806. ///坐席
  807. function ZX(obj) {
  808. obj.empty();
  809. obj.append('<option selected="selected" value="">请选择</option>');
  810. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  811. "token": $.cookie("token"),
  812. }, function(data) {
  813. if(data.state.toLowerCase() == "success") {
  814. var content = data.data;
  815. $(content).each(function(i, n) {
  816. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
  817. })
  818. }
  819. })
  820. }
  821. </script>
  822. </body>
  823. </html>