-- ============================================================ -- 智能质检报告设计平台 字典数据 -- 目标库:ruoyi-vue-pro(local profile 的 master 数据源) -- 幂等:先删后插 -- 说明:报告类型复用 MES 已有字典 mes_qc_type,不另建重复字典 -- ============================================================ USE `ruoyi-vue-pro`; -- 清理 DELETE FROM `system_dict_data` WHERE `id` BETWEEN 1065400 AND 1065499; DELETE FROM `system_dict_type` WHERE `id` BETWEEN 1065400 AND 1065499; -- ------------------------------------------------------------ -- 字典类型 -- ------------------------------------------------------------ INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1065400, '质检报告模板状态', 'qc_report_template_status', 0, '1', NOW(), '1', NOW(), b'0'), (1065401, '质检报告模板版本状态', 'qc_report_version_status', 0, '1', NOW(), '1', NOW(), b'0'), (1065402, '质检报告实例状态', 'qc_report_instance_status', 0, '1', NOW(), '1', NOW(), b'0'), (1065403, '质检报告纸张尺寸', 'qc_report_page_size', 0, '1', NOW(), '1', NOW(), b'0'), (1065404, '质检报告纸张方向', 'qc_report_orientation', 0, '1', NOW(), '1', NOW(), b'0'), (1065405, '质检报告适用行业', 'qc_report_industry', 0, '1', NOW(), '1', NOW(), b'0'); -- ------------------------------------------------------------ -- 字典数据 -- ------------------------------------------------------------ INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES -- 模板状态(对应 QcReportEnums.TemplateStatusEnum) (1065410, 1, '启用', '0', 'qc_report_template_status', 0, 'success', '', '1', NOW(), '1', NOW(), b'0'), (1065411, 2, '停用', '1', 'qc_report_template_status', 0, 'info', '', '1', NOW(), '1', NOW(), b'0'), -- 版本状态(对应 QcReportEnums.VersionStatusEnum) (1065420, 1, '草稿', '0', 'qc_report_version_status', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065421, 2, '已发布', '1', 'qc_report_version_status', 0, 'success', '', '1', NOW(), '1', NOW(), b'0'), (1065422, 3, '已停用', '2', 'qc_report_version_status', 0, 'info', '', '1', NOW(), '1', NOW(), b'0'), -- 实例状态(对应 QcReportEnums.InstanceStatusEnum) (1065430, 1, '生成中', '0', 'qc_report_instance_status', 0, 'processing', '', '1', NOW(), '1', NOW(), b'0'), (1065431, 2, '生成成功', '1', 'qc_report_instance_status', 0, 'success', '', '1', NOW(), '1', NOW(), b'0'), (1065432, 3, '生成失败', '2', 'qc_report_instance_status', 0, 'error', '', '1', NOW(), '1', NOW(), b'0'), -- 纸张尺寸(对应 QcReportEnums.PageSizeEnum,值为字符串) (1065440, 1, 'A3', 'A3', 'qc_report_page_size', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065441, 2, 'A4', 'A4', 'qc_report_page_size', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065442, 3, 'A5', 'A5', 'qc_report_page_size', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065443, 4, 'Letter', 'Letter', 'qc_report_page_size', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), -- 纸张方向(对应 QcReportEnums.OrientationEnum) (1065450, 1, '纵向', 'portrait', 'qc_report_orientation', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065451, 2, '横向', 'landscape', 'qc_report_orientation', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), -- 适用行业 (1065460, 1, '通用', 'general', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065461, 2, '电子电器', 'electronics', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065462, 3, '五金机械', 'hardware', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065463, 4, '汽车零部件', 'auto', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065464, 5, '塑胶制品', 'plastic', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065465, 6, '食品饮料', 'food', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0'), (1065466, 7, '医药医疗', 'pharma', 'qc_report_industry', 0, 'default', '', '1', NOW(), '1', NOW(), b'0');