fix: 接诊UI
This commit is contained in:
@@ -512,11 +512,11 @@ const executeSendPrescription = async (
|
|||||||
customStoreId,
|
customStoreId,
|
||||||
warehouseMap,
|
warehouseMap,
|
||||||
);
|
);
|
||||||
|
|
||||||
// 检查返回结果,可能是boolean或包含转诊信息的对象
|
// 检查返回结果,可能是boolean或包含转诊信息的对象
|
||||||
const success = typeof result === 'boolean' ? result : result?.success !== false;
|
const success = typeof result === 'boolean' ? result : result?.success !== false;
|
||||||
const prescriptionResult = typeof result === 'object' ? result : null;
|
const prescriptionResult = typeof result === 'object' ? result : null;
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
// VIP 病历:发送成功后同步保存(诊断/医嘱与处方同源)
|
// VIP 病历:发送成功后同步保存(诊断/医嘱与处方同源)
|
||||||
if (canUseMedicalRecord.value) {
|
if (canUseMedicalRecord.value) {
|
||||||
@@ -555,7 +555,7 @@ const executeSendPrescription = async (
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modalData.value?.onPrescriptionSent) {
|
if (modalData.value?.onPrescriptionSent) {
|
||||||
modalData.value.onPrescriptionSent();
|
modalData.value.onPrescriptionSent();
|
||||||
}
|
}
|
||||||
@@ -589,7 +589,7 @@ const searchOption = (inputValue: string) => {
|
|||||||
|
|
||||||
const tabChange = async (id: number) => {
|
const tabChange = async (id: number) => {
|
||||||
prescriptionStore.changeCategory(id);
|
prescriptionStore.changeCategory(id);
|
||||||
|
|
||||||
// 如果切换到中药(id === 1),检测当前诊所是否为西医诊所
|
// 如果切换到中药(id === 1),检测当前诊所是否为西医诊所
|
||||||
if (id === 1) {
|
if (id === 1) {
|
||||||
await checkAndShowTransferTip();
|
await checkAndShowTransferTip();
|
||||||
@@ -604,18 +604,18 @@ const checkAndShowTransferTip = async () => {
|
|||||||
try {
|
try {
|
||||||
// 重新获取挂号诊所信息,确保包含最新的诊所类型和委托诊所信息
|
// 重新获取挂号诊所信息,确保包含最新的诊所类型和委托诊所信息
|
||||||
await prescriptionStore.fetchRegisterStoreInfo();
|
await prescriptionStore.fetchRegisterStoreInfo();
|
||||||
|
|
||||||
const storeInfo = prescriptionStore.registerStoreInfo;
|
const storeInfo = prescriptionStore.registerStoreInfo;
|
||||||
if (!storeInfo) {
|
if (!storeInfo) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检测是否为西医诊所(current_store_clinic_type === 1)
|
// 检测是否为西医诊所(current_store_clinic_type === 1)
|
||||||
if (storeInfo.current_store_clinic_type === 1 && storeInfo.delegate_store) {
|
if (storeInfo.current_store_clinic_type === 1 && storeInfo.delegate_store) {
|
||||||
const delegateStore = storeInfo.delegate_store;
|
const delegateStore = storeInfo.delegate_store;
|
||||||
const doctorName = delegateStore.doctor?.name || '委托医生';
|
const doctorName = delegateStore.doctor?.name || '委托医生';
|
||||||
const storeName = delegateStore.name || '委托诊所';
|
const storeName = delegateStore.name || '委托诊所';
|
||||||
|
|
||||||
infoModalApi
|
infoModalApi
|
||||||
.setState({ title: '转诊提示', width: 500 })
|
.setState({ title: '转诊提示', width: 500 })
|
||||||
.setData({
|
.setData({
|
||||||
@@ -2037,6 +2037,7 @@ const cancelSaveCommonPrescription = () => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding: 8px;
|
||||||
}
|
}
|
||||||
.rx-workspace-sticky {
|
.rx-workspace-sticky {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user