|
|
|
@ -30,6 +30,7 @@
|
|
|
|
<el-option label="已预约" value="1" />
|
|
|
|
<el-option label="已预约" value="1" />
|
|
|
|
<el-option label="已报道" value="2" />
|
|
|
|
<el-option label="已报道" value="2" />
|
|
|
|
<el-option label="已结束" value="3" />
|
|
|
|
<el-option label="已结束" value="3" />
|
|
|
|
|
|
|
|
<el-option label="医嘱作废" value="nullify" />
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
@ -102,25 +103,28 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-table :data="tableData" id="tablelist" style="width: 100%;" row-key="id" v-loading="loading" ref="tableref"
|
|
|
|
<el-table :data="tableData" id="tablelist" style="width: 100%;" row-key="id" v-loading="loading" ref="tableref"
|
|
|
|
@select="handleSelect" @sort-change="onSortChange">
|
|
|
|
@select="handleSelect" @sort-change="onSortChange">
|
|
|
|
<el-table-column type="selection" width="50" fixed="left">
|
|
|
|
<el-table-column type="selection" width="50" fixed="left" :selectable="checkSelectable">
|
|
|
|
<template #header><span></span></template>
|
|
|
|
<template #header><span></span></template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="list_status" label="状态" width="80" sortable="custom">
|
|
|
|
<el-table-column prop="list_status" label="状态" width="80" sortable="custom">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
|
|
<el-tag v-if="scope.row.is_nullify===1" class="ml-2" type="danger">已作废</el-tag>
|
|
|
|
|
|
|
|
<template v-else>
|
|
|
|
<el-tag v-if="scope.row.list_status===0" class="ml-2" type="info">申请中</el-tag>
|
|
|
|
<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===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===2" class="ml-2">登记</el-tag>
|
|
|
|
<el-tag v-if="scope.row.list_status===3" class="ml-2" type="warning">完成</el-tag>
|
|
|
|
<el-tag v-if="scope.row.list_status===3" class="ml-2" type="warning">完成</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="reg_num" label="门诊号" width="120" sortable="custom">
|
|
|
|
<el-table-column prop="reg_num" label="门诊号" width="120" sortable="custom">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span v-if="scope.row.patient_type != 0">{{ scope.row.reg_num }}</span>
|
|
|
|
{{ Number(scope.row.patient_type) !== 0 ? scope.row.reg_num : '' }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="episodeid" label="住院号" width="120" sortable="custom">
|
|
|
|
<el-table-column prop="episodeid" label="住院号" width="120" sortable="custom">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span v-if="scope.row.patient_type == 0">{{ scope.row.episodeid?.slice(-10) }}</span>
|
|
|
|
{{ Number(scope.row.patient_type) === 0 ? scope.row.episodeid?.slice(-10) : '' }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="user_name" label="姓名" width="100" sortable="custom" />
|
|
|
|
<el-table-column prop="user_name" label="姓名" width="100" sortable="custom" />
|
|
|
|
@ -146,12 +150,12 @@
|
|
|
|
<span v-if="scope.row.is_pay==0">否</span>
|
|
|
|
<span v-if="scope.row.is_pay==0">否</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="reservation_time" label="预约日期" width="120" sortable="custom">
|
|
|
|
<el-table-column prop="reservation_date" label="预约日期" width="120" sortable="custom">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
{{ scope.row.reservation_date }}
|
|
|
|
{{ scope.row.reservation_date }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="check_begin_time" label="预约时间" width="120">
|
|
|
|
<el-table-column prop="reservation_time" label="预约时间" width="120" sortable="custom">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span
|
|
|
|
<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>
|
|
|
|
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>
|
|
|
|
@ -167,10 +171,10 @@
|
|
|
|
<el-table-column prop="docotr" label="申请医生" width="80" />
|
|
|
|
<el-table-column prop="docotr" label="申请医生" width="80" />
|
|
|
|
<el-table-column prop="patient_type" label="病人类型" width="80">
|
|
|
|
<el-table-column prop="patient_type" label="病人类型" width="80">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span v-if="scope.row.patient_type==0">住院</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===0">住院</span>
|
|
|
|
<span v-if="scope.row.patient_type==1">门诊</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===1">门诊</span>
|
|
|
|
<span v-if="scope.row.patient_type==2">急诊</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===2">急诊</span>
|
|
|
|
<span v-if="scope.row.patient_type==3">体检</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===3">体检</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="user_phone" label="电话" width="120" sortable="custom" />
|
|
|
|
<el-table-column prop="user_phone" label="电话" width="120" sortable="custom" />
|
|
|
|
@ -265,12 +269,12 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="门诊号" width="120">
|
|
|
|
<el-table-column label="门诊号" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span v-if="scope.row.patient_type != 0">{{ scope.row.reg_num }}</span>
|
|
|
|
{{ Number(scope.row.patient_type) !== 0 ? scope.row.reg_num : '' }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="住院号" width="120">
|
|
|
|
<el-table-column label="住院号" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span v-if="scope.row.patient_type == 0">{{ scope.row.episodeid?.slice(-10) }}</span>
|
|
|
|
{{ Number(scope.row.patient_type) === 0 ? scope.row.episodeid?.slice(-10) : '' }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="user_name" label="姓名" />
|
|
|
|
<el-table-column prop="user_name" label="姓名" />
|
|
|
|
@ -308,10 +312,10 @@
|
|
|
|
<el-table-column prop="docotr" label="申请医生" width="80" />
|
|
|
|
<el-table-column prop="docotr" label="申请医生" width="80" />
|
|
|
|
<el-table-column prop="patient_type" label="病人类型" width="80">
|
|
|
|
<el-table-column prop="patient_type" label="病人类型" width="80">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<span v-if="scope.row.patient_type==0">住院</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===0">住院</span>
|
|
|
|
<span v-if="scope.row.patient_type==1">门诊</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===1">门诊</span>
|
|
|
|
<span v-if="scope.row.patient_type==2">急诊</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===2">急诊</span>
|
|
|
|
<span v-if="scope.row.patient_type==3">体检</span>
|
|
|
|
<span v-if="Number(scope.row.patient_type)===3">体检</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="user_phone" label="电话" width="120" />
|
|
|
|
<el-table-column prop="user_phone" label="电话" width="120" />
|
|
|
|
@ -459,6 +463,9 @@
|
|
|
|
GetList()
|
|
|
|
GetList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let tableSelected = ref([])
|
|
|
|
let tableSelected = ref([])
|
|
|
|
|
|
|
|
const checkSelectable = (row) => {
|
|
|
|
|
|
|
|
return row.is_nullify !== 1
|
|
|
|
|
|
|
|
}
|
|
|
|
const handleSelect = (e) => {
|
|
|
|
const handleSelect = (e) => {
|
|
|
|
if (e.length > 1) {
|
|
|
|
if (e.length > 1) {
|
|
|
|
const firstStatus = e[0].list_status;
|
|
|
|
const firstStatus = e[0].list_status;
|
|
|
|
|