Sin descripción

orderListOperation.js 21KB

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