diff --git a/api/reception.js b/api/reception.js index ad9a689..3238f02 100644 --- a/api/reception.js +++ b/api/reception.js @@ -547,3 +547,48 @@ export function searchMedicalRecordEntryApi(data) { data }) } + +/** AI 写病历(需先填主诉;返回草稿字段,不自动保存) */ +export function aiGenerateMedicalRecordApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-generate-medical-record', + method: 'POST', + data + }) +} + +/** AI 给处方(按病历+处方类型生成,含药名对照) */ +export function aiGeneratePrescriptionApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-generate-prescription', + method: 'POST', + data + }) +} + +/** 本挂号 AI 生成历史(轻量列表) */ +export function aiListGenerationsApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-list-generations', + method: 'GET', + data + }) +} + +/** AI 生成详情(点选历史) */ +export function aiGenerationDetailApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-generation-detail', + method: 'GET', + data + }) +} + +/** AI 处方药名模糊对照 */ +export function aiMatchPrescriptionDrugsApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-match-prescription-drugs', + method: 'POST', + data + }) +} diff --git a/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue b/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue new file mode 100644 index 0000000..111222a --- /dev/null +++ b/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue @@ -0,0 +1,546 @@ +