detail2.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  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>
  71. {if $info['work_type_mode'] == 3}
  72. 任务备注
  73. {else}
  74. 任务内容
  75. {/if}
  76. </th>
  77. <td><div>{$info['content']}</div></td>
  78. </tr>
  79. {if $info['work_type_mode'] == 3}
  80. <tr>
  81. <th>开始地点</th><td><div>{$info['oc']['start_name']}</div></td>
  82. </tr>
  83. <tr>
  84. <th>运送类型</th>
  85. <td>
  86. {$info['oc']['type_name']}
  87. </td>
  88. </tr>
  89. <tr>
  90. <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
  91. </tr>
  92. <tr>
  93. <th>运送总数</th><td>{$info['total_num']}</td>
  94. </tr>
  95. {if condition="$info['work_type_mode'] == 3&&$info['ends']"}
  96. <tr>
  97. <th>运送路线</th>
  98. <td>
  99. <table class="table table-bordered">
  100. <tr>
  101. <th>地点</th>
  102. <th>是否已扫码</th>
  103. <th>扫码日期</th>
  104. <th>数量</th>
  105. <th>图片</th>
  106. </tr>
  107. {volist name="info['ends']" id="v"}
  108. <tr>
  109. <th>{$v['title']}</th>
  110. <th>
  111. {eq name="v['scan']" value="1"}是{else /}否{/eq}
  112. </th>
  113. <th>{$v['update_time']}</th>
  114. <th>{$v['num']}</th>
  115. <th>{if $v['img']}<img src="{$v['img']}" alt="" width="40px" height="40px" onclick="open_img(this)">{else /}{/if}</th>
  116. </tr>
  117. {/volist}
  118. </table>
  119. </td>
  120. </tr>
  121. {/if}
  122. <tr>
  123. <th>优先级</th>
  124. <td>
  125. {if $info['oc']['priority'] == 1}可延缓的{/if}
  126. {if $info['oc']['priority'] == 2}常规{/if}
  127. {if $info['oc']['priority'] == 3}紧急{/if}
  128. {if $info['oc']['priority'] == 4}预约{/if}
  129. </td>
  130. </tr>
  131. <tr>
  132. <th>运送工具</th><td><div>{$info['oc']['device_name']}</div></td>
  133. </tr>
  134. <tr>
  135. <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
  136. </tr>
  137. <tr>
  138. <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
  139. </tr>
  140. <tr>
  141. <th>联系人</th><td><div>{$info['oc']['name']}</div></td>
  142. </tr>
  143. <tr>
  144. <th>联系电话</th><td><div>{$info['oc']['phone']}</div></td>
  145. </tr>
  146. {if !empty($info['ocp'])}
  147. <tr>
  148. <th>床号</th><td>{$info['ocp']['bed_number']}</td>
  149. </tr>
  150. <tr>
  151. <th>姓名</th><td>{$info['ocp']['name']}</td>
  152. </tr>
  153. <tr>
  154. <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
  155. </tr>
  156. <tr>
  157. <th>性别</th>
  158. <td>
  159. {if $info['ocp']['gender'] == 0}未知{/if}
  160. {if $info['ocp']['gender'] == 1}男{/if}
  161. {if $info['ocp']['gender'] == 2}女{/if}
  162. </td>
  163. </tr>
  164. <tr>
  165. <th>往返</th>
  166. <td>
  167. {if $info['ocp']['back'] == 0}否{/if}
  168. {if $info['ocp']['back'] == 1}是{/if}
  169. </td>
  170. </tr>
  171. {/if}
  172. {/if}
  173. {if !empty($info['voices'])}
  174. <tr>
  175. <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
  176. </tr>
  177. {/if}
  178. {if !empty($info['images'])}
  179. <tr>
  180. <th>图片</th>
  181. <td>
  182. <p>
  183. {foreach $info['images'] as $key=>$val}
  184. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  185. {/foreach}
  186. </p>
  187. </td>
  188. </tr>
  189. {/if}
  190. {if !empty($info['videos'])}
  191. <tr>
  192. <th>视频</th>
  193. <td style="width: 200px!important;height: 200px;!important;">
  194. <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
  195. </video>
  196. </td>
  197. </tr>
  198. {/if}
  199. {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff && $level1}
  200. <tr>
  201. <th>状态</th>
  202. <td>
  203. 已处理
  204. </td>
  205. </tr>
  206. {else}
  207. <tr>
  208. <th>状态</th><td><div>{$info['order_mode_text']}</div></td>
  209. </tr>
  210. {/if}
  211. {if isset($info['name']) && !empty($info['name'])}
  212. <tr>
  213. <th>联系人</th><td>{$info['name']}</td>
  214. </tr>
  215. {/if}
  216. {if isset($info['phone']) && !empty($info['phone'])}
  217. <tr>
  218. <th>电话</th><td>{$info['phone']}</td>
  219. </tr>
  220. {/if}
  221. {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff}
  222. <tr>
  223. <th>派单类型</th>
  224. <td>
  225. 二级调度
  226. </td>
  227. </tr>
  228. {/if}
  229. {if $info['is_deal']==0 && $info['order_mode']==4 && $turnoff}
  230. <tr>
  231. <th>派单类型</th>
  232. <td>
  233. 员工
  234. </td>
  235. </tr>
  236. {/if}
  237. {if !empty($info['reason'])}
  238. <tr>
  239. <th>原因</th>
  240. <td>
  241. {$info['reason']}
  242. </td>
  243. </tr>
  244. {/if}
  245. {if $info['work_type_mode']==15 && !empty($info['informer_user_name'])}
  246. <tr>
  247. <th>知会人</th>
  248. <td>
  249. {$info['informer_user_name']}
  250. </td>
  251. </tr>
  252. {/if}
  253. {if $info['work_type_mode']==15 && !empty($info['quality_cate_name'])}
  254. <tr>
  255. <th>整改分类</th>
  256. <td>
  257. {$info['quality_cate_name']}
  258. </td>
  259. </tr>
  260. {/if}
  261. {if $info['order_mode'] == 6 && !empty($info['comment'])}
  262. <tr>
  263. <th>评价</th>
  264. <td>
  265. <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
  266. <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
  267. <div class="atar_show">
  268. <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
  269. </div>
  270. <script>
  271. $("#input-id").rating({
  272. showclear:false,
  273. showcaption: false,
  274. });
  275. </script>
  276. <div>
  277. {$info['comment']['content']}
  278. </div>
  279. </td>
  280. </tr>
  281. {/if}
  282. {if !empty($info['todo_list'])}
  283. <tr>
  284. <th>工单信息</th>
  285. <td>
  286. <table class="table table-bordered">
  287. <tr>
  288. <td style="width: 12.5%">工单编号</td>
  289. <td style="width: 12.5%">执行人</td>
  290. <td style="width: 12.5%">分派时间</td>
  291. <td style="width: 12.5%">接单时间</td>
  292. <td style="width: 12.5%">完成时间</td>
  293. {if $info['work_type_mode']==1}
  294. <td style="width: 12.5%">签名图</td>
  295. {/if}
  296. <td style="width: 12.5%">完成图片</td>
  297. <td style="width: 12.5%">开始签名</td>
  298. <td style="width: 12.5%">结束签名</td>
  299. <td style="width: 12.5%">备注</td>
  300. <td style="width: 12.5%">状态</td>
  301. </tr>
  302. {foreach $info['todo_list'] as $k=>$v}
  303. <tr>
  304. <td>{$v['sn']}</td>
  305. <td>{$v['to_real_name']}</td>
  306. <td>{$v['create_time']}</td>
  307. <td>{$v['confirm_time']}</td>
  308. <td>{$v['done_time']}</td>
  309. {if $info['work_type_mode']==1}
  310. <td>{if !empty($v['sign'])}
  311. <img onclick="open_img(this)" src="{$v['sign']}" width="60" height="60">
  312. {/if}
  313. </td>
  314. {/if}
  315. <td>{if !empty($v['to_ok_images'])}
  316. {foreach $v['to_ok_images'] as $key=>$val}
  317. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  318. {/foreach}
  319. {/if}
  320. </td>
  321. <td>{if !empty($v['start_img'])}
  322. <img onclick="open_img(this)" src="{$v['start_img']}" width="60" height="60">
  323. {/if}
  324. </td>
  325. <td>{if !empty($v['end_img'])}
  326. <img onclick="open_img(this)" src="{$v['end_img']}" width="60" height="60">
  327. {/if}
  328. </td>
  329. <td>{$v['nodo_reason']}</td>
  330. <td>
  331. {if condition="$v['work_type_mode'] eq 1 and $v['todo_mode'] eq 2 and $v['pause'] == 1"}
  332. 已挂起 <br>
  333. <div>挂起原因:{$v['pause_reason']}</div>
  334. <div>挂起时间:{$v['pause_time']}</div>
  335. {else /}
  336. {$v['todo_mode_text']}
  337. {/if}
  338. </td>
  339. </tr>
  340. {/foreach}
  341. </table>
  342. </td>
  343. </tr>
  344. {/if}
  345. {if !empty($info['cons'])}
  346. <tr>
  347. <th>耗材信息</th>
  348. <td>
  349. <table class="table table-bordered">
  350. <tr>
  351. <td style="width: 12.5%">名称</td>
  352. <td style="width: 12.5%">数量</td>
  353. <td style="width: 12.5%">单价</td>
  354. <td style="width: 12.5%">总价</td>
  355. <td style="width: 12.5%">使用人</td>
  356. </tr>
  357. {foreach $info['cons'] as $k=>$v}
  358. <tr>
  359. <td>{$v['title']}</td>
  360. <td>{$v['total']}</td>
  361. <td>{$v['money']}</td>
  362. <td>{$v['total_money']}</td>
  363. <td>{$v['realName']}</td>
  364. </tr>
  365. {/foreach}
  366. </table>
  367. </td>
  368. </tr>
  369. {/if}
  370. {if in_array($info['order_mode'],[1,4]) && $info['del']==0}
  371. <tr>
  372. <th>操作</th><td>
  373. {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)"}
  374. <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;
  375. {/if}
  376. <!-- {if $dispatch_type==0 && $info['is_deal']==0}-->
  377. <!-- {if $info.order_mode==1}-->
  378. <!-- <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;-->
  379. <!-- {/if}-->
  380. <!-- {/if}-->
  381. <!-- {if $dispatch_type==1 && $info['is_deal']==1}-->
  382. <!-- {if $info.order_mode==1}-->
  383. <!-- <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;-->
  384. <!-- {/if}-->
  385. <!-- {/if}-->
  386. {if $info.order_mode==1 || $info.order_mode==4}
  387. <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;
  388. {/if}
  389. {if $info['order_mode']==1 && $info['work_type_mode']==1 && $org_auto_send}
  390. {if $info['order_type']}
  391. <a class="ajax-get" href="{:url('autoSend',[],'')}/id/{$info['id']}/form/1"><span class="btn btn-sm btn-primary">自动派单</span></a> &nbsp;
  392. {else}
  393. <a href="javascript:;" url="{:url('autoSend',[],'')}/id/{$info['id']}" onclick="layer_open(this,1)" ><span class="btn btn-sm btn-primary">自动派单</span></a> &nbsp;
  394. {/if}
  395. {/if}
  396. {if condition="($info['is_deal']==0 and $info['work_type_mode']==0 and $info['order_mode']==1)"}
  397. <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;
  398. {/if}
  399. {if $info['order_mode']!=1 && ($info['is_ch'] == 1 || empty($info['finish_time']))}
  400. <a href="{:url('withdraw',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="是否确认撤回订单?"><span class="btn btn-sm btn-danger">撤回</span></a> &nbsp;
  401. {/if}
  402. {if $info.order_mode==4}
  403. <!-- <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>-->
  404. {/if}
  405. </td>
  406. </tr>
  407. {/if}
  408. </tbody>
  409. </table>
  410. </div>
  411. </div>
  412. </div>
  413. </div>
  414. {/block}
  415. {block name="script"}
  416. <script>
  417. function comment(_self) {
  418. var flag = $(_self).attr('data-flag');
  419. if (flag == 1) {
  420. return false;
  421. }
  422. $(_self).attr('data-flag', 1);
  423. var score = $('#create-input-id').val();
  424. var content = $('#content').val();
  425. var id = "{$info.id}";
  426. $.ajax({
  427. url: '{:url("comment")}',
  428. type: "POST",
  429. data: {'id': id, 'score': score, 'content': content},
  430. success: function (result) {
  431. $(_self).attr('data-flag', 0);
  432. if (result.code == 1) {
  433. layer.alert(result.msg, {icon: 1, skin: 'layer-ext-moon'}, function () {
  434. window.location.reload();
  435. });
  436. } else {
  437. layer.alert(result.msg, {icon: 2, skin: 'layer-ext-moon'});
  438. }
  439. },
  440. error: function (result) {
  441. layer.alert('网络请求失败', {icon: 2, skin: 'layer-ext-moon'});
  442. $(_self).attr('data-flag', 0);
  443. }
  444. });
  445. }
  446. </script>
  447. {/block}