Bez popisu

LeaderYJBProvincialPlatform.html 35KB

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