123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .custom-table th,td{
- padding: 10px;
- }
- .custom-table th{
- width: 120px;
- text-align: left;
- }
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <!--{if condition="$type eq 0"}-->
- <!--<div class="ibox-title">-->
- <!--<h5>{$meta_title}</h5>-->
- <!--<div class="ibox-tools">-->
- <!--<a class="toback" href="javascript:;history.back(-1)" >-->
- <!--返回上一页-->
- <!--</a>-->
- <!--</div>-->
- <!--</div>-->
- <!--{/if}-->
- <div class="ibox-content">
- <table class="table custom-table table-bordered">
- <tbody>
- <tr>
- <th>订单编号</th><td>{$info['sn']}</td>
- </tr>
- <tr>
- <th>类型</th><td>{$info['work_type_mode_text']}</td>
- </tr>
- {if $info['real_name'] != null || $info['real_name'] != ''}
- <tr>
- <th>申请人</th><td>{$info['real_name']}</td>
- </tr>
- {/if}
- <tr>
- <th>联系方式</th><td>{$info['mobile']}</td>
- </tr>
- <tr>
- <th>申请时间</th><td>{$info['create_time']}</td>
- </tr>
- {if $info['dep'] != null || $info['dep'] != ''}
- <tr>
- <th>所在科室/部门</th><td>{$info['dep']}</td>
- </tr>
- {/if}
- {if $info['schedulContent']}
- <tr>
- <th>一级调度附言</th><td>{$info['schedulContent']}</td>
- </tr>
- {/if}
- {if $info['work_type_mode']==1}
- <tr>
- <th>报修类型</th><td>{$info['order_type']}</td>
- </tr>
- <tr>
- <th>报修事项</th><td>{$info['order_type_matter']}</td>
- </tr>
- <tr>
- <th>报修地点</th><td>{$info['address_title']}</td>
- </tr>
- <tr>
- <th>报修紧急程度</th><td>{$info['repair_priority']}</td>
- </tr>
- {/if}
- <tr>
- <th>
- {if $info['work_type_mode'] == 3}
- 任务备注
- {else}
- 任务内容
- {/if}
- </th>
- <td><div>{$info['content']}</div></td>
- </tr>
- {if $info['work_type_mode'] == 3}
- <tr>
- <th>开始地点</th><td><div>{$info['oc']['start_name']}</div></td>
- </tr>
- <tr>
- <th>运送类型</th>
- <td>
- {$info['oc']['type_name']}
- </td>
- </tr>
- <tr>
- <th>结束地点</th><td><div>{$info['oc']['end_name']}</div></td>
- </tr>
- <tr>
- <th>运送总数</th><td>{$info['total_num']}</td>
- </tr>
- {if condition="$info['work_type_mode'] == 3&&$info['ends']"}
- <tr>
- <th>运送路线</th>
- <td>
- <table class="table table-bordered">
- <tr>
- <th>地点</th>
- <th>是否已扫码</th>
- <th>扫码日期</th>
- <th>数量</th>
- <th>图片</th>
- </tr>
- {volist name="info['ends']" id="v"}
- <tr>
- <th>{$v['title']}</th>
- <th>
- {eq name="v['scan']" value="1"}是{else /}否{/eq}
- </th>
- <th>{$v['update_time']}</th>
- <th>{$v['num']}</th>
- <th>{if $v['img']}<img src="{$v['img']}" alt="" width="40px" height="40px" onclick="open_img(this)">{else /}{/if}</th>
- </tr>
- {/volist}
- </table>
- </td>
- </tr>
- {/if}
- <tr>
- <th>优先级</th>
- <td>
- {if $info['oc']['priority'] == 1}可延缓的{/if}
- {if $info['oc']['priority'] == 2}常规{/if}
- {if $info['oc']['priority'] == 3}紧急{/if}
- {if $info['oc']['priority'] == 4}预约{/if}
- </td>
- </tr>
- <tr>
- <th>运送工具</th><td><div>{$info['oc']['device_name']}</div></td>
- </tr>
- <tr>
- <th>需求时间</th><td><div>{$info['oc']['xq_time']}</div></td>
- </tr>
- <tr>
- <th>应完成时间</th><td><div>{$info['oc']['ywc_time']}</div></td>
- </tr>
- <tr>
- <th>联系人</th><td><div>{$info['oc']['name']}</div></td>
- </tr>
- <tr>
- <th>联系电话</th><td><div>{$info['oc']['phone']}</div></td>
- </tr>
- {if !empty($info['ocp'])}
- <tr>
- <th>床号</th><td>{$info['ocp']['bed_number']}</td>
- </tr>
- <tr>
- <th>姓名</th><td>{$info['ocp']['name']}</td>
- </tr>
- <tr>
- <th>病案号</th><td>{$info['ocp']['ba_number']}</td>
- </tr>
- <tr>
- <th>性别</th>
- <td>
- {if $info['ocp']['gender'] == 0}未知{/if}
- {if $info['ocp']['gender'] == 1}男{/if}
- {if $info['ocp']['gender'] == 2}女{/if}
- </td>
- </tr>
- <tr>
- <th>往返</th>
- <td>
- {if $info['ocp']['back'] == 0}否{/if}
- {if $info['ocp']['back'] == 1}是{/if}
- </td>
- </tr>
- {/if}
- {/if}
- {if !empty($info['voices'])}
- <tr>
- <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
- </tr>
- {/if}
- {if !empty($info['images'])}
- <tr>
- <th>图片</th>
- <td>
- <p>
- {foreach $info['images'] as $key=>$val}
- <img onclick="open_img(this)" src="{$val}" width="60" height="60">
- {/foreach}
- </p>
- </td>
- </tr>
- {/if}
- {if !empty($info['videos'])}
- <tr>
- <th>视频</th>
- <td style="width: 200px!important;height: 200px;!important;">
- <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
- </video>
- </td>
- </tr>
- {/if}
- {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff && $level1}
- <tr>
- <th>状态</th>
- <td>
- 已处理
- </td>
- </tr>
- {else}
- <tr>
- <th>状态</th><td><div>{$info['order_mode_text']}</div></td>
- </tr>
- {/if}
- {if isset($info['name']) && !empty($info['name'])}
- <tr>
- <th>联系人</th><td>{$info['name']}</td>
- </tr>
- {/if}
- {if isset($info['phone']) && !empty($info['phone'])}
- <tr>
- <th>电话</th><td>{$info['phone']}</td>
- </tr>
- {/if}
- {if $info['is_deal']==1 && $info['order_mode']==1 && $turnoff}
- <tr>
- <th>派单类型</th>
- <td>
- 二级调度
- </td>
- </tr>
- {/if}
- {if $info['is_deal']==0 && $info['order_mode']==4 && $turnoff}
- <tr>
- <th>派单类型</th>
- <td>
- 员工
- </td>
- </tr>
- {/if}
- {if !empty($info['reason'])}
- <tr>
- <th>原因</th>
- <td>
- {$info['reason']}
- </td>
- </tr>
- {/if}
- {if $info['work_type_mode']==15 && !empty($info['informer_user_name'])}
- <tr>
- <th>知会人</th>
- <td>
- {$info['informer_user_name']}
- </td>
- </tr>
- {/if}
- {if $info['work_type_mode']==15 && !empty($info['quality_cate_name'])}
- <tr>
- <th>整改分类</th>
- <td>
- {$info['quality_cate_name']}
- </td>
- </tr>
- {/if}
- {if $info['order_mode'] == 6 && !empty($info['comment'])}
- <tr>
- <th>评价</th>
- <td>
- <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
- <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
- <div class="atar_show">
- <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
- </div>
- <script>
- $("#input-id").rating({
- showclear:false,
- showcaption: false,
- });
- </script>
- <div>
- {$info['comment']['content']}
- </div>
- </td>
- </tr>
- {/if}
- {if !empty($info['todo_list'])}
- <tr>
- <th>工单信息</th>
- <td>
- <table class="table table-bordered">
- <tr>
- <td style="width: 12.5%">工单编号</td>
- <td style="width: 12.5%">执行人</td>
- <td style="width: 12.5%">分派时间</td>
- <td style="width: 12.5%">接单时间</td>
- <td style="width: 12.5%">完成时间</td>
- {if $info['work_type_mode']==1}
- <td style="width: 12.5%">签名图</td>
- {/if}
- <td style="width: 12.5%">完成图片</td>
- <td style="width: 12.5%">开始签名</td>
- <td style="width: 12.5%">结束签名</td>
- <td style="width: 12.5%">备注</td>
- <td style="width: 12.5%">状态</td>
- </tr>
- {foreach $info['todo_list'] as $k=>$v}
- <tr>
- <td>{$v['sn']}</td>
- <td>{$v['to_real_name']}</td>
- <td>{$v['create_time']}</td>
- <td>{$v['confirm_time']}</td>
- <td>{$v['done_time']}</td>
- {if $info['work_type_mode']==1}
- <td>{if !empty($v['sign'])}
- <img onclick="open_img(this)" src="{$v['sign']}" width="60" height="60">
- {/if}
- </td>
- {/if}
- <td>{if !empty($v['to_ok_images'])}
- {foreach $v['to_ok_images'] as $key=>$val}
- <img onclick="open_img(this)" src="{$val}" width="60" height="60">
- {/foreach}
- {/if}
- </td>
- <td>{if !empty($v['start_img'])}
- <img onclick="open_img(this)" src="{$v['start_img']}" width="60" height="60">
- {/if}
- </td>
- <td>{if !empty($v['end_img'])}
- <img onclick="open_img(this)" src="{$v['end_img']}" width="60" height="60">
- {/if}
- </td>
- <td>{$v['nodo_reason']}</td>
- <td>
- {if condition="$v['work_type_mode'] eq 1 and $v['todo_mode'] eq 2 and $v['pause'] == 1"}
- 已挂起 <br>
- <div>挂起原因:{$v['pause_reason']}</div>
- <div>挂起时间:{$v['pause_time']}</div>
- {else /}
- {$v['todo_mode_text']}
- {/if}
- </td>
- </tr>
- {/foreach}
- </table>
- </td>
- </tr>
- {/if}
- {if !empty($info['cons'])}
- <tr>
- <th>耗材信息</th>
- <td>
- <table class="table table-bordered">
- <tr>
- <td style="width: 12.5%">名称</td>
- <td style="width: 12.5%">数量</td>
- <td style="width: 12.5%">单价</td>
- <td style="width: 12.5%">总价</td>
- <td style="width: 12.5%">使用人</td>
- </tr>
- {foreach $info['cons'] as $k=>$v}
- <tr>
- <td>{$v['title']}</td>
- <td>{$v['total']}</td>
- <td>{$v['money']}</td>
- <td>{$v['total_money']}</td>
- <td>{$v['realName']}</td>
- </tr>
- {/foreach}
- </table>
- </td>
- </tr>
- {/if}
- {if in_array($info['order_mode'],[1,4]) && $info['del']==0}
- <tr>
- <th>操作</th><td>
- {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)"}
- <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>
- {/if}
- <!-- {if $dispatch_type==0 && $info['is_deal']==0}-->
- <!-- {if $info.order_mode==1}-->
- <!-- <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> -->
- <!-- {/if}-->
- <!-- {/if}-->
- <!-- {if $dispatch_type==1 && $info['is_deal']==1}-->
- <!-- {if $info.order_mode==1}-->
- <!-- <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> -->
- <!-- {/if}-->
- <!-- {/if}-->
- {if $info.order_mode==1 || $info.order_mode==4}
- <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>
- {/if}
- {if $info['order_mode']==1 && $info['work_type_mode']==1 && $org_auto_send}
- {if $info['order_type']}
- <a class="ajax-get" href="{:url('autoSend',[],'')}/id/{$info['id']}/form/1"><span class="btn btn-sm btn-primary">自动派单</span></a>
- {else}
- <a href="javascript:;" url="{:url('autoSend',[],'')}/id/{$info['id']}" onclick="layer_open(this,1)" ><span class="btn btn-sm btn-primary">自动派单</span></a>
- {/if}
- {/if}
- {if condition="($info['is_deal']==0 and $info['work_type_mode']==0 and $info['order_mode']==1)"}
- <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>
- {/if}
- {if $info['order_mode']!=1 && ($info['is_ch'] == 1 || empty($info['finish_time']))}
- <a href="{:url('withdraw',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="是否确认撤回订单?"><span class="btn btn-sm btn-danger">撤回</span></a>
- {/if}
- {if $info.order_mode==4}
- <!-- <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>-->
- {/if}
- </td>
- </tr>
- {/if}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- function comment(_self) {
- var flag = $(_self).attr('data-flag');
- if (flag == 1) {
- return false;
- }
- $(_self).attr('data-flag', 1);
- var score = $('#create-input-id').val();
- var content = $('#content').val();
- var id = "{$info.id}";
- $.ajax({
- url: '{:url("comment")}',
- type: "POST",
- data: {'id': id, 'score': score, 'content': content},
- success: function (result) {
- $(_self).attr('data-flag', 0);
- if (result.code == 1) {
- layer.alert(result.msg, {icon: 1, skin: 'layer-ext-moon'}, function () {
- window.location.reload();
- });
- } else {
- layer.alert(result.msg, {icon: 2, skin: 'layer-ext-moon'});
- }
- },
- error: function (result) {
- layer.alert('网络请求失败', {icon: 2, skin: 'layer-ext-moon'});
- $(_self).attr('data-flag', 0);
- }
- });
- }
- </script>
- {/block}
|