新增门诊医生站确认取消接诊后移除错误消息提示

This commit is contained in:
qk123
2025-11-17 09:42:01 +08:00
parent 0610ba7cb5
commit f3578b3202
4 changed files with 22 additions and 10 deletions

View File

@@ -66,10 +66,11 @@ export function completeEncounter(encounterId) {
/**
* 取消接诊
*/
export function cancelEncounter(encounterId) {
export function cancelEncounter(encounterId, config = {}) {
return request({
url: '/doctor-station/main/cancel-encounter?encounterId=' + encounterId,
method: 'get',
...config
})
}

View File

@@ -497,7 +497,7 @@ function handleCancelEncounter(){
type: 'warning'
}).then(() => {
//调用取消接诊API
cancelEncounter(patientInfo.value.encounterId).then((res) => {
cancelEncounter(patientInfo.value.encounterId, { skipErrorMsg: true }).then((res) => {
if (res.code == 200) {
proxy.$modal.msgSuccess('取消接诊成功');
patientInfo.value = {};