diff --git a/api/reception.js b/api/reception.js index 3238f02..eac1845 100644 --- a/api/reception.js +++ b/api/reception.js @@ -557,7 +557,25 @@ export function aiGenerateMedicalRecordApi(data) { }) } -/** AI 给处方(按病历+处方类型生成,含药名对照) */ +/** AI 功能门闸:醒目提示 + 是否已签署知情同意 */ +export function aiFeatureGateApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-feature-gate', + method: 'GET', + data + }) +} + +/** AI 知情同意签署(按 VIP 功能码,签署一次即可) */ +export function aiAgreeConsentApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/ai-agree-consent', + method: 'POST', + data + }) +} + +/** AI 给处方(支持 use_entrusted_process / process_rule_id 等扩展字段) */ export function aiGeneratePrescriptionApi(data) { return req.request({ url: '/newApi/doctor-reception-wx/ai-generate-prescription', @@ -592,3 +610,30 @@ export function aiMatchPrescriptionDrugsApi(data) { data }) } + +/** 金方列表(VIP:golden_formula) */ +export function goldenFormulaListApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/golden-formula-list', + method: 'GET', + data + }) +} + +/** 金方详情 */ +export function goldenFormulaDetailApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/golden-formula-detail', + method: 'GET', + data + }) +} + +/** 金方导入药名对照 */ +export function goldenFormulaApplyApi(data) { + return req.request({ + url: '/newApi/doctor-reception-wx/golden-formula-apply', + method: 'POST', + data + }) +} diff --git a/components/ai-generation-loading/ai-generation-loading.vue b/components/ai-generation-loading/ai-generation-loading.vue new file mode 100644 index 0000000..da35523 --- /dev/null +++ b/components/ai-generation-loading/ai-generation-loading.vue @@ -0,0 +1,300 @@ + + + + + diff --git a/pages.json b/pages.json index c755f7f..3b6f2ac 100644 --- a/pages.json +++ b/pages.json @@ -2,7 +2,8 @@ "easycom": { "autoscan": true, "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue", - "^d-(.*)": "@/components/d-$1/d-$1.vue" + "^d-(.*)": "@/components/d-$1/d-$1.vue", + "^ai-generation-loading$": "@/components/ai-generation-loading/ai-generation-loading.vue" }, "pages": [{ "path": "pages/login/index", diff --git a/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue b/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue index d51600f..9ad17ef 100644 --- a/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue +++ b/subPackages/sub_workbench/prescription_v2/components/AiMedicalRecordDrawer.vue @@ -19,7 +19,19 @@ AI写病历 {{ patientName || '—' }} · {{ sexLabel }} · {{ patientAge || 0 }}岁 - + + + 重要提示 + {{ disclaimerText }} + + + + AI 使用知情同意 + + {{ consentText }} + + + 历史 @@ -39,16 +51,29 @@ - AI 处理中… + + + 加载历史病历… - + 请选择历史或生成病历 + + 本次生成未产出病历内容(耗时 {{ durationText }}) + 主诉 {{ previewChief }} + + 生成耗时 + {{ durationText }} + - + 生成病历 返回 - 确认主诉后开始生成,将返回主层等待结果 - - 患者 - {{ patientName || '—' }} · {{ sexLabel }} · {{ patientAge || 0 }}岁 - - - 主诉(可编辑) -