From 3e4039efb0d573aba9bbf827adbb5e7960f109c6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 20 May 2026 15:40:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tcm-prescription/index.vue | 1382 +++++++++++++---- .../src/views/consumer/prescription/index.vue | 569 +++++-- .../src/views/consumer/prescription/list.vue | 26 + .../consumer/prescription/order_list.vue | 268 +++- .../consumer/prescription/order_list_h5.vue | 57 +- .../http/middleware/AuthMiddleware.php | 33 + .../lists/tcm/PrescriptionLibraryLists.php | 14 +- .../logic/tcm/PrescriptionLibraryLogic.php | 59 + .../adminapi/logic/tcm/PrescriptionLogic.php | 33 + .../logic/tcm/PrescriptionOrderLogic.php | 25 +- .../tcm/PrescriptionLibraryValidate.php | 6 +- .../validate/tcm/PrescriptionValidate.php | 4 +- .../app/command/GancaoSyncLogisticsRoute.php | 38 +- server/app/common/model/tcm/Prescription.php | 2 +- .../common/service/ExpressTrackService.php | 164 +- .../common/service/ExpressTrackingService.php | 202 ++- .../gancao/GancaoLogisticsRouteService.php | 100 +- .../create_prescription_library.sql | 1 + .../add_prescription_aux_usage.sql | 3 + .../add_prescription_library_formula_type.sql | 3 + .../add_prescription_library_lists_menu.sql | 50 + 21 files changed, 2507 insertions(+), 532 deletions(-) create mode 100644 server/sql/1.9.20260520/add_prescription_aux_usage.sql create mode 100644 server/sql/1.9.20260520/add_prescription_library_formula_type.sql create mode 100644 server/sql/1.9.20260520/add_prescription_library_lists_menu.sql diff --git a/admin/src/components/tcm-prescription/index.vue b/admin/src/components/tcm-prescription/index.vue index ec7ae650..4a6aba21 100644 --- a/admin/src/components/tcm-prescription/index.vue +++ b/admin/src/components/tcm-prescription/index.vue @@ -85,20 +85,24 @@ (RP)

- 共 {{ formData.herbs.length }} 味药材 · 可手动添加、从处方库或粘贴药方批量录入(药品库同名匹配) + 共 {{ formData.herbs.length }} 味(主方 {{ mainHerbCount }} / 辅方 + {{ auxHerbCount }})· 可手动添加、从处方库或粘贴药方批量录入

-
-
-
中药 {{ index + 1 }}
- +
+
+ 主方 +
+
- 该药名与其他行重复,请合并剂量或删除多余行 +
主方 {{ row.index + 1 }}
+ +
+ 该药名与其他行重复,请合并剂量或删除多余行 +
+
+ + + + 删除 + +
-
- - - - 删除 - +
+
+
+
+ 辅方 +
+
+
+
辅方
+ +
+ 该药名与其他行重复,请合并剂量或删除多余行 +
+
+ + + + 删除 + +
+

暂无辅方药材

@@ -169,6 +215,9 @@ + +
主方用法
+
@@ -266,6 +315,96 @@ + + -
- +
+

主方服法:{{ rxUsageText }}

+

辅方服法:{{ savedAuxUsageText }}

+

医嘱:{{ rxAdviceText }}

+

备注:{{ rxRemarkText }}

+

+ 忌口:{{ Array.isArray(savedPrescription.dietary_taboo) ? savedPrescription.dietary_taboo.join('、') : savedPrescription.dietary_taboo }} +

+

药房备注:{{ rxPharmacyRemarkText }}

+

+ 出丸:{{ rxOutPelletText }} +

- -
-
成都双流甄养堂互联网医院有限公司 联系方式:4001667339
-
地址 :四川省成都市双流区黄甲街道黄龙大道二段280号
+ +
+
+
+
医师
+
+ 医师签名 +
{{ savedPrescription.doctor_name || '—' }}
+
+
+
+ 类型: + {{ rxTypeText }} +
+
+ 天数: + {{ savedPrescription.dose_count || '—' }}剂 +
+
+ 单剂量: + {{ rxPerDoseAmount }}克 +
+
@@ -583,6 +781,20 @@
+ +
+
+ 审核人:{{ savedPrescription.audit_by_name }} + + {{ formatAuditTime(savedPrescription.audit_time) }} + +
+
审核意见:{{ savedPrescription.audit_remark }}
+
+
@@ -630,9 +842,10 @@ width="800px" :close-on-click-modal="false" > -
+
+ + + + + +
+
+ 导入方式 + + 覆盖同类型药材 + 追加到末尾 +
+ + + + + +