detail.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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="{:url('selfIndex')}?mode={$info['work_type_mode']}">-->
  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. {if $info['work_type_mode']==1}
  46. <tr>
  47. <th>报修类型</th><td>{$info['order_type']}</td>
  48. </tr>
  49. <tr>
  50. <th>报修事项</th><td>{$info['order_type_matter']}</td>
  51. </tr>
  52. <tr>
  53. <th>报修地点</th><td>{$info['address_title']}</td>
  54. </tr>
  55. <tr>
  56. <th>报修紧急程度</th><td>{$info['repair_priority']}</td>
  57. </tr>
  58. {/if}
  59. <tr>
  60. <th>任务内容</th><td><div>{$info['content']}</div></td>
  61. </tr>
  62. {if $info['work_type_mode'] == 3}
  63. <tr>
  64. <th>开始地点</th><td><div>{$info['oc']['start_name']}</div></td>
  65. </tr>
  66. <tr>
  67. <th>运送类型</th>
  68. <td>
  69. {$info['oc']['type_name']}
  70. </td>
  71. </tr>
  72. <tr>
  73. <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
  74. </tr>
  75. {if condition="$info['work_type_mode'] == 3&&$info['ends']"}
  76. <tr>
  77. <th>运送路线</th>
  78. <td>
  79. <table class="table table-bordered">
  80. <tr>
  81. <th>地点</th>
  82. <th>是否已扫码</th>
  83. <th>扫码日期</th>
  84. </tr>
  85. {volist name="info['ends']" id="v"}
  86. <tr>
  87. <th>{$v['title']}</th>
  88. <th>
  89. {eq name="v['scan']" value="1"}是{else /}否{/eq}
  90. </th>
  91. <th>{$v['update_time']}</th>
  92. </tr>
  93. {/volist}
  94. </table>
  95. </td>
  96. </tr>
  97. {/if}
  98. <tr>
  99. <th>优先级</th>
  100. <td>
  101. {if $info['oc']['priority'] == 1}可延缓的{/if}
  102. {if $info['oc']['priority'] == 2}常规{/if}
  103. {if $info['oc']['priority'] == 3}紧急{/if}
  104. {if $info['oc']['priority'] == 4}预约{/if}
  105. </td>
  106. </tr>
  107. {if !empty($info['oc']['device_name'])}
  108. <tr>
  109. <th>运送设备</th><td><div>{$info['oc']['device_name']}</div></td>
  110. </tr>
  111. {/if}
  112. <tr>
  113. <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
  114. </tr>
  115. <tr>
  116. <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
  117. </tr>
  118. {if !empty($info['ocp'])}
  119. <tr>
  120. <th>床号</th><td>{$info['ocp']['bed_number']}</td>
  121. </tr>
  122. <tr>
  123. <th>姓名</th><td>{$info['ocp']['name']}</td>
  124. </tr>
  125. <tr>
  126. <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
  127. </tr>
  128. <tr>
  129. <th>性别</th>
  130. <td>
  131. {if $info['ocp']['gender'] == 0}未知{/if}
  132. {if $info['ocp']['gender'] == 1}男{/if}
  133. {if $info['ocp']['gender'] == 2}女{/if}
  134. </td>
  135. </tr>
  136. <tr>
  137. <th>往返</th>
  138. <td>
  139. {if $info['ocp']['back'] == 0}否{/if}
  140. {if $info['ocp']['back'] == 1}是{/if}
  141. </td>
  142. </tr>
  143. {/if}
  144. {/if}
  145. <!-- {if $info['work_type_mode']==1}-->
  146. <!-- <tr>-->
  147. <!-- <th>报修事项</th><td>{$info['order_type_matter']}</td>-->
  148. <!-- </tr>-->
  149. <!-- <tr>-->
  150. <!-- <th>报修类型</th><td>{$info['order_type']}</td>-->
  151. <!-- </tr>-->
  152. <!-- <tr>-->
  153. <!-- <th>报修地点</th><td>{$info['address_title']}</td>-->
  154. <!-- </tr>-->
  155. <!-- {/if}-->
  156. {if !empty($info['voices'])}
  157. <tr>
  158. <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
  159. </tr>
  160. {/if}
  161. {if !empty($info['images'])}
  162. <tr>
  163. <th>图片</th>
  164. <td>
  165. <p>
  166. {foreach $info['images'] as $key=>$val}
  167. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  168. {/foreach}
  169. </p>
  170. </td>
  171. </tr>
  172. {/if}
  173. {if !empty($info['videos'])}
  174. <tr>
  175. <th>视频</th>
  176. <td style="width: 200px!important;height: 200px;!important;">
  177. <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
  178. </video>
  179. </td>
  180. </tr>
  181. {/if}
  182. <tr>
  183. <th>状态</th><td><div>{$info['order_mode_text']}</div></td>
  184. </tr>
  185. {if isset($info['name']) && !empty($info['name'])}
  186. <tr>
  187. <th>联系人</th><td>{$info['name']}</td>
  188. </tr>
  189. {/if}
  190. {if isset($info['phone']) && !empty($info['phone'])}
  191. <tr>
  192. <th>电话</th><td>{$info['phone']}</td>
  193. </tr>
  194. {/if}
  195. {if !empty($info['reason'])}
  196. <tr>
  197. <th>原因</th>
  198. <td>
  199. {$info['reason']}
  200. </td>
  201. </tr>
  202. {/if}
  203. {if $info['order_mode'] == 6 && !empty($info['comment'])}
  204. <tr>
  205. <th>评价</th>
  206. <td>
  207. <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
  208. <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
  209. <div class="atar_show">
  210. <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
  211. </div>
  212. <script>
  213. $("#input-id").rating({
  214. showclear:false,
  215. showcaption: false,
  216. });
  217. </script>
  218. <div>
  219. {$info['comment']['content']}
  220. </div>
  221. </td>
  222. </tr>
  223. {/if}
  224. {if $info['order_mode'] == 5}
  225. <tr>
  226. <th>评价</th>
  227. <td>
  228. <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
  229. <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
  230. <div class="atar_show">
  231. <input id="create-input-id" type="text" class="rating" value="5">
  232. </div>
  233. <script>
  234. $("#create-input-id").rating({
  235. min: 0,
  236. max: 5,
  237. step: 1,
  238. size: 'xs',
  239. showclear:false,
  240. showcaption: false,
  241. });
  242. </script>
  243. <div>
  244. <textarea id="content" class="form-control" cols="80" rows="3"></textarea>
  245. </div>
  246. </td>
  247. </tr>
  248. {/if}
  249. {if $info['order_mode'] == 5}
  250. <tr>
  251. <th></th>
  252. <td>
  253. <button type="button" onclick="comment(this)" class="btn btn-sm btn-primary">评价</button>
  254. </td>
  255. </tr>
  256. {/if}
  257. {if !empty($info['todo_list'])}
  258. <tr>
  259. <th>工单信息</th>
  260. <td>
  261. <table class="table table-bordered">
  262. <tr>
  263. <td style="width: 12.5%">执行人</td>
  264. <td style="width: 12.5%">分派时间</td>
  265. <td style="width: 12.5%">接单时间</td>
  266. <td style="width: 12.5%">完成时间</td>
  267. {if $info['work_type_mode']==1}
  268. <td style="width: 12.5%">签名图</td>
  269. {/if}
  270. <td style="width: 12.5%">完成图片</td>
  271. <td style="width: 12.5%">备注</td>
  272. <td style="width: 12.5%">状态</td>
  273. </tr>
  274. {foreach $info['todo_list'] as $k=>$v}
  275. <tr>
  276. <td>{$v['to_real_name']}</td>
  277. <td>{$v['create_time']}</td>
  278. <td>{$v['confirm_time']}</td>
  279. <td>{$v['done_time']}</td>
  280. {if $info['work_type_mode']==1}
  281. <td>{if !empty($info['sign'])}
  282. <img onclick="open_img(this)" src="{$info['sign']}" width="60" height="60">
  283. {/if}
  284. </td>
  285. {/if}
  286. <td>{if !empty($v['to_ok_images'])}
  287. {foreach $v['to_ok_images'] as $key=>$val}
  288. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  289. {/foreach}
  290. {/if}
  291. </td>
  292. <td>{$v['nodo_reason']}</td>
  293. <td>
  294. {if condition="$v['todo_mode'] eq 2 and $v['pause'] == 1"}
  295. 已挂起 <br>
  296. <div>挂起原因:{$v['pause_reason']}</div>
  297. <div>挂起时间:{$v['pause_time']}</div>
  298. {else /}
  299. {$v['todo_mode_text']}
  300. {/if}
  301. </td>
  302. </tr>
  303. {/foreach}
  304. </table>
  305. </td>
  306. </tr>
  307. {/if}
  308. {if !empty($info['cons'])}
  309. <tr>
  310. <th>耗材信息</th>
  311. <td>
  312. <table class="table table-bordered">
  313. <tr>
  314. <td style="width: 12.5%">名称</td>
  315. <td style="width: 12.5%">数量</td>
  316. <td style="width: 12.5%">单价</td>
  317. <td style="width: 12.5%">总价</td>
  318. <td style="width: 12.5%">使用人</td>
  319. </tr>
  320. {foreach $info['cons'] as $k=>$v}
  321. <tr>
  322. <td>{$v['title']}</td>
  323. <td>{$v['total']}</td>
  324. <td>{$v['money']}</td>
  325. <td>{$v['total_money']}</td>
  326. <td>{$v['realName']}</td>
  327. </tr>
  328. {/foreach}
  329. </table>
  330. </td>
  331. </tr>
  332. {/if}
  333. {if in_array($info['order_mode'],[1])}
  334. <tr>
  335. <th>操作</th><td>
  336. {if $info.order_mode==1}
  337. <a href="{:url('cancel',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="确定要取消吗?"><span class="btn btn-sm btn-default">取消订单</span></a> &nbsp;
  338. {/if}
  339. </td>
  340. </tr>
  341. {/if}
  342. </tbody>
  343. </table>
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. {/block}
  349. {block name="script"}
  350. <script>
  351. function comment() {
  352. var content = $("#content").val();
  353. var score = $("#create-input-id").val();
  354. $.post('{:url("comment")}',{id:"{$info['id']}",score:score,content:content},function (res) {
  355. if(res.code==1){
  356. layer.msg('评价成功',{time:2000},function () {
  357. window.location.reload();
  358. });
  359. }else {
  360. layer.msg(res.msg);
  361. }
  362. })
  363. }
  364. </script>
  365. {/block}