detail2.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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. <!--{if condition="$type eq 0"}-->
  16. <!--<div class="ibox-title">-->
  17. <!--<h5>{$meta_title}</h5>-->
  18. <!--<div class="ibox-tools">-->
  19. <!--<a class="toback" href="javascript:;history.back(-1)" >-->
  20. <!--返回上一页-->
  21. <!--</a>-->
  22. <!--</div>-->
  23. <!--</div>-->
  24. <!--{/if}-->
  25. <div class="ibox-content">
  26. <table class="table custom-table table-bordered">
  27. <tbody>
  28. <tr>
  29. <th>订单编号</th><td>{$info['sn']}</td>
  30. </tr>
  31. <tr>
  32. <th>类型</th><td>{$info['work_type_mode_text']}</td>
  33. </tr>
  34. {if $info['real_name'] != null || $info['real_name'] != ''}
  35. <tr>
  36. <th>申请人</th><td>{$info['real_name']}</td>
  37. </tr>
  38. {/if}
  39. <tr>
  40. <th>联系方式</th><td>{$info['mobile']}</td>
  41. </tr>
  42. <tr>
  43. <th>申请时间</th><td>{$info['create_time']}</td>
  44. </tr>
  45. {if $info['dep'] != null || $info['dep'] != ''}
  46. <tr>
  47. <th>所在科室/部门</th><td>{$info['dep']}</td>
  48. </tr>
  49. {/if}
  50. {if $info['schedulContent']}
  51. <tr>
  52. <th>一级调度附言</th><td>{$info['schedulContent']}</td>
  53. </tr>
  54. {/if}
  55. {if $info['work_type_mode']==1}
  56. <tr>
  57. <th>报修类型</th><td>{$info['order_type']}</td>
  58. </tr>
  59. <tr>
  60. <th>报修事项</th><td>{$info['order_type_matter']}</td>
  61. </tr>
  62. <tr>
  63. <th>报修地点</th><td>{$info['address_title']}</td>
  64. </tr>
  65. <tr>
  66. <th>报修紧急程度</th><td>{$info['repair_priority']}</td>
  67. </tr>
  68. {/if}
  69. <tr>
  70. <th>任务内容</th><td><div>{$info['content']}</div></td>
  71. </tr>
  72. {if $info['work_type_mode'] == 3}
  73. <tr>
  74. <th>开始地点</th><td><div>{$info['oc']['start_name']}</div></td>
  75. </tr>
  76. <tr>
  77. <th>运送类型</th>
  78. <td>
  79. {$info['oc']['type_name']}
  80. </td>
  81. </tr>
  82. <tr>
  83. <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
  84. </tr>
  85. <tr>
  86. <th>优先级</th>
  87. <td>
  88. {if $info['oc']['priority'] == 1}可延缓的{/if}
  89. {if $info['oc']['priority'] == 2}常规{/if}
  90. {if $info['oc']['priority'] == 3}紧急{/if}
  91. {if $info['oc']['priority'] == 4}预约{/if}
  92. </td>
  93. </tr>
  94. <tr>
  95. <th>运送工具</th><td><div>{$info['oc']['device_name']}</div></td>
  96. </tr>
  97. <tr>
  98. <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
  99. </tr>
  100. <tr>
  101. <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
  102. </tr>
  103. <tr>
  104. <th>联系人</th><td><div>{$info['oc']['name']}</div></td>
  105. </tr>
  106. <tr>
  107. <th>联系电话</th><td><div>{$info['oc']['phone']}</div></td>
  108. </tr>
  109. {if !empty($info['ocp'])}
  110. <tr>
  111. <th>床号</th><td>{$info['ocp']['bed_number']}</td>
  112. </tr>
  113. <tr>
  114. <th>姓名</th><td>{$info['ocp']['name']}</td>
  115. </tr>
  116. <tr>
  117. <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
  118. </tr>
  119. <tr>
  120. <th>性别</th>
  121. <td>
  122. {if $info['ocp']['gender'] == 0}未知{/if}
  123. {if $info['ocp']['gender'] == 1}男{/if}
  124. {if $info['ocp']['gender'] == 2}女{/if}
  125. </td>
  126. </tr>
  127. <tr>
  128. <th>往返</th>
  129. <td>
  130. {if $info['ocp']['back'] == 0}否{/if}
  131. {if $info['ocp']['back'] == 1}是{/if}
  132. </td>
  133. </tr>
  134. {/if}
  135. {/if}
  136. {if !empty($info['voices'])}
  137. <tr>
  138. <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
  139. </tr>
  140. {/if}
  141. {if !empty($info['images'])}
  142. <tr>
  143. <th>图片</th>
  144. <td>
  145. <p>
  146. {foreach $info['images'] as $key=>$val}
  147. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  148. {/foreach}
  149. </p>
  150. </td>
  151. </tr>
  152. {/if}
  153. {if !empty($info['videos'])}
  154. <tr>
  155. <th>视频</th>
  156. <td style="width: 200px!important;height: 200px;!important;">
  157. <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
  158. </video>
  159. </td>
  160. </tr>
  161. {/if}
  162. {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff && $level1}
  163. <tr>
  164. <th>状态</th>
  165. <td>
  166. 已处理
  167. </td>
  168. </tr>
  169. {else}
  170. <tr>
  171. <th>状态</th><td><div>{$info['order_mode_text']}</div></td>
  172. </tr>
  173. {/if}
  174. {if isset($info['name']) && !empty($info['name'])}
  175. <tr>
  176. <th>联系人</th><td>{$info['name']}</td>
  177. </tr>
  178. {/if}
  179. {if isset($info['phone']) && !empty($info['phone'])}
  180. <tr>
  181. <th>电话</th><td>{$info['phone']}</td>
  182. </tr>
  183. {/if}
  184. {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff}
  185. <tr>
  186. <th>派单类型</th>
  187. <td>
  188. 二级调度
  189. </td>
  190. </tr>
  191. {/if}
  192. {if $info['is_deal']==0 && $info['order_mode']==4 && $turnoff}
  193. <tr>
  194. <th>派单类型</th>
  195. <td>
  196. 员工
  197. </td>
  198. </tr>
  199. {/if}
  200. {if !empty($info['reason'])}
  201. <tr>
  202. <th>原因</th>
  203. <td>
  204. {$info['reason']}
  205. </td>
  206. </tr>
  207. {/if}
  208. {if $info['work_type_mode']==15 && !empty($info['informer_user_name'])}
  209. <tr>
  210. <th>知会人</th>
  211. <td>
  212. {$info['informer_user_name']}
  213. </td>
  214. </tr>
  215. {/if}
  216. {if $info['work_type_mode']==15 && !empty($info['quality_cate_name'])}
  217. <tr>
  218. <th>整改分类</th>
  219. <td>
  220. {$info['quality_cate_name']}
  221. </td>
  222. </tr>
  223. {/if}
  224. {if $info['order_mode'] == 6 && !empty($info['comment'])}
  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="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
  232. </div>
  233. <script>
  234. $("#input-id").rating({
  235. showclear:false,
  236. showcaption: false,
  237. });
  238. </script>
  239. <div>
  240. {$info['comment']['content']}
  241. </div>
  242. </td>
  243. </tr>
  244. {/if}
  245. {if !empty($info['todo_list'])}
  246. <tr>
  247. <th>工单信息</th>
  248. <td>
  249. <table class="table table-bordered">
  250. <tr>
  251. <td style="width: 12.5%">工单编号</td>
  252. <td style="width: 12.5%">执行人</td>
  253. <td style="width: 12.5%">分派时间</td>
  254. <td style="width: 12.5%">接单时间</td>
  255. <td style="width: 12.5%">完成时间</td>
  256. {if $info['work_type_mode']==1}
  257. <td style="width: 12.5%">签名图</td>
  258. {/if}
  259. <td style="width: 12.5%">完成图片</td>
  260. <td style="width: 12.5%">备注</td>
  261. <td style="width: 12.5%">状态</td>
  262. </tr>
  263. {foreach $info['todo_list'] as $k=>$v}
  264. <tr>
  265. <td>{$v['sn']}</td>
  266. <td>{$v['to_real_name']}</td>
  267. <td>{$v['create_time']}</td>
  268. <td>{$v['confirm_time']}</td>
  269. <td>{$v['done_time']}</td>
  270. {if $info['work_type_mode']==1}
  271. <td>{if !empty($v['sign'])}
  272. <img onclick="open_img(this)" src="{$v['sign']}" width="60" height="60">
  273. {/if}
  274. </td>
  275. {/if}
  276. <td>{if !empty($v['to_ok_images'])}
  277. {foreach $v['to_ok_images'] as $key=>$val}
  278. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  279. {/foreach}
  280. {/if}
  281. </td>
  282. <td>{$v['nodo_reason']}</td>
  283. <td>
  284. {if condition="$v['work_type_mode'] eq 1 and $v['todo_mode'] eq 2 and $v['pause'] == 1"}
  285. 已挂起 <br>
  286. <div>挂起原因:{$v['pause_reason']}</div>
  287. <div>挂起时间:{$v['pause_time']}</div>
  288. {else /}
  289. {$v['todo_mode_text']}
  290. {/if}
  291. </td>
  292. </tr>
  293. {/foreach}
  294. </table>
  295. </td>
  296. </tr>
  297. {/if}
  298. {if !empty($info['cons'])}
  299. <tr>
  300. <th>耗材信息</th>
  301. <td>
  302. <table class="table table-bordered">
  303. <tr>
  304. <td style="width: 12.5%">名称</td>
  305. <td style="width: 12.5%">数量</td>
  306. <td style="width: 12.5%">单价</td>
  307. <td style="width: 12.5%">总价</td>
  308. <td style="width: 12.5%">使用人</td>
  309. </tr>
  310. {foreach $info['cons'] as $k=>$v}
  311. <tr>
  312. <td>{$v['title']}</td>
  313. <td>{$v['total']}</td>
  314. <td>{$v['money']}</td>
  315. <td>{$v['total_money']}</td>
  316. <td>{$v['realName']}</td>
  317. </tr>
  318. {/foreach}
  319. </table>
  320. </td>
  321. </tr>
  322. {/if}
  323. {if in_array($info['order_mode'],[1,4]) && $info['del']==0}
  324. <tr>
  325. <th>操作</th><td>
  326. {if condition="($info['is_deal']==0 and $info['order_mode']==1) or (!$turnoff and $info['order_mode']==1) or ($turnoff and $level2 and $info['is_deal']==1 and $info['order_mode']==1)"}
  327. <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;
  328. {/if}
  329. <!-- {if $dispatch_type==0 && $info['is_deal']==0}-->
  330. <!-- {if $info.order_mode==1}-->
  331. <!-- <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;-->
  332. <!-- {/if}-->
  333. <!-- {/if}-->
  334. <!-- {if $dispatch_type==1 && $info['is_deal']==1}-->
  335. <!-- {if $info.order_mode==1}-->
  336. <!-- <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;-->
  337. <!-- {/if}-->
  338. <!-- {/if}-->
  339. {if $info.order_mode==1 || $info.order_mode==4}
  340. <a {if !btnAuth(session("user_auth.id"),"Orders/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;
  341. {/if}
  342. {if $info['order_mode']==1 && $info['work_type_mode']==1 && $org_auto_send}
  343. {if $info['order_type']}
  344. <a class="ajax-get" href="{:url('autoSend',[],'')}/id/{$info['id']}/form/1"><span class="btn btn-sm btn-primary">自动派单</span></a> &nbsp;
  345. {else}
  346. <a href="javascript:;" url="{:url('autoSend',[],'')}/id/{$info['id']}" onclick="layer_open(this,1)" ><span class="btn btn-sm btn-primary">自动派单</span></a> &nbsp;
  347. {/if}
  348. {/if}
  349. {if condition="($info['is_deal']==0 and $info['work_type_mode']==0 and $info['order_mode']==1)"}
  350. <a url="{:url('zd_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;
  351. {/if}
  352. {if $info['is_ch'] == 1}
  353. <a href="{:url('withdraw',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="是否确认撤回订单?"><span class="btn btn-sm btn-danger">撤回</span></a> &nbsp;
  354. {/if}
  355. {if $info.order_mode==4}
  356. <!-- <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>-->
  357. {/if}
  358. </td>
  359. </tr>
  360. {/if}
  361. </tbody>
  362. </table>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. {/block}
  368. {block name="script"}
  369. <script>
  370. function comment(_self) {
  371. var flag = $(_self).attr('data-flag');
  372. if (flag == 1) {
  373. return false;
  374. }
  375. $(_self).attr('data-flag', 1);
  376. var score = $('#create-input-id').val();
  377. var content = $('#content').val();
  378. var id = "{$info.id}";
  379. $.ajax({
  380. url: '{:url("comment")}',
  381. type: "POST",
  382. data: {'id': id, 'score': score, 'content': content},
  383. success: function (result) {
  384. $(_self).attr('data-flag', 0);
  385. if (result.code == 1) {
  386. layer.alert(result.msg, {icon: 1, skin: 'layer-ext-moon'}, function () {
  387. window.location.reload();
  388. });
  389. } else {
  390. layer.alert(result.msg, {icon: 2, skin: 'layer-ext-moon'});
  391. }
  392. },
  393. error: function (result) {
  394. layer.alert('网络请求失败', {icon: 2, skin: 'layer-ext-moon'});
  395. $(_self).attr('data-flag', 0);
  396. }
  397. });
  398. }
  399. </script>
  400. {/block}