Bez popisu

Visitors.html 46KB

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