detail.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .mytable td{
  5. width: 40%;
  6. }
  7. .mytable .table-left{
  8. width: 10%;
  9. text-align: right;
  10. font-weight: bold;
  11. }
  12. </style>
  13. <div class="row">
  14. <div class="col-sm-12">
  15. <div class="ibox float-e-margins">
  16. <div class="ibox-title">
  17. <h5>订单详情</h5>
  18. <div class="ibox-tools">
  19. <a class="toback" href="{:url('index')}">
  20. 返回上一页
  21. </a>
  22. </div>
  23. </div>
  24. <div class="ibox-content">
  25. <table class="mytable table table-striped">
  26. <tr>
  27. <td class="table-left">订单号</td>
  28. <td>{$info.sn}</td>
  29. <td class="table-left">下单日期</td>
  30. <td>{$info.create_time}</td>
  31. </tr>
  32. <tr>
  33. <td class="table-left">科室/部门</td>
  34. <td>{$info.dep_name}</td>
  35. <td class="table-left">创建人</td>
  36. <td>{$info.user_name}</td>
  37. </tr>
  38. <tr>
  39. <td class="table-left">联系人</td>
  40. <td>{$info.contact}</td>
  41. <td class="table-left">联系电话</td>
  42. <td>{$info.phone}</td>
  43. </tr>
  44. <tr>
  45. <td class="table-left">病人姓名</td>
  46. <td>{$info.name}</td>
  47. <td class="table-left">病人性别</td>
  48. <td>
  49. {eq name="info['gender']" value="1"}男{/eq}
  50. {eq name="info['gender']" value="2"}女{/eq}
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="table-left">病人年龄</td>
  55. <td>{$info.age}</td>
  56. <td class="table-left">病人床号</td>
  57. <td>{$info.bed}</td>
  58. </tr>
  59. <tr>
  60. <td class="table-left">所患疾病</td>
  61. <td>{$info.ill}</td>
  62. <td class="table-left">订单金额</td>
  63. <td>{$info.amount}</td>
  64. </tr>
  65. <tr>
  66. <td class="table-left">陪护服务</td>
  67. <td>{$info.cate_name}</td>
  68. <td class="table-left">单价</td>
  69. <td>{$info.price}</td>
  70. </tr>
  71. <tr>
  72. <td class="table-left">开始时间</td>
  73. <td>{$info.start}</td>
  74. <td class="table-left">结束时间</td>
  75. <td>{$info.end}</td>
  76. </tr>
  77. <tr>
  78. <td class="table-left">预收金</td>
  79. <td>{$info.pre_money}</td>
  80. <td class="table-left">状态</td>
  81. <td>
  82. {eq name="info['status']" value="0"}待分配{/eq}
  83. {eq name="info['status']" value="1"}进行中{/eq}
  84. {eq name="info['status']" value="2"}已完成{/eq}
  85. {eq name="info['status']" value="3"}已作废{/eq}
  86. {eq name="info['status']" value="4"}已结算{/eq}
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="table-left">操作</td>
  91. <td colspan="3">
  92. {if condition="$info['status'] eq 0 or $info['status'] eq 1"}
  93. <a href="javascript:;" url="{:url('PhOrders/send',['id'=>$info['id']])}" data-title="派单" onclick="layer_open(this,2)" class="btn btn-sm btn-success">派单</a>
  94. <a href="javascript:;" url="{:url('PhOrders/payOrder',['id'=>$info['id']])}" data-title="预收金" onclick="layer_open(this,2)" class="btn btn-sm btn-primary">预收金</a>
  95. <a href="{:url('PhOrders/edit',['id'=>$info['id']])}" class="btn btn-sm btn-warning">编辑</a>
  96. {if $info['is_zf'] == 0}
  97. <a href="javascript:;" url="{:url('PhOrders/cancel',['id'=>$info['id']])}" data-title="作废" onclick="layer_open(this,2)" class="btn btn-sm btn-danger">作废</a>
  98. {/if}
  99. {/if}
  100. {eq name="info['status']" value="1"}
  101. <a href="javascript:;" url="{:url('PhOrders/finish',['id'=>$info['id']])}" data-title="完成" onclick="layer_open(this,2)" class="btn btn-sm btn-success">完成</a>
  102. {/eq}
  103. </td>
  104. </tr>
  105. </table>
  106. <p><br></p>
  107. <table class="table table-bordered table-striped">
  108. <tr>
  109. <th>调度</th>
  110. <th>护工</th>
  111. <th>开始时间</th>
  112. <th>结束时间</th>
  113. <th>服务天数</th>
  114. <th>备注</th>
  115. <th>状态</th>
  116. <th>派发日期</th>
  117. <th>操作</th>
  118. </tr>
  119. {volist name="info['todo']" id="v"}
  120. <tr>
  121. <td>{$v.user_name}</td>
  122. <td>{$v.worker_name}</td>
  123. <td>{$v.start}</td>
  124. <td>{$v.end}</td>
  125. <td>{$v.day}</td>
  126. <td>{$v.remark}</td>
  127. <td>
  128. {eq name="v['status']" value="0"} 已作废 {/eq}
  129. {eq name="v['status']" value="1"} 服务中 {/eq}
  130. {eq name="v['status']" value="2"} 已结束 {/eq}
  131. </td>
  132. <td>{$v.create_time}</td>
  133. <td>
  134. {if condition="!in_array($info['status'],[3,4])"}
  135. <a href="javascript:;" url="{:url('PhOrders/editTodo',['id'=>$v['id']])}" data-title="编辑" onclick="layer_open(this,2)" class="btn btn-xs btn-warning">编辑</a>
  136. {/if}
  137. </td>
  138. </tr>
  139. {/volist}
  140. {empty name="info['todo']"}
  141. <tr>
  142. <td colspan="9" class="text-center">暂无数据</td>
  143. </tr>
  144. {/empty}
  145. </table>
  146. <p><br></p>
  147. <h3>预收金记录</h3>
  148. <table class="table table-bordered table-striped">
  149. <tr>
  150. <th>支付单号</th>
  151. <th>金额</th>
  152. <th>退款金额</th>
  153. <th>支付类型</th>
  154. <th>支付时间</th>
  155. <th>备注</th>
  156. {if condition="$info['status'] eq 0 or $info['status'] eq 1"}
  157. <th>操作</th>
  158. {/if}
  159. </tr>
  160. {volist name="info['pays']" id="v"}
  161. <tr>
  162. <td>{$v.sn}</td>
  163. <td>{$v.money}</td>
  164. <td>{$v.money2}</td>
  165. <td>
  166. {eq name="v['type']" value="1"}<span>线下</span>{/eq}
  167. {eq name="v['type']" value="2"}<span>线上</span>{/eq}
  168. </td>
  169. <td>{$v.pay_time}</td>
  170. <td>{$v.remark}</td>
  171. {if condition="$info['status'] eq 0 or $info['status'] eq 1"}
  172. <td>
  173. <a href="javascript:;" url="{:url('PhOrders/refund',['id'=>$v['id']])}" data-title="退款" onclick="layer_open(this,2)" class="btn btn-xs btn-danger">退款</a>
  174. </td>
  175. {/if}
  176. </tr>
  177. {/volist}
  178. {empty name="info['pays']"}
  179. <tr>
  180. <td colspan="7" class="text-center">暂无数据</td>
  181. </tr>
  182. {/empty}
  183. </table>
  184. {notempty name="info['refunds']"}
  185. <p><br></p>
  186. <h3>退款记录</h3>
  187. <table class="table table-bordered table-striped">
  188. <tr>
  189. <th>退款单号</th>
  190. <th>金额</th>
  191. <th>类型</th>
  192. <th>时间</th>
  193. <th>备注</th>
  194. </tr>
  195. {volist name="info['refunds']" id="v"}
  196. <tr>
  197. <td>{$v.sn}</td>
  198. <td>{$v.money}</td>
  199. <td>
  200. {eq name="v['type']" value="1"}<span>线下</span>{/eq}
  201. {eq name="v['type']" value="2"}<span>线上</span>{/eq}
  202. </td>
  203. <td>{$v.create_time}</td>
  204. <td>{$v.remark}</td>
  205. </tr>
  206. {/volist}
  207. </table>
  208. {/notempty}
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. {/block}
  214. {block name="script"}
  215. <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
  216. <script>
  217. laydate.render({
  218. elem: '#start',
  219. //设置开始日期、日期日期的 input 选择器
  220. //数组格式为 5.3.0 开始新增,之前版本直接配置 true 或任意分割字符即可
  221. type: 'datetime',
  222. trigger: 'click',
  223. theme: '#2e6da4'
  224. });
  225. </script>
  226. {/block}