暂无描述

Visitors.html 47KB

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