当就诊状态是非接诊时,操作【退号】系统提示‘该患者医生已接诊,不能退号!’。
This commit is contained in:
@@ -503,26 +503,22 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" key="registerTime" prop="registerTime">
|
<el-table-column label="操作" align="center" key="registerTime" prop="registerTime">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- <el-tooltip
|
<el-tooltip
|
||||||
:content="
|
:content="getReturnTooltip(scope.row)"
|
||||||
scope.row.statusEnum == 6
|
|
||||||
? '已退号'
|
|
||||||
: scope.row.statusEnum == 2
|
|
||||||
? '已接诊,不允许退号'
|
|
||||||
: ''
|
|
||||||
"
|
|
||||||
placement="top"
|
placement="top"
|
||||||
:disabled="scope.row.statusEnum != 6"
|
:disabled="!getReturnTooltip(scope.row)"
|
||||||
> -->
|
>
|
||||||
|
<span>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleReturn(scope.row)"
|
@click="handleReturn(scope.row)"
|
||||||
:disabled="scope.row.statusEnum == 6"
|
:disabled="scope.row.statusEnum != 1"
|
||||||
>
|
>
|
||||||
退号
|
退号
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- </el-tooltip> -->
|
</span>
|
||||||
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -1202,7 +1198,24 @@ function handleSearchPatient(value) {
|
|||||||
patientSearchKey.value = value;
|
patientSearchKey.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getReturnTooltip(row) {
|
||||||
|
if (!row) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
if (row.statusEnum == 6) {
|
||||||
|
return '已退号';
|
||||||
|
}
|
||||||
|
if (row.statusEnum != 1) {
|
||||||
|
return '该患者医生已接诊,不能退号!';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
function handleReturn(row) {
|
function handleReturn(row) {
|
||||||
|
if (row.statusEnum != 1) {
|
||||||
|
proxy.$modal.msgError('该患者医生已接诊,不能退号!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
openRefundDialog.value = true;
|
openRefundDialog.value = true;
|
||||||
patientInfo.value.patientId = row.patientId;
|
patientInfo.value.patientId = row.patientId;
|
||||||
patientInfo.value.encounterId = row.encounterId;
|
patientInfo.value.encounterId = row.encounterId;
|
||||||
|
|||||||
Reference in New Issue
Block a user