0
0

detail.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. {if isset($info['tc']['start_img']) && !empty($info['tc']['start_img'])}
  53. <tr>
  54. <th>开始签名</th><td><div> <img src="{$info['tc']['start_img']}" onclick="open_img(this)" width="60" height="60"></div></td>
  55. </tr>
  56. {/if}
  57. <tr>
  58. <th>运送类型</th>
  59. <td>
  60. {$info['oc']['type_name']}
  61. </td>
  62. </tr>
  63. <tr>
  64. <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
  65. </tr>
  66. {if isset($info['tc']['end_img']) && !empty($info['tc']['end_img'])}
  67. <tr>
  68. <th>结束签名</th><td><div> <img src="{$info['tc']['end_img']}" onclick="open_img(this)" width="60" height="60"></div></td>
  69. </tr>
  70. {/if}
  71. <tr>
  72. <th>优先级</th>
  73. <td>
  74. {if $info['oc']['priority'] == 1}可延缓的{/if}
  75. {if $info['oc']['priority'] == 2}常规{/if}
  76. {if $info['oc']['priority'] == 3}紧急{/if}
  77. {if $info['oc']['priority'] == 4}预约{/if}
  78. </td>
  79. </tr>
  80. {if !empty($info['oc']['device_name'])}
  81. <tr>
  82. <th>运送工具</th><td><div>{$info['oc']['device_name']}</div></td>
  83. </tr>
  84. {/if}
  85. <tr>
  86. <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
  87. </tr>
  88. <tr>
  89. <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
  90. </tr>
  91. {if !empty($info['ocp'])}
  92. <tr>
  93. <th>床号</th><td>{$info['ocp']['bed_number']}</td>
  94. </tr>
  95. <tr>
  96. <th>姓名</th><td>{$info['ocp']['name']}</td>
  97. </tr>
  98. <tr>
  99. <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
  100. </tr>
  101. <tr>
  102. <th>性别</th>
  103. <td>
  104. {if $info['ocp']['gender'] == 0}未知{/if}
  105. {if $info['ocp']['gender'] == 1}男{/if}
  106. {if $info['ocp']['gender'] == 2}女{/if}
  107. </td>
  108. </tr>
  109. <tr>
  110. <th>往返</th>
  111. <td>
  112. {if $info['ocp']['back'] == 0}否{/if}
  113. {if $info['ocp']['back'] == 1}是{/if}
  114. </td>
  115. </tr>
  116. {/if}
  117. {/if}
  118. {if $info['work_type_mode']==1}
  119. <tr>
  120. <th>报修事项</th><td>{$info['order_type_matter']}</td>
  121. </tr>
  122. <tr>
  123. <th>报修类型</th><td>{$info['order_type']}</td>
  124. </tr>
  125. <tr>
  126. <th>报修地点</th><td>{$info['address_title']}</td>
  127. </tr>
  128. <tr>
  129. <th>报修紧急程度</th><td>{$info['repair_priority']}</td>
  130. </tr>
  131. {if !empty($info['bx_sign'])}
  132. <tr>
  133. <th>签名图</th>
  134. <td>
  135. <img src="{$info['bx_sign']}" onclick="open_img(this)" width="60" height="60">
  136. </td>
  137. </tr>
  138. {/if}
  139. {/if}
  140. {if !empty($info['voices'])}
  141. <tr>
  142. <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
  143. </tr>
  144. {/if}
  145. {if !empty($info['images'])}
  146. <tr>
  147. <th>图片</th>
  148. <td>
  149. <p>
  150. {foreach $info['images'] as $key=>$val}
  151. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  152. {/foreach}
  153. </p>
  154. </td>
  155. </tr>
  156. {/if}
  157. {if !empty($info['videos'])}
  158. <tr>
  159. <th>视频</th>
  160. <td>
  161. <div id="player" class="player">
  162. <object width="320" height="320" id="f4player" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
  163. <param name="movie" value="/static/f4player/player.swf" />
  164. <param name="quality" value="high" />
  165. <param name="menu" value="false" />
  166. <param name="allowfullscreen" value="true" />
  167. <param name="scale" value="noscale" />
  168. <param name="allowscriptaccess" value="always" />
  169. <param name="swliveconnect" value="true" />
  170. <param name="flashvars" value="skin=/static/f4player/skins/default.swf&video={$info['videos']}&autoplay=0"/>
  171. </object>
  172. </div>
  173. </td>
  174. </tr>
  175. {/if}
  176. {if !empty($info['reason'])}
  177. <tr>
  178. <th>原因</th>
  179. <td>
  180. {$info['reason']}
  181. </td>
  182. </tr>
  183. {/if}
  184. {if $info['order_mode'] == 6 && !empty($info['comment'])}
  185. <tr>
  186. <th>评价</th>
  187. <td>
  188. <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
  189. <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
  190. <div class="atar_show">
  191. <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
  192. </div>
  193. <script>
  194. $("#input-id").rating({
  195. showclear:false,
  196. showcaption: false,
  197. });
  198. </script>
  199. <div>
  200. {$info['comment']['content']}
  201. </div>
  202. </td>
  203. </tr>
  204. {/if}
  205. <tr>
  206. <th>执行人</th><td>{$info['to_real_name']}</td>
  207. </tr>
  208. {if !empty($info['confirm_time'])}
  209. <tr>
  210. <th>接单日期</th><td>{$info['confirm_time']}</td>
  211. </tr>
  212. {/if}
  213. {if !empty($info['done_time'])}
  214. <tr>
  215. <th>完成日期</th><td>{$info['done_time']}</td>
  216. </tr>
  217. {/if}
  218. {if !empty($info['nodo_reason'])}
  219. {if $info['todo_mode']===3}
  220. <tr>
  221. <th>汇报内容</th><td>{$info['nodo_reason']}</td>
  222. </tr>
  223. {/if}
  224. {if $info['todo_mode']===5}
  225. <tr>
  226. <th>无法完成原因</th><td>{$info['nodo_reason']}</td>
  227. </tr>
  228. {/if}
  229. {/if}
  230. {if !empty($info['cancel_reason'])}
  231. <tr>
  232. <th>取消原因</th><td>{$info['cancel_reason']}</td>
  233. </tr>
  234. {/if}
  235. {if !empty($info['nodo_reason'])}
  236. {if $info['todo_mode']===4}
  237. <tr>
  238. <th>驳回原因</th><td>{$info['nodo_reason']}</td>
  239. </tr>
  240. {/if}
  241. {/if}
  242. {if $info['todo_mode']===4 && !empty($info['reject_voice'])}
  243. <tr>
  244. <th>驳回语音</th><td><audio src="{$info['reject_voice']}" controls></audio></td>
  245. </tr>
  246. {/if}
  247. {if !empty($info['todo_ok_img'])}
  248. <tr>
  249. <th>完成图片</th>
  250. <td>
  251. {foreach $info['todo_ok_img'] as $key=>$val}
  252. <img src="{$val}" onclick="open_img(this)" width="60" height="60">
  253. {/foreach}
  254. </td>
  255. </tr>
  256. {/if}
  257. <tr>
  258. <th>调度分派时间</th><td>{$info['to_create_time']}</td>
  259. </tr>
  260. {if condition="$info['todo_mode'] eq 2 and $info['pause'] == 1"}
  261. <tr>
  262. <th>状态</th>
  263. <td>
  264. 挂起
  265. </td>
  266. </tr>
  267. <tr>
  268. <th>挂起原因</th>
  269. <td>
  270. {$info['pause_reason']}
  271. </td>
  272. </tr>
  273. <tr>
  274. <th>挂起时间</th>
  275. <td>
  276. {$info['pause_time']}
  277. </td>
  278. </tr>
  279. {if !empty($info.pauseList)}
  280. <tr>
  281. <th>挂起进度</th>
  282. <td>
  283. {:widget_view('common/timeline',['name'=>'timeline','lists' => $info.pauseList])}
  284. </td>
  285. </tr>
  286. {/if}
  287. {else}
  288. <tr>
  289. <th>状态</th>
  290. <td>
  291. {$info['todo_mode_in_content']}
  292. </td>
  293. </tr>
  294. {/if}
  295. {if $info['todo_mode'] == 3}
  296. <tr>
  297. <th>完成用时</th><td>{$info['time_cost']}</td>
  298. </tr>
  299. {/if}
  300. {if !empty($info['to_ok_images'])}
  301. <tr>
  302. <th>完成图片</th>
  303. <td>
  304. <p>
  305. {foreach $info['to_ok_images'] as $key=>$val}
  306. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  307. {/foreach}
  308. </p>
  309. </td>
  310. </tr>
  311. {/if}
  312. {if in_array($info['todo_mode'],[1,2,4])}
  313. <tr>
  314. <th>操作</th><td>
  315. {if $info.todo_mode==4}
  316. <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;
  317. {/if}
  318. <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;
  319. {if $info.todo_mode==1||$info.todo_mode==2}
  320. <!-- <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>-->
  321. {/if}
  322. </td>
  323. </tr>
  324. {/if}
  325. </tbody>
  326. </table>
  327. </div>
  328. </div>
  329. </div>
  330. </div>
  331. {/block}
  332. {block name="script"}
  333. {/block}