No Description

CommonOperation.js 22KB

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