濮阳12345web

WorkDCCO.html 23KB

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