detail.html 18 KB

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