No Description

LeaderYJB.html 35KB

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