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