医生端查看 当前就诊人全部预约信息
parent
18b96e3935
commit
293c135bd3
@ -0,0 +1,144 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script src="js/jquery-1.12.4.min.js" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css" crossorigin="anonymous">
|
||||
<script src="js/bootstrap.min.js" crossorigin="anonymous"></script>
|
||||
<script src="js/bootstrap-datetimepicker.min.js"></script>
|
||||
<!-- <script src="js/jquery.freezeheader.js"></script> -->
|
||||
<script src="js/jquery.jqprint-0.3.js"></script>
|
||||
<script src="js/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
||||
<link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
//let BaseUrl='http://10.50.120.166/YiJiYuYue/Laravel/public'
|
||||
let BaseUrl='http://yijiyuyue'
|
||||
//获取url参数
|
||||
function getParameterByName(name, url) {
|
||||
if (!url) url = decodeURIComponent(window.location.href)
|
||||
name = name.replace(/[\[\]]/g, '\\$&')
|
||||
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
|
||||
results = regex.exec(url)
|
||||
if (!results) return null
|
||||
if (!results[2]) return ''
|
||||
return decodeURIComponent(results[2].replace(/\+/g, ' '))
|
||||
}
|
||||
function GetList(){
|
||||
$('#table_entrust_list tbody').html('');
|
||||
$('#loadingModal').modal('show');
|
||||
$.post(BaseUrl+'/api/admin/GetPersonYuYueList', {
|
||||
reg_num: getParameterByName('reg_num'),
|
||||
}, function(data) {
|
||||
$('#loadingModal').modal('hide');
|
||||
if (data.status) {
|
||||
if(data.data.list.length>0){
|
||||
data.data.list.forEach(function(v, i) {
|
||||
let zhuangtai =GetStatus(v.list_status)
|
||||
$('#table_entrust_list tbody').append('<tr >\n' +
|
||||
' <td>' + v.user_name + '</td>\n' +
|
||||
' <td>' + v.user_phone + '</td>\n' +
|
||||
' <td>' + v.reg_num + '</td>\n' +
|
||||
' <td>' + v.reservation_department + '</td>\n' +
|
||||
' <td>' + v.implement_department + '</td>\n' +
|
||||
' <td>' + v.department_resources_name + '</td>\n' +
|
||||
' <td>' + v.reservation_date+'</br>' +(v.period_begin_time==null?"":v.period_begin_time.substr(0, 5))+' - ' + (v.period_end_time==null?"":v.period_end_time.substr(0, 5)) +'</td>\n' +
|
||||
' <td>' + v.entrust + '</td>\n' +
|
||||
' <td>' + v.qudao_name + '</td>\n' +
|
||||
' <td class='+zhuangtai[1]+'>' + zhuangtai[0] + '</td>\n' +
|
||||
' </tr>')
|
||||
})
|
||||
}else{
|
||||
$('#table_entrust_list tbody').append('<tr >\n' +
|
||||
' <td colspan=6>' + '暂无数据' + '</td>\n'+
|
||||
' </tr>')
|
||||
}
|
||||
|
||||
$('#usedList').modal('show');
|
||||
}else{
|
||||
MsgAlert(data.msg)
|
||||
}
|
||||
})
|
||||
}
|
||||
function GetStatus(a){
|
||||
switch(a) {
|
||||
case 0:
|
||||
return ["正在申请",""]
|
||||
break;
|
||||
case 1:
|
||||
return ["已预约","yiyuyue"]
|
||||
break;
|
||||
case 2:
|
||||
return ["已登记","yidengji"]
|
||||
break;
|
||||
case 3:
|
||||
return ["完成","yiwancheng"]
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
$(function(){
|
||||
GetList()
|
||||
$('#back_button').click(function(){
|
||||
window.history.back();
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<div style="padding: 0px 40px;">
|
||||
<button type="button" id="back_button" class="btn btn-info" style="width: 130px;margin-bottom: 8px;margin-top: 8px;">返 回</button>
|
||||
<table id="table_entrust_list" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>姓名</th>
|
||||
<th>电话</th>
|
||||
<th>登记号</th>
|
||||
<th>申请科室</th>
|
||||
<th>预约科室</th>
|
||||
<th>预约资源</th>
|
||||
<th>预约时段</th>
|
||||
<th>项目</th>
|
||||
<th>渠道</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
table {
|
||||
width: 100%;
|
||||
color: #666;
|
||||
|
||||
}
|
||||
thead{
|
||||
background-color: #ebe9e9;
|
||||
color: #999898;
|
||||
}
|
||||
table, td, th {
|
||||
border: 1px solid #ccc;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
td ,th{
|
||||
width: 100px ;
|
||||
white-space: normal; /* 保留空白符序列,但是正常换行 */
|
||||
word-break: break-all; /* 允许在单词内换行 */
|
||||
height: 50px;
|
||||
}
|
||||
.yiyuyue{
|
||||
color:#73cb87
|
||||
}
|
||||
.yidengji{
|
||||
color:#cbb573
|
||||
}
|
||||
.yiwancheng{
|
||||
color:#ef9365
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,3 +1,3 @@
|
||||
ENV = 'development'
|
||||
VITE_APP_API = '/api/'
|
||||
VITE_APP_FILE = 'http://yijiyuyue'
|
||||
VITE_APP_FILE = 'http://yijiyuyue-NanShanFuYou'
|
||||
@ -0,0 +1,239 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="head">
|
||||
<el-row>
|
||||
<el-form-item>
|
||||
<el-date-picker style="margin-left: 8px; width: 300px" v-model="searchInfo.dateRange"
|
||||
type="daterange" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间"
|
||||
value-format="YYYY-MM-DD" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select :filterable="true" clearable v-model="searchInfo.list_status" placeholder="状态"
|
||||
style="margin-left: 8px;width: 150px;">
|
||||
<el-option label="申请中" value="0" />
|
||||
<el-option label="已预约" value="1" />
|
||||
<el-option label="已报道" value="2" />
|
||||
<el-option label="已结束" value="3" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-if="loginUserinfo && loginUserinfo.group!=2">
|
||||
<el-select :filterable="true" clearable v-model="searchInfo.patient_type" placeholder="患者类型"
|
||||
style="margin-left: 8px;width: 150px;">
|
||||
<el-option label="住院" value="0" />
|
||||
<el-option label="门诊" value="1" />
|
||||
<el-option label="急诊" value="2" />
|
||||
<el-option label="体检" value="3" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="loginUserinfo && loginUserinfo.group!=2">
|
||||
<el-select multiple :filterable="true" clearable v-model="searchInfo.resources" placeholder="资源"
|
||||
style="margin-left: 8px;width: 250px;">
|
||||
<el-option v-for="(item,index) in enableResourceList" :key="index"
|
||||
:label="item.department_resources_name" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item >
|
||||
<el-form-item v-if="loginUserinfo && loginUserinfo.group!=2">
|
||||
<el-select :filterable="true" clearable v-model="searchInfo.services_group" placeholder="服务组"
|
||||
style="margin-left: 8px;width: 150px;">
|
||||
<el-option v-for="(item,index) in EnableDeviceList" :key="index" :label="item.device_name"
|
||||
:value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item>
|
||||
<el-input v-model="searchInfo.reg_num" placeholder="登记号" style="width: 200px;margin-left: 8px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="searchInfo.user_name" placeholder="患者姓名"
|
||||
style="width: 200px;margin-left: 8px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="searchInfo.apply_department" placeholder="申请科室"
|
||||
style="width: 200px;margin-left: 8px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="searchInfo.doctor" placeholder="医生"
|
||||
style="width: 200px;margin-left: 8px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="GetList()" style="margin-left: 10px;">查询</el-button>
|
||||
</el-form-item>
|
||||
|
||||
</el-row>
|
||||
|
||||
|
||||
<el-row style="margin: 0px 0px 8px 8px; border-top: 1px solid #ccc;padding-top: 8px">
|
||||
<el-button type="success" @click.prevent="openIframe(1)">预 约</el-button>
|
||||
<el-button type="danger" @click="cancel()">取消预约</el-button>
|
||||
<el-button type="warning" @click="openIframe(2)">更改预约时间</el-button>
|
||||
<el-button type="primary" @click="SignInFunc()" style="margin-left: 40px;">报到</el-button>
|
||||
<el-button type="danger" @click="CancelSignFunc()">取消报到</el-button>
|
||||
<el-button style="display: none;" ref="print_shenqingdan_button" v-print="'#shenqingdan'">打印申请单隐藏按钮</el-button>
|
||||
<el-button @click="print_shenqingdan()" >打印申请单</el-button>
|
||||
<el-button v-print="'#tablelist'" >打印表格</el-button>
|
||||
</el-row>
|
||||
</div>
|
||||
<el-table :data="tableData" id="tablelist" style="width: 100%;" row-key="id" v-loading="loading" ref="tableref"
|
||||
@select="handleSelect">
|
||||
<el-table-column type="selection" width="50" />
|
||||
<el-table-column prop="list_status" label="状态" width="80">
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.list_status===0" class="ml-2" type="info">申请中</el-tag>
|
||||
<el-tag v-if="scope.row.list_status===1" class="ml-2" type="success">已预约</el-tag>
|
||||
<el-tag v-if="scope.row.list_status===2" class="ml-2">登记</el-tag>
|
||||
<el-tag v-if="scope.row.list_status===3" class="ml-2" type="warning">完成</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="reg_num" label="登记号" width="100" />
|
||||
<el-table-column prop="user_name" label="姓名" />
|
||||
<el-table-column prop="user_sex" label="性别" width="60">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.user_sex==1">男</span>
|
||||
<span v-if="scope.row.user_sex==2">女</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="age" label="年龄" width="115" />
|
||||
<el-table-column prop="entrust" label="医嘱" width="200" />
|
||||
<el-table-column prop="is_pay" label="是否交费" width="80">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.is_pay==1">是</span>
|
||||
<span v-if="scope.row.is_pay==0">否</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="reservation_date" label="预约日期" width="120" />
|
||||
<el-table-column prop="check_begin_time" label="预约时间" width="120">
|
||||
<template #default="scope">
|
||||
<span
|
||||
v-if="scope.row.period_begin_time && scope.row.period_end_time ">{{scope.row.period_begin_time.substring(0, 5)}}~{{scope.row.period_end_time.substring(0, 5)}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="reservation_department" label="申请科室" width="120" />
|
||||
<el-table-column prop="" label="医嘱时间" width="160">
|
||||
<template #default="scope">
|
||||
{{scope.row.entrust_date}} {{scope.row.entrust_time}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="docotr" label="申请医生" width="80" />
|
||||
<el-table-column prop="patient_type" label="病人类型" width="80">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.patient_type==0">住院</span>
|
||||
<span v-if="scope.row.patient_type==1">门诊</span>
|
||||
<span v-if="scope.row.patient_type==2">急诊</span>
|
||||
<span v-if="scope.row.patient_type==3">体检</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="department_resources_name" label="预约资源" width="120" />
|
||||
<el-table-column prop="user_phone" label="电话" width="120" />
|
||||
<!-- <el-table-column prop="implement_department" label="执行科室" width="120" /> -->
|
||||
<el-table-column prop="devices" label="服务组">
|
||||
<template #default="scope">
|
||||
<div style="white-space: nowrap;">
|
||||
<span v-for="(item,index) in scope.row.devices" :key="index">
|
||||
{{ item.device_name+ ' ' }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="department_resources_name" label="操作" width="120">
|
||||
<template #default="scope">
|
||||
<el-button @click="showLog(scope.row)" size="small">查看日志</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page">
|
||||
<el-pagination v-model:current-page="currentPage" v-model:page-size="pageSize"
|
||||
:page-sizes="[15, 50, 100, 200]" layout="total,sizes, prev, pager, next" :total="total"
|
||||
@size-change="PageSizeChange" @current-change="PageCurrentChange" />
|
||||
</div>
|
||||
<el-dialog v-model="LogShow" title="变更记录" width="50%">
|
||||
<div>
|
||||
<el-table :data="LogList" style="width: 100%;" row-key="id">
|
||||
<el-table-column prop="list_status" label="状态" width="100">
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.new_status==0" class="ml-2" type="info">申请中</el-tag>
|
||||
<el-tag v-if="scope.row.new_status==1" class="ml-2" type="success">已预约</el-tag>
|
||||
<el-tag v-if="scope.row.new_status==2" class="ml-2">登记</el-tag>
|
||||
<el-tag v-if="scope.row.new_status==3" class="ml-2" type="warning">完成</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="reg_num" label="登记号" />
|
||||
<el-table-column prop="note" label="说明" />
|
||||
<el-table-column prop="created_at" label="记录时间" />
|
||||
<el-table-column prop="data" label="状态" width="100">
|
||||
<template #default="scope">
|
||||
<el-button @click="showLogJson(scope.row.data)" size="small">查看data</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="LogDataShow" title="查看dataJson" width="40%">
|
||||
<div style="word-break: break-all">
|
||||
{{LogDataJson}}
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
onMounted,
|
||||
nextTick
|
||||
} from 'vue'
|
||||
|
||||
import {
|
||||
GetMainList,
|
||||
CancelYuYue,
|
||||
GetEnableDeviceList,
|
||||
DepartmentResourceGetEnableList,
|
||||
GetServiceDateTime,
|
||||
GetLoglist,
|
||||
CheckEntrstItemGroup,getMainDetail,SignIn,CancelSign
|
||||
} from '@/api/api.js'
|
||||
import {
|
||||
ElMessage,
|
||||
ElMessageBox
|
||||
} from 'element-plus'
|
||||
let AutoGroup=ref(true);//自动分组是否开启
|
||||
let shenqingdan_show=ref(false);
|
||||
let do_type = ref(0) //按钮操作类型1预约2改约
|
||||
let loading = ref(false)
|
||||
let searchInfo = ref({})
|
||||
let tableData = ref([])
|
||||
let tableref = ref(null)
|
||||
let currentPage = ref(1) //当前页码
|
||||
let pageSize = ref(15) //每页数量
|
||||
let total = 0 //总数量
|
||||
const GetList = () => {
|
||||
loading.value = true
|
||||
GetMainList({
|
||||
searchInfo: searchInfo.value,
|
||||
page: currentPage.value,
|
||||
pageSize: pageSize.value
|
||||
}).then(res => {
|
||||
loading.value = false
|
||||
if (res.status) {
|
||||
tableData.value = res.data.list
|
||||
total = res.data.count
|
||||
} else {
|
||||
ElMessage.error(res.msg)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
const PageSizeChange = (e) => { // 修改每页数量
|
||||
pageSize.value = e
|
||||
GetList()
|
||||
}
|
||||
const PageCurrentChange = (e) => { //切换页码
|
||||
currentPage.value = e
|
||||
GetList()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Reference in New Issue