Açıklama Yok

CommonOperation.js 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. // 查看详情
  2. function ckxq(str) {
  3. layer.open({
  4. type: 2,
  5. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  6. title: "工单详情",
  7. area: ["100%", "100%"], //宽高
  8. maxmin: true,
  9. shade: 0,
  10. });
  11. }
  12. //编辑
  13. function bj(str) {
  14. layer.open({
  15. type: 2,
  16. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  17. title: '编辑工单',
  18. area: ['96%', '80%'], //宽高
  19. });
  20. }
  21. //删除
  22. function move(str) {
  23. layer.confirm('确定删除工单?', {
  24. btn: ['是', '否'] //按钮
  25. }, function() {
  26. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  27. ids: str,
  28. token: $.cookie("token")
  29. }, function(result) {
  30. result = JSON.parse(result);
  31. if(result.state.toLowerCase() == "success") {
  32. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  33. parent.layer.close(index); //再执行关闭
  34. layer.msg("删除成功");
  35. parent.load();
  36. }
  37. })
  38. });
  39. }
  40. //提交
  41. function tj(str) {
  42. layer.confirm('确定要提交工单么?', {
  43. btn: ['确定', '取消'] //按钮
  44. }, function() {
  45. //请求后台数据
  46. /*发送请求*/
  47. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  48. ids: str,
  49. token: $.cookie("token")
  50. }, function(result) {
  51. result = JSON.parse(result);
  52. if(result.state.toLowerCase() == "success") {
  53. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  54. parent.layer.close(index); //再执行关闭
  55. layer.msg("提交成功");
  56. parent.load();
  57. }
  58. })
  59. });
  60. }
  61. //交办
  62. function jb(str) {
  63. layer.open({
  64. type: 2,
  65. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  66. title: '工单交办',
  67. area: ['87%', '80%'], //宽高
  68. });
  69. }
  70. //领导批示
  71. function lader(str) {
  72. layer.open({
  73. type: 2,
  74. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  75. title: '领导批示',
  76. area: ['60%', '80%'], //宽高
  77. });
  78. }
  79. //市长批示
  80. function city(str) {
  81. layer.open({
  82. type: 2,
  83. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  84. title: '领导批示',
  85. area: ['60%', '80%'], //宽高
  86. });
  87. }
  88. //督办
  89. function Supervision(str) {
  90. layer.open({
  91. type: 2,
  92. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  93. title: '督办',
  94. area: ['60%', '80%'], //宽高
  95. });
  96. }
  97. //督查
  98. function Supervision_(str) {
  99. layer.open({
  100. type: 2,
  101. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  102. title: '监察',
  103. area: ['60%', '80%'], //宽高
  104. });
  105. }
  106. //收回
  107. function sh(str) {
  108. layer.confirm('确定要回收?', {
  109. btn: ['是', '否'] //按钮
  110. }, function() {
  111. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  112. workorderid: str,
  113. token: $.cookie("token")
  114. }, function(result) {
  115. result = JSON.parse(result);
  116. if(result.state.toLowerCase() == "success") {
  117. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  118. parent.layer.close(index); //再执行关闭
  119. layer.msg("回收");
  120. parent.load();
  121. }
  122. })
  123. });
  124. }
  125. //查收
  126. function cs(str) {
  127. layer.confirm('确定要查收?', {
  128. btn: ['是', '否'] //按钮
  129. }, function() {
  130. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  131. workorderid: str,
  132. token: $.cookie("token")
  133. }, function(result) {
  134. result = JSON.parse(result);
  135. if(result.state.toLowerCase() == "success") {
  136. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  137. parent.layer.close(index); //再执行关闭
  138. layer.msg("查收成功");
  139. parent.load();
  140. }
  141. })
  142. });
  143. }
  144. //退回申请
  145. function th(str) {
  146. layer.open({
  147. type: 2,
  148. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  149. title: '申请退回工单',
  150. area: ['60%', '80%'], //宽高
  151. });
  152. }
  153. //办理
  154. function bl(str, isProtect) {
  155. console.log("isProtect2222", isProtect);
  156. if($.cookie('code') == 'EJWLDW'){//三级
  157. layer.open({
  158. type: 2,
  159. content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
  160. isProtect, //iframe的url,no代表不显示滚动条
  161. title: '办理工单',
  162. area: ['90%', '80%'], //宽高
  163. });
  164. }else{
  165. layer.open({
  166. type: 2,
  167. content: "../CommonHtml/banli.html?wid=" +
  168. str +
  169. "&isProtect=" +
  170. isProtect, //iframe的url,no代表不显示滚动条
  171. title: "办理工单",
  172. area: ["60%", "80%"], //宽高
  173. });
  174. }
  175. }
  176. //审核退回申请
  177. function shth(str) {
  178. layer.open({
  179. type: 2,
  180. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  181. title: '审核退回申请',
  182. area: ['60%', '80%'], //宽高
  183. });
  184. }
  185. //申请延时
  186. function ys(str) {
  187. layer.open({
  188. type: 2,
  189. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  190. title: '申请延时',
  191. area: ['60%', '80%'], //宽高
  192. });
  193. }
  194. //诉求回访
  195. function hf(str) {
  196. layer.open({
  197. type: 2,
  198. content: "../CommonHtml/auditBack.html?wid=" + str, //iframe的url,no代表不显示滚动条
  199. title: '工单回访',
  200. area: ['60%', '80%'], //宽高
  201. });
  202. }
  203. //审核申请延时
  204. function shys(str) {
  205. layer.open({
  206. type: 2,
  207. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  208. title: '审核延时申请',
  209. area: ['60%', '80%'], //宽高
  210. });
  211. }
  212. //重办工单
  213. function cb(str) {
  214. layer.open({
  215. type: 2,
  216. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  217. title: '重办工单',
  218. area: ["80%", "90%"], //宽高
  219. });
  220. }
  221. //结案
  222. function Lawsuit(str) {
  223. layer.open({
  224. type: 2,
  225. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  226. title: '诉求单结案',
  227. area: ['60%', '80%'], //宽高
  228. });
  229. }
  230. //回退BackDtail
  231. function BackDtail(str) {
  232. layer.open({
  233. type: 2,
  234. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  235. title: '工单回退',
  236. area: ['60%', '80%'], //宽高
  237. });
  238. }
  239. //强制结案
  240. function StrongLawsuit(str) {
  241. layer.open({
  242. type: 2,
  243. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  244. title: '强制结案',
  245. area: ['60%', '80%'], //宽高
  246. });
  247. }
  248. //派单
  249. function pd(str) {
  250. layer.open({
  251. type: 2,
  252. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  253. title: "办理工单",
  254. area: ["87%", "80%"], //宽高
  255. });
  256. }
  257. //处理审核
  258. function auditdeal(str) {
  259. layer.open({
  260. type: 2,
  261. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  262. title: "处理审核",
  263. area: ["80%", "80%"], //宽高
  264. });
  265. }
  266. //签收
  267. function sign(str) {
  268. layer.confirm('确定要签收?', {
  269. btn: ['是', '否'] //按钮
  270. }, function() {
  271. $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
  272. workorderid: str,
  273. token: $.cookie("token")
  274. }, function(result) {
  275. result = JSON.parse(result);
  276. if(result.state.toLowerCase() == "success") {
  277. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  278. parent.layer.close(index); //再执行关闭
  279. layer.msg("签收成功");
  280. parent.load();
  281. }
  282. })
  283. });
  284. }
  285. //拒收
  286. function refuse(str) {
  287. layer.open({
  288. type: 2,
  289. content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
  290. title: '拒收',
  291. area: ['60%', '80%'], //宽高
  292. });
  293. }
  294. //撤单
  295. function withdraw(str) {
  296. layer.confirm(
  297. "确定撤回?", {
  298. btn: ["是", "否"], //按钮
  299. },
  300. function() {
  301. $.post(
  302. huayi.config.callcenter_url +
  303. "WorkOrder/WithdrawDWorkOrder", {
  304. workorderid: str,
  305. token: $.cookie("token"),
  306. },
  307. function(result) {
  308. result = JSON.parse(result);
  309. if(result.state.toLowerCase() == "success") {
  310. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  311. parent.layer.close(index); //再执行关闭
  312. layer.msg("撤回成功");
  313. parent.load();
  314. }
  315. }
  316. );
  317. }
  318. );
  319. }
  320. //审核
  321. function audit(str) {
  322. layer.open({
  323. type: 2,
  324. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  325. title: "审核",
  326. area: ["60%", "80%"], //宽高
  327. });
  328. }
  329. //转督办
  330. function zdb(str, row) {
  331. layer.open({
  332. type: 2,
  333. content: "../CommonHtml/superTrunl.html?wid=" +
  334. str +
  335. "&depId=" +
  336. row, //iframe的url,no代表不显示滚动条
  337. title: "督办工单",
  338. area: ["60%", "80%"], //宽高
  339. });
  340. }
  341. //不督办
  342. function ndb(str) {
  343. layer.confirm(
  344. "确定督办吗?", {
  345. btn: ["是", "否"], //按钮
  346. },
  347. function() {
  348. $.post(
  349. huayi.config.callcenter_url +
  350. "WorkOrder/RemindWorkOrder", {
  351. workorderid: str,
  352. type: 1,
  353. state: 2,
  354. token: $.cookie("token"),
  355. },
  356. function(result) {
  357. result = JSON.parse(result);
  358. if(result.state.toLowerCase() == "success") {
  359. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  360. parent.layer.close(index); //再执行关闭
  361. layer.msg("操作成功");
  362. parent.load();
  363. }
  364. }
  365. );
  366. }
  367. );
  368. }
  369. //驳回重办
  370. function bhcb(str) {
  371. layer.open({
  372. type: 2,
  373. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  374. title: "驳回重办",
  375. area: ["60%", "80%"], //宽高
  376. });
  377. }
  378. //提交重办
  379. function tjcb(str) {
  380. layer.open({
  381. type: 2,
  382. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  383. title: "提交重办",
  384. area: ["60%", "80%"], //宽高
  385. });
  386. }
  387. //履职界定
  388. function lzjd(str) {
  389. layer.open({
  390. type: 2,
  391. content: "../CommonHtml/ResumptionDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  392. title: '履职界定',
  393. area: ['85%', '80%'], //宽高
  394. })
  395. }
  396. //界定审核
  397. function jdsh(str) {
  398. layer.open({
  399. type: 2,
  400. content: "../CommonHtml/Define_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  401. title: '界定审核',
  402. area: ['85%', '60%'], //宽高
  403. })
  404. }
  405. //拒绝
  406. function Refuse(str) {
  407. layer.open({
  408. type: 2,
  409. content: "../CommonHtml/refuseList.html?wid=" + str, //iframe的url,no代表不显示滚动条
  410. title: "拒绝",
  411. area: ["60%", "80%"], //宽高
  412. });
  413. }
  414. //退回
  415. function returnRedo(str) {
  416. layer.open({
  417. type: 2,
  418. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  419. title: "退回",
  420. area: ["60%", "80%"], //宽高
  421. });
  422. }
  423. //催办
  424. function messagesUrge(str) {
  425. layer.confirm('确定催办吗?', {
  426. btn: ['是', '否'] //按钮
  427. }, function() {
  428. $.post(huayi.config.callcenter_url + 'WorkOrder/Reminders', {
  429. workorderid: str,
  430. token: $.cookie("token")
  431. }, function(result) {
  432. result = JSON.parse(result);
  433. if(result.state.toLowerCase() == 'success') {
  434. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  435. parent.layer.close(index); //再执行关闭
  436. layer.msg('催办成功')
  437. parent.load();
  438. }
  439. })
  440. });
  441. }
  442. //退回
  443. function returnRedoThreeLevel(str) {
  444. layer.open({
  445. type: 2,
  446. content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
  447. title: "退回",
  448. area: ["60%", "80%"], //宽高
  449. });
  450. }
  451. //退回
  452. function returnAuditor(str) {
  453. layer.open({
  454. type: 2,
  455. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  456. title: "退回",
  457. area: ['60%', '80%'], //宽高
  458. });
  459. }
  460. //修改
  461. function editProcessingResult(str) {
  462. layer.open({
  463. type: 2,
  464. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  465. title: "修改",
  466. area: ['60%', '80%'], //宽高
  467. });
  468. }
  469. // 督办查收
  470. function superviseCheck(str) {
  471. layer.confirm('确定要查收?', {
  472. btn: ['是', '否'] //按钮
  473. }, function() {
  474. $.post(huayi.config.callcenter_url + "workorder/RemindCheck", {
  475. workorderid: str,
  476. token: $.cookie("token")
  477. }, function(result) {
  478. result = JSON.parse(result);
  479. if(result.state.toLowerCase() == "success") {
  480. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  481. parent.layer.close(index); //再执行关闭
  482. layer.msg("查收成功");
  483. parent.load();
  484. }
  485. })
  486. });
  487. }
  488. //督办审核通过
  489. function superviseReviewThrough(str) {
  490. layer.confirm('确定审核通过?', {
  491. btn: ['是', '否'] //按钮
  492. }, function() {
  493. $.post(huayi.config.callcenter_url + "workorder/RemindApproved", {
  494. workorderid: str,
  495. token: $.cookie("token")
  496. }, function(result) {
  497. result = JSON.parse(result);
  498. if(result.state.toLowerCase() == "success") {
  499. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  500. parent.layer.close(index); //再执行关闭
  501. layer.msg("操作成功");
  502. parent.load();
  503. }
  504. })
  505. });
  506. }
  507. //督办审核拒绝
  508. function superviseReviewRefuse(str) {
  509. layer.open({
  510. type: 2,
  511. content: "../CommonHtml/superviseReview.html?wid=" + str + "&review=1", //iframe的url,no代表不显示滚动条
  512. title: '督办审核',
  513. area: ['60%', '80%'], //宽高
  514. });
  515. }
  516. // 省平台签收
  517. function provincialPlatformSignup(str) {
  518. layer.confirm(
  519. "确定签收吗?", {
  520. btn: ["是", "否"], //按钮
  521. },
  522. function() {
  523. $.post(
  524. huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
  525. ids: str,
  526. token: $.cookie("token"),
  527. },
  528. function(result) {
  529. result = JSON.parse(result);
  530. if(result.state.toLowerCase() == "success") {
  531. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  532. parent.layer.close(index); //再执行关闭
  533. layer.msg("操作成功");
  534. parent.load();
  535. }
  536. }
  537. );
  538. }
  539. );
  540. }
  541. // 省平台退回
  542. function provincialPlatformReturn(str) {
  543. layer.open({
  544. type: 2,
  545. content: "../CommonHtml/provincialPlatformReturn.html?wid=" + str, //iframe的url,no代表不显示滚动条
  546. title: "省平台退回",
  547. area: ["70%", "70%"], //宽高
  548. shade: 0,
  549. });
  550. }
  551. // 省平台申请延时
  552. function provincialPlatformApplicationDelay(str, type) {
  553. layer.open({
  554. type: 2,
  555. content: "../CommonHtml/provincialPlatformApplicationDelay.html?wid=" + str + "&type=" + type, //iframe的url,no代表不显示滚动条
  556. title: "省平台申请延时",
  557. area: ["70%", "70%"], //宽高
  558. shade: 0,
  559. });
  560. }
  561. // 省平台反馈
  562. function provincialPlatformFeedback(str) {
  563. layer.open({
  564. type: 2,
  565. content: "../CommonHtml/provincialPlatformFeedback.html?wid=" + str, //iframe的url,no代表不显示滚动条
  566. title: "省平台反馈",
  567. area: ["70%", "70%"], //宽高
  568. shade: 0,
  569. });
  570. }
  571. // 服务工单上报
  572. function reportServiceWorkOrder(str) {
  573. layer.open({
  574. type: 2,
  575. content: "../CommonHtml/provincialPlatformReport.html?wid=" + str, //iframe的url,no代表不显示滚动条
  576. title: "省平台上报",
  577. area: ["70%", "70%"], //宽高
  578. shade: 0,
  579. });
  580. }
  581. // 已办未果
  582. function unsuccessful(str) {
  583. layer.confirm('确认已办未果吗?', {
  584. btn: ['是', '否'] //按钮
  585. }, function() {
  586. $.post(huayi.config.callcenter_url + 'WorkOrder/Transfer', {
  587. workorderid: str,
  588. "token": $.cookie("token")
  589. }, function(result) {
  590. result = JSON.parse(result);
  591. if(result.state.toLowerCase() == "success") {
  592. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  593. parent.layer.close(index); //再执行关闭
  594. layer.msg("操作成功");
  595. $("#orderlist").bootstrapTable('refresh');
  596. }
  597. })
  598. });
  599. }
  600. //审核通过
  601. function approved(str) {
  602. layer.confirm('确认审核通过吗?', {
  603. btn: ['是', '否'] // 按钮
  604. }, function() {
  605. layer.confirm('是否发送短信?', {
  606. btn: ['是', '否'] // 按钮
  607. }, function() {
  608. toExamineWorkOrder(str, 1)
  609. }, function() {
  610. toExamineWorkOrder(str, 0)
  611. });
  612. });
  613. }
  614. function toExamineWorkOrder(str, issmsAudit) {
  615. $.post(huayi.config.callcenter_url + 'WorkOrder/ToExamineWorkOrder', {
  616. workorderid: str,
  617. nexttype: 0, // 0审核通过 1审核不通过 2审核通过转办
  618. issms: issmsAudit,
  619. "token": $.cookie("token")
  620. }, function(result) {
  621. result = JSON.parse(result);
  622. if(result.state.toLowerCase() == "success") {
  623. layer.msg("操作成功");
  624. $("#orderlist").bootstrapTable('refresh');
  625. }
  626. })
  627. }
  628. //审核不通过
  629. function auditFailed(str) {
  630. layer.open({
  631. type: 2,
  632. content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
  633. title: "审核不通过",
  634. area: ["50%", "50%"], //宽高
  635. });
  636. }
  637. //审核通过转办
  638. function approvedComplaint(str) {
  639. layer.open({
  640. type: 2,
  641. content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=2", //iframe的url,no代表不显示滚动条
  642. title: "审核通过转办",
  643. area: ["50%", "50%"], //宽高
  644. });
  645. }
  646. //审核通过
  647. function auditMultimediaThrough(str) {
  648. layer.open({
  649. type: 2,
  650. content: "../CommonHtml/auditMultimedia.html?wid=" + str + "&nexttype=0", //iframe的url,no代表不显示滚动条
  651. title: "审核",
  652. area: ["80%", "80%"], //宽高
  653. });
  654. }
  655. // 审核不通过
  656. function auditMultimediaNotThrough(str) {
  657. layer.open({
  658. type: 2,
  659. content: "../CommonHtml/auditMultimedia.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
  660. title: "审核",
  661. area: ["80%", "80%"], //宽高
  662. });
  663. }
  664. // 回复
  665. function replyMultimedia(str) {
  666. layer.open({
  667. type: 2,
  668. content: "../CommonHtml/replyMultimedia.html?wid=" + str, //iframe的url,no代表不显示滚动条
  669. title: "回复",
  670. area: ["60%", "60%"], //宽高
  671. });
  672. }
  673. //审核
  674. function auditAll(str) {
  675. layer.open({
  676. type: 2,
  677. content: "../CommonHtml/haveDoneToAuditOperationAll.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
  678. title: "审核不通过",
  679. area: ["50%", "50%"], //宽高
  680. });
  681. }
  682. //重推
  683. function rePush(str) {
  684. layer.confirm('确定重推此工单?', {
  685. btn: ['是', '否'] //按钮
  686. }, function() {
  687. $.post(huayi.config.callcenter_url + "Affairs/ReFinishWorkOrder", {
  688. workorderid: str,
  689. token: $.cookie("token")
  690. }, function(result) {
  691. result = JSON.parse(result);
  692. if(result.state.toLowerCase() == "success") {
  693. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  694. parent.layer.close(index); //再执行关闭
  695. layer.msg("重推成功");
  696. parent.load();
  697. }
  698. })
  699. });
  700. }
  701. //审核申请延时
  702. function ysThree(str) {
  703. layer.open({
  704. type: 2,
  705. content: "../CommonHtml/Timesq.html?wid=" + str + '&level=3', //iframe的url,no代表不显示滚动条
  706. title: '审核延时申请',
  707. area: ['60%', '80%'], //宽高
  708. });
  709. }
  710. //审核申请延时
  711. function shysThree(str) {
  712. layer.open({
  713. type: 2,
  714. content: "../CommonHtml/shtime.html?wid=" + str + '&auditInfoType=4', //iframe的url,no代表不显示滚动条
  715. title: "审核延时申请",
  716. area: ["60%", "80%"], //宽高
  717. });
  718. }
  719. //转110
  720. function transferOneHun(str) {
  721. layer.confirm(
  722. "确定要转110吗?", {
  723. btn: ["是", "否"], //按钮
  724. },
  725. function() {
  726. $.post(
  727. huayi.config.callcenter_url + "APPS/PushWorkOrder", {
  728. workorderid: str,
  729. token: $.cookie("token"),
  730. },
  731. function(result) {
  732. result = JSON.parse(result);
  733. if(result.state.toLowerCase() == "success") {
  734. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  735. parent.layer.close(index); //再执行关闭
  736. layer.msg("操作成功");
  737. parent.load();
  738. }
  739. }
  740. );
  741. }
  742. );
  743. }
  744. //市平台申请延期
  745. function ysShi(str) {
  746. layer.open({
  747. type: 2,
  748. content: "../CommonHtml/shiTimesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  749. title: "市平台申请延时",
  750. area: ["70%", "70%"], //宽高
  751. shade: 0,
  752. });
  753. }
  754. // 监察督办派发
  755. function jcsuperviseSend(str) {
  756. layer.open({
  757. type: 2,
  758. content: "../CommonHtml/jcsuperviseSend.html?wid=" + str, //iframe的url,no代表不显示滚动条
  759. title: "监察督办派发",
  760. area: ["80%", "80%"], //宽高
  761. });
  762. }
  763. // 督查督办派发
  764. function jdcsuperviseSend(str) {
  765. layer.open({
  766. type: 2,
  767. content: "../CommonHtml/jdcsuperviseSend.html?wid=" + str, //iframe的url,no代表不显示滚动条
  768. title: "督查督办派发",
  769. area: ["80%", "80%"], //宽高
  770. });
  771. }
  772. //转知识库
  773. function changeknowledge(wid,tit,con){
  774. console.log(wid,tit,con)
  775. var knowkey = ''
  776. $.ajax({
  777. type: "get",
  778. url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew",
  779. dataType: 'json',
  780. async: false,
  781. data: {
  782. workorderid: wid,
  783. type: 0,
  784. token: $.cookie("token")
  785. },
  786. success: function(result) {
  787. if(result.state.toLowerCase() == "success") {
  788. var Data = result.data.data;
  789. knowkey = Data[0].F_Key
  790. changeKnowLayer(tit,con,knowkey)
  791. }
  792. }
  793. })
  794. console.log(knowkey,'knowkey')
  795. }
  796. function changeKnowLayer(tit,con,knowkey){
  797. layer.confirm(
  798. "确定转知识库?", {
  799. btn: ["是", "否"], //按钮
  800. },
  801. function () {
  802. $.post(
  803. huayi.config.callcenter_url +
  804. "Knowledge/AddInfoByGD", {
  805. title: tit,
  806. con: con,
  807. key: knowkey,
  808. issub:1,
  809. token: $.cookie("token"),
  810. },
  811. function (result) {
  812. if (result.state == "success") {
  813. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  814. parent.layer.close(index); //再执行关闭
  815. layer.msg("操作成功");
  816. parent.load();
  817. }
  818. }
  819. );
  820. }
  821. );
  822. }
  823. //转非营商
  824. function doNotBusiness(str){
  825. layer.confirm(
  826. "确定要转为非营商工单吗?",
  827. {
  828. btn: ["是", "否"], //按钮
  829. },
  830. function () {
  831. $.post(
  832. huayi.config.callcenter_url + "WorkOrder/Reseller",
  833. {
  834. workorderid: str,
  835. type: 0,
  836. token: $.cookie("token"),
  837. },
  838. function (result) {
  839. result = JSON.parse(result);
  840. if (result.state == "success") {
  841. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  842. parent.layer.close(index); //再执行关闭
  843. layer.msg("操作成功");
  844. parent.load();
  845. }
  846. }
  847. );
  848. }
  849. );
  850. }
  851. //转营商
  852. function doBusiness(str){
  853. layer.confirm(
  854. "确定要转为营商工单吗?",
  855. {
  856. btn: ["是", "否"], //按钮
  857. },
  858. function () {
  859. $.post(
  860. huayi.config.callcenter_url + "WorkOrder/Reseller",
  861. {
  862. workorderid: str,
  863. type: 1,
  864. token: $.cookie("token"),
  865. },
  866. function (result) {
  867. result = JSON.parse(result);
  868. if (result.state == "success") {
  869. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  870. parent.layer.close(index); //再执行关闭
  871. layer.msg("操作成功");
  872. parent.load();
  873. }
  874. }
  875. );
  876. }
  877. );
  878. }