zg_detail.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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-content">
  16. <table class="table custom-table table-bordered">
  17. <tbody>
  18. <tr>
  19. <th>类型</th><td>{$info['work_type_mode_text']}</td>
  20. </tr>
  21. {if $info['real_name'] != null || $info['real_name'] != ''}
  22. <tr>
  23. <th>申请人</th><td>{$info['real_name']}</td>
  24. </tr>
  25. {/if}
  26. <tr>
  27. <th>联系方式</th><td>{$info['mobile']}</td>
  28. </tr>
  29. <tr>
  30. <th>申请时间</th><td>{$info['create_time']}</td>
  31. </tr>
  32. {if $info['dep'] != null || $info['dep'] != ''}
  33. <tr>
  34. <th>所在科室/部门</th><td>{$info['dep']}</td>
  35. </tr>
  36. {/if}
  37. {if $info['schedulContent']}
  38. <tr>
  39. <th>一级调度附言</th><td>{$info['schedulContent']}</td>
  40. </tr>
  41. {/if}
  42. {if $info['work_type_mode']==1}
  43. <tr>
  44. <th>报修类型</th><td>{$info['order_type']}</td>
  45. </tr>
  46. <tr>
  47. <th>报修事项</th><td>{$info['order_type_matter']}</td>
  48. </tr>
  49. <tr>
  50. <th>报修地点</th><td>{$info['address_title']}</td>
  51. </tr>
  52. <tr>
  53. <th>报修紧急程度</th><td>{$info['repair_priority']}</td>
  54. </tr>
  55. {/if}
  56. <tr>
  57. <th>任务内容</th><td><div>{$info['content']}</div></td>
  58. </tr>
  59. {if $info['work_type_mode'] == 3}
  60. <tr>
  61. <th>开始地点</th><td><div>{$info['oc']['start_name']}</div></td>
  62. </tr>
  63. <tr>
  64. <th>运送类型</th>
  65. <td>
  66. {$info['oc']['type_name']}
  67. </td>
  68. </tr>
  69. <tr>
  70. <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
  71. </tr>
  72. <tr>
  73. <th>优先级</th>
  74. <td>
  75. {if $info['oc']['priority'] == 1}可延缓的{/if}
  76. {if $info['oc']['priority'] == 2}常规{/if}
  77. {if $info['oc']['priority'] == 3}紧急{/if}
  78. {if $info['oc']['priority'] == 4}预约{/if}
  79. </td>
  80. </tr>
  81. <tr>
  82. <th>运送工具</th><td><div>{$info['oc']['device_name']}</div></td>
  83. </tr>
  84. <tr>
  85. <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
  86. </tr>
  87. <tr>
  88. <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
  89. </tr>
  90. <tr>
  91. <th>联系人</th><td><div>{$info['oc']['name']}</div></td>
  92. </tr>
  93. <tr>
  94. <th>联系电话</th><td><div>{$info['oc']['phone']}</div></td>
  95. </tr>
  96. {if !empty($info['ocp'])}
  97. <tr>
  98. <th>床号</th><td>{$info['ocp']['bed_number']}</td>
  99. </tr>
  100. <tr>
  101. <th>姓名</th><td>{$info['ocp']['name']}</td>
  102. </tr>
  103. <tr>
  104. <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
  105. </tr>
  106. <tr>
  107. <th>性别</th>
  108. <td>
  109. {if $info['ocp']['gender'] == 0}未知{/if}
  110. {if $info['ocp']['gender'] == 1}男{/if}
  111. {if $info['ocp']['gender'] == 2}女{/if}
  112. </td>
  113. </tr>
  114. <tr>
  115. <th>往返</th>
  116. <td>
  117. {if $info['ocp']['back'] == 0}否{/if}
  118. {if $info['ocp']['back'] == 1}是{/if}
  119. </td>
  120. </tr>
  121. {/if}
  122. {/if}
  123. {if !empty($info['voices'])}
  124. <tr>
  125. <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
  126. </tr>
  127. {/if}
  128. {if !empty($info['images'])}
  129. <tr>
  130. <th>图片</th>
  131. <td>
  132. <p>
  133. {foreach $info['images'] as $key=>$val}
  134. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  135. {/foreach}
  136. </p>
  137. </td>
  138. </tr>
  139. {/if}
  140. {if !empty($info['videos'])}
  141. <tr>
  142. <th>视频</th>
  143. <td style="width: 200px!important;height: 200px;!important;">
  144. <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
  145. </video>
  146. </td>
  147. </tr>
  148. {/if}
  149. {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff && $level1}
  150. <tr>
  151. <th>状态</th>
  152. <td>
  153. 已处理
  154. </td>
  155. </tr>
  156. {else}
  157. <tr>
  158. <th>状态</th><td><div>{$info['order_mode_text']}</div></td>
  159. </tr>
  160. {/if}
  161. {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff}
  162. <tr>
  163. <th>派单类型</th>
  164. <td>
  165. 二级调度
  166. </td>
  167. </tr>
  168. {/if}
  169. {if $info['is_deal']==0 && $info['order_mode']==4 && $turnoff}
  170. <tr>
  171. <th>派单类型</th>
  172. <td>
  173. 员工
  174. </td>
  175. </tr>
  176. {/if}
  177. {if !empty($info['reason'])}
  178. <tr>
  179. <th>原因</th>
  180. <td>
  181. {$info['reason']}
  182. </td>
  183. </tr>
  184. {/if}
  185. {if $info['order_mode'] == 6 && !empty($info['comment'])}
  186. <tr>
  187. <th>评价</th>
  188. <td>
  189. <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
  190. <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
  191. <div class="atar_show">
  192. <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
  193. </div>
  194. <script>
  195. $("#input-id").rating({
  196. showclear:false,
  197. showcaption: false,
  198. });
  199. </script>
  200. <div>
  201. {$info['comment']['content']}
  202. </div>
  203. </td>
  204. </tr>
  205. {/if}
  206. {if !empty($info['todo_list'])}
  207. <tr>
  208. <th>工单信息</th>
  209. <td>
  210. <table class="table table-bordered">
  211. <tr>
  212. <td style="width: 12.5%">执行人</td>
  213. <td style="width: 12.5%">分派时间</td>
  214. <td style="width: 12.5%">接单时间</td>
  215. <td style="width: 12.5%">完成时间</td>
  216. {if $info['work_type_mode']==1}
  217. <td style="width: 12.5%">签名图</td>
  218. {/if}
  219. <td style="width: 12.5%">完成图片</td>
  220. <td style="width: 12.5%">备注</td>
  221. <td style="width: 12.5%">状态</td>
  222. </tr>
  223. {foreach $info['todo_list'] as $k=>$v}
  224. <tr>
  225. <td>{$v['to_real_name']}</td>
  226. <td>{$v['create_time']}</td>
  227. <td>{$v['confirm_time']}</td>
  228. <td>{$v['done_time']}</td>
  229. {if $info['work_type_mode']==1}
  230. <td>{if !empty($v['sign'])}
  231. <img onclick="open_img(this)" src="{$v['sign']}" width="60" height="60">
  232. {/if}
  233. </td>
  234. {/if}
  235. <td>{if !empty($v['to_ok_images'])}
  236. {foreach $v['to_ok_images'] as $key=>$val}
  237. <img onclick="open_img(this)" src="{$val}" width="60" height="60">
  238. {/foreach}
  239. {/if}
  240. </td>
  241. <td>{$v['nodo_reason']}</td>
  242. <td>
  243. {if condition="$v['work_type_mode'] eq 1 and $v['todo_mode'] eq 2 and $v['pause'] == 1"}
  244. 已挂起 <br>
  245. <div>挂起原因:{$v['pause_reason']}</div>
  246. <div>挂起时间:{$v['pause_time']}</div>
  247. {else /}
  248. {$v['todo_mode_text']}
  249. {/if}
  250. </td>
  251. </tr>
  252. {/foreach}
  253. </table>
  254. </td>
  255. </tr>
  256. {/if}
  257. {if !empty($info['cons'])}
  258. <tr>
  259. <th>耗材信息</th>
  260. <td>
  261. <table class="table table-bordered">
  262. <tr>
  263. <td style="width: 12.5%">名称</td>
  264. <td style="width: 12.5%">数量</td>
  265. <td style="width: 12.5%">单价</td>
  266. <td style="width: 12.5%">总价</td>
  267. <td style="width: 12.5%">使用人</td>
  268. </tr>
  269. {foreach $info['cons'] as $k=>$v}
  270. <tr>
  271. <td>{$v['title']}</td>
  272. <td>{$v['total']}</td>
  273. <td>{$v['money']}</td>
  274. <td>{$v['total_money']}</td>
  275. <td>{$v['realName']}</td>
  276. </tr>
  277. {/foreach}
  278. </table>
  279. </td>
  280. </tr>
  281. {/if}
  282. </tbody>
  283. </table>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. {/block}
  289. {block name="script"}
  290. <script>
  291. function comment(_self) {
  292. var flag = $(_self).attr('data-flag');
  293. if (flag == 1) {
  294. return false;
  295. }
  296. $(_self).attr('data-flag', 1);
  297. var score = $('#create-input-id').val();
  298. var content = $('#content').val();
  299. var id = "{$info.id}";
  300. $.ajax({
  301. url: '{:url("comment")}',
  302. type: "POST",
  303. data: {'id': id, 'score': score, 'content': content},
  304. success: function (result) {
  305. $(_self).attr('data-flag', 0);
  306. if (result.code == 1) {
  307. layer.alert(result.msg, {icon: 1, skin: 'layer-ext-moon'}, function () {
  308. window.location.reload();
  309. });
  310. } else {
  311. layer.alert(result.msg, {icon: 2, skin: 'layer-ext-moon'});
  312. }
  313. },
  314. error: function (result) {
  315. layer.alert('网络请求失败', {icon: 2, skin: 'layer-ext-moon'});
  316. $(_self).attr('data-flag', 0);
  317. }
  318. });
  319. }
  320. </script>
  321. {/block}