-- 患者管理（一级目录） + 接诊台（二级菜单） + 查看 / 完成接诊 两个按钮权限

INSERT INTO `zyt_system_menu`
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
VALUES
(0, 'M', '患者管理', 'el-icon-User', 95, '', '/patient', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());

SET @patient_pid = LAST_INSERT_ID();

INSERT INTO `zyt_system_menu`
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
VALUES
(@patient_pid, 'C', '接诊台', '', 1, 'doctor.appointment/lists', 'reception', 'patient/reception/index', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());

SET @reception_menu_id = LAST_INSERT_ID();

INSERT INTO `zyt_system_menu`
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
VALUES
(@reception_menu_id, 'A', '查看', '', 1, 'doctor.appointment/reception', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
(@reception_menu_id, 'A', '完成接诊', '', 2, 'doctor.appointment/complete', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
(@reception_menu_id, 'A', '编辑病历', '', 3, 'tcm.diagnosis/edit', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
(@reception_menu_id, 'A', '备注', '', 4, 'doctor.appointment/addDoctorNote', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
