説明なし

VisitorsCreate.html 40KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>工单详情</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link href="../css/mui.css" rel="stylesheet" />
  10. <link href="../css/mui.picker.css" rel="stylesheet" />
  11. <link href="../css/mui.poppicker.css" rel="stylesheet" />
  12. <link href="../css/iconfont.css" rel="stylesheet" />
  13. <link href="css/details.css" rel="stylesheet" />
  14. <style>
  15. .pop_up_div8{
  16. display: none;
  17. }
  18. #order_source{
  19. margin-left: 10%;
  20. display: none;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div class="mui-nav" id="mNavbar">
  26. <a class="mui-icon mui-icon-arrowleft return"></a>
  27. 工单详情
  28. </div>
  29. <div class="mui-content" id="mContent">
  30. <ul class="mui-table-view mui-table-view-ul" style="margin-top: 0px;">
  31. <li class="mui-table-view-cell mui-table-view-li">
  32. <div class="mui-input-row">
  33. <label class="label font-color5">工单编号:</label>
  34. <div class="mui-radio mui-right radio_box">
  35. <label class="font-color6" id="Work_bianhao"></label>
  36. </div>
  37. </div>
  38. </li>
  39. <li class="mui-table-view-cell mui-table-view-li ">
  40. <div class="mui-input-row">
  41. <label class="label font-color5">客户姓名:</label>
  42. <div class="mui-radio mui-right radio_box">
  43. <label class="font-color6" id="customer"></label>
  44. </div>
  45. </div>
  46. </li>
  47. <li class="mui-table-view-cell mui-table-view-li">
  48. <div class="mui-input-row">
  49. <label class="label font-color5">联系电话:</label>
  50. <div class="mui-radio mui-right radio_box">
  51. <label class="font-color6" id="customerTel"></label>
  52. </div>
  53. </div>
  54. </li>
  55. <li class="mui-table-view-cell mui-table-view-li">
  56. <div class="mui-input-row">
  57. <label class="label font-color5">公司名称:</label>
  58. <div class="mui-radio mui-right radio_box">
  59. <label class="font-color6" id="Work_areaname" data-index=""></label>
  60. </div>
  61. </div>
  62. </li>
  63. <li class="mui-table-view-cell mui-table-view-li">
  64. <div class="mui-input-row">
  65. <label class="label font-color5">详细地址:</label>
  66. <div class="mui-radio mui-right radio_box">
  67. <label class="font-color6" id="order_tower"></label>
  68. </div>
  69. </div>
  70. </li>
  71. <li class="mui-table-view-cell mui-table-view-cell-pmargin">
  72. <p id="Work_detail"></p>
  73. </li>
  74. </ul>
  75. <ul class="mui-table-view mui-grid-view">
  76. <h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
  77. <div class="type1">
  78. <!--待派单-->
  79. <div class="mui_btn1 dispose1">
  80. <!--<li class=" mui-media mui-col-xs-3">
  81. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block redeploy">转派</button>
  82. </li>
  83. <li class=" mui-media mui-col-xs-3">
  84. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block finsh">完结</button>
  85. </li>-->
  86. </div>
  87. <!--待处理-->
  88. <div class="mui_btn1 dispose2">
  89. <li class=" mui-media mui-col-xs-3">
  90. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  91. </li>
  92. <li class=" mui-media mui-col-xs-3">
  93. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  94. </li>
  95. <!--<li class=" mui-media mui-col-xs-3">
  96. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  97. </li>
  98. <li class=" mui-media mui-col-xs-3">
  99. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
  100. </li>
  101. <li class=" mui-media mui-col-xs-3">
  102. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  103. </li>-->
  104. </div>
  105. <!--已完成-->
  106. <div class="mui_btn1 dispose3">
  107. <li class=" mui-media mui-col-xs-3">
  108. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  109. </li>
  110. <li class=" mui-media mui-col-xs-3">
  111. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  112. </li>
  113. <!--<li class=" mui-media mui-col-xs-3">
  114. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  115. </li>-->
  116. </div>
  117. </div>
  118. <div class="type2">
  119. <!--待派单-->
  120. <div class="mui_btn1 dispose1">
  121. <li class=" mui-media mui-col-xs-3">
  122. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block rece">接单</button>
  123. </li>
  124. <li class=" mui-media mui-col-xs-3">
  125. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  126. </li>
  127. </div>
  128. <!--待处理-->
  129. <div class="mui_btn1 dispose2">
  130. <li class=" mui-media mui-col-xs-3">
  131. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block disp">处理</button>
  132. </li>
  133. <li class=" mui-media mui-col-xs-3">
  134. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
  135. </li>
  136. <li class=" mui-media mui-col-xs-3">
  137. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block abnormal">异常退回</button>
  138. </li>
  139. <li class=" mui-media mui-col-xs-3">
  140. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block postpone">申请延期</button>
  141. </li>
  142. <!--<li class=" mui-media mui-col-xs-3">
  143. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  144. </li>-->
  145. </div>
  146. <!--已完成-->
  147. <!--<div class="mui_btn1 dispose3">
  148. <li class=" mui-media mui-col-xs-3">
  149. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  150. </li>
  151. </div>-->
  152. </div>
  153. <div class="type3">
  154. <!--待派单-->
  155. <div class="mui_btn1 dispose1">
  156. <li class=" mui-media mui-col-xs-3">
  157. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">审批</button>
  158. </li>
  159. </div>
  160. <div class="mui_btn1 dispose2">
  161. <li class=" mui-media mui-col-xs-3">
  162. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block approva">高层审批</button>
  163. </li>
  164. </div>
  165. </div>
  166. <div class="type4">
  167. <!--待派单-->
  168. <div class="mui_btn1 ">
  169. <li class=" mui-media mui-col-xs-3">
  170. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">接单</button>
  171. </li>
  172. </div>
  173. <!--待处理-->
  174. <div class="mui_btn1 dispose2">
  175. <li class=" mui-media mui-col-xs-3">
  176. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">处理</button>
  177. </li>
  178. </div>
  179. </div>
  180. <div class="type5">
  181. <!--待处理-->
  182. <div class="mui_btn1 dispose3">
  183. <li class=" mui-media mui-col-xs-3">
  184. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  185. </li>
  186. </div>
  187. <!--待处理-->
  188. <div class="mui_btn1 dispose1">
  189. <li class=" mui-media mui-col-xs-3">
  190. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  191. </li>
  192. </div>
  193. <!--已完成-->
  194. <div class="mui_btn1 dispose2">
  195. <li class=" mui-media mui-col-xs-3">
  196. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  197. </li>
  198. </div>
  199. </div>
  200. </ul>
  201. <div id="slider" class="mui-slider">
  202. <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
  203. <a class="mui-control-item mui-active" href="#item1mobile" data-index="1">
  204. 工单跟踪
  205. </a>
  206. </div>
  207. <div class="mui-slider-group">
  208. <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
  209. <ul class="mui-table-view folowlist" id="folow"></ul>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="WordID" style="display: none;"></div>
  215. <script src="../js/jquery.min.js"></script>
  216. <script src="js/details.js"></script>
  217. <script src="../Script/Common/huayi.config.js"></script>
  218. <script src="../Script/Common/huayi.http.js"></script>
  219. <script src="../js/mui.min.js"></script>
  220. <script src="../js/mui.picker.js"></script>
  221. <script src="../js/mui.poppicker.js"></script>
  222. <script src="js/city.data-3.js"></script>
  223. <script>
  224. var id = helper.request.queryString("id");
  225. var itype = helper.request.queryString("itype");
  226. var state = helper.request.queryString("state");
  227. var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
  228. var openid = helper.cookies.get("openid");
  229. var UserType = helper.cookies.get("usertype");
  230. // var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
  231. if(isReply == 0){
  232. $('.btn_reply').show();
  233. }
  234. if (UserType==-1) {
  235. $(".type1").hide();
  236. $(".type2").hide();
  237. $(".type3").show();
  238. $(".type4").hide();
  239. $(".type5").hide();
  240. } else if(UserType==0){
  241. $(".type1").show();
  242. $(".type2").hide();
  243. $(".type3").hide();
  244. $(".type4").hide();
  245. $(".type5").hide();
  246. $(".type6").hide();
  247. $(".type7").hide();
  248. $(".type8").hide();
  249. $(".type9").hide();
  250. }else if(UserType==1){
  251. $(".type1").hide();
  252. $(".type2").hide();
  253. $(".type3").show();
  254. $(".type4").hide();
  255. $(".type5").hide();
  256. }else if(UserType==2){
  257. $(".type1").hide();
  258. $(".type2").hide();
  259. $(".type3").show();
  260. $(".type4").hide();
  261. $(".type5").hide();
  262. $(".type6").hide();
  263. $(".type7").hide();
  264. $(".type8").hide();
  265. $(".type9").hide();
  266. }else if(UserType==3){
  267. $(".type1").hide();
  268. $(".type2").show();
  269. $(".type3").hide();
  270. $(".type4").hide();
  271. $(".type5").hide();
  272. $(".type6").hide();
  273. $(".type7").hide();
  274. $(".type8").hide();
  275. $(".type9").hide();
  276. }else if(UserType==4){
  277. $(".type1").show();
  278. $(".type2").hide();
  279. $(".type3").hide();
  280. $(".type4").hide();
  281. $(".type5").hide();
  282. $(".type6").hide();
  283. $(".type7").hide();
  284. $(".type8").hide();
  285. $(".type9").hide();
  286. }else if(UserType==5){
  287. $(".type1").show();
  288. $(".type2").hide();
  289. $(".type3").hide();
  290. $(".type4").hide();
  291. $(".type5").hide();
  292. $(".type6").hide();
  293. $(".type7").hide();
  294. $(".type8").hide();
  295. $(".type9").hide();
  296. }
  297. Ajax();
  298. flow();
  299. // $("label:empty"=='').hide()
  300. //
  301. // var temp = $('.font-color6').text();
  302. // if (temp == '') {
  303. // $('.mui-radio').hide();
  304. // }else{
  305. // $('.mui-radio').show();
  306. // }
  307. // if($('.font-color6').is(':empty')){
  308. //
  309. // $('.mui-input-row').show();
  310. // alert(1111)
  311. // }
  312. // Remind();
  313. // Comment();
  314. //获取数据
  315. function Ajax() {
  316. $.ajax({
  317. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  318. data: {
  319. id: id, //工单编号
  320. OpenId: openid, //微信openid,
  321. },
  322. async: true,
  323. dataType: 'json',
  324. type: 'get', //HTTP请求类型
  325. success: function(data) {
  326. if(data.state.toLowerCase() == "success") {
  327. var result = data.rows[0];
  328. if(result.Source == 0) {
  329. $("#source").hide();
  330. } else {
  331. $("#source").show();
  332. }
  333. var itype=result.F_State;
  334. //
  335. if (state==1) {
  336. // alert(state);
  337. $(".type1").hide();
  338. $(".type2").hide();
  339. $(".type3").hide();
  340. $(".type4").hide();
  341. $(".type5").hide();
  342. $(".type6").hide();
  343. $(".type7").hide();
  344. $(".type8").hide();
  345. $(".type9").hide();
  346. }
  347. if (state==11) {
  348. // alert(state);
  349. $(".type1").hide();
  350. $(".type2").hide();
  351. $(".type3").hide();
  352. $(".type4").hide();
  353. $(".type5").hide();
  354. $(".type6").hide();
  355. $(".type7").hide();
  356. $(".type8").hide();
  357. $(".type9").hide();
  358. }
  359. if(itype == 0) {
  360. $(".dispose1").hide();
  361. $(".dispose2").hide();
  362. }else if(itype == 1) {
  363. //alert(itype)
  364. $(".dispose1").hide();
  365. } else if(itype == 2) {
  366. $(".dispose2").hide();
  367. } else if(itype == 3) {
  368. $(".dispose3").hide();
  369. }else if(itype == 4) {
  370. $(".dispose2").hide();
  371. $(".dispose1").hide();
  372. }else if(itype == 5) {
  373. $(".dispose1").hide();
  374. $(".dispose2").hide();
  375. }else if(itype == 16) {
  376. $(".dispose1").hide();
  377. }
  378. if (result.GDLXName=="咨询") {
  379. $(".Work_lastDealDiv").hide(); //受理人
  380. $("#source").hide(); //投诉
  381. } else{
  382. $(".Work_lastDealDiv").show(); //受理人
  383. $("#source").show(); //投诉
  384. }
  385. var builName
  386. if (result.buildingname==null) {
  387. builName=""
  388. } else{
  389. builName=result.buildingname
  390. }
  391. var proName
  392. if (result.proname==null) {
  393. proName=""
  394. } else{
  395. proName=result.proname
  396. }
  397. var complain
  398. if (result.ComplaintDepartment==null) {
  399. complain=""
  400. } else{
  401. complain=result.ComplaintDepartment
  402. }
  403. $("#Work_bianhao").text(result.F_WorkOrderCode);
  404. $(".WordID").text(result.ID);
  405. $("#Work_classname").text(result.F_TypeName); //工单类型
  406. $("#section").text(result.F_DeptName); //部门
  407. $("#customer").text(result.F_CusName); //客户姓名
  408. $("#customerTel").text(result.F_CusPhone); //联系电话
  409. $("#Work_areaname").text(result.F_CompanyName); //公司名称
  410. $("#Work_areaname").attr('data-index',result.IsAdminSend);
  411. $("#order_tower").text(result.F_Salesman); //业务员
  412. $("#order_unit").text(result.F_SalesPhone); //单元号
  413. $("#Work_houseID").text(result.F_CreateBy); //添加人工号
  414. $("#Work_ownerRelations").text(result.F_DealBy); //处理人
  415. $("#Work_source").text(result.F_DealTime); //处理时间
  416. $(".Work_lastDealUser").text(result.F_DealContent); //处理内容
  417. $(".Work_last").text(result.F_DealResult); //处理结果
  418. $("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
  419. $("#Work_workOrderID").text(result.F_IsVisit); //是否回访
  420. $("#Work_detail").text("问题描述:" + result.F_Description); //描述详情
  421. }
  422. },
  423. error: function(xhr, type, errorThrown) {
  424. //异常处理;
  425. }
  426. })
  427. }
  428. //跳转页面
  429. //修改
  430. $('.edit').on('tap', function() {
  431. window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
  432. });
  433. //返回列表
  434. $('.return').on('tap', function() {
  435. window.location.href = "tourist.html"
  436. });
  437. //工单跟踪
  438. function flow() {
  439. $.ajax({
  440. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  441. data: {
  442. id: id, //工单编号
  443. OpenId: openid, //微信openid,
  444. },
  445. async: true,
  446. dataType: 'json',
  447. type: 'get', //HTTP请求类型
  448. success: function(data) {
  449. if(data.state.toLowerCase() == "success") {
  450. if(data.total && data.total.length > 0) {
  451. $(data.total).each(function(i, n) {
  452. var str = '';
  453. if(n.F_OptType == 0){
  454. str = str + n.F_OptContent+"<br>";
  455. // alert(str)
  456. }
  457. if(n.F_OptType == 1){
  458. str = str + n.F_OptContent+"<br>";
  459. // alert(str)
  460. }
  461. if(n.F_OptType == 2){
  462. str = str + n.F_OptContent+"<br>";
  463. // alert(str)
  464. }
  465. if(n.F_OptType == 3){
  466. str = str + n.F_OptContent+"<br>";
  467. // alert(str)
  468. }
  469. if(n.F_OptType == 4){
  470. str = str + n.F_OptContent+"<br>";
  471. // alert(str)
  472. }
  473. if(n.F_OptType == 5){
  474. str = str + n.F_OptContent+"<br>";
  475. // alert(str)
  476. }
  477. if(n.F_OptType == 6){
  478. str = str + n.F_OptContent+"<br>";
  479. // alert(str)
  480. }
  481. if(n.F_OptType == 7){
  482. str = str + n.F_OptContent+"<br>";
  483. // alert(str)
  484. }
  485. if(n.F_OptType == 8){
  486. str = str + n.F_OptContent+"<br>";
  487. // alert(str)
  488. }
  489. if(n.F_OptType == 9){
  490. str = str + n.F_OptContent+"<br>";
  491. // alert(str)
  492. }
  493. if(n.F_OptType == 10){
  494. str = str + n.F_OptContent+"<br>";
  495. // alert(str)
  496. }
  497. if(n.F_OptType == 11){
  498. str = str + n.F_OptContent+"<br>";
  499. // alert(str)
  500. }
  501. if(n.F_OptType == 12){
  502. str = str + n.F_OptContent+"<br>";
  503. // alert(str)
  504. }
  505. if(n.F_OptType == 13){
  506. str = str + n.F_OptContent+"<br>";
  507. // alert(str)
  508. }
  509. if(n.F_OptType == 14){
  510. str = str + n.F_OptContent+"<br>";
  511. // alert(str)
  512. }
  513. if(n.F_OptType == 15){
  514. str = str + n.F_OptContent+"<br>";
  515. // alert(str)
  516. }
  517. if(n.F_OptType == 16){
  518. str = str + n.F_OptContent+"<br>";
  519. // alert(str)
  520. }
  521. var spandeta="";
  522. // if (n.Detail==null) {
  523. // spandeta=""
  524. // } else if (n.Detail==""){
  525. // spandeta=""
  526. // }else if(n.IsLast == 1){
  527. // spandeta="完结内容:"+n.F_OptContent
  528. // }else if(n.SureUserName) {
  529. // spandeta="接单内容:"+n.F_OptContent
  530. // } else if(n.DealTime){
  531. // spandeta="处理内容:"+n.F_OptContent
  532. // }else if(n.ToDeptName){
  533. // spandeta="转派内容:"+n.F_OptContent
  534. // }
  535. if ($(".spandeta").text()=="") {
  536. $(this).hide();
  537. }
  538. //else if(row.IsStart) {str = str + row.CreateUserName + " 重新开启工单";}
  539. $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.F_CreateTime +
  540. '</span></br><span style="font-size:12px;">' + str +
  541. '</span><span class="spandeta">'+spandeta+
  542. '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#folow');
  543. });
  544. var num = data.rows.length - 1;
  545. $("#folow li:eq(0)").children(".string").css("top", "20px");
  546. $("#folow li:eq(" + num + ")").children(".string").css("height", "5px");
  547. $("#folow li:eq(0)").children(".string").css("top", "20px");
  548. $("#folow li:eq(0)").children(".circular_h").css({
  549. "background": "#2cc6a7",
  550. "left": "15px",
  551. "top": "20px",
  552. "width": "12px",
  553. "height": "12px",
  554. "border-radius": "6px"
  555. });
  556. $("#folow li:eq(" + num + ")").children(".circular_h").css({
  557. "left": "15px",
  558. "width": "12px",
  559. "height": "12px",
  560. "border-radius": "6px"
  561. });
  562. }
  563. }
  564. },
  565. error: function(xhr, type, errorThrown) {
  566. //异常处理;
  567. }
  568. })
  569. }
  570. //催单记录
  571. // function Remind() {
  572. // $.ajax({
  573. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  574. // data: {
  575. // id: id, //工单编号
  576. // type: 2,
  577. // OpenId: openid, //微信openid,
  578. // },
  579. // async: true,
  580. // dataType: 'json',
  581. // type: 'get', //HTTP请求类型
  582. // success: function(data) {
  583. // if(data.state.toLowerCase() == "success") {
  584. // if(data.rows && data.rows.length > 0) {
  585. // $(data.rows).each(function(i, n) {
  586. // var spandeta;
  587. // if (n.Detail==null) {
  588. // spandeta=""
  589. // } else if (n.Detail==""){
  590. // spandeta=""
  591. // }else{
  592. // spandeta="催办内容:"+n.Detail
  593. // }
  594. // var depart;
  595. // if(n.ToDeptName==null){
  596. // depart=""
  597. // }else{
  598. // depart=n.ToDeptName
  599. // }
  600. // var deperson;
  601. // if(n.ToUserName==null){
  602. // deperson=""
  603. // }else{
  604. // deperson=n.ToUserName
  605. // }
  606. // $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.CreateTime +
  607. //// '</span></br><span>被催办部门:'+depart+
  608. //// '</span></br><span>被催办人:'+deperson+
  609. // '</span></br><span>催办人:' + n.CreateUserName +
  610. // '</span></br><span>'+spandeta+
  611. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#remind');
  612. // });
  613. // var num = data.rows.length - 1;
  614. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  615. // $("#remind li:eq(" + num + ")").children(".string").css("height", "5px");
  616. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  617. // $("#remind li:eq(0)").children(".circular_h").css({
  618. // "background": "#2cc6a7",
  619. // "left": "15px",
  620. // "top": "20px",
  621. // "width": "12px",
  622. // "height": "12px",
  623. // "border-radius": "6px"
  624. // });
  625. // $("#remind li:eq(" + num + ")").children(".circular_h").css({
  626. // "left": "15px",
  627. // "width": "12px",
  628. // "height": "12px",
  629. // "border-radius": "6px"
  630. // });
  631. // }
  632. // }
  633. // },
  634. // error: function(xhr, type, errorThrown) {
  635. // //异常处理;
  636. // }
  637. // })
  638. // }
  639. //评论记录
  640. // function Comment() {
  641. // $.ajax({
  642. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  643. // data: {
  644. // id: id, //工单编号
  645. // type: 3,
  646. // OpenId: openid, //微信openid,
  647. // },
  648. // async: true,
  649. // dataType: 'json',
  650. // type: 'get', //HTTP请求类型
  651. // success: function(data) {
  652. // if(data.state.toLowerCase() == "success") {
  653. // if(data.rows && data.rows.length > 0) {
  654. //
  655. // $(data.rows).each(function(i, n) {
  656. // var spandeta;
  657. // if (n.Detail==null) {
  658. // spandeta=""
  659. // } else if (n.Detail==""){
  660. // spandeta=""
  661. // }else{
  662. // spandeta="评论内容:"+n.Detail
  663. // }
  664. // $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.CreateTime +
  665. // '</span></br><span >'+spandeta+
  666. // '</span><span class="span3">' + n.CreateUserName +
  667. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#commentlist');
  668. // if (n.Detail==null||n.Detail=="") {
  669. // $(".spandeta").hide();
  670. // } else{
  671. // $(".spandeta").show();
  672. // }
  673. // });
  674. // var num = data.rows.length - 1;
  675. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  676. // $("#commentlist li:eq(" + num + ")").children(".string").css("height", "5px");
  677. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  678. // $("#commentlist li:eq(0)").children(".circular_h").css({
  679. // "background": "#2cc6a7",
  680. // "left": "15px",
  681. // "top": "20px",
  682. // "width": "12px",
  683. // "height": "12px",
  684. // "border-radius": "6px"
  685. // });
  686. // $("#commentlist li:eq(" + num + ")").children(".circular_h").css({
  687. // "left": "15px",
  688. // "width": "12px",
  689. // "height": "12px",
  690. // "border-radius": "6px"
  691. // });
  692. // }
  693. // }
  694. // },
  695. // error: function(xhr, type, errorThrown) {
  696. // //异常处理;
  697. // }
  698. // })
  699. // }
  700. //转派
  701. //转派弹框
  702. $(".allot").click(function() {
  703. var areaID = $("#Work_areaname").attr('data-index')
  704. window.location.href = "redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  705. })
  706. // 处理提单框
  707. $(".disp").click(function() {
  708. var areaID = $("#Work_areaname").attr('data-index')
  709. window.location.href = "dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  710. })
  711. //评论工单
  712. $(".comment").click(function(){
  713. $(".pop_up_bj").fadeIn();
  714. $(".pop_up_div1").fadeIn();
  715. })
  716. $(".pop_up_bj" ).click(function(){
  717. $(".pop_up_bj").hide();
  718. $(".pop_up_div1").hide();
  719. })
  720. $(".pop_up_div1 .btn .fl" ).click(function(){
  721. $(".pop_up_bj").hide();
  722. $(".pop_up_div1").hide();
  723. })
  724. $(".pop_up_div1 .btn .fr" ).click(function(){
  725. $(".pop_up_bj").hide();
  726. $(".pop_up_div1").hide();
  727. })
  728. $(".evaluate").click(function(){
  729. if(!$(".evaluate_con").val()) {
  730. mui.alert("请输入评论内容");
  731. }else{
  732. $(".pop_up_bj").hide();
  733. $(".pop_up_div3").hide();
  734. $.ajax({
  735. type: "post",
  736. dataType: 'json',
  737. url: huayi.config.callcenter_url + '/WxLogin/CommentWorkOrder',
  738. async: true,
  739. data: {
  740. orderid: id, //否 strubg 工单编号
  741. cont: $(".evaluate_con").val(), //否 int 处理内容
  742. openid: openid, //微信openid,
  743. },
  744. success: function(data) {
  745. if(data.state == "success") {
  746. debugger
  747. mui.toast('评论成功');
  748. window.location.href = "details.html?id=" + id+'&itype='+itype;
  749. } else {
  750. mui.toast(data.message);
  751. }
  752. }
  753. });
  754. }
  755. })
  756. //处理完结
  757. $(".daal").click(function(){
  758. $(".pop_up_bj").fadeIn();
  759. $(".pop_up_div6").fadeIn();
  760. })
  761. $(".pop_up_bj" ).click(function(){
  762. $(".pop_up_bj").hide();
  763. $(".pop_up_div6").hide();
  764. })
  765. $(".pop_up_div6 .btn .fl" ).click(function(){
  766. $(".pop_up_bj").hide();
  767. $(".pop_up_div6").hide();
  768. })
  769. $(".pop_up_div6 .btn .fr" ).click(function(){
  770. // $("#cont").text("");
  771. $(".pop_up_bj").hide();
  772. $(".pop_up_div6").hide();
  773. if($("#deal_cont").val()=="") {
  774. mui.alert("请输入处理内容");
  775. }else{
  776. $(".pop_up_bj").hide();
  777. $(".pop_up_div6").hide();
  778. $.ajax({
  779. type: "post",
  780. dataType: 'json',
  781. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  782. async: true,
  783. data: {
  784. orderid: id, //否 strubg 工单编号
  785. isend: 1, //否 int 你看一下前端是什么参数
  786. cont: $("#deal_cont").val(), //否 int 处理内容
  787. openid: openid, //微信openid 测试用
  788. },
  789. success: function(data) {
  790. if(data.state == "success") {
  791. debugger
  792. mui.toast('处理成功');
  793. window.location.href = "pend_index.html";
  794. } else {
  795. mui.toast(data.message);
  796. }
  797. }
  798. });
  799. }
  800. })
  801. //完结
  802. $(".finsh").click(function(){
  803. $(".pop_up_bj").fadeIn();
  804. $(".pop_up_div2").fadeIn();
  805. })
  806. $(".pop_up_bj" ).click(function(){
  807. $(".pop_up_bj").hide();
  808. $(".pop_up_div2").hide();
  809. })
  810. $(".pop_up_div2 .btn .fl" ).click(function(){
  811. $(".pop_up_bj").hide();
  812. $(".pop_up_div2").hide();
  813. mui.alert("取消");
  814. })
  815. $(".pop_up_div2 .btn .fr" ).click(function(){
  816. $("#finsh_cont").text("");
  817. $(".pop_up_bj").hide();
  818. $(".pop_up_div2").hide();
  819. if($(".textcont").val()=="") {
  820. mui.alert("请输入完结内容");
  821. }else{
  822. $(".pop_up_bj").hide();
  823. $(".pop_up_div2").hide();
  824. $.ajax({
  825. type: "post",
  826. dataType: 'json',
  827. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  828. async: true,
  829. data: {
  830. orderid: id, //否 strubg 工单编号
  831. isend: 1, //否 int 你看一下前端是什么参数
  832. cont: $("#finsh_cont").val(), //否 int 处理内容
  833. openid: openid, //微信openid,
  834. },
  835. success: function(data) {
  836. if(data.state == "success") {
  837. debugger
  838. mui.toast('处理成功');
  839. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  840. } else {
  841. mui.toast(data.message);
  842. }
  843. }
  844. });
  845. }
  846. })
  847. //处理
  848. $(".deal").click(function(){
  849. $(".pop_up_bj").fadeIn();
  850. $(".pop_up_div4").fadeIn();
  851. })
  852. $(".pop_up_bj" ).click(function(){
  853. $(".pop_up_bj").hide();
  854. $(".pop_up_div4").hide();
  855. })
  856. $(".pop_up_div4 .btn .fl" ).click(function(){
  857. $(".pop_up_bj").hide();
  858. $(".pop_up_div4").hide();
  859. mui.alert("取消");
  860. })
  861. $(".pop_up_div4 .btn .fr" ).click(function(){
  862. // $("#cont").text("");
  863. $(".pop_up_bj").hide();
  864. $(".pop_up_div4").hide();
  865. if($(".textcont_deal").val()=="") {
  866. mui.alert("请输入处理内容");
  867. }else{
  868. $(".pop_up_bj").hide();
  869. $(".pop_up_div4").hide();
  870. $.ajax({
  871. type: "post",
  872. dataType: 'json',
  873. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  874. async: true,
  875. data: {
  876. orderid: id, //否 strubg 工单编号
  877. isend: itype, //否 int 你看一下前端是什么参数
  878. cont: $("#textcont_deal").val(), //否 int 处理内容
  879. Openid: openid, //微信openid,
  880. },
  881. success: function(data) {
  882. if(data.state == "success") {
  883. debugger
  884. mui.toast('处理成功');
  885. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  886. } else {
  887. mui.toast(data.message);
  888. }
  889. }
  890. });
  891. }
  892. })
  893. //回复
  894. $(".btn_reply").click(function(){
  895. var btnArray = ['取消', '确定'];
  896. mui.confirm('确定回复?', '提示', btnArray, function(f) {
  897. if(f.index == 1) {
  898. $.ajax({
  899. type: "post",
  900. dataType: 'json',
  901. url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
  902. async: true,
  903. data: {
  904. openid: openid,// 是 strubg openid
  905. orderid: id// 是 string 工单号码
  906. },
  907. success: function(data) {
  908. if(data.state == "success") {
  909. mui.toast('操作成功');
  910. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  911. } else {
  912. mui.toast(data.message);
  913. }
  914. }
  915. });
  916. } else {
  917. mui.toast("取消操作");
  918. }
  919. })
  920. });
  921. //接单
  922. $(".rece").click(function(){
  923. var btnArray = ['否', '是'];
  924. mui.confirm('确定接单?', '提示', btnArray, function(f) {
  925. if(f.index == 1) {
  926. $.ajax({
  927. type: "get",
  928. dataType: 'json',
  929. url: huayi.config.callcenter_url + 'WxLogin/SureWorkOrder',
  930. async: true,
  931. data: {
  932. orderid: id, //否 strubg 工单编号
  933. OpenId: openid, //微信openid 测试用
  934. },
  935. success: function(data) {
  936. debugger
  937. // alert(data.state)
  938. if(data.state == "success") {
  939. mui.toast('接单成功');
  940. window.location.href = "Waiting_list.html";
  941. } else {
  942. mui.toast(data.message);
  943. }
  944. }
  945. });
  946. } else {
  947. mui.toast("取消");
  948. }
  949. })
  950. })
  951. //审批
  952. $(".receiving").click(function(){
  953. $(".pop_up_bj").fadeIn();
  954. $(".pop_up_div9").fadeIn();
  955. })
  956. $(".pop_up_bj" ).click(function(){
  957. $(".pop_up_bj").hide();
  958. $(".pop_up_div9").hide();
  959. })
  960. $(".pop_up_div9 .btn .fl" ).click(function(){
  961. $(".pop_up_bj").hide();
  962. $(".pop_up_div9").hide();
  963. })
  964. $(".pop_up_div9 .btn .fr" ).click(function(){
  965. // $("#cont").text("");
  966. $(".pop_up_bj").hide();
  967. $(".pop_up_div9").hide();
  968. if($(".reasaa").val()=="") {
  969. mui.alert("请输入审批意见.");
  970. }else{
  971. $(".pop_up_bj").hide();
  972. $(".pop_up_div9").hide();
  973. $.ajax({
  974. type: "get",
  975. dataType: 'json',
  976. url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
  977. async: true,
  978. data: {
  979. orderid: id, //否 strubg 工单编号
  980. OpenId: openid,
  981. AuditCont: $(".reasaa").val(),
  982. IsAudit:1,
  983. AuditState:$('.order_ty').find('input[type="radio"]:checked').val(), //工单类型
  984. },
  985. success: function(data) {
  986. debugger
  987. if(data.state == "success") {
  988. debugger
  989. mui.toast('申请成功');
  990. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  991. } else {
  992. mui.toast(data.message);
  993. }
  994. }
  995. });
  996. }
  997. })
  998. //高层审批
  999. $(".approva").click(function(){
  1000. $(".pop_up_bj").fadeIn();
  1001. $(".pop_up_div10").fadeIn();
  1002. })
  1003. $(".pop_up_bj" ).click(function(){
  1004. $(".pop_up_bj").hide();
  1005. $(".pop_up_div10").hide();
  1006. })
  1007. $(".pop_up_div10 .btn .fl" ).click(function(){
  1008. $(".pop_up_bj").hide();
  1009. $(".pop_up_div10").hide();
  1010. })
  1011. $(".pop_up_div10 .btn .fr" ).click(function(){
  1012. // $("#cont").text("");
  1013. $(".pop_up_bj").hide();
  1014. $(".pop_up_div10").hide();
  1015. if($(".reaa").val()=="") {
  1016. mui.alert("请输入审批意见.11");
  1017. }else{
  1018. $(".pop_up_bj").hide();
  1019. $(".pop_up_div10").hide();
  1020. $.ajax({
  1021. type: "get",
  1022. dataType: 'json',
  1023. url: huayi.config.callcenter_url + 'WxLogin/HigApprovalOrder',
  1024. async: true,
  1025. data: {
  1026. orderid: id, //否 strubg 工单编号
  1027. OpenId: openid,
  1028. cont: $(".reaa").val(),
  1029. },
  1030. success: function(data) {
  1031. debugger
  1032. if(data.state == "success") {
  1033. debugger
  1034. mui.toast('申请成功');
  1035. window.location.href = "high_list.html?id=" + id+'&itype='+itype;
  1036. } else {
  1037. mui.toast(data.message);
  1038. }
  1039. }
  1040. });
  1041. }
  1042. })
  1043. //退回
  1044. $(".sendback").click(function(){
  1045. $(".pop_up_bj").fadeIn();
  1046. $(".pop_up_div6").fadeIn();
  1047. })
  1048. $(".pop_up_bj" ).click(function(){
  1049. $(".pop_up_bj").hide();
  1050. $(".pop_up_div6").hide();
  1051. })
  1052. $(".pop_up_div6 .btn .fl" ).click(function(){
  1053. $(".pop_up_bj").hide();
  1054. $(".pop_up_div6").hide();
  1055. })
  1056. $(".pop_up_div6 .btn .fr" ).click(function(){
  1057. // $("#cont").text("");
  1058. $(".pop_up_bj").hide();
  1059. $(".pop_up_div6").hide();
  1060. if($("#deal_cont").val()=="") {
  1061. mui.alert("请输入处理内容");
  1062. }else{
  1063. $(".pop_up_bj").hide();
  1064. $(".pop_up_div6").hide();
  1065. $.ajax({
  1066. type: "get",
  1067. dataType: 'json',
  1068. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1069. async: true,
  1070. data: {
  1071. orderid: id, //否 strubg 工单编号
  1072. type: 0, //否 int 你看一下前端是什么参数
  1073. cont: $("#deal_cont").val(), //否 int 处理内容
  1074. openid: openid, //微信openid 测试用
  1075. },
  1076. success: function(data) {
  1077. if(data.state == "success") {
  1078. debugger
  1079. mui.toast('退回成功');
  1080. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1081. } else {
  1082. mui.toast(data.message);
  1083. }
  1084. }
  1085. });
  1086. }
  1087. })
  1088. //申请延期实现
  1089. $(".postpone").click(function(){
  1090. $(".pop_up_bj").fadeIn();
  1091. $(".pop_up_div8").fadeIn();
  1092. })
  1093. $(".pop_up_bj" ).click(function(){
  1094. $(".pop_up_bj").hide();
  1095. $(".pop_up_div8").hide();
  1096. })
  1097. $(".pop_up_div8 .btn .fl" ).click(function(){
  1098. $(".pop_up_bj").hide();
  1099. $(".pop_up_div8").hide();
  1100. })
  1101. $(".pop_up_div8 .btn .fr" ).click(function(){
  1102. // $("#cont").text("");
  1103. $(".pop_up_bj").hide();
  1104. $(".pop_up_div8").hide();
  1105. if($(".reas").val()=="") {
  1106. mui.alert("请输入延期说明.");
  1107. }else{
  1108. $(".pop_up_bj").hide();
  1109. $(".pop_up_div8").hide();
  1110. $.ajax({
  1111. type: "get",
  1112. dataType: 'json',
  1113. url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
  1114. async: true,
  1115. data: {
  1116. orderid: id, //否 strubg 工单编号
  1117. // type: 0, //否 int 你看一下前端是什么参数 reas
  1118. cont: $(".reas").val(),
  1119. // limit:$("#order_source").val(), //否 int 处理内容
  1120. limit:$('.order_type').find('input[type="radio"]:checked').val(), //工单类型
  1121. openid: openid, //微信openid 测试用
  1122. },
  1123. success: function(data) {
  1124. debugger
  1125. if(data.state == "success") {
  1126. debugger
  1127. mui.toast('申请成功');
  1128. window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
  1129. } else {
  1130. mui.toast(data.message);
  1131. }
  1132. }
  1133. });
  1134. }
  1135. })
  1136. //异常退回
  1137. $(".abnormal").click(function(){
  1138. $(".pop_up_bj").fadeIn();
  1139. $(".pop_up_div6").fadeIn();
  1140. })
  1141. $(".pop_up_bj" ).click(function(){
  1142. $(".pop_up_bj").hide();
  1143. $(".pop_up_div6").hide();
  1144. })
  1145. $(".pop_up_div6 .btn .fl" ).click(function(){
  1146. $(".pop_up_bj").hide();
  1147. $(".pop_up_div6").hide();
  1148. })
  1149. $(".pop_up_div6 .btn .fr" ).click(function(){
  1150. // $("#cont").text("");
  1151. $(".pop_up_bj").hide();
  1152. $(".pop_up_div6").hide();
  1153. if($("#deal_cont").val()=="") {
  1154. mui.alert("请输入处理内容");
  1155. }else{
  1156. $(".pop_up_bj").hide();
  1157. $(".pop_up_div6").hide();
  1158. $.ajax({
  1159. type: "post",
  1160. dataType: 'json',
  1161. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1162. async: true,
  1163. data: {
  1164. orderid: id, //否 strubg 工单编号
  1165. type: 1, //否 int 你看一下前端是什么参数
  1166. cont: $("#deal_cont").val(), //否 int 处理内容
  1167. openid: openid, //微信openid 测试用
  1168. },
  1169. success: function(data) {
  1170. debugger
  1171. if(data.state == "success") {
  1172. debugger
  1173. mui.toast('退回成功');
  1174. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1175. } else {
  1176. mui.toast(data.message);
  1177. }
  1178. }
  1179. });
  1180. }
  1181. })
  1182. //删除工单
  1183. $(".delet").click(function(){
  1184. var btnArray = ['否', '是'];
  1185. mui.confirm('确定删除?', '提示', btnArray, function(f) {
  1186. if(f.index == 1) {
  1187. $.ajax({
  1188. type: "post",
  1189. dataType: 'json',
  1190. url: huayi.config.callcenter_url + '/WxLogin/DelWorkOrder',
  1191. async: true,
  1192. data: {
  1193. ids: $(".WordID").text(), //否 strubg 工单编号
  1194. openid: openid, //微信openid,
  1195. },
  1196. success: function(data) {
  1197. if(data.state == "success") {
  1198. debugger
  1199. mui.toast('删除成功');
  1200. if (itype==2) {
  1201. window.location.href = "pend_index.html";
  1202. } else if(itype==3){
  1203. window.location.href = "finsh_index.html";
  1204. }
  1205. } else {
  1206. mui.toast(data.message);
  1207. }
  1208. }
  1209. });
  1210. } else {
  1211. mui.toast("取消");
  1212. }
  1213. })
  1214. })
  1215. //催单
  1216. $(".reminder").click(function(){
  1217. $(".pop_up_bj").fadeIn();
  1218. $(".pop_up_div5").fadeIn();
  1219. })
  1220. $(".pop_up_bj" ).click(function(){
  1221. $(".pop_up_bj").hide();
  1222. $(".pop_up_div5").hide();
  1223. })
  1224. $(".pop_up_div5 .btn .fl" ).click(function(){
  1225. $(".pop_up_bj").hide();
  1226. $(".pop_up_div5").hide();
  1227. })
  1228. $(".pop_up_div5 .btn .fr" ).click(function(){
  1229. // $("#cont").text("");
  1230. $(".pop_up_bj").hide();
  1231. $(".pop_up_div5").hide();
  1232. if($(".textcont").val()=="") {
  1233. mui.alert("请输入催单内容");
  1234. }else{
  1235. $(".pop_up_bj").hide();
  1236. $(".pop_up_div5").hide();
  1237. $.ajax({
  1238. type: "post",
  1239. dataType: 'json',
  1240. url: huayi.config.callcenter_url + '/WxLogin/RemindWorkOrder',
  1241. async: true,
  1242. data: {
  1243. orderid: id, //否 strubg 工单编号
  1244. cont: $(".reminder_con").val(), //否 int 处理内容
  1245. openid: openid, //微信openid,
  1246. //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', //微信openid 测试用
  1247. },
  1248. success: function(data) {
  1249. if(data.state == "success") {
  1250. // debugger
  1251. mui.toast('催单成功');
  1252. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1253. } else {
  1254. mui.toast(data.message);
  1255. }
  1256. }
  1257. });
  1258. }
  1259. })
  1260. $("#qita").click(function(){
  1261. $("#order_source").show();
  1262. })
  1263. </script>
  1264. </body>
  1265. </html>