123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .mytable td{
- width: 40%;
- }
- .mytable .table-left{
- width: 10%;
- text-align: right;
- font-weight: bold;
- }
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>订单详情</h5>
- <div class="ibox-tools">
- <a class="toback" href="{:url('index')}">
- 返回上一页
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <table class="mytable table table-striped">
- <tr>
- <td class="table-left">订单号</td>
- <td>{$info.sn}</td>
- <td class="table-left">下单日期</td>
- <td>{$info.create_time}</td>
- </tr>
- <tr>
- <td class="table-left">科室/部门</td>
- <td>{$info.dep_name}</td>
- <td class="table-left">创建人</td>
- <td>{$info.user_name}</td>
- </tr>
- <tr>
- <td class="table-left">联系人</td>
- <td>{$info.contact}</td>
- <td class="table-left">联系电话</td>
- <td>{$info.phone}</td>
- </tr>
- <tr>
- <td class="table-left">病人姓名</td>
- <td>{$info.name}</td>
- <td class="table-left">病人性别</td>
- <td>
- {eq name="info['gender']" value="1"}男{/eq}
- {eq name="info['gender']" value="2"}女{/eq}
- </td>
- </tr>
- <tr>
- <td class="table-left">病人年龄</td>
- <td>{$info.age}</td>
- <td class="table-left">病人床号</td>
- <td>{$info.bed}</td>
- </tr>
- <tr>
- <td class="table-left">所患疾病</td>
- <td>{$info.ill}</td>
- <td class="table-left">订单金额</td>
- <td>{$info.amount}</td>
- </tr>
- <tr>
- <td class="table-left">陪护服务</td>
- <td>{$info.cate_name}</td>
- <td class="table-left">单价</td>
- <td>{$info.price}</td>
- </tr>
- <tr>
- <td class="table-left">开始时间</td>
- <td>{$info.start}</td>
- <td class="table-left">结束时间</td>
- <td>{$info.end}</td>
- </tr>
- <tr>
- <td class="table-left">预收金</td>
- <td>{$info.pre_money}</td>
- <td class="table-left">状态</td>
- <td>
- {eq name="info['status']" value="0"}待分配{/eq}
- {eq name="info['status']" value="1"}进行中{/eq}
- {eq name="info['status']" value="2"}已完成{/eq}
- {eq name="info['status']" value="3"}已作废{/eq}
- {eq name="info['status']" value="4"}已结算{/eq}
- </td>
- </tr>
- <tr>
- <td class="table-left">操作</td>
- <td colspan="3">
- {if condition="$info['status'] eq 0 or $info['status'] eq 1"}
- <a href="javascript:;" url="{:url('PhOrders/send',['id'=>$info['id']])}" data-title="派单" onclick="layer_open(this,2)" class="btn btn-sm btn-success">派单</a>
- <a href="javascript:;" url="{:url('PhOrders/payOrder',['id'=>$info['id']])}" data-title="预收金" onclick="layer_open(this,2)" class="btn btn-sm btn-primary">预收金</a>
- <a href="{:url('PhOrders/edit',['id'=>$info['id']])}" class="btn btn-sm btn-warning">编辑</a>
- {if $info['is_zf'] == 0}
- <a href="javascript:;" url="{:url('PhOrders/cancel',['id'=>$info['id']])}" data-title="作废" onclick="layer_open(this,2)" class="btn btn-sm btn-danger">作废</a>
- {/if}
- {/if}
- {eq name="info['status']" value="1"}
- <a href="javascript:;" url="{:url('PhOrders/finish',['id'=>$info['id']])}" data-title="完成" onclick="layer_open(this,2)" class="btn btn-sm btn-success">完成</a>
- {/eq}
- </td>
- </tr>
- </table>
- <p><br></p>
- <table class="table table-bordered table-striped">
- <tr>
- <th>调度</th>
- <th>护工</th>
- <th>开始时间</th>
- <th>结束时间</th>
- <th>服务天数</th>
- <th>备注</th>
- <th>状态</th>
- <th>派发日期</th>
- <th>操作</th>
- </tr>
- {volist name="info['todo']" id="v"}
- <tr>
- <td>{$v.user_name}</td>
- <td>{$v.worker_name}</td>
- <td>{$v.start}</td>
- <td>{$v.end}</td>
- <td>{$v.day}</td>
- <td>{$v.remark}</td>
- <td>
- {eq name="v['status']" value="0"} 已作废 {/eq}
- {eq name="v['status']" value="1"} 服务中 {/eq}
- {eq name="v['status']" value="2"} 已结束 {/eq}
- </td>
- <td>{$v.create_time}</td>
- <td>
- {if condition="!in_array($info['status'],[3,4])"}
- <a href="javascript:;" url="{:url('PhOrders/editTodo',['id'=>$v['id']])}" data-title="编辑" onclick="layer_open(this,2)" class="btn btn-xs btn-warning">编辑</a>
- {/if}
- </td>
- </tr>
- {/volist}
- {empty name="info['todo']"}
- <tr>
- <td colspan="9" class="text-center">暂无数据</td>
- </tr>
- {/empty}
- </table>
- <p><br></p>
- <h3>预收金记录</h3>
- <table class="table table-bordered table-striped">
- <tr>
- <th>支付单号</th>
- <th>金额</th>
- <th>退款金额</th>
- <th>支付类型</th>
- <th>支付时间</th>
- <th>备注</th>
- {if condition="$info['status'] eq 0 or $info['status'] eq 1"}
- <th>操作</th>
- {/if}
- </tr>
- {volist name="info['pays']" id="v"}
- <tr>
- <td>{$v.sn}</td>
- <td>{$v.money}</td>
- <td>{$v.money2}</td>
- <td>
- {eq name="v['type']" value="1"}<span>线下</span>{/eq}
- {eq name="v['type']" value="2"}<span>线上</span>{/eq}
- </td>
- <td>{$v.pay_time}</td>
- <td>{$v.remark}</td>
- {if condition="$info['status'] eq 0 or $info['status'] eq 1"}
- <td>
- <a href="javascript:;" url="{:url('PhOrders/refund',['id'=>$v['id']])}" data-title="退款" onclick="layer_open(this,2)" class="btn btn-xs btn-danger">退款</a>
- </td>
- {/if}
- </tr>
- {/volist}
- {empty name="info['pays']"}
- <tr>
- <td colspan="7" class="text-center">暂无数据</td>
- </tr>
- {/empty}
- </table>
- {notempty name="info['refunds']"}
- <p><br></p>
- <h3>退款记录</h3>
- <table class="table table-bordered table-striped">
- <tr>
- <th>退款单号</th>
- <th>金额</th>
- <th>类型</th>
- <th>时间</th>
- <th>备注</th>
- </tr>
- {volist name="info['refunds']" id="v"}
- <tr>
- <td>{$v.sn}</td>
- <td>{$v.money}</td>
- <td>
- {eq name="v['type']" value="1"}<span>线下</span>{/eq}
- {eq name="v['type']" value="2"}<span>线上</span>{/eq}
- </td>
- <td>{$v.create_time}</td>
- <td>{$v.remark}</td>
- </tr>
- {/volist}
- </table>
- {/notempty}
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
- <script>
- laydate.render({
- elem: '#start',
- //设置开始日期、日期日期的 input 选择器
- //数组格式为 5.3.0 开始新增,之前版本直接配置 true 或任意分割字符即可
- type: 'datetime',
- trigger: 'click',
- theme: '#2e6da4'
- });
- </script>
- {/block}
|