Brak opisu

secondaryUnit.js 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. //查看详情
  2. function ckxq(str) {
  3. layer.open({
  4. type: 2,
  5. // content: "../CommonHtml/WorkDatil.html?wid=" + str +
  6. // "&workOrderType=todo", //iframe的url,no代表不显示滚动条
  7. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  8. title: "工单详情",
  9. area: ["100%", "100%"], //宽高
  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. "确定删除工单?", {
  25. btn: ["是", "否"], //按钮
  26. },
  27. function() {
  28. $.post(
  29. huayi.config.callcenter_url +
  30. "WorkOrder/DelWorkOrder", {
  31. ids: str,
  32. token: $.cookie("token"),
  33. },
  34. function(result) {
  35. result = JSON.parse(result);
  36. if(result.state.toLowerCase() == "success") {
  37. layer.msg("删除成功");
  38. load();
  39. }
  40. }
  41. );
  42. }
  43. );
  44. }
  45. //提交
  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. load();
  65. }
  66. }
  67. );
  68. }
  69. );
  70. }
  71. //交办
  72. function jb(str) {
  73. layer.open({
  74. type: 2,
  75. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  76. title: "工单交办",
  77. area: ["87%", "80%"], //宽高
  78. });
  79. }
  80. //领导批示
  81. function lader(str) {
  82. layer.open({
  83. type: 2,
  84. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  85. title: "领导批示",
  86. area: ["60%", "80%"], //宽高
  87. });
  88. }
  89. //市长批示
  90. function city(str) {
  91. layer.open({
  92. type: 2,
  93. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  94. title: "领导批示",
  95. area: ["60%", "80%"], //宽高
  96. });
  97. }
  98. //办理
  99. function bl(str, isProtect, isSPT) {
  100. layer.open({
  101. type: 2,
  102. content: "../CommonHtml/banli.html?wid=" +
  103. str +
  104. "&isProtect=" +
  105. isProtect +
  106. "&isSPT=" +
  107. isSPT, //iframe的url,no代表不显示滚动条
  108. title: "办理工单",
  109. area: ["60%", "80%"], //宽高
  110. });
  111. }
  112. //派单
  113. function pd(str) {
  114. layer.open({
  115. type: 2,
  116. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  117. title: "派单",
  118. area: ["87%", "80%"], //宽高
  119. });
  120. }
  121. //督办
  122. function Supervision(str) {
  123. layer.open({
  124. type: 2,
  125. content: "../CommonHtml/Supervision_.html?wid=" +
  126. str +
  127. "&type=1", //iframe的url,no代表不显示滚动条
  128. title: "督办",
  129. area: ["60%", "80%"], //宽高
  130. });
  131. }
  132. //督查
  133. function Supervision_(str) {
  134. layer.open({
  135. type: 2,
  136. content: "../CommonHtml/Supervision_.html?wid=" +
  137. str +
  138. "&type=2", //iframe的url,no代表不显示滚动条
  139. title: "监察",
  140. area: ["60%", "80%"], //宽高
  141. });
  142. }
  143. //强制结案
  144. function StrongLawsuit(str) {
  145. layer.open({
  146. type: 2,
  147. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  148. title: "强制结案",
  149. area: ["60%", "80%"], //宽高
  150. });
  151. }
  152. //回退BackDtail
  153. function BackDtail(str) {
  154. layer.open({
  155. type: 2,
  156. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  157. title: "工单回退",
  158. area: ["60%", "80%"], //宽高
  159. });
  160. }
  161. //查收
  162. function cs(str) {
  163. $.post(
  164. huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  165. workorderid: str,
  166. token: $.cookie("token"),
  167. },
  168. function(result) {
  169. result = JSON.parse(result);
  170. if(result.state.toLowerCase() == "success") {
  171. layer.msg("查收成功");
  172. load();
  173. }
  174. }
  175. );
  176. }
  177. //收回
  178. function sh(str) {
  179. layer.confirm(
  180. "确定要回收?", {
  181. btn: ["是", "否"], //按钮
  182. },
  183. function() {
  184. $.post(
  185. huayi.config.callcenter_url +
  186. "WorkOrder/TakeBackWorkOrder", {
  187. workorderid: str,
  188. token: $.cookie("token"),
  189. },
  190. function(result) {
  191. result = JSON.parse(result);
  192. if(result.state.toLowerCase() == "success") {
  193. layer.msg("回收");
  194. load();
  195. }
  196. }
  197. );
  198. }
  199. );
  200. }
  201. //撤回
  202. function withdraw(str) {
  203. layer.confirm(
  204. "确定要撤回吗?", {
  205. btn: ["是", "否"], //按钮
  206. },
  207. function() {
  208. $.post(
  209. huayi.config.callcenter_url +
  210. "WorkOrder/WithdrawWorkOrder", {
  211. workorderid: str,
  212. token: $.cookie("token"),
  213. },
  214. function(result) {
  215. result = JSON.parse(result);
  216. if(result.state.toLowerCase() == "success") {
  217. layer.msg("撤回成功");
  218. load();
  219. }
  220. }
  221. );
  222. }
  223. );
  224. }
  225. //退回申请
  226. function th(str) {
  227. layer.open({
  228. type: 2,
  229. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  230. title: "申请退回工单",
  231. area: ["60%", "80%"], //宽高
  232. });
  233. }
  234. //审核退回申请
  235. function shth(str) {
  236. layer.open({
  237. type: 2,
  238. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  239. title: "审核退回申请",
  240. area: ["60%", "80%"], //宽高
  241. });
  242. }
  243. //办理
  244. // function th(str) {
  245. // layer.open({
  246. // type: 2,
  247. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  248. // title: '办理工单',
  249. // area: ['35%', '30%'], //宽高
  250. // });
  251. // }
  252. //处理审核
  253. function auditdeal(str) {
  254. layer.open({
  255. type: 2,
  256. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  257. title: "处理审核",
  258. area: ["80%", "80%"], //宽高
  259. });
  260. }
  261. //转督办
  262. function zdb(str) {
  263. layer.confirm(
  264. "确定督办吗?", {
  265. btn: ["是", "否"], //按钮
  266. },
  267. function() {
  268. $.post(
  269. huayi.config.callcenter_url +
  270. "WorkOrder/RemindWorkOrder", {
  271. workorderid: str,
  272. type: 1,
  273. state: 0,
  274. token: $.cookie("token"),
  275. },
  276. function(result) {
  277. result = JSON.parse(result);
  278. if(result.state.toLowerCase() == "success") {
  279. layer.msg("操作成功");
  280. load();
  281. }
  282. }
  283. );
  284. }
  285. );
  286. }
  287. //申请延时
  288. function ys(str) {
  289. layer.open({
  290. type: 2,
  291. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  292. title: "申请延时",
  293. area: ["60%", "80%"], //宽高
  294. });
  295. }
  296. //审核申请延时
  297. function shys(str) {
  298. layer.open({
  299. type: 2,
  300. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  301. title: "审核延时申请",
  302. area: ["60%", "80%"], //宽高
  303. });
  304. }
  305. //审核申请延时
  306. function shysThree(str) {
  307. layer.open({
  308. type: 2,
  309. content: "../CommonHtml/shtime.html?wid=" + str+'&auditInfoType=4', //iframe的url,no代表不显示滚动条
  310. title: "审核延时申请",
  311. area: ["60%", "80%"], //宽高
  312. });
  313. }
  314. //诉求回访
  315. function hf(str) {
  316. layer.open({
  317. type: 2,
  318. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  319. title: "工单回访",
  320. area: ["60%", "80%"], //宽高
  321. });
  322. }
  323. //重办工单
  324. function cb(str) {
  325. layer.open({
  326. type: 2,
  327. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  328. title: "重办工单",
  329. area: ["60%", "80%"], //宽高
  330. });
  331. }
  332. //结案
  333. function Lawsuit(str) {
  334. layer.open({
  335. type: 2,
  336. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  337. title: "诉求单结案",
  338. area: ["60%", "80%"], //宽高
  339. });
  340. }
  341. //退回
  342. function returnRedo(str) {
  343. layer.open({
  344. type: 2,
  345. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  346. title: "退回",
  347. area: ["60%", "80%"], //宽高
  348. });
  349. }
  350. $(".Appeal").click(function() {
  351. layer.open({
  352. type: 2,
  353. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  354. title: "新增诉求",
  355. area: ["85%", "80%"], //宽高
  356. });
  357. });