新增门诊医生站取消接诊功能

This commit is contained in:
qk123
2025-11-13 13:41:48 +08:00
parent ce9344f9ce
commit aca7fea69f
5 changed files with 114 additions and 5 deletions

View File

@@ -63,6 +63,16 @@ export function completeEncounter(encounterId) {
})
}
/**
* 取消接诊
*/
export function cancelEncounter(encounterId) {
return request({
url: '/doctor-station/main/cancel-encounter?encounterId=' + encounterId,
method: 'get',
})
}
/**
* 保存病历
*/

View File

@@ -127,6 +127,13 @@
>
办理住院
</el-button>
<el-button
type="primary"
plain
@click.stop="handleCancelEncounter"
>
取消接诊
</el-button>
</el-descriptions-item>
</el-descriptions>
</div>
@@ -207,6 +214,7 @@ import {
leaveEncounter,
completeEncounter,
getEnPrescriptionInfo,
cancelEncounter,
getEmrHistoryList
} from './components/api.js';
import prescriptionlist from './components/prescription/prescriptionlist.vue';
@@ -481,6 +489,30 @@ function handleReceive(row) {
function openDrawer() {
drawer.value = true;
}
function handleCancelEncounter(){
proxy.$modal.confirm('您确定要取消病人本次的就诊记录吗?','提示信息',{
confirmButtonText: '是(Y)',
cancelButtonText: '否(N)',
type: 'warning'
}).then(() => {
//调用取消接诊API
cancelEncounter(patientInfo.value.encounterId).then((res) => {
if (res.code == 200) {
proxy.$modal.msgSuccess('取消接诊成功');
patientInfo.value = {};
getPatientList();
}
}).catch((error) => {
proxy.$modal.confirm('该病人本次就诊已经有业务产生,不能取消接诊!','提示信息',{
confirmButtonText: '是(Y)',
type: 'warning'
});
});
}).catch(() => {
// 用户取消操作
});
}
</script>
<style lang="scss" scoped>