From e35696e153f974673c2e9242c851eca609727115 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 14 May 2026 15:34:28 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../consumer/prescription/order_list.vue | 131 +++++++++++----- .../consumer/prescription/order_list_h5.vue | 22 +-- .../http/middleware/AuthMiddleware.php | 25 +-- .../lists/tcm/PrescriptionOrderLists.php | 1 + .../logic/tcm/PrescriptionOrderLogic.php | 148 +++++++++++++++++- .../controller/GancaoCallbackController.php | 2 +- 6 files changed, 266 insertions(+), 63 deletions(-) diff --git a/admin/src/views/consumer/prescription/order_list.vue b/admin/src/views/consumer/prescription/order_list.vue index 4abc7a76..97eef985 100644 --- a/admin/src/views/consumer/prescription/order_list.vue +++ b/admin/src/views/consumer/prescription/order_list.vue @@ -272,7 +272,7 @@ :fetch-fun="prescriptionOrderExport" :params="prescriptionOrderExportParams" :page-size="pager.size" - export-hint="导出范围与上方筛选一致(履约状态、创建时间及其他条件均会生效)。" + export-hint="导出范围与上方筛选一致(履约状态、创建时间及其他条件均会生效)。含「自媒体渠道(挂号渠道来源)」:按诊单关联患者取最近一条挂号的渠道字典与细分。" /> @@ -1377,7 +1377,7 @@ - - - - - + + -

{{ editOrderStepLead }}

+ + + - + @@ -99,7 +99,7 @@ - +
diff --git a/server/sql/1.9.20260514/add_appointment_batch_edit_channel_perm.sql b/server/sql/1.9.20260514/add_appointment_batch_edit_channel_perm.sql new file mode 100644 index 00000000..00e56048 --- /dev/null +++ b/server/sql/1.9.20260514/add_appointment_batch_edit_channel_perm.sql @@ -0,0 +1,17 @@ +-- 挂号批量改渠道:接口 doctor.appointment/batchEditChannel +-- 须写入菜单权限才会走鉴权;实际访问时 AuthMiddleware 将 batch 映射为已勾选的 doctor.appointment/edit +-- 执行前确认表前缀为 zyt_ + +SET @guahao_menu_id := (SELECT id FROM zyt_system_menu WHERE paths = 'consumer/prescription_guahao' LIMIT 1); + +INSERT INTO zyt_system_menu ( + pid, type, name, icon, sort, perms, paths, component, + selected, params, is_cache, is_show, is_disable, create_time, update_time +) +SELECT + @guahao_menu_id, 'A', '批量修改挂号渠道', '', 2, + 'doctor.appointment/batchEditChannel', '', '', + '', '', 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP() +FROM DUAL +WHERE @guahao_menu_id IS NOT NULL + AND NOT EXISTS (SELECT 1 FROM zyt_system_menu WHERE perms = 'doctor.appointment/batchEditChannel');