更新
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
<el-table-column label="操作" width="380" fixed="right" align="left">
|
||||
<template #default="{ row }">
|
||||
<div class="action-btns">
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
v-perms="['doctor.appointment/detail']"
|
||||
type="primary"
|
||||
link
|
||||
@@ -185,17 +185,17 @@
|
||||
@click="handleDetail(row)"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
<el-button
|
||||
v-perms="['tcm.diagnosis/kaifang']"
|
||||
v-perms="['tcm.diagnosis/edit']"
|
||||
type="primary"
|
||||
link
|
||||
size="small"
|
||||
@click="handleViewCase(row)"
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
病历
|
||||
编辑患者
|
||||
</el-button>
|
||||
<template v-if="row.status === 1">
|
||||
|
||||
<el-button
|
||||
v-perms="['tcm.diagnosis/videoQr']"
|
||||
type="warning"
|
||||
@@ -234,7 +234,7 @@
|
||||
>
|
||||
开方
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<el-dropdown trigger="click" @command="(cmd) => handleAction(cmd, row)" placement="bottom-end">
|
||||
<el-button type="info" link size="small">
|
||||
更多
|
||||
@@ -243,11 +243,11 @@
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item
|
||||
v-perms="['tcm.diagnosis/edit']"
|
||||
command="edit"
|
||||
v-perms="['tcm.diagnosis/kaifang']"
|
||||
command="viewCase"
|
||||
>
|
||||
<el-icon><Edit /></el-icon>
|
||||
编辑患者
|
||||
<el-icon><Document /></el-icon>
|
||||
病历
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="row.status === 1"
|
||||
@@ -761,6 +761,9 @@ const handleAction = (command: string, row: any) => {
|
||||
case 'edit':
|
||||
handleEditPatient(row)
|
||||
break
|
||||
case 'viewCase':
|
||||
handleViewCase(row)
|
||||
break
|
||||
case 'complete':
|
||||
handleComplete(row)
|
||||
break
|
||||
@@ -832,6 +835,11 @@ const handleEditPatient = (row: any) => {
|
||||
editRef.value?.open('edit', row.patient_id)
|
||||
}
|
||||
|
||||
// 编辑患者(按钮直接调用)
|
||||
const handleEdit = (row: any) => {
|
||||
handleEditPatient(row)
|
||||
}
|
||||
|
||||
// 聊天
|
||||
const handleChat = async (row: any) => {
|
||||
if (!row.patient_id) {
|
||||
|
||||
Reference in New Issue
Block a user