This commit is contained in:
Your Name
2026-06-02 14:15:49 +08:00
parent 707e4888ad
commit 860b550180
13 changed files with 348 additions and 44 deletions
@@ -3028,9 +3028,10 @@ class DiagnosisLogic extends BaseLogic
return [];
}
// 根据诊断ID列表查询诊单详情
// 根据诊断ID列表查询诊单详情show_card=0 的诊单不在统计端就诊卡列表中出现)
$cardList = Diagnosis::whereIn('id', $viewRecords)
->where('delete_time', null)
->where('show_card', 1)
->field([
'id', 'patient_id', 'patient_name', 'gender', 'age',
'diagnosis_date', 'diagnosis_type', 'syndrome_type',
@@ -0,0 +1,16 @@
-- 处方业务订单:退款(须填写原因;关联收款单标记已退款)
-- 执行前确认表前缀为 zyt_;若已有相同 perms 则跳过。
SET @po_menu_id := (SELECT id FROM zyt_system_menu WHERE perms = 'tcm.prescriptionOrder/lists' 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
@po_menu_id, 'A', '业务订单退款', '', 63,
'tcm.prescriptionOrder/refund', '', '',
'', '', 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
FROM DUAL
WHERE @po_menu_id IS NOT NULL
AND NOT EXISTS (SELECT 1 FROM zyt_system_menu WHERE perms = 'tcm.prescriptionOrder/refund');
@@ -0,0 +1,4 @@
-- 就诊卡展示开关:控制该诊单是否在小程序「统计」端的就诊卡列表中出现
-- 默认 1=展示(历史数据保持原有可见),0=不展示(统计端就诊卡直接不存在)
ALTER TABLE `zyt_tcm_diagnosis`
ADD COLUMN `show_card` tinyint(1) NOT NULL DEFAULT 1 COMMENT '统计端就诊卡是否展示:1=展示 0=隐藏' AFTER `create_source`;