Açıklama Yok

superviseReplyPendingReview.html 36KB

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