Нет описания

orderListOperation.js 24KB

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