detail.html 17 KB

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