-- 物料牌号扩展菜单（DM 脚本）
-- 如父级“物料管理”菜单 ID 不同，请调整 parent_id 默认值 1980093482014994433

-- 清理旧数据，便于重复执行
DELETE FROM system_menu WHERE id IN (202701012002000000,202701012002000001,202701012002000002,202701012002000003,202701012002000004);

-- 功能菜单
INSERT INTO system_menu (
    id, name, permission, type, sort, parent_id,
    path, icon, component, component_name, status
) VALUES (
    202701012002000000, '物料牌号扩展', 'base:material-grade-ext:query', 2, 30, 1980093482014994433,
    'material-grade-ext', 'fa:list-alt', 'base/materialgradeext/index', 'MaterialGradeExt', 0
);

-- 按钮权限
INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, status) VALUES
    (202701012002000001, '物料牌号扩展查询', 'base:material-grade-ext:query', 3, 1, 202701012002000000, '', '', '', 0),
    (202701012002000002, '物料牌号扩展新增', 'base:material-grade-ext:create', 3, 2, 202701012002000000, '', '', '', 0),
    (202701012002000003, '物料牌号扩展修改', 'base:material-grade-ext:update', 3, 3, 202701012002000000, '', '', '', 0),
    (202701012002000004, '物料牌号扩展删除', 'base:material-grade-ext:delete', 3, 4, 202701012002000000, '', '', '', 0);