From c4e833a1c4e8b4bfcfad12435ab0c4871f7ead7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Sat, 8 Aug 2026 14:53:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=91=E6=96=B9=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chat/components/PrescriptionModal.vue | 8 +- .../doctor/doctor-reception/api/index.ts | 23 +- .../components/GoldenFormulaModal.vue | 306 +++++++++++++-- .../views/doctor/doctor-reception/index.vue | 8 +- .../views/system/golden-formula/api/index.ts | 32 +- .../components/ImportPreviewModal.vue | 359 ++++++++++++++++++ .../golden-formula/components/modal.vue | 27 +- .../system/golden-formula/config/form.ts | 26 +- .../src/views/system/golden-formula/index.vue | 83 +++- .../utils/exportGoldenFormulaExcel.ts | 68 ++-- .../utils/parseGoldenFormulaExcel.ts | 41 +- 11 files changed, 872 insertions(+), 109 deletions(-) create mode 100644 apps/web-antd/src/views/system/golden-formula/components/ImportPreviewModal.vue diff --git a/apps/web-antd/src/views/business/chat/components/PrescriptionModal.vue b/apps/web-antd/src/views/business/chat/components/PrescriptionModal.vue index e3ef444f..03b72ded 100644 --- a/apps/web-antd/src/views/business/chat/components/PrescriptionModal.vue +++ b/apps/web-antd/src/views/business/chat/components/PrescriptionModal.vue @@ -1168,9 +1168,13 @@ function openCommonPrescriptionModal() { } /** - * 打开金方导入(VIP:golden_formula) + * 打开金方导入(VIP:golden_formula);仅中药处方可用 */ function openGoldenFormulaModal() { + if (Number(prescriptionStore.activeCategory) !== 1) { + message.warning('金方仅支持中药处方'); + return; + } if (!canUseGoldenFormula.value) { message.warning('当前门店未开通金方 VIP 功能'); return; @@ -1590,7 +1594,7 @@ const cancelSaveCommonPrescription = () => { 选择常用方