0
0

detail.html 18 KB

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