Brak opisu

details.html 50KB

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