作者 杨育虎
1 个管道 的构建 失败 耗费 6 秒

问诊及转诊审核

... ... @@ -9,6 +9,8 @@
namespace app\admin\controller;
use app\admin\model\InquiryModel;
use app\admin\model\TransferModel;
use app\user\model\UserModel;
use cmf\controller\AdminBaseController;
use EasyWeChat\Foundation\Application;
... ... @@ -31,7 +33,7 @@ class ApprovalController extends AdminBaseController
{
/**
*进修审批列表
* 进修审批列表
* @adminMenu(
* 'name' => '进修审批列表',
* 'parent' => 'default',
... ... @@ -44,7 +46,7 @@ class ApprovalController extends AdminBaseController
* )
*/
public function engageList(){
$map['delete_time']=null;
$map['delete_time']=0;
$list=db('engage')->where($map)->order('id','desc')->paginate('20');
$page = $list->render();
$this->assign('list', $list);
... ... @@ -53,7 +55,7 @@ class ApprovalController extends AdminBaseController
}
/**
*进修详情
* 进修详情
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
... ... @@ -124,4 +126,217 @@ class ApprovalController extends AdminBaseController
}
}
/**
* 问诊审批列表
* @adminMenu(
* 'name' => '问诊审批列表',
* 'parent' => 'default',
* 'display'=> true,
* 'hasView'=> true,
* 'order' => 10000,
* 'icon' => '',
* 'remark' => '问诊审批列表',
* 'param' => ''
* )
*/
public function inquiryList(){
$map['a.delete_time']=0;
$model=new InquiryModel();
$data=$model->alias('a')
->join('__USER__ b','a.user_id=b.id','LEFT')
->field('a.*,b.user_nickname')
->where($map)->order('id','desc')->paginate(20);
$list=$data->items();
$this->assign('list', $list);
$this->assign('page', $data->render());
return $this->fetch();
}
/**
* 进修详情
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function inquiryDetail(){
$id=input('id');
$model=new InquiryModel();
$info=$model->alias('a')->join('__USER__ b','a.user_id=b.id','LEFT')
->field('a.*,b.user_nickname')
->where('a.id',$id)->find();
$this->assign('info',$info);
return $this->fetch();
}
/**
* 删除信息
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function inquiryDelete(){
$map['id']=input('id');
$update['delete_time']=time();
$result=db('inquiry')->where($map)->update($update);
if ($result==1){
$this->success('删除成功!');
}else{
$this->error('删除失败!');
}
}
/**
* 编辑信息
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function inquiryEdit(){
$id=input('id');
$model=new InquiryModel();
$model->startTrans();
$engage=$model->alias('a')->join('__USER__ b','a.user_id=b.id','LEFT')
->field('a.*,b.user_nickname,mobile')
->where('a.id',$id)->find();
$update['status']=input('status');
$result=db('inquiry')->where(['id'=>$id])->update($update);
if ($result==1){
// /*发送模板消息*/
// $User=new UserModel();
// $openid=$User->getUserOpenid($engage['user_id']);
// $userId = $openid;
// $templateId = 'M0PtJ9xxGWkMoCI6p1ZhQLyj83k3PAqkeG94yyMRxD4';
// $url = url('user/expert/inquirydetail',['id'=>$id],'',true);
// if($update['status']==1){
// $first='恭喜您,您提交的问诊审核已通过';
// }else{
// $first='对不起,您提交的问诊审核已被驳回';
// }
//
// $data = array(
// "first"=>$first,
// "keyword1" => $engage['user_nickname'],
// "keyword2" => $engage['mobile'],
// "keyword3" => date('Y-m-d H:i',$engage['addtime']),
// "keyword4" => "问诊审核",
// "remark" => "点击查看详情确认信息",
// );
// $config=config('wechat_config');
// $Wechat=new Application($config);
// $notice = $Wechat->notice;
// $result = $notice->uses($templateId)->withUrl($url)->andData($data)->andReceiver($userId)->send();
$model->commit();
$this->success('审核成功!');
}else{
$model->rollback();
$this->error('审核失败!');
}
}
/**
* 转诊审批列表
* @adminMenu(
* 'name' => '转诊审批列表',
* 'parent' => 'default',
* 'display'=> true,
* 'hasView'=> true,
* 'order' => 10000,
* 'icon' => '',
* 'remark' => '转诊审批列表',
* 'param' => ''
* )
*/
public function transferList(){
$map['a.delete_time']=0;
$model=new TransferModel();
$data=$model->alias('a')
->join('__USER__ b','a.user_id=b.id','LEFT')
->field('a.*,b.user_nickname')
->where($map)->order('id','desc')->paginate(20);
$list=$data->items();
$this->assign('list', $list);
$this->assign('page', $data->render());
return $this->fetch();
}
/**
* 进修详情
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function transferDetail(){
$id=input('id');
$model=new TransferModel();
$info=$model->alias('a')->join('__USER__ b','a.user_id=b.id','LEFT')
->field('a.*,b.user_nickname')
->where('a.id',$id)->find();
$this->assign('info',$info);
return $this->fetch();
}
/**
* 删除信息
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function transferDelete(){
$map['id']=input('id');
$update['delete_time']=time();
$result=db('transfer')->where($map)->update($update);
if ($result==1){
$this->success('删除成功!');
}else{
$this->error('删除失败!');
}
}
/**
* 编辑信息
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function transferEdit(){
$id=input('id');
$model=new TransferModel();
$model->startTrans();
$engage=$model->alias('a')->join('__USER__ b','a.user_id=b.id','LEFT')
->field('a.*,b.user_nickname,mobile')
->where('a.id',$id)->find();
$update['status']=input('status');
$result=db('transfer')->where(['id'=>$id])->update($update);
if ($result==1){
// /*发送模板消息*/
// $User=new UserModel();
// $openid=$User->getUserOpenid($engage['user_id']);
// $userId = $openid;
// $templateId = 'M0PtJ9xxGWkMoCI6p1ZhQLyj83k3PAqkeG94yyMRxD4';
// $url = url('user/expert/transferdetail',['id'=>$id],'',true);
// if($update['status']==1){
// $first='恭喜您,您提交的问诊审核已通过';
// }else{
// $first='对不起,您提交的问诊审核已被驳回';
// }
//
// $data = array(
// "first"=>$first,
// "keyword1" => $engage['user_nickname'],
// "keyword2" => $engage['mobile'],
// "keyword3" => date('Y-m-d H:i',$engage['addtime']),
// "keyword4" => "问诊审核",
// "remark" => "点击查看详情确认信息",
// );
// $config=config('wechat_config');
// $Wechat=new Application($config);
// $notice = $Wechat->notice;
// $result = $notice->uses($templateId)->withUrl($url)->andData($data)->andReceiver($userId)->send();
$model->commit();
$this->success('审核成功!');
}else{
$model->rollback();
$this->error('审核失败!');
}
}
}
\ No newline at end of file
... ...
<?php
namespace app\admin\model;
use think\Model;
use traits\model\SoftDelete;
class InquiryModel extends Model{
protected $type = [
'patient' => 'array',
'diagnose' => 'array',
'problem' => 'array',
];
// protected function getPatientAttr($value){
// return json_decode($value,true);
// }
//
// protected function getDiagnoseAttr($value){
// return json_decode($value,true);
// }
//
// protected function getProblemAttr($value){
// return json_decode($value,true);
// }
}
\ No newline at end of file
... ...
<?php
namespace app\admin\model;
use think\Model;
use traits\model\SoftDelete;
class TransferModel extends Model{
protected $type = [
'patient' => 'array',
'diagnose' => 'array',
'problem' => 'array',
];
// protected function getPatientAttr($value){
// return json_decode($value,true);
// }
//
// protected function getDiagnoseAttr($value){
// return json_decode($value,true);
// }
//
// protected function getProblemAttr($value){
// return json_decode($value,true);
// }
}
\ No newline at end of file
... ...
... ... @@ -11,7 +11,7 @@
return [
// 应用调试模式
'app_debug' => false,
'app_debug' => true,
// 应用Trace
'app_trace' => false,
... ...
<?php
return array (
'ADMIN_APPROVAL_DEFAULT' => '审批管理',
'ADMIN_APPROVAL_ENGAGELIST' => '进修审批列表',
'ADMIN_APPROVAL_INQUIRYLIST' => '问诊审批列表',
'ADMIN_APPROVAL_TRANSFERLIST' => '转诊审批列表',
'ADMIN_GROUP_DEFAULT' => '圈子管理',
'ADMIN_GROUP_GROUPADD' => '添加圈子',
'ADMIN_GROUP_INDEX' => '圈子列表',
'ADMIN_HOOK_INDEX' => '钩子管理',
'ADMIN_HOOK_PLUGINLISTORDER' => '钩子插件排序',
'ADMIN_HOOK_PLUGINS' => '钩子插件管理',
'ADMIN_HOOK_SYNC' => '同步钩子',
'ADMIN_HOSPITAL_DEFAULT' => '医院管理',
'ADMIN_HOSPITAL_HOSPITAL' => '医院列表',
'ADMIN_HOSPITAL_HOSPITALADD' => '添加医院',
'ADMIN_HOSPITAL_HOSPTIALDEL' => '删除医院',
'ADMIN_HOSPITAL_INDEX' => '医院列表',
'ADMIN_HOSPITAL_JOB' => '职位修改',
'ADMIN_HOSPITAL_JOBADD' => '职位添加',
'ADMIN_HOSPITAL_OFFICE' => '科室展示',
'ADMIN_HOSPITAL_OFFICEADD' => '科室添加',
'ADMIN_LINK_ADD' => '添加友情链接',
'ADMIN_LINK_ADDPOST' => '添加友情链接提交保存',
'ADMIN_LINK_DELETE' => '删除友情链接',
'ADMIN_LINK_EDIT' => '编辑友情链接',
'ADMIN_LINK_EDITPOST' => '编辑友情链接提交保存',
'ADMIN_LINK_INDEX' => '友情链接',
'ADMIN_LINK_LISTORDER' => '友情链接排序',
'ADMIN_LINK_TOGGLE' => '友情链接显示隐藏',
'ADMIN_MAILER_INDEX' => '邮箱配置',
'ADMIN_MAILER_INDEXPOST' => '邮箱配置提交保存',
'ADMIN_MAILER_TEMPLATE' => '邮件模板',
'ADMIN_MAILER_TEMPLATEPOST' => '邮件模板提交',
'ADMIN_MAILER_TEST' => '邮件发送测试',
'ADMIN_MENU_ADD' => '后台菜单添加',
'ADMIN_MENU_ADDPOST' => '后台菜单添加提交保存',
'ADMIN_MENU_DELETE' => '后台菜单删除',
'ADMIN_MENU_EDIT' => '后台菜单编辑',
'ADMIN_MENU_EDITPOST' => '后台菜单编辑提交保存',
'ADMIN_MENU_GETACTIONS' => '导入新后台菜单',
'ADMIN_MENU_INDEX' => '后台菜单',
'ADMIN_MENU_LISTORDER' => '后台菜单排序',
'ADMIN_MENU_LISTS' => '所有菜单',
'ADMIN_NAV_ADD' => '添加导航',
'ADMIN_NAV_ADDPOST' => '添加导航提交保存',
'ADMIN_NAV_DELETE' => '删除导航',
'ADMIN_NAV_EDIT' => '编辑导航',
'ADMIN_NAV_EDITPOST' => '编辑导航提交保存',
'ADMIN_NAV_INDEX' => '导航管理',
'ADMIN_NAVMENU_ADD' => '添加导航菜单',
'ADMIN_NAVMENU_ADDPOST' => '添加导航菜单提交保存',
'ADMIN_NAVMENU_DELETE' => '删除导航菜单',
'ADMIN_NAVMENU_EDIT' => '编辑导航菜单',
'ADMIN_NAVMENU_EDITPOST' => '编辑导航菜单提交保存',
'ADMIN_NAVMENU_INDEX' => '导航菜单',
'ADMIN_NAVMENU_LISTORDER' => '导航菜单排序',
'ADMIN_ORDER_DEFAULT' => '订单列表',
'ADMIN_ORDER_INDEX' => '订单列表',
'ADMIN_PLUGIN_DEFAULT' => '插件管理',
'ADMIN_PLUGIN_INDEX' => '插件列表',
'ADMIN_PLUGIN_INSTALL' => '插件安装',
'ADMIN_PLUGIN_SETTING' => '插件设置',
'ADMIN_PLUGIN_SETTINGPOST' => '插件设置提交',
'ADMIN_PLUGIN_TOGGLE' => '插件启用禁用',
'ADMIN_PLUGIN_UNINSTALL' => '卸载插件',
'ADMIN_PLUGIN_UPDATE' => '插件更新',
'ADMIN_RBAC_AUTHORIZE' => '设置角色权限',
'ADMIN_RBAC_AUTHORIZEPOST' => '角色授权提交',
'ADMIN_RBAC_INDEX' => '角色管理',
'ADMIN_RBAC_ROLEADD' => '添加角色',
'ADMIN_RBAC_ROLEADDPOST' => '添加角色提交',
'ADMIN_RBAC_ROLEDELETE' => '删除角色',
'ADMIN_RBAC_ROLEEDIT' => '编辑角色',
'ADMIN_RBAC_ROLEEDITPOST' => '编辑角色提交',
'ADMIN_RECYCLEBIN_DELETE' => '回收站彻底删除',
'ADMIN_RECYCLEBIN_INDEX' => '回收站',
'ADMIN_RECYCLEBIN_RESTORE' => '回收站还原',
'ADMIN_ROUTE_ADD' => '添加路由规则',
'ADMIN_ROUTE_ADDPOST' => '添加路由规则提交',
'ADMIN_ROUTE_BAN' => '路由规则禁用',
'ADMIN_ROUTE_DELETE' => '路由规则删除',
'ADMIN_ROUTE_EDIT' => '路由规则编辑',
'ADMIN_ROUTE_EDITPOST' => '路由规则编辑提交',
'ADMIN_ROUTE_INDEX' => 'URL美化',
'ADMIN_ROUTE_LISTORDER' => '路由规则排序',
'ADMIN_ROUTE_OPEN' => '路由规则启用',
'ADMIN_ROUTE_SELECT' => '选择URL',
'ADMIN_SETTING_CLEARCACHE' => '清除缓存',
'ADMIN_SETTING_DEFAULT' => '设置',
'ADMIN_SETTING_PASSWORD' => '密码修改',
'ADMIN_SETTING_PASSWORDPOST' => '密码修改提交',
'ADMIN_SETTING_SITE' => '网站信息',
'ADMIN_SETTING_SITEPOST' => '网站信息设置提交',
'ADMIN_SETTING_UPLOAD' => '上传设置',
'ADMIN_SETTING_UPLOADPOST' => '上传设置提交',
'ADMIN_SHOP_DEFAULT' => '商品管理',
'ADMIN_SHOP_INDEX' => '商品管理列表',
'ADMIN_SLIDE_ADD' => '添加幻灯片',
'ADMIN_SLIDE_ADDPOST' => '添加幻灯片提交',
'ADMIN_SLIDE_DELETE' => '删除幻灯片',
'ADMIN_SLIDE_EDIT' => '编辑幻灯片',
'ADMIN_SLIDE_EDITPOST' => '编辑幻灯片提交',
'ADMIN_SLIDE_INDEX' => '幻灯片管理',
'ADMIN_SLIDEITEM_ADD' => '幻灯片页面添加',
'ADMIN_SLIDEITEM_ADDPOST' => '幻灯片页面添加提交',
'ADMIN_SLIDEITEM_BAN' => '幻灯片页面隐藏',
'ADMIN_SLIDEITEM_CANCELBAN' => '幻灯片页面显示',
'ADMIN_SLIDEITEM_DELETE' => '幻灯片页面删除',
'ADMIN_SLIDEITEM_EDIT' => '幻灯片页面编辑',
'ADMIN_SLIDEITEM_EDITPOST' => '幻灯片页面编辑提交',
'ADMIN_SLIDEITEM_INDEX' => '幻灯片页面列表',
'ADMIN_SLIDEITEM_LISTORDER' => '幻灯片页面排序',
'ADMIN_STORAGE_INDEX' => '文件存储',
'ADMIN_STORAGE_SETTINGPOST' => '文件存储设置提交',
'ADMIN_THEME_ACTIVE' => '启用模板',
'ADMIN_THEME_DATASOURCE' => '模板文件设置数据源',
'ADMIN_THEME_FILEARRAYDATA' => '模板文件数组数据列表',
'ADMIN_THEME_FILEARRAYDATADELETE' => '模板文件数组数据删除',
'ADMIN_THEME_FILEARRAYDATAEDIT' => '模板文件数组数据添加编辑',
'ADMIN_THEME_FILEARRAYDATAEDITPOST' => '模板文件数组数据添加编辑提交保存',
'ADMIN_THEME_FILES' => '模板文件列表',
'ADMIN_THEME_FILESETTING' => '模板文件设置',
'ADMIN_THEME_INDEX' => '模板管理',
'ADMIN_THEME_INSTALL' => '安装模板',
'ADMIN_THEME_INSTALLTHEME' => '模板安装',
'ADMIN_THEME_SETTINGPOST' => '模板文件编辑提交保存',
'ADMIN_THEME_UNINSTALL' => '卸载模板',
'ADMIN_THEME_UPDATE' => '模板更新',
'ADMIN_USER_ADD' => '管理员添加',
'ADMIN_USER_ADDPOST' => '管理员添加提交',
'ADMIN_USER_BAN' => '停用管理员',
'ADMIN_USER_CANCELBAN' => '启用管理员',
'ADMIN_USER_DEFAULT' => '管理组',
'ADMIN_USER_DELETE' => '管理员删除',
'ADMIN_USER_EDIT' => '管理员编辑',
'ADMIN_USER_EDITPOST' => '管理员编辑提交',
'ADMIN_USER_INDEX' => '管理员',
'ADMIN_USER_USERINFO' => '个人信息',
'ADMIN_USER_USERINFOPOST' => '管理员个人信息修改提交',
'PORTAL_ADMINARTICLE_ADD' => '添加文章',
'PORTAL_ADMINARTICLE_ADDPOST' => '添加文章提交',
'PORTAL_ADMINARTICLE_DELETE' => '文章删除',
'PORTAL_ADMINARTICLE_EDIT' => '编辑文章',
'PORTAL_ADMINARTICLE_EDITPOST' => '编辑文章提交',
'PORTAL_ADMINARTICLE_INDEX' => '文章管理',
'PORTAL_ADMINARTICLE_LISTORDER' => '文章排序',
'PORTAL_ADMINARTICLE_PUBLISH' => '文章发布',
'PORTAL_ADMINARTICLE_RECOMMEND' => '文章推荐',
'PORTAL_ADMINARTICLE_TOP' => '文章置顶',
'PORTAL_ADMINCATEGORY_ADD' => '添加文章分类',
'PORTAL_ADMINCATEGORY_ADDPOST' => '添加文章分类提交',
'PORTAL_ADMINCATEGORY_DELETE' => '删除文章分类',
'PORTAL_ADMINCATEGORY_EDIT' => '编辑文章分类',
'PORTAL_ADMINCATEGORY_EDITPOST' => '编辑文章分类提交',
'PORTAL_ADMINCATEGORY_INDEX' => '平台管理',
'PORTAL_ADMINCATEGORY_LISTORDER' => '文章分类排序',
'PORTAL_ADMINCATEGORY_SELECT' => '文章分类选择对话框',
'PORTAL_ADMININDEX_DEFAULT' => '门户管理',
'PORTAL_ADMINPAGE_ADD' => '添加页面',
'PORTAL_ADMINPAGE_ADDPOST' => '添加页面提交',
'PORTAL_ADMINPAGE_DELETE' => '删除页面',
'PORTAL_ADMINPAGE_EDIT' => '编辑页面',
'PORTAL_ADMINPAGE_EDITPOST' => '编辑页面提交',
'PORTAL_ADMINPAGE_INDEX' => '页面管理',
'PORTAL_ADMINTAG_ADD' => '添加文章标签',
'PORTAL_ADMINTAG_ADDPOST' => '添加文章标签提交',
'PORTAL_ADMINTAG_DELETE' => '删除文章标签',
'PORTAL_ADMINTAG_INDEX' => '文章标签',
'PORTAL_ADMINTAG_UPSTATUS' => '更新标签状态',
'USER_ADMINASSET_DELETE' => '删除文件',
'USER_ADMINASSET_INDEX' => '资源管理',
'USER_ADMININDEX_BAN' => '本站用户拉黑',
'USER_ADMININDEX_CANCELBAN' => '本站用户启用',
'USER_ADMININDEX_DEFAULT' => '用户管理',
'USER_ADMININDEX_DEFAULT1' => '用户组',
'USER_ADMININDEX_INDEX' => '本站用户',
'USER_ADMININDEX_SCORE' => '积分管理',
'USER_ADMININDEX_SCOREPOST' => '积分管理',
'USER_ADMINOAUTH_DELETE' => '删除第三方用户绑定',
'USER_ADMINOAUTH_INDEX' => '第三方用户',
'USER_ADMINUSERACTION_EDIT' => '编辑用户操作',
'USER_ADMINUSERACTION_EDITPOST' => '编辑用户操作提交',
'USER_ADMINUSERACTION_INDEX' => '用户操作管理',
'USER_ADMINUSERACTION_SYNC' => '同步用户操作',
);
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a></a></li>
<li class="active"><a>进修审批列表</a></li>
</ul>
<!-- <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index')}">
用户ID:
... ...
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:url('inquiryList')}">问诊审批列表</a></li>
<li class="active"><a>进修信息详情</a></li>
</ul>
<form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('inquiryDetail')}" method="post">
<input type="hidden" name="id" value="{$info.id}">
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active" id="A">
<div class="form-group">
<label class="col-sm-2 control-label">姓名</label>
<div class="col-md-6 col-sm-10">
{$info.user_nickname|default=''}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">病人主诉</label>
<div class="col-md-6 col-sm-10">
<notempty name="info.patient.dir">
<volist name="info.patient.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$info['patient']['content']}
</notempty>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">初步诊断</label>
<div class="col-md-6 col-sm-10">
<notempty name="info.diagnose.dir">
<volist name="info.diagnose.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$info['diagnose']['content']}
</notempty>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">困惑</label>
<div class="col-md-6 col-sm-10">
<notempty name="info.problem.dir">
<volist name="info.problem.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$info['problem']['content']}
</notempty>
</div>
</div>
<if condition="$info.status==0">
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit"
data-action="{:url('inquiryEdit',['status'=>1])}" data-refresh="1">审核通过
</button>
<button type="submit" class="btn btn-primary js-ajax-submit"
data-action="{:url('inquiryEdit',['status'=>2])}" data-refresh="1">审核驳回
</button>
</div>
</div>
</if>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<include file="public@header"/>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a>问诊审批列表</a></li>
</ul>
<form method="post" class="js-ajax-form">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="80">ID</th>
<th width="80">姓名</th>
<th width="200">病人主诉</th>
<th width="200">初步诊断</th>
<th width="200">困惑</th>
<th width="150">提交时间</th>
<th width="80">状态</th>
<th width="150">操作</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.user_nickname}</td>
<td>
<notempty name="vo.patient.dir">
<volist name="vo.patient.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$vo['patient']['content']}
</notempty>
</td>
<td>
<notempty name="vo.diagnose.dir">
<volist name="vo.diagnose.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$vo['diagnose']['content']}
</notempty>
</td>
<td>
<notempty name="vo.problem.dir">
<volist name="vo.problem.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$vo['problem']['content']}
</notempty>
</td>
<td>{:date('Y-m-d H:i:s',$vo.addtime)}</td>
<td>
<switch name="$vo.status">
<case value="0"><font color="#a52a2a">未审核</font></case>
<case value="1"><font color="#006400">已通过</font></case>
<case value="2"><font color="black">已驳回</font></case>
</switch>
</td>
<td>
<a href="{:url('inquiryDetail',['id'=>$vo.id])}">查看详情</a>
<a class="js-ajax-delete" href="{:url('inquiryDelete',['id'=>$vo.id])}">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:url('transferList')}">问诊审批列表</a></li>
<li class="active"><a>进修信息详情</a></li>
</ul>
<form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('transferDetail')}" method="post">
<input type="hidden" name="id" value="{$info.id}">
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active" id="A">
<div class="form-group">
<label class="col-sm-2 control-label">姓名</label>
<div class="col-md-6 col-sm-10">
{$info.user_nickname|default=''}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">病人主诉</label>
<div class="col-md-6 col-sm-10">
<notempty name="info.patient.dir">
<volist name="info.patient.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$info['patient']['content']}
</notempty>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">初步诊断</label>
<div class="col-md-6 col-sm-10">
<notempty name="info.diagnose.dir">
<volist name="info.diagnose.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$info['diagnose']['content']}
</notempty>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">困惑</label>
<div class="col-md-6 col-sm-10">
<notempty name="info.problem.dir">
<volist name="info.problem.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$info['problem']['content']}
</notempty>
</div>
</div>
<if condition="$info.status==0">
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit"
data-action="{:url('transferEdit',['status'=>1])}" data-refresh="1">审核通过
</button>
<button type="submit" class="btn btn-primary js-ajax-submit"
data-action="{:url('transferEdit',['status'=>2])}" data-refresh="1">审核驳回
</button>
</div>
</div>
</if>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<include file="public@header"/>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a>问诊审批列表</a></li>
</ul>
<form method="post" class="js-ajax-form">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="80">ID</th>
<th width="80">姓名</th>
<th width="200">病人主诉</th>
<th width="200">初步诊断</th>
<th width="200">困惑</th>
<th width="150">提交时间</th>
<th width="80">状态</th>
<th width="150">操作</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.user_nickname}</td>
<td>
<notempty name="vo.patient.dir">
<volist name="vo.patient.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$vo['patient']['content']}
</notempty>
</td>
<td>
<notempty name="vo.diagnose.dir">
<volist name="vo.diagnose.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$vo['diagnose']['content']}
</notempty>
</td>
<td>
<notempty name="vo.problem.dir">
<volist name="vo.problem.dir" id="dir">
<audio src="{$dir}" controls></audio>
</volist>
<else/>
{$vo['problem']['content']}
</notempty>
</td>
<td>{:date('Y-m-d H:i:s',$vo.addtime)}</td>
<td>
<switch name="$vo.status">
<case value="0"><font color="#a52a2a">未审核</font></case>
<case value="1"><font color="#006400">已通过</font></case>
<case value="2"><font color="black">已驳回</font></case>
</switch>
</td>
<td>
<a href="{:url('transferDetail',['id'=>$vo.id])}">查看详情</a>
<a class="js-ajax-delete" href="{:url('transferDelete',['id'=>$vo.id])}">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...