商丘12345 前端

WorkDCCO.html 23KB

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