虞城12345_前端

WorkDCCO.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  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="helper.luyin.view(this)" item="' + val + '" />' +
  432. '</div>';
  433. } else {
  434. return '';
  435. }
  436. }
  437. function GetCont(val) {
  438. if(val) {
  439. var str = '<div '
  440. if(val.length > 10) {
  441. str = str + ' title="' + val + '" ';
  442. val = val.substr(0, 10) + "...";
  443. }
  444. return str + '>' + val + '</div>';
  445. } else {
  446. return '';
  447. }
  448. }
  449. //操作
  450. function Dispose(val, row) {
  451. var Rows = row.Buttons;
  452. var html = '';
  453. for(var i = 0; i < Rows.length; i++) {
  454. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  455. if(html1) {
  456. html1 = html1.replace("data", val);
  457. }
  458. html += html1;
  459. }
  460. return html;
  461. }
  462. //查看详情
  463. function ckxq(str) {
  464. layer.open({
  465. type: 2,
  466. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  467. title: '工单详情',
  468. area: ['85%', '80%'], //宽高
  469. });
  470. }
  471. //编辑
  472. function bj(str) {
  473. layer.open({
  474. type: 2,
  475. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  476. title: '编辑工单',
  477. area: ['96%', '80%'], //宽高
  478. });
  479. }
  480. //删除
  481. function move(str) {
  482. layer.confirm('确定删除工单?', {
  483. btn: ['是', '否'] //按钮
  484. }, function() {
  485. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  486. ids: str,
  487. token: $.cookie("token")
  488. }, function(result) {
  489. result = JSON.parse(result);
  490. if(result.state.toLowerCase() == "success") {
  491. layer.msg("删除成功");
  492. load();
  493. }
  494. })
  495. });
  496. }
  497. //提交
  498. function tj(str) {
  499. layer.confirm('确定要提交工单么?', {
  500. btn: ['确定', '取消'] //按钮
  501. }, function() {
  502. //请求后台数据
  503. /*发送请求*/
  504. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  505. ids: str,
  506. token: $.cookie("token")
  507. }, function(result) {
  508. result = JSON.parse(result);
  509. if(result.state.toLowerCase() == "success") {
  510. layer.msg("提交成功");
  511. load();
  512. }
  513. })
  514. });
  515. }
  516. //交办
  517. function jb(str) {
  518. layer.open({
  519. type: 2,
  520. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  521. title: '工单交办',
  522. area: ['87%', '80%'], //宽高
  523. });
  524. }
  525. //领导批示
  526. function lader(str) {
  527. layer.open({
  528. type: 2,
  529. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  530. title: '领导批示',
  531. area: ['60%', '80%'], //宽高
  532. });
  533. }
  534. //市长批示
  535. function city(str) {
  536. layer.open({
  537. type: 2,
  538. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  539. title: '领导批示',
  540. area: ['60%', '80%'], //宽高
  541. });
  542. }
  543. //办理
  544. function bl(str) {
  545. layer.open({
  546. type: 2,
  547. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  548. title: '办理工单',
  549. area: ['60%', '80%'], //宽高
  550. });
  551. }
  552. //督办
  553. function Supervision(str) {
  554. layer.open({
  555. type: 2,
  556. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  557. title: '督办',
  558. area: ['60%', '80%'], //宽高
  559. });
  560. }
  561. //督查
  562. function Supervision_(str) {
  563. layer.open({
  564. type: 2,
  565. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  566. title: '监察',
  567. area: ['60%', '80%'], //宽高
  568. });
  569. }
  570. //强制结案
  571. function StrongLawsuit(str) {
  572. layer.open({
  573. type: 2,
  574. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  575. title: '强制结案',
  576. area: ['60%', '80%'], //宽高
  577. });
  578. }
  579. //回退BackDtail
  580. function BackDtail(str) {
  581. layer.open({
  582. type: 2,
  583. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  584. title: '工单回退',
  585. area: ['60%', '80%'], //宽高
  586. });
  587. }
  588. //查收
  589. function cs(str) {
  590. layer.confirm('确定要查收?', {
  591. btn: ['是', '否'] //按钮
  592. }, function() {
  593. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  594. workorderid: str,
  595. token: $.cookie("token")
  596. }, function(result) {
  597. result = JSON.parse(result);
  598. if(result.state.toLowerCase() == "success") {
  599. layer.msg("查收成功");
  600. load();
  601. }
  602. })
  603. });
  604. }
  605. //收回
  606. function sh(str) {
  607. layer.confirm('确定要回收?', {
  608. btn: ['是', '否'] //按钮
  609. }, function() {
  610. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  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 recycles() {
  624. layer.confirm('确定要强制退回吗?', {
  625. btn: ['是', '否'] //按钮
  626. });
  627. }
  628. //退回申请
  629. function th(str) {
  630. layer.open({
  631. type: 2,
  632. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  633. title: '申请退回工单',
  634. area: ['60%', '80%'], //宽高
  635. });
  636. }
  637. //审核退回申请
  638. function shth(str) {
  639. layer.open({
  640. type: 2,
  641. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  642. title: '审核退回申请',
  643. area: ['60%', '80%'], //宽高
  644. });
  645. }
  646. //办理
  647. // function th(str) {
  648. // layer.open({
  649. // type: 2,
  650. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  651. // title: '办理工单',
  652. // area: ['35%', '30%'], //宽高
  653. // });
  654. // }
  655. //申请延时
  656. function ys(str) {
  657. layer.open({
  658. type: 2,
  659. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  660. title: '申请延时',
  661. area: ['60%', '80%'], //宽高
  662. });
  663. }
  664. //审核申请延时
  665. function shys(str) {
  666. layer.open({
  667. type: 2,
  668. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  669. title: '审核延时申请',
  670. area: ['60%', '80%'], //宽高
  671. });
  672. }
  673. //诉求回访
  674. function hf(str) {
  675. layer.open({
  676. type: 2,
  677. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  678. title: '工单回访',
  679. area: ['60%', '80%'], //宽高
  680. });
  681. }
  682. //重办工单
  683. function cb(str) {
  684. layer.open({
  685. type: 2,
  686. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  687. title: '重办工单',
  688. area: ['60%', '80%'], //宽高
  689. });
  690. }
  691. //结案
  692. function Lawsuit(str) {
  693. layer.open({
  694. type: 2,
  695. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  696. title: '诉求单结案',
  697. area: ['60%', '80%'], //宽高
  698. });
  699. }
  700. $('.Appeal').click(function() {
  701. layer.open({
  702. type: 2,
  703. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  704. title: '新增诉求',
  705. area: ['85%', '80%'], //宽高
  706. });
  707. })
  708. //上传文件
  709. function upload() {
  710. if(document.getElementById("upFile").files.length > 0) {
  711. var formData = new FormData();
  712. formData.append("upFile", document.getElementById("upFile").files[0]);
  713. formData.append("token", $.cookie("token"));
  714. $.ajax({
  715. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  716. type: "POST",
  717. data: formData,
  718. /**
  719. *必须false才会自动加上正确的Content-Type
  720. */
  721. contentType: false,
  722. /**
  723. * 必须false才会避开jQuery对 formdata 的默认处理
  724. * XMLHttpRequest会对 formdata 进行正确的处理
  725. */
  726. processData: false,
  727. success: function(result) {
  728. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  729. $("#upFile").change(function() {
  730. upload();
  731. });
  732. var r = $.parseJSON(result);
  733. if(r.state.toLowerCase() == "success") {
  734. $(".fjnr").text(r.data);
  735. $("#scfj").show();
  736. }
  737. }
  738. });
  739. } else {
  740. layer.confirm('请上传文件!', {
  741. btn: ['确定']
  742. });
  743. }
  744. }
  745. //来源
  746. function LY(obj) {
  747. obj.empty();
  748. obj.append('<option selected="selected" value="">请选择</option>');
  749. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  750. "token": $.cookie("token"),
  751. id: 1
  752. }, function(data) {
  753. if(data.state.toLowerCase() == "success") {
  754. var content = data.data;
  755. $(content).each(function(i, n) {
  756. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  757. })
  758. }
  759. })
  760. }
  761. //类别
  762. function LB(obj) {
  763. obj.empty();
  764. obj.append('<option selected="selected" value="">请选择</option>');
  765. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  766. "token": $.cookie("token"),
  767. id: 2
  768. }, function(data) {
  769. if(data.state.toLowerCase() == "success") {
  770. var content = data.data;
  771. $(content).each(function(i, n) {
  772. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  773. })
  774. }
  775. })
  776. }
  777. // 主题
  778. function ZT(obj) {
  779. obj.empty();
  780. obj.append('<option selected="selected" value="">请选择</option>');
  781. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  782. "token": $.cookie("token"),
  783. id: 3
  784. }, function(data) {
  785. if(data.state.toLowerCase() == "success") {
  786. var content = data.data;
  787. $(content).each(function(i, n) {
  788. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  789. })
  790. }
  791. })
  792. }
  793. ///坐席
  794. function ZX(obj) {
  795. obj.empty();
  796. obj.append('<option selected="selected" value="">请选择</option>');
  797. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  798. "token": $.cookie("token"),
  799. }, function(data) {
  800. if(data.state.toLowerCase() == "success") {
  801. var content = data.data;
  802. $(content).each(function(i, n) {
  803. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
  804. })
  805. }
  806. })
  807. }
  808. </script>
  809. </body>
  810. </html>