Нет описания

LeaderYJBMedia.html 39KB

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