detail.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .custom-table th,td{
  5. padding: 10px;
  6. }
  7. .custom-table th{
  8. width: 120px;
  9. text-align: left;
  10. }
  11. </style>
  12. <div class="row">
  13. <div class="col-sm-12">
  14. <div class="ibox float-e-margins">
  15. <!--<div class="ibox-title">-->
  16. <!--<h5>{$meta_title}</h5>-->
  17. <!--<div class="ibox-tools">-->
  18. <!--<a class="toback" href="javascript:;history.back(-1)">-->
  19. <!--返回上一页-->
  20. <!--</a>-->
  21. <!--</div>-->
  22. <!--</div>-->
  23. <div class="ibox-content">
  24. <table class="table custom-table table-bordered">
  25. <tbody>
  26. <tr>
  27. <th>工单编号</th><td>{$info['sn']}</td>
  28. </tr>
  29. <tr>
  30. <th>类型</th><td>{$info['work_type_mode_text']}</td>
  31. </tr>
  32. {if $info['real_name'] != null || $info['real_name'] != ''}
  33. <tr>
  34. <th>申请人</th><td>{$info['real_name']}</td>
  35. </tr>
  36. {/if}
  37. <tr>
  38. <th>申请时间</th><td>{$info['create_time']}</td>
  39. </tr>
  40. {if $info['dep'] != null || $info['dep'] != ''}
  41. <tr>
  42. <th>所在科室/部门</th><td>{$info['dep']}</td>
  43. </tr>
  44. {/if}
  45. <tr>
  46. <th>任务内容</th><td><div>{$info['content']}</div></td>
  47. </tr>
  48. {if $info['work_type_mode'] == 3}
  49. <tr>
  50. <th>开始地点</th><td><div>{$info['oc']['start_name']}</div></td>
  51. </tr>
  52. <tr>
  53. <th>运送类型</th>
  54. <td>
  55. {$info['oc']['type_name']}
  56. </td>
  57. </tr>
  58. <tr>
  59. <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
  60. </tr>
  61. <tr>
  62. <th>优先级</th>
  63. <td>
  64. {if $info['oc']['priority'] == 1}可延缓的{/if}
  65. {if $info['oc']['priority'] == 2}常规{/if}
  66. {if $info['oc']['priority'] == 3}紧急{/if}
  67. {if $info['oc']['priority'] == 4}预约{/if}
  68. </td>
  69. </tr>
  70. {if !empty($info['oc']['device_name'])}
  71. <tr>
  72. <th>运送工具</th><td><div>{$info['oc']['device_name']}</div></td>
  73. </tr>
  74. {/if}
  75. <tr>
  76. <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
  77. </tr>
  78. <tr>
  79. <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
  80. </tr>
  81. {if !empty($info['ocp'])}
  82. <tr>
  83. <th>床号</th><td>{$info['ocp']['bed_number']}</td>
  84. </tr>
  85. <tr>
  86. <th>姓名</th><td>{$info['ocp']['name']}</td>
  87. </tr>
  88. <tr>
  89. <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
  90. </tr>
  91. <tr>
  92. <th>性别</th>
  93. <td>
  94. {if $info['ocp']['gender'] == 0}未知{/if}
  95. {if $info['ocp']['gender'] == 1}男{/if}
  96. {if $info['ocp']['gender'] == 2}女{/if}
  97. </td>
  98. </tr>
  99. <tr>
  100. <th>往返</th>
  101. <td>
  102. {if $info['ocp']['back'] == 0}否{/if}
  103. {if $info['ocp']['back'] == 1}是{/if}
  104. </td>
  105. </tr>
  106. {/if}
  107. {/if}
  108. {if $info['work_type_mode']==1}
  109. <tr>
  110. <th>报修事项</th><td>{$info['order_type_matter']}</td>
  111. </tr>
  112. <tr>
  113. <th>报修类型</th><td>{$info['order_type']}</td>
  114. </tr>
  115. <tr>
  116. <th>报修地点</th><td>{$info['address_title']}</td>
  117. </tr>
  118. <tr>
  119. <th>报修紧急程度</th><td>{$info['repair_priority']}</td>
  120. </tr>
  121. {if !empty($info['bx_sign'])}
  122. <tr>
  123. <th>签名图</th>
  124. <td>
  125. <img src="{$info['bx_sign']}" onclick="open_img(this)" width="60" height="60">
  126. </td>
  127. </tr>
  128. {/if}
  129. {/if}
  130. {if !empty($info['voices'])}
  131. <tr>
  132. <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
  133. </tr>
  134. {/if}
  135. {if !empty($info['images'])}
  136. <tr>
  137. <th>图片</th>
  138. <td>
  139. <p>
  140. {foreach $info['images'] as $key=>$val}
  141. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  142. {/foreach}
  143. </p>
  144. </td>
  145. </tr>
  146. {/if}
  147. {if !empty($info['videos'])}
  148. <tr>
  149. <th>视频</th>
  150. <td>
  151. <div id="player" class="player">
  152. <object width="320" height="320" id="f4player" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
  153. <param name="movie" value="/static/f4player/player.swf" />
  154. <param name="quality" value="high" />
  155. <param name="menu" value="false" />
  156. <param name="allowfullscreen" value="true" />
  157. <param name="scale" value="noscale" />
  158. <param name="allowscriptaccess" value="always" />
  159. <param name="swliveconnect" value="true" />
  160. <param name="flashvars" value="skin=/static/f4player/skins/default.swf&video={$info['videos']}&autoplay=0"/>
  161. </object>
  162. </div>
  163. </td>
  164. </tr>
  165. {/if}
  166. {if !empty($info['reason'])}
  167. <tr>
  168. <th>原因</th>
  169. <td>
  170. {$info['reason']}
  171. </td>
  172. </tr>
  173. {/if}
  174. {if $info['order_mode'] == 6 && !empty($info['comment'])}
  175. <tr>
  176. <th>评价</th>
  177. <td>
  178. <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
  179. <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
  180. <div class="atar_show">
  181. <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
  182. </div>
  183. <script>
  184. $("#input-id").rating({
  185. showclear:false,
  186. showcaption: false,
  187. });
  188. </script>
  189. <div>
  190. {$info['comment']['content']}
  191. </div>
  192. </td>
  193. </tr>
  194. {/if}
  195. <tr>
  196. <th>执行人</th><td>{$info['to_real_name']}</td>
  197. </tr>
  198. {if !empty($info['confirm_time'])}
  199. <tr>
  200. <th>接单日期</th><td>{$info['confirm_time']}</td>
  201. </tr>
  202. {/if}
  203. {if !empty($info['done_time'])}
  204. <tr>
  205. <th>完成日期</th><td>{$info['done_time']}</td>
  206. </tr>
  207. {/if}
  208. {if !empty($info['nodo_reason'])}
  209. {if $info['todo_mode']===3}
  210. <tr>
  211. <th>汇报内容</th><td>{$info['nodo_reason']}</td>
  212. </tr>
  213. {/if}
  214. {if $info['todo_mode']===5}
  215. <tr>
  216. <th>无法完成原因</th><td>{$info['nodo_reason']}</td>
  217. </tr>
  218. {/if}
  219. {/if}
  220. {if !empty($info['cancel_reason'])}
  221. <tr>
  222. <th>取消原因</th><td>{$info['cancel_reason']}</td>
  223. </tr>
  224. {/if}
  225. {if !empty($info['nodo_reason'])}
  226. {if $info['todo_mode']===4}
  227. <tr>
  228. <th>驳回原因</th><td>{$info['nodo_reason']}</td>
  229. </tr>
  230. {/if}
  231. {/if}
  232. {if $info['todo_mode']===4 && !empty($info['reject_voice'])}
  233. <tr>
  234. <th>驳回语音</th><td><audio src="{$info['reject_voice']}" controls></audio></td>
  235. </tr>
  236. {/if}
  237. {if !empty($info['todo_ok_img'])}
  238. <tr>
  239. <th>完成图片</th>
  240. <td>
  241. {foreach $info['todo_ok_img'] as $key=>$val}
  242. <img src="{$val}" onclick="open_img(this)" width="60" height="60">
  243. {/foreach}
  244. </td>
  245. </tr>
  246. {/if}
  247. <tr>
  248. <th>调度分派时间</th><td>{$info['to_create_time']}</td>
  249. </tr>
  250. {if condition="$info['todo_mode'] eq 2 and $info['pause'] == 1"}
  251. <tr>
  252. <th>状态</th>
  253. <td>
  254. 挂起
  255. </td>
  256. </tr>
  257. <tr>
  258. <th>挂起原因</th>
  259. <td>
  260. {$info['pause_reason']}
  261. </td>
  262. </tr>
  263. <tr>
  264. <th>挂起时间</th>
  265. <td>
  266. {$info['pause_time']}
  267. </td>
  268. </tr>
  269. {if !empty($info.pauseList)}
  270. <tr>
  271. <th>挂起进度</th>
  272. <td>
  273. {:widget_view('common/timeline',['name'=>'timeline','lists' => $info.pauseList])}
  274. </td>
  275. </tr>
  276. {/if}
  277. {else}
  278. <tr>
  279. <th>状态</th>
  280. <td>
  281. {$info['todo_mode_in_content']}
  282. </td>
  283. </tr>
  284. {/if}
  285. {if $info['todo_mode'] == 3}
  286. <tr>
  287. <th>完成用时</th><td>{$info['time_cost']}</td>
  288. </tr>
  289. {/if}
  290. {if !empty($info['to_ok_images'])}
  291. <tr>
  292. <th>完成图片</th>
  293. <td>
  294. <p>
  295. {foreach $info['to_ok_images'] as $key=>$val}
  296. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  297. {/foreach}
  298. </p>
  299. </td>
  300. </tr>
  301. {/if}
  302. {if in_array($info['todo_mode'],[1,2,4])}
  303. <tr>
  304. <th>操作</th><td>
  305. {if $info.todo_mode==4}
  306. <a url="{:url('send',[],'')}/id/{$info['id']}/mode/{$info['work_type_mode']}" href="javascript:;" onclick="layer_open(this,2)"><span class="btn btn-sm btn-primary">重新分配</span></a> &nbsp;
  307. {/if}
  308. <a {if !btnAuth(session("user_auth.id"),"Todo/cancel")} style="display:none" {/if} url="{:url('disCancel',[],'')}/id/{$info['id']}" href="javascript:;" onclick="layer_open(this,2)"><span class="btn btn-sm btn-default">取消</span></a> &nbsp;
  309. {if $info.todo_mode==1||$info.todo_mode==2}
  310. <!-- <a href="{:url('finish',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="是否确认完成?" data-reload="1"><span class="btn btn-sm btn-primary" title="完成">完成</span></a>-->
  311. {/if}
  312. </td>
  313. </tr>
  314. {/if}
  315. </tbody>
  316. </table>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. {/block}
  322. {block name="script"}
  323. {/block}