Nessuna descrizione

WorkDC_EJ.html 33KB

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