-- forge_admin_new.ai_agent definition CREATE TABLE `ai_agent` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `agent_name` varchar(100) NOT NULL COMMENT 'Agent名称', `agent_code` varchar(50) NOT NULL COMMENT 'Agent编码(唯一)', `description` varchar(500) DEFAULT NULL COMMENT '描述', `system_prompt` longtext NOT NULL COMMENT '系统提示词模板', `provider_id` bigint DEFAULT NULL COMMENT '关联供应商ID', `model_name` varchar(100) DEFAULT NULL COMMENT '使用的模型', `model_selection_mode` varchar(16) NOT NULL DEFAULT 'PINNED' COMMENT '模型选择模式(PINNED/POLICY)', `route_policy_id` bigint DEFAULT NULL COMMENT '模型路由策略ID', `temperature` decimal(3,2) DEFAULT '0.70' COMMENT '温度参数(0-1)', `max_tokens` int DEFAULT '4000' COMMENT '最大Token数', `extra_config` json DEFAULT NULL COMMENT '扩展配置', `status` char(1) NOT NULL DEFAULT '0' COMMENT '状态(0正常 1停用)', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_dept` varchar(30) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uk_agent_code_active` (`agent_code`,`del_flag`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2079737984897568771 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI Agent配置表'; -- forge_admin_new.ai_business_action_execution_log definition CREATE TABLE `ai_business_action_execution_log` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `suite_code` varchar(64) DEFAULT NULL COMMENT '业务套件编码', `object_code` varchar(64) NOT NULL COMMENT '业务对象编码', `record_id` varchar(128) NOT NULL DEFAULT '' COMMENT '业务记录ID', `action_code` varchar(64) NOT NULL COMMENT '动作编码', `action_name` varchar(128) DEFAULT NULL COMMENT '动作名称', `execute_status` varchar(32) NOT NULL COMMENT '执行状态:RUNNING/SUCCESS/FAILED/TODO', `request_digest` varchar(1024) DEFAULT NULL COMMENT '请求摘要', `step_result` json DEFAULT NULL COMMENT '步骤执行结果JSON', `result_message` varchar(500) DEFAULT NULL COMMENT '执行结果提示', `error_message` varchar(2000) DEFAULT NULL COMMENT '错误信息', `correlation_id` varchar(64) DEFAULT NULL COMMENT '链路ID', `idempotency_key` varchar(128) DEFAULT NULL COMMENT '幂等键', `duration_ms` bigint DEFAULT NULL COMMENT '执行耗时毫秒', `capability_request_id` varchar(64) DEFAULT NULL COMMENT 'AI能力调用请求ID', `client_id` bigint DEFAULT NULL COMMENT 'AI能力机器客户端ID', `service_user_id` bigint DEFAULT NULL COMMENT 'AI能力绑定服务账号ID', `actor_type` varchar(16) DEFAULT NULL COMMENT 'AI能力实际主体类型(USER/SERVICE)', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_action_idem` (`tenant_id`,`object_code`,`record_id`,`action_code`,`idempotency_key`), KEY `idx_ai_business_action_record` (`tenant_id`,`object_code`,`record_id`,`create_time`), KEY `idx_ai_business_action_code` (`tenant_id`,`object_code`,`action_code`,`execute_status`,`create_time`), KEY `idx_ai_business_action_corr` (`tenant_id`,`correlation_id`), KEY `idx_ai_business_action_capability_request` (`tenant_id`,`capability_request_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-通用动作执行日志'; -- forge_admin_new.ai_business_app definition CREATE TABLE `ai_business_app` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `app_code` varchar(64) NOT NULL COMMENT '应用入口编码', `app_name` varchar(128) NOT NULL COMMENT '应用入口名称', `app_type` varchar(32) NOT NULL COMMENT '应用类型:BUSINESS/EMBEDDED/MOBILE/INTEGRATION', `application_id` bigint DEFAULT NULL COMMENT '归属业务应用聚合ID', `suite_code` varchar(48) NOT NULL COMMENT '所属业务套件编码', `object_code` varchar(48) DEFAULT NULL COMMENT '关联业务对象编码', `entry_mode` varchar(32) NOT NULL COMMENT '入口模式:RUNTIME/ROUTE/IFRAME/EXTERNAL/H5/API', `entry_url` varchar(512) DEFAULT NULL COMMENT '入口地址', `config_key` varchar(128) DEFAULT NULL COMMENT '关联低代码运行配置键', `icon` varchar(128) DEFAULT NULL COMMENT '应用图标', `description` varchar(500) DEFAULT NULL COMMENT '业务说明', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `options` json DEFAULT NULL COMMENT '扩展配置', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_app_code_active` (`tenant_id`,`app_code`,`del_flag`), KEY `idx_ai_business_app_suite` (`tenant_id`,`suite_code`,`app_type`,`status`,`sort_order`), KEY `idx_ai_business_app_object` (`tenant_id`,`suite_code`,`object_code`,`status`), KEY `idx_ai_business_app_config_key` (`tenant_id`,`config_key`), KEY `idx_ai_business_app_application` (`tenant_id`,`application_id`,`status`,`sort_order`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-应用入口表'; -- forge_admin_new.ai_business_application definition CREATE TABLE `ai_business_application` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `application_code` varchar(128) NOT NULL COMMENT '业务应用编码', `application_name` varchar(128) NOT NULL COMMENT '业务应用名称', `suite_code` varchar(128) NOT NULL COMMENT '所属业务域编码', `icon` varchar(255) DEFAULT NULL COMMENT '应用图标', `description` varchar(500) DEFAULT NULL COMMENT '应用说明', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `design_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '设计状态:DRAFT/READY/PUBLISHED/CHANGED', `last_publish_version` int DEFAULT NULL COMMENT '最近发布版本号', `last_publish_time` datetime DEFAULT NULL COMMENT '最近发布时间', `options` json DEFAULT NULL COMMENT '扩展配置,不保存敏感密钥', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_application_code_active` (`tenant_id`,`application_code`,`del_flag`), KEY `idx_ai_business_application_suite` (`tenant_id`,`suite_code`,`status`,`design_status`,`del_flag`), KEY `idx_ai_business_application_update` (`tenant_id`,`update_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码业务应用聚合'; -- forge_admin_new.ai_business_application_object definition CREATE TABLE `ai_business_application_object` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `application_id` bigint NOT NULL COMMENT '业务应用ID', `object_id` bigint NOT NULL COMMENT '业务对象ID', `object_role` varchar(32) NOT NULL COMMENT '对象角色:PRIMARY/DETAIL/REFERENCE/SHARED', `sort_order` int NOT NULL DEFAULT '0' COMMENT '应用内排序', `options` json DEFAULT NULL COMMENT '应用内对象配置', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_application_object_active` (`tenant_id`,`application_id`,`object_id`,`del_flag`), KEY `idx_ai_business_application_object_app` (`tenant_id`,`application_id`,`object_role`,`sort_order`,`del_flag`), KEY `idx_ai_business_application_object_object` (`tenant_id`,`object_id`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='业务应用与业务对象关联'; -- forge_admin_new.ai_business_application_publish_run definition CREATE TABLE `ai_business_application_publish_run` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `application_id` bigint NOT NULL COMMENT '业务应用ID', `idempotency_key` varchar(128) NOT NULL COMMENT '应用内发布幂等键', `operation_type` varchar(16) NOT NULL DEFAULT 'PUBLISH' COMMENT 'PUBLISH/ROLLBACK', `target_version_no` int NOT NULL COMMENT '本次发布目标版本号', `source_version_no` int DEFAULT NULL COMMENT '回滚来源版本号', `run_status` varchar(24) NOT NULL DEFAULT 'CREATED' COMMENT 'CREATED/RUNNING/PARTIAL/FAILED/SUCCESS', `current_step` varchar(32) DEFAULT NULL COMMENT '当前或失败步骤', `snapshot_json` longtext NOT NULL COMMENT '候选发布快照,不保存密钥', `snapshot_hash` char(64) NOT NULL COMMENT '候选快照SHA-256摘要', `selection_json` json NOT NULL COMMENT '本次选择及自动补齐的依赖资产', `step_results_json` json NOT NULL COMMENT '可恢复步骤结果,不保存原始异常', `result_version_id` bigint DEFAULT NULL COMMENT '成功生成的不可变应用版本ID', `error_code` varchar(64) DEFAULT NULL COMMENT '脱敏错误码', `error_summary` varchar(500) DEFAULT NULL COMMENT '脱敏错误摘要', `attempt_count` int NOT NULL DEFAULT '1' COMMENT '发布或恢复尝试次数', `started_by` bigint DEFAULT NULL COMMENT '可信发起人ID', `started_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '首次发起时间', `finished_time` datetime DEFAULT NULL COMMENT '完成或最近失败时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_publish_run_key_active` (`tenant_id`,`application_id`,`idempotency_key`,`del_flag`), UNIQUE KEY `uk_ai_business_publish_run_version_active` (`tenant_id`,`application_id`,`target_version_no`,`del_flag`), KEY `idx_ai_business_publish_run_status` (`tenant_id`,`application_id`,`run_status`,`update_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码业务应用协调发布运行单'; -- forge_admin_new.ai_business_application_version definition CREATE TABLE `ai_business_application_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `application_id` bigint NOT NULL COMMENT '业务应用ID', `version_no` int NOT NULL COMMENT '应用内单调版本号', `snapshot_json` longtext NOT NULL COMMENT '不可变应用发布快照,不保存密钥', `snapshot_hash` char(64) NOT NULL COMMENT '快照SHA-256摘要', `publish_status` varchar(24) NOT NULL COMMENT 'PUBLISHED/ROLLBACK', `publish_summary` varchar(1000) DEFAULT NULL COMMENT '脱敏发布摘要', `source_version_no` int DEFAULT NULL COMMENT '回滚来源版本号', `published_by` bigint DEFAULT NULL COMMENT '可信发布人ID', `published_time` datetime NOT NULL COMMENT '发布时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_application_version_active` (`tenant_id`,`application_id`,`version_no`,`del_flag`), KEY `idx_ai_business_application_version_hash` (`tenant_id`,`application_id`,`snapshot_hash`,`del_flag`), KEY `idx_ai_business_application_version_time` (`tenant_id`,`application_id`,`published_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码业务应用不可变发布版本'; -- forge_admin_new.ai_business_binding definition CREATE TABLE `ai_business_binding` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `target_type` varchar(32) NOT NULL COMMENT '挂接目标类型:SUITE/OBJECT/APP', `target_id` bigint DEFAULT NULL COMMENT '挂接目标ID', `target_code` varchar(128) NOT NULL COMMENT '挂接目标编码', `binding_type` varchar(32) NOT NULL COMMENT '能力类型:FLOW/APPROVAL/REPORT/PERMISSION/MESSAGE/TRIGGER/IMPORT/EXPORT/MOBILE/INTEGRATION', `binding_key` varchar(128) NOT NULL COMMENT '能力业务键', `binding_name` varchar(128) NOT NULL COMMENT '挂接名称', `binding_config` json DEFAULT NULL COMMENT '挂接配置', `description` varchar(500) DEFAULT NULL COMMENT '挂接说明', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_binding_target` (`tenant_id`,`target_type`,`target_code`,`binding_type`,`binding_key`), KEY `idx_ai_business_binding_target_id` (`tenant_id`,`target_type`,`target_id`,`binding_type`), KEY `idx_ai_business_binding_type` (`tenant_id`,`binding_type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-能力挂接表'; -- forge_admin_new.ai_business_document_config definition CREATE TABLE `ai_business_document_config` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `object_id` bigint DEFAULT NULL COMMENT '业务对象ID', `suite_code` varchar(48) NOT NULL COMMENT '业务套件编码', `object_code` varchar(48) NOT NULL COMMENT '业务对象编码', `config_key` varchar(128) DEFAULT NULL COMMENT '动态CRUD运行配置键', `document_name` varchar(128) NOT NULL COMMENT '单据名称', `document_no_rule` varchar(256) DEFAULT NULL COMMENT '单据编号规则', `document_enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用单据模式', `status_field` varchar(64) DEFAULT NULL COMMENT '单据状态字段', `starter_field` varchar(64) DEFAULT NULL COMMENT '发起人字段', `owner_field` varchar(64) DEFAULT NULL COMMENT '负责人字段', `default_flow_key` varchar(128) DEFAULT NULL COMMENT '默认流程模型Key', `status_mapping` json DEFAULT NULL COMMENT '单据状态映射JSON', `options` json DEFAULT NULL COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_document_object_code` (`tenant_id`,`object_code`), UNIQUE KEY `uk_ai_business_document_object_id` (`tenant_id`,`object_id`), KEY `idx_ai_business_document_suite` (`tenant_id`,`suite_code`), KEY `idx_ai_business_document_config` (`tenant_id`,`config_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-业务单据配置表'; -- forge_admin_new.ai_business_extension definition CREATE TABLE `ai_business_extension` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `application_id` bigint NOT NULL COMMENT '所属业务应用ID', `object_id` bigint DEFAULT NULL COMMENT '可选业务对象ID', `entry_id` bigint DEFAULT NULL COMMENT '可选访问入口ID', `extension_code` varchar(64) NOT NULL COMMENT '扩展稳定编码', `extension_name` varchar(128) NOT NULL COMMENT '扩展名称', `extension_type` varchar(32) NOT NULL COMMENT 'VISUAL_RULE/CLIENT_JS/SCOPED_CSS/SERVER_BINDING', `hook_code` varchar(32) NOT NULL COMMENT '标准扩展钩子编码', `scope_type` varchar(32) NOT NULL DEFAULT 'APPLICATION' COMMENT 'APPLICATION/OBJECT/ENTRY/PAGE/COMPONENT', `scope_key` varchar(255) DEFAULT NULL COMMENT '页面或组件作用域键', `sort_order` int NOT NULL DEFAULT '0' COMMENT '同钩子执行顺序', `failure_policy` varchar(16) NOT NULL DEFAULT 'BLOCK' COMMENT 'BLOCK/WARN/IGNORE', `risk_level` varchar(16) NOT NULL DEFAULT 'MEDIUM' COMMENT 'LOW/MEDIUM/HIGH', `status` varchar(16) NOT NULL DEFAULT 'DRAFT' COMMENT 'DRAFT/TESTED/ENABLED/DISABLED', `draft_version` int NOT NULL DEFAULT '1' COMMENT '当前草稿版本', `enabled_version` int DEFAULT NULL COMMENT '当前运行版本', `lock_user_id` bigint DEFAULT NULL COMMENT '编辑锁持有人', `lock_username` varchar(128) DEFAULT NULL COMMENT '编辑锁持有人名称', `lock_token_hash` varchar(64) DEFAULT NULL COMMENT '编辑锁令牌SHA-256摘要', `lock_time` datetime DEFAULT NULL COMMENT '编辑锁获得或续期时间', `lock_expire_time` datetime DEFAULT NULL COMMENT '编辑锁过期时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_extension_code_active` (`tenant_id`,`application_id`,`extension_code`,`del_flag`), KEY `idx_ai_business_extension_hook` (`tenant_id`,`application_id`,`hook_code`,`status`,`sort_order`,`del_flag`), KEY `idx_ai_business_extension_object` (`tenant_id`,`object_id`,`status`,`del_flag`), KEY `idx_ai_business_extension_entry` (`tenant_id`,`entry_id`,`status`,`del_flag`), KEY `idx_ai_business_extension_lock` (`tenant_id`,`lock_user_id`,`lock_expire_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码受治理业务扩展'; -- forge_admin_new.ai_business_extension_execution_log definition CREATE TABLE `ai_business_extension_execution_log` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `extension_id` bigint NOT NULL COMMENT '业务扩展ID', `extension_code` varchar(64) NOT NULL COMMENT '扩展编码快照', `version_no` int NOT NULL COMMENT '执行版本号', `application_id` bigint NOT NULL COMMENT '业务应用ID', `object_id` bigint DEFAULT NULL COMMENT '业务对象ID', `entry_id` bigint DEFAULT NULL COMMENT '访问入口ID', `hook_code` varchar(32) NOT NULL COMMENT '执行钩子', `result_status` varchar(16) NOT NULL COMMENT 'SUCCESS/FAILED', `duration_ms` bigint NOT NULL DEFAULT '0' COMMENT '执行耗时毫秒', `error_code` varchar(64) DEFAULT NULL COMMENT '脱敏错误编码', `error_summary` varchar(500) DEFAULT NULL COMMENT '脱敏错误摘要', `actor_user_id` bigint DEFAULT NULL COMMENT '可信操作者ID', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_ai_business_extension_audit_extension` (`tenant_id`,`extension_id`,`create_time`,`del_flag`), KEY `idx_ai_business_extension_audit_app` (`tenant_id`,`application_id`,`hook_code`,`create_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码业务扩展脱敏执行审计'; -- forge_admin_new.ai_business_extension_version definition CREATE TABLE `ai_business_extension_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `extension_id` bigint NOT NULL COMMENT '业务扩展ID', `version_no` int NOT NULL COMMENT '扩展内单调版本号', `content` longtext NOT NULL COMMENT '扩展原始内容', `processed_content` longtext COMMENT '服务端复核的作用域或编译结果', `config_json` json NOT NULL COMMENT '非敏感结构化配置', `content_hash` char(64) NOT NULL COMMENT '内容SHA-256摘要', `validation_passed` tinyint NOT NULL DEFAULT '0' COMMENT '校验是否通过', `validation_summary` varchar(1000) DEFAULT NULL COMMENT '校验摘要,不含原始输入', `test_passed` tinyint NOT NULL DEFAULT '0' COMMENT '受限测试是否通过', `test_summary` varchar(1000) DEFAULT NULL COMMENT '测试摘要,不含原始输入', `change_summary` varchar(500) DEFAULT NULL COMMENT '版本变更说明', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_extension_version_active` (`tenant_id`,`extension_id`,`version_no`,`del_flag`), KEY `idx_ai_business_extension_version_hash` (`tenant_id`,`extension_id`,`content_hash`,`del_flag`), KEY `idx_ai_business_extension_version_created` (`tenant_id`,`extension_id`,`create_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码业务扩展不可变内容版本'; -- forge_admin_new.ai_business_field_template definition CREATE TABLE `ai_business_field_template` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `template_code` varchar(64) NOT NULL COMMENT '字段模板编码', `template_name` varchar(128) NOT NULL COMMENT '字段模板名称', `suite_code` varchar(48) NOT NULL DEFAULT 'COMMON' COMMENT '适用业务套件编码,COMMON为通用', `field_type` varchar(32) NOT NULL COMMENT '业务字段类型', `field_schema` json NOT NULL COMMENT '字段Schema', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `description` varchar(500) DEFAULT NULL COMMENT '模板说明', `options` json DEFAULT NULL COMMENT '扩展配置', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_field_template_code` (`tenant_id`,`template_code`), KEY `idx_ai_business_field_template_code` (`tenant_id`,`template_code`), KEY `idx_ai_business_field_template_suite` (`tenant_id`,`suite_code`,`status`,`sort_order`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-业务字段模板表'; -- forge_admin_new.ai_business_flow_instance_link definition CREATE TABLE `ai_business_flow_instance_link` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `object_code` varchar(48) NOT NULL COMMENT '业务对象编码', `record_id` bigint NOT NULL COMMENT '业务记录ID', `business_key` varchar(160) NOT NULL COMMENT '流程业务Key,格式 objectCode:recordId', `flow_model_key` varchar(128) NOT NULL COMMENT '流程模型Key', `process_instance_id` varchar(128) NOT NULL COMMENT '流程实例ID', `flow_status` varchar(32) NOT NULL DEFAULT 'STARTED' COMMENT '流程状态:STARTED/RUNNING/APPROVED/REJECTED/CANCELED/ENDED', `start_user_id` bigint DEFAULT NULL COMMENT '流程发起人ID', `start_time` datetime DEFAULT NULL COMMENT '流程发起时间', `end_time` datetime DEFAULT NULL COMMENT '流程结束时间', `result` varchar(32) DEFAULT NULL COMMENT '流程结果', `variables_snapshot` json DEFAULT NULL COMMENT '流程变量快照', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_flow_process` (`tenant_id`,`process_instance_id`), UNIQUE KEY `uk_ai_business_flow_business_process` (`tenant_id`,`business_key`,`process_instance_id`), KEY `idx_ai_business_flow_business_key` (`tenant_id`,`business_key`,`flow_status`), KEY `idx_ai_business_flow_record` (`tenant_id`,`object_code`,`record_id`), KEY `idx_ai_business_flow_business_latest` (`tenant_id`,`business_key`,`start_time`,`create_time`,`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-单据流程实例关联表'; -- forge_admin_new.ai_business_message_channel definition CREATE TABLE `ai_business_message_channel` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `channel_code` varchar(64) NOT NULL COMMENT '通道编码', `channel_name` varchar(128) NOT NULL COMMENT '通道名称', `channel_type` varchar(32) NOT NULL COMMENT '通道类型:WECHAT_WORK/FEISHU/DINGTALK/WEBHOOK/INTERNAL', `channel_config_ref` varchar(256) DEFAULT NULL COMMENT '通道配置安全引用(不存明文密钥)', `webhook_url` varchar(512) DEFAULT NULL COMMENT 'Webhook地址(仅WEBHOOK类型)', `description` varchar(500) DEFAULT NULL COMMENT '通道说明', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `options` json DEFAULT NULL COMMENT '扩展配置', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_message_channel_code` (`tenant_id`,`channel_code`), KEY `idx_ai_message_channel_type` (`tenant_id`,`channel_type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-消息推送通道表'; -- forge_admin_new.ai_business_object definition CREATE TABLE `ai_business_object` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `suite_code` varchar(48) NOT NULL COMMENT '所属业务套件编码', `object_code` varchar(48) NOT NULL COMMENT '业务对象编码', `object_name` varchar(128) NOT NULL COMMENT '业务对象名称', `object_type` varchar(32) NOT NULL COMMENT '对象类型:MASTER/DETAIL/LOOKUP/TRANSACTION', `model_id` bigint DEFAULT NULL COMMENT '关联低代码模型ID', `model_code` varchar(48) DEFAULT NULL COMMENT '关联低代码模型编码', `display_field` varchar(64) DEFAULT NULL COMMENT '默认展示字段', `icon` varchar(128) DEFAULT NULL COMMENT '对象图标', `description` varchar(500) DEFAULT NULL COMMENT '业务说明', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `options` json DEFAULT NULL COMMENT '扩展配置', `design_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '设计状态:DRAFT草稿 DESIGNING设计中 READY待发布 PUBLISHED已发布 CHANGED有未发布变更', `config_key` varchar(128) DEFAULT NULL COMMENT '关联低代码运行配置键', `last_publish_time` datetime DEFAULT NULL COMMENT '最近发布时间', `last_publish_version` int DEFAULT NULL COMMENT '最近发布版本号', `designer_options` json DEFAULT NULL COMMENT '业务对象设计器配置', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_object_code_active` (`tenant_id`,`suite_code`,`object_code`,`del_flag`), KEY `idx_ai_business_object_suite` (`tenant_id`,`suite_code`,`status`,`sort_order`), KEY `idx_ai_business_object_model` (`tenant_id`,`model_id`), KEY `idx_ai_business_object_update` (`tenant_id`,`update_time`), KEY `idx_ai_business_object_config_key` (`tenant_id`,`config_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-业务对象表'; -- forge_admin_new.ai_business_object_design_version definition CREATE TABLE `ai_business_object_design_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `object_id` bigint NOT NULL COMMENT '业务对象ID', `suite_code` varchar(48) NOT NULL COMMENT '业务套件编码', `object_code` varchar(48) NOT NULL COMMENT '业务对象编码', `config_id` bigint DEFAULT NULL COMMENT '关联低代码运行配置ID', `config_key` varchar(128) DEFAULT NULL COMMENT '关联低代码运行配置键', `crud_config_version_id` bigint DEFAULT NULL COMMENT '关联AI CRUD发布版本ID', `version_no` int NOT NULL COMMENT '对象设计版本号', `version_type` varchar(32) NOT NULL DEFAULT 'draft' COMMENT '版本类型:draft/publish/rollback', `model_snapshot` json DEFAULT NULL COMMENT '模型Schema快照', `page_snapshot` json DEFAULT NULL COMMENT '页面Schema快照', `relation_snapshot` json DEFAULT NULL COMMENT '关系配置快照', `designer_options_snapshot` json DEFAULT NULL COMMENT '表单优先设计器扩展快照', `publish_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '发布状态:DRAFT/PUBLISHED/FAILED', `publish_version` int DEFAULT NULL COMMENT '发布版本号', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_design_version_no` (`tenant_id`,`object_id`,`version_no`), KEY `idx_ai_business_design_version_object` (`tenant_id`,`object_id`,`version_no`), KEY `idx_ai_business_design_version_crud` (`tenant_id`,`crud_config_version_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-业务对象设计版本表'; -- forge_admin_new.ai_business_object_relation definition CREATE TABLE `ai_business_object_relation` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `suite_code` varchar(48) NOT NULL COMMENT '所属业务套件编码', `source_object_code` varchar(48) NOT NULL COMMENT '来源业务对象编码', `target_object_code` varchar(48) NOT NULL COMMENT '目标业务对象编码', `relation_type` varchar(32) NOT NULL COMMENT '关系类型:REFERENCE/DETAIL/CHILD_LIST/MANY_TO_MANY', `relation_name` varchar(128) NOT NULL COMMENT '关系名称', `source_field_code` varchar(64) DEFAULT NULL COMMENT '来源对象字段编码', `target_field_code` varchar(64) DEFAULT NULL COMMENT '目标对象字段编码', `relation_config` json DEFAULT NULL COMMENT '关系配置', `description` varchar(500) DEFAULT NULL COMMENT '关系说明', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_relation_scope` (`tenant_id`,`suite_code`,`source_object_code`,`target_object_code`,`relation_type`,`relation_name`), KEY `idx_ai_business_relation_source` (`tenant_id`,`suite_code`,`source_object_code`,`status`), KEY `idx_ai_business_relation_target` (`tenant_id`,`suite_code`,`target_object_code`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-业务对象关系表'; -- forge_admin_new.ai_business_quantity_balance definition CREATE TABLE `ai_business_quantity_balance` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `account_code` varchar(128) NOT NULL COMMENT '数量账户编码', `item_code` varchar(128) NOT NULL COMMENT '数量项编码', `dimension_key` varchar(256) NOT NULL DEFAULT '' COMMENT '数量维度键', `quantity` bigint NOT NULL DEFAULT '0' COMMENT '当前数量', `locked_quantity` bigint NOT NULL DEFAULT '0' COMMENT '锁定数量', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用,0停用', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_qty_balance` (`tenant_id`,`account_code`,`item_code`,`dimension_key`), KEY `idx_ai_business_qty_balance_item` (`tenant_id`,`item_code`,`dimension_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-通用数量余额'; -- forge_admin_new.ai_business_quantity_ledger definition CREATE TABLE `ai_business_quantity_ledger` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `operation_type` varchar(32) NOT NULL COMMENT '操作类型:INBOUND/LOCK/RELEASE/COMMIT/TRANSFER', `account_code` varchar(128) NOT NULL COMMENT '数量账户编码', `item_code` varchar(128) NOT NULL COMMENT '数量项编码', `dimension_key` varchar(256) NOT NULL DEFAULT '' COMMENT '数量维度键', `quantity_delta` bigint NOT NULL DEFAULT '0' COMMENT '数量变动值', `balance_quantity` bigint NOT NULL DEFAULT '0' COMMENT '操作后当前数量', `locked_quantity` bigint NOT NULL DEFAULT '0' COMMENT '操作后锁定数量', `target_account_code` varchar(128) DEFAULT NULL COMMENT '目标数量账户编码', `target_item_code` varchar(128) DEFAULT NULL COMMENT '目标数量项编码', `target_dimension_key` varchar(256) DEFAULT NULL COMMENT '目标数量维度键', `source_object_code` varchar(64) DEFAULT NULL COMMENT '来源业务对象编码', `source_record_id` varchar(128) DEFAULT NULL COMMENT '来源业务记录ID', `source_detail_id` varchar(128) DEFAULT NULL COMMENT '来源明细ID', `lock_id` bigint DEFAULT NULL COMMENT '关联锁定ID', `correlation_id` varchar(64) DEFAULT NULL COMMENT '链路ID', `idempotency_key` varchar(128) DEFAULT NULL COMMENT '幂等键', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `extra_data` json DEFAULT NULL COMMENT '扩展数据', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_qty_ledger_idem` (`tenant_id`,`idempotency_key`), KEY `idx_ai_business_qty_ledger_item` (`tenant_id`,`account_code`,`item_code`,`dimension_key`,`create_time`), KEY `idx_ai_business_qty_ledger_source` (`tenant_id`,`source_object_code`,`source_record_id`), KEY `idx_ai_business_qty_ledger_corr` (`tenant_id`,`correlation_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-通用数量流水'; -- forge_admin_new.ai_business_quantity_lock definition CREATE TABLE `ai_business_quantity_lock` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `lock_code` varchar(128) DEFAULT NULL COMMENT '锁定编码', `account_code` varchar(128) NOT NULL COMMENT '数量账户编码', `item_code` varchar(128) NOT NULL COMMENT '数量项编码', `dimension_key` varchar(256) NOT NULL DEFAULT '' COMMENT '数量维度键', `lock_quantity` bigint NOT NULL DEFAULT '0' COMMENT '锁定数量', `released_quantity` bigint NOT NULL DEFAULT '0' COMMENT '已释放数量', `committed_quantity` bigint NOT NULL DEFAULT '0' COMMENT '已扣减数量', `lock_status` varchar(32) NOT NULL DEFAULT 'LOCKED' COMMENT '锁定状态:LOCKED/RELEASED/COMMITTED', `source_object_code` varchar(64) DEFAULT NULL COMMENT '来源业务对象编码', `source_record_id` varchar(128) DEFAULT NULL COMMENT '来源业务记录ID', `source_detail_id` varchar(128) DEFAULT NULL COMMENT '来源明细ID', `correlation_id` varchar(64) DEFAULT NULL COMMENT '链路ID', `idempotency_key` varchar(128) DEFAULT NULL COMMENT '幂等键', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_qty_lock_idem` (`tenant_id`,`idempotency_key`), KEY `idx_ai_business_qty_lock_item` (`tenant_id`,`account_code`,`item_code`,`dimension_key`,`lock_status`), KEY `idx_ai_business_qty_lock_source` (`tenant_id`,`source_object_code`,`source_record_id`,`source_detail_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-通用数量锁定'; -- forge_admin_new.ai_business_suite definition CREATE TABLE `ai_business_suite` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `parent_id` bigint DEFAULT NULL COMMENT '上级业务域ID', `suite_code` varchar(48) NOT NULL COMMENT '业务套件编码', `suite_name` varchar(128) NOT NULL COMMENT '业务套件名称', `icon` varchar(128) DEFAULT NULL COMMENT '套件图标', `description` varchar(500) DEFAULT NULL COMMENT '业务说明', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `options` json DEFAULT NULL COMMENT '扩展配置', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_business_suite_code_active` (`tenant_id`,`suite_code`,`del_flag`), KEY `idx_ai_business_suite_status` (`tenant_id`,`status`,`sort_order`), KEY `idx_ai_business_suite_update` (`tenant_id`,`update_time`), KEY `idx_ai_business_suite_parent` (`tenant_id`,`parent_id`,`sort_order`,`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-业务套件表'; -- forge_admin_new.ai_business_trigger definition CREATE TABLE `ai_business_trigger` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `suite_code` varchar(48) NOT NULL COMMENT '所属业务套件编码', `object_code` varchar(48) NOT NULL COMMENT '所属业务对象编码', `trigger_name` varchar(128) NOT NULL COMMENT '触发器名称', `trigger_desc` varchar(500) DEFAULT NULL COMMENT '触发器说明', `trigger_type` varchar(32) NOT NULL DEFAULT 'EVENT' COMMENT '触发器类型:EVENT事件触发/SCHEDULE定时触发/MANUAL手动触发', `scenario_type` varchar(64) DEFAULT NULL COMMENT '业务场景模板类型', `blocking_mode` varchar(32) NOT NULL DEFAULT 'ASYNC' COMMENT '阻断模式:ASYNC异步/SYNC_BLOCK同步阻断', `developer_mode` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否开发者高级模式', `event_type` varchar(64) DEFAULT NULL COMMENT '事件类型:RECORD_CREATED/RECORD_UPDATED/RECORD_DELETED/STATUS_CHANGED/FIELD_CHANGED', `event_condition` json DEFAULT NULL COMMENT '事件条件表达式JSON', `action_type` varchar(32) NOT NULL COMMENT '动作类型:START_FLOW/SEND_MESSAGE/CREATE_RECORD/UPDATE_FIELD/WEBHOOK', `action_config` json NOT NULL COMMENT '动作配置JSON', `status` int NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `execute_count` bigint NOT NULL DEFAULT '0' COMMENT '累计执行次数', `last_execute_time` datetime DEFAULT NULL COMMENT '最近执行时间', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`id`), KEY `idx_ai_business_trigger_object` (`tenant_id`,`suite_code`,`object_code`,`status`), KEY `idx_ai_business_trigger_event` (`tenant_id`,`object_code`,`event_type`,`status`), KEY `idx_ai_business_trigger_type` (`tenant_id`,`trigger_type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-触发器规则表'; -- forge_admin_new.ai_business_trigger_log definition CREATE TABLE `ai_business_trigger_log` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `trigger_id` bigint NOT NULL COMMENT '触发器ID', `trigger_name` varchar(128) DEFAULT NULL COMMENT '触发器名称', `suite_code` varchar(48) NOT NULL COMMENT '业务套件编码', `object_code` varchar(48) NOT NULL COMMENT '业务对象编码', `record_id` varchar(64) DEFAULT NULL COMMENT '触发记录ID', `event_type` varchar(64) NOT NULL COMMENT '触发事件类型', `event_data` json DEFAULT NULL COMMENT '事件数据快照', `action_type` varchar(32) NOT NULL COMMENT '执行动作类型', `action_result` json DEFAULT NULL COMMENT '执行结果', `execute_status` varchar(32) NOT NULL DEFAULT 'PENDING' COMMENT '执行状态:PENDING/SUCCESS/FAILED/SKIPPED', `error_message` varchar(2000) DEFAULT NULL COMMENT '错误信息', `todo_code` varchar(64) DEFAULT NULL COMMENT 'TODO状态编码', `correlation_id` varchar(128) DEFAULT NULL COMMENT '关联流程/消息/外部动作ID', `execute_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '执行时间', `duration_ms` bigint DEFAULT NULL COMMENT '执行耗时(毫秒)', `retry_count` int NOT NULL DEFAULT '0' COMMENT '重试次数', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_ai_trigger_log_trigger` (`tenant_id`,`trigger_id`,`execute_status`), KEY `idx_ai_trigger_log_object` (`tenant_id`,`object_code`,`execute_time`), KEY `idx_ai_trigger_log_record` (`tenant_id`,`object_code`,`record_id`), KEY `idx_ai_trigger_log_time` (`tenant_id`,`execute_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-触发器执行日志表'; -- forge_admin_new.ai_capability definition CREATE TABLE `ai_capability` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `capability_code` varchar(128) NOT NULL, `protocol_tool_name` varchar(128) NOT NULL, `capability_name` varchar(128) NOT NULL, `description` varchar(1000) NOT NULL, `source_type` varchar(32) NOT NULL, `source_key` varchar(128) NOT NULL, `source_version` varchar(64) NOT NULL, `current_version` varchar(32) NOT NULL, `schema_checksum` char(64) NOT NULL, `behavior` varchar(24) NOT NULL, `risk_level` varchar(16) NOT NULL, `visibility` varchar(16) NOT NULL DEFAULT 'PRIVATE', `publish_status` varchar(16) NOT NULL DEFAULT 'PUBLISHED', `enabled` tinyint NOT NULL DEFAULT '1', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_code_active` (`tenant_id`,`capability_code`,`del_flag`), UNIQUE KEY `uk_ai_capability_tool_active` (`tenant_id`,`protocol_tool_name`,`del_flag`), KEY `idx_ai_capability_source` (`tenant_id`,`source_type`,`source_key`,`del_flag`), KEY `idx_ai_capability_publish` (`tenant_id`,`publish_status`,`enabled`,`del_flag`,`update_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢能力目录'; -- forge_admin_new.ai_capability_access_token definition CREATE TABLE `ai_capability_access_token` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `token_key_id` varchar(22) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, `token_prefix` varchar(32) NOT NULL, `token_hash` char(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, `client_id` bigint NOT NULL, `credential_version` int NOT NULL, `actor_type` varchar(16) NOT NULL, `actor_user_id` bigint NOT NULL, `service_user_id` bigint NOT NULL, `active_org_id` bigint NOT NULL, `audience` varchar(512) NOT NULL, `scopes` varchar(2000) NOT NULL, `status` varchar(16) NOT NULL DEFAULT 'ACTIVE', `issued_at` datetime NOT NULL, `expires_at` datetime NOT NULL, `last_used_at` datetime DEFAULT NULL, `revoked_at` datetime DEFAULT NULL, `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_token_key_active` (`token_key_id`,`del_flag`), KEY `idx_ai_capability_token_client` (`tenant_id`,`client_id`,`status`,`expires_at`,`del_flag`), KEY `idx_ai_capability_token_actor` (`tenant_id`,`actor_user_id`,`status`,`expires_at`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢MCP短期访问令牌安全元数据'; -- forge_admin_new.ai_capability_approval definition CREATE TABLE `ai_capability_approval` ( `id` bigint NOT NULL COMMENT '审批请求ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `request_id` varchar(64) NOT NULL COMMENT '原始Capability请求ID', `client_id` bigint NOT NULL COMMENT '机器客户端ID', `credential_version` int NOT NULL COMMENT '提交时客户端凭据版本', `capability_id` bigint NOT NULL COMMENT '能力ID', `capability_code` varchar(128) NOT NULL COMMENT '能力编码', `capability_version` varchar(32) NOT NULL COMMENT '能力版本', `actor_user_id` bigint NOT NULL COMMENT '实际操作用户ID', `service_user_id` bigint NOT NULL COMMENT '客户端服务账号ID', `active_org_id` bigint NOT NULL COMMENT '当前组织ID', `idempotency_key` varchar(128) NOT NULL COMMENT '原始幂等键', `request_digest` varchar(71) NOT NULL COMMENT '规范请求SHA-256摘要', `business_state_digest` varchar(71) DEFAULT NULL COMMENT '提交时业务状态摘要', `key_id` varchar(64) NOT NULL COMMENT 'KEK版本ID', `wrapped_dek` varchar(512) NOT NULL COMMENT '包装后的每记录DEK', `payload_iv` varchar(64) NOT NULL COMMENT 'AES-GCM IV', `payload_ciphertext` longtext NOT NULL COMMENT '请求密文', `payload_auth_tag` varchar(64) NOT NULL COMMENT 'AES-GCM认证标签', `flow_model_key` varchar(128) NOT NULL COMMENT '审批流程模型Key', `process_instance_id` varchar(128) DEFAULT NULL COMMENT 'Flowable实例ID', `execute_status` varchar(32) NOT NULL COMMENT '审批执行状态', `result_code` varchar(64) NOT NULL COMMENT '稳定结果码', `result_snapshot` varchar(2000) DEFAULT NULL COMMENT '安全结果摘要', `error_code` varchar(64) DEFAULT NULL COMMENT '稳定错误码', `expires_at` datetime NOT NULL COMMENT '审批过期时间', `completed_at` datetime DEFAULT NULL COMMENT '终态时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_capability_approval_idempotency` (`tenant_id`,`client_id`,`capability_id`,`idempotency_key`,`del_flag`), UNIQUE KEY `uk_capability_approval_request` (`tenant_id`,`request_id`,`del_flag`), KEY `idx_capability_approval_actor` (`tenant_id`,`actor_user_id`,`create_time`), KEY `idx_capability_approval_process` (`tenant_id`,`process_instance_id`), KEY `idx_capability_approval_status` (`tenant_id`,`execute_status`,`expires_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI能力高风险动作人工审批'; -- forge_admin_new.ai_capability_client definition CREATE TABLE `ai_capability_client` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `client_code` varchar(64) NOT NULL, `client_name` varchar(128) NOT NULL, `key_id` varchar(22) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, `key_prefix` varchar(32) NOT NULL, `key_hash` char(64) NOT NULL, `credential_version` int NOT NULL DEFAULT '1', `service_user_id` bigint NOT NULL, `active_org_id` bigint NOT NULL, `oauth_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否允许OAuth换取短期令牌', `oauth_client_type` varchar(16) NOT NULL DEFAULT 'CONFIDENTIAL' COMMENT 'OAuth客户端类型(PUBLIC/CONFIDENTIAL)', `status` varchar(16) NOT NULL DEFAULT 'ENABLED', `expires_at` datetime DEFAULT NULL, `last_used_at` datetime DEFAULT NULL, `remark` varchar(500) DEFAULT NULL, `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_client_code_active` (`tenant_id`,`client_code`,`del_flag`), UNIQUE KEY `uk_ai_capability_client_key_active` (`key_id`,`del_flag`), KEY `idx_ai_capability_client_status` (`tenant_id`,`status`,`expires_at`,`del_flag`), KEY `idx_ai_capability_client_user_org` (`tenant_id`,`service_user_id`,`active_org_id`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢机器客户端'; -- forge_admin_new.ai_capability_flow_action_log definition CREATE TABLE `ai_capability_flow_action_log` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `request_id` varchar(64) NOT NULL COMMENT 'Capability请求ID', `client_id` bigint NOT NULL COMMENT '机器客户端ID', `capability_id` bigint NOT NULL COMMENT '能力ID', `capability_code` varchar(128) NOT NULL COMMENT '能力编码', `capability_version` varchar(32) NOT NULL COMMENT '能力版本', `operation` varchar(16) NOT NULL COMMENT '流程操作START/APPROVE/REJECT', `object_code` varchar(128) NOT NULL COMMENT '业务对象编码', `record_id` varchar(128) NOT NULL COMMENT '业务记录ID字符串', `task_ref` varchar(16) DEFAULT NULL COMMENT '任务ID安全摘要', `idempotency_key` varchar(128) NOT NULL COMMENT '调用方幂等键', `request_digest` varchar(71) NOT NULL COMMENT '规范请求SHA-256摘要', `actor_type` varchar(16) NOT NULL COMMENT '实际主体类型', `actor_user_id` bigint NOT NULL COMMENT '实际操作用户ID', `service_user_id` bigint NOT NULL COMMENT '客户端绑定服务账号ID', `active_org_id` bigint NOT NULL COMMENT '当前组织ID', `execute_status` varchar(32) NOT NULL COMMENT 'RUNNING/SUCCESS/FAILED', `result_code` varchar(64) NOT NULL COMMENT '稳定结果码', `result_snapshot` varchar(2000) DEFAULT NULL COMMENT '安全结果摘要JSON', `error_code` varchar(64) DEFAULT NULL COMMENT '稳定错误码', `duration_ms` bigint NOT NULL DEFAULT '0' COMMENT '耗时毫秒', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_cap_flow_action_idempotency` (`tenant_id`,`client_id`,`capability_id`,`operation`,`idempotency_key`,`del_flag`), UNIQUE KEY `uk_cap_flow_action_request` (`tenant_id`,`request_id`,`del_flag`), KEY `idx_cap_flow_action_actor` (`tenant_id`,`actor_user_id`,`create_time`), KEY `idx_cap_flow_action_record` (`tenant_id`,`object_code`,`record_id`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI能力受控流程动作执行日志'; -- forge_admin_new.ai_capability_grant definition CREATE TABLE `ai_capability_grant` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `client_id` bigint NOT NULL, `capability_id` bigint NOT NULL, `version_strategy` varchar(16) NOT NULL DEFAULT 'PINNED', `fixed_version` varchar(32) DEFAULT NULL, `field_policy` json DEFAULT NULL, `status` varchar(16) NOT NULL DEFAULT 'ENABLED', `expires_at` datetime DEFAULT NULL, `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_grant_active` (`tenant_id`,`client_id`,`capability_id`,`del_flag`), KEY `idx_ai_capability_grant_client` (`tenant_id`,`client_id`,`status`,`expires_at`,`del_flag`), KEY `idx_ai_capability_grant_capability` (`tenant_id`,`capability_id`,`status`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢客户端能力授权'; -- forge_admin_new.ai_capability_invocation_log definition CREATE TABLE `ai_capability_invocation_log` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `request_id` varchar(64) NOT NULL, `client_id` bigint DEFAULT NULL, `client_code` varchar(64) DEFAULT NULL, `capability_id` bigint DEFAULT NULL, `capability_code` varchar(128) NOT NULL, `capability_version` varchar(32) DEFAULT NULL, `actor_type` varchar(16) DEFAULT NULL, `actor_user_id` bigint DEFAULT NULL, `service_user_id` bigint DEFAULT NULL, `active_org_id` bigint DEFAULT NULL, `result_status` varchar(24) NOT NULL, `result_code` varchar(64) NOT NULL, `error_code` varchar(64) DEFAULT NULL, `schema_path` varchar(256) DEFAULT NULL, `trace_id` varchar(64) DEFAULT NULL, `duration_ms` bigint NOT NULL DEFAULT '0', `del_flag` tinyint NOT NULL DEFAULT '0', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_invocation_request` (`tenant_id`,`request_id`), KEY `idx_ai_capability_invocation_client` (`tenant_id`,`client_id`,`create_time`,`del_flag`), KEY `idx_ai_capability_invocation_actor` (`tenant_id`,`actor_user_id`,`create_time`,`del_flag`), KEY `idx_ai_capability_invocation_capability` (`tenant_id`,`capability_id`,`create_time`,`del_flag`), KEY `idx_ai_capability_invocation_result` (`tenant_id`,`result_code`,`create_time`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢能力安全调用日志'; -- forge_admin_new.ai_capability_oauth_redirect_uri definition CREATE TABLE `ai_capability_oauth_redirect_uri` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `client_id` bigint NOT NULL, `redirect_uri` varchar(2048) NOT NULL, `redirect_uri_hash` char(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, `status` varchar(16) NOT NULL DEFAULT 'ENABLED', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_redirect_active` (`tenant_id`,`client_id`,`redirect_uri_hash`,`del_flag`), KEY `idx_ai_capability_redirect_client` (`tenant_id`,`client_id`,`status`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢OAuth客户端精确回调地址'; -- forge_admin_new.ai_capability_policy definition CREATE TABLE `ai_capability_policy` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `capability_id` bigint NOT NULL COMMENT '能力ID', `capability_version` varchar(32) NOT NULL COMMENT '不可变能力版本', `risk_level` varchar(16) NOT NULL COMMENT '风险等级,当前仅HIGH', `approval_flow_model_key` varchar(128) NOT NULL COMMENT '专用审批流程模型Key', `approval_candidate_group` varchar(64) NOT NULL COMMENT '服务端审批候选组', `expire_seconds` int NOT NULL DEFAULT '86400' COMMENT '审批有效秒数', `status` varchar(16) NOT NULL DEFAULT 'ENABLED' COMMENT 'ENABLED/DISABLED', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_capability_policy_version` (`tenant_id`,`capability_id`,`capability_version`,`del_flag`), KEY `idx_capability_policy_status` (`tenant_id`,`risk_level`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI能力风险与人工审批策略'; -- forge_admin_new.ai_capability_version definition CREATE TABLE `ai_capability_version` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `capability_id` bigint NOT NULL, `version` varchar(32) NOT NULL, `input_schema` json NOT NULL, `output_schema` json NOT NULL, `source_type` varchar(32) NOT NULL, `source_key` varchar(128) NOT NULL, `source_version` varchar(64) NOT NULL, `behavior` varchar(24) NOT NULL, `risk_level` varchar(16) NOT NULL, `visibility` varchar(16) NOT NULL, `policy_snapshot` json DEFAULT NULL, `schema_checksum` char(64) NOT NULL, `status` varchar(16) NOT NULL DEFAULT 'PUBLISHED', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_capability_version_active` (`tenant_id`,`capability_id`,`version`,`del_flag`), KEY `idx_ai_capability_version_checksum` (`tenant_id`,`capability_id`,`schema_checksum`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI中枢能力不可变版本'; -- forge_admin_new.ai_chat_record definition CREATE TABLE `ai_chat_record` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `user_id` bigint NOT NULL COMMENT '用户ID', `agent_code` varchar(50) DEFAULT NULL COMMENT 'Agent编码', `session_id` varchar(64) NOT NULL COMMENT '会话ID', `role` varchar(20) NOT NULL COMMENT '角色(user/assistant/system)', `content` longtext NOT NULL COMMENT '消息内容', `token_usage` int DEFAULT NULL COMMENT 'Token消耗', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_session_id` (`session_id`), KEY `idx_user_id` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2079974031044694019 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI对话记录表'; -- forge_admin_new.ai_chat_session definition CREATE TABLE `ai_chat_session` ( `id` varchar(64) NOT NULL COMMENT '会话ID(UUID,由前端或服务端生成)', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `user_id` bigint NOT NULL COMMENT '用户ID', `agent_code` varchar(50) DEFAULT NULL COMMENT '关联的 Agent 编码', `session_name` varchar(200) DEFAULT NULL COMMENT '会话标题(首条消息截取)', `status` char(1) NOT NULL DEFAULT '0' COMMENT '状态(0正常 1已删除)', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_time` datetime DEFAULT NULL COMMENT '最后更新时间', `metadata` varchar(500) DEFAULT NULL COMMENT 'metadata数据JSON', PRIMARY KEY (`id`), KEY `idx_user_id` (`user_id`,`status`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI会话表'; -- forge_admin_new.ai_code_rule definition CREATE TABLE `ai_code_rule` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `rule_code` varchar(64) NOT NULL COMMENT '规则编码', `rule_name` varchar(128) NOT NULL COMMENT '规则名称', `scene` varchar(64) NOT NULL DEFAULT 'COMMON' COMMENT '适用场景:COMMON通用/DOCUMENT单据/MATERIAL物料等', `category` varchar(64) NOT NULL DEFAULT 'COMMON' COMMENT '编码分类', `source_object_id` bigint DEFAULT NULL COMMENT '业务字段来源对象ID', `source_object_code` varchar(64) DEFAULT NULL COMMENT '业务字段来源对象编码', `template` varchar(256) NOT NULL COMMENT '编码模板', `reset_policy` varchar(32) NOT NULL DEFAULT 'AUTO' COMMENT '流水重置策略:AUTO/NONE/YEAR/MONTH/DAY/HOUR/MINUTE/SECOND', `seq_length` int NOT NULL DEFAULT '4' COMMENT '默认流水号长度', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:1启用 0停用', `builtin` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否内置规则', `in_code_list` tinyint NOT NULL DEFAULT '1' COMMENT '是否可在业务配置中选择', `version_no` int NOT NULL DEFAULT '1' COMMENT '乐观锁版本号', `legacy_compat_enabled` tinyint NOT NULL DEFAULT '1' COMMENT '是否兼容旧编码计数器水位', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `options` json DEFAULT NULL COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_code_rule_code_active` (`tenant_id`,`rule_code`,`del_flag`), KEY `idx_ai_code_rule_scene` (`tenant_id`,`scene`,`status`), KEY `idx_ai_code_rule_update` (`tenant_id`,`update_time`), KEY `idx_ai_code_rule_category` (`tenant_id`,`category`,`status`,`del_flag`), KEY `idx_ai_code_rule_source_object` (`tenant_id`,`source_object_code`,`status`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-通用编码规则'; -- forge_admin_new.ai_code_rule_segment definition CREATE TABLE `ai_code_rule_segment` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '分段ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `rule_id` bigint NOT NULL COMMENT '编码规则ID', `segment_key` varchar(32) NOT NULL COMMENT '稳定分段键', `segment_order` int NOT NULL COMMENT '分段顺序,从1开始', `segment_type` varchar(16) NOT NULL COMMENT 'DATE/FIXED/SEQ/VARIABLE/SYS_VAR', `segment_value` varchar(128) DEFAULT NULL COMMENT '格式、固定值或变量名', `variable_source` varchar(16) NOT NULL DEFAULT 'CUSTOM' COMMENT 'VARIABLE来源:CUSTOM/LOWCODE', `segment_length` int DEFAULT NULL COMMENT '声明长度或最大长度', `pad_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否补位', `pad_char` varchar(4) DEFAULT NULL COMMENT '补位字符', `pad_direction` varchar(8) NOT NULL DEFAULT 'LEFT' COMMENT 'LEFT/RIGHT', `group_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否参与流水分组', `include_in_code` tinyint NOT NULL DEFAULT '1' COMMENT '是否输出到最终编码', `radix_type` varchar(32) DEFAULT NULL COMMENT 'SEQ进制类型', `reset_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否按周期切换计数器', `reset_policy` varchar(16) NOT NULL DEFAULT 'NONE' COMMENT 'NONE/YEAR/MONTH/DAY/HOUR', `start_value` bigint NOT NULL DEFAULT '1' COMMENT '新计数器起始值', `exclude_ambiguous` tinyint NOT NULL DEFAULT '0' COMMENT '是否移除I/O/Z等易混淆字符', `excluded_characters` varchar(16) DEFAULT NULL COMMENT '具体排除的易混淆字符,逗号分隔:I/O/Z', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_code_rule_segment_key_active` (`tenant_id`,`rule_id`,`segment_key`,`del_flag`), KEY `idx_ai_code_rule_segment_order` (`tenant_id`,`rule_id`,`del_flag`,`segment_order`,`id`) ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='编码规则结构化分段'; -- forge_admin_new.ai_context_config definition CREATE TABLE `ai_context_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `tenant_id` bigint DEFAULT '1' COMMENT '租户ID', `agent_code` varchar(64) NOT NULL COMMENT '关联Agent编码', `config_name` varchar(128) NOT NULL COMMENT '配置名称', `config_content` text NOT NULL COMMENT '上下文内容', `config_type` varchar(32) NOT NULL DEFAULT 'SPEC' COMMENT '类型:SPEC/SAMPLE/RULE', `sort` int DEFAULT '0' COMMENT '排序', `status` char(1) DEFAULT '0' COMMENT '状态(0正常 1停用)', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`id`), KEY `idx_agent_code` (`agent_code`) ) ENGINE=InnoDB AUTO_INCREMENT=2055282589253537798 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI上下文配置表'; -- forge_admin_new.ai_crud_config definition CREATE TABLE `ai_crud_config` ( `id` bigint NOT NULL COMMENT '主键', `tenant_id` bigint DEFAULT '1' COMMENT '租户ID', `config_key` varchar(64) NOT NULL COMMENT '配置唯一标识(小写字母+数字+下划线)', `table_name` varchar(128) NOT NULL COMMENT '关联的数据库表名', `table_comment` varchar(255) DEFAULT '' COMMENT '表描述/功能名称', `app_name` varchar(128) DEFAULT NULL COMMENT '低代码应用名称', `search_schema` json DEFAULT NULL COMMENT '搜索表单Schema JSON', `columns_schema` json DEFAULT NULL COMMENT '表格列Schema JSON', `edit_schema` json DEFAULT NULL COMMENT '编辑表单Schema JSON', `api_config` json DEFAULT NULL COMMENT 'API配置JSON(method@url格式)', `options` json DEFAULT NULL COMMENT '其他AiCrudPage配置(modalType/modalWidth/gridCols等)', `mode` varchar(16) NOT NULL DEFAULT 'CONFIG' COMMENT '模式:CONFIG-配置驱动 / CODEGEN-代码生成', `build_mode` varchar(16) NOT NULL DEFAULT 'AI' COMMENT '构建模式:AI智能生成 LOWCODE可视化低代码 CODEGEN代码生成', `status` char(1) NOT NULL DEFAULT '0' COMMENT '状态(0启用 1停用)', `publish_status` varchar(16) NOT NULL DEFAULT 'DRAFT' COMMENT '发布状态:DRAFT草稿 PUBLISHED已发布 STOPPED已停用', `menu_name` varchar(128) DEFAULT '' COMMENT '菜单名称', `menu_parent_id` bigint DEFAULT NULL COMMENT '菜单父级ID', `menu_sort` int DEFAULT '0' COMMENT '菜单排序', `menu_resource_id` bigint DEFAULT NULL COMMENT '关联的sys_resource记录ID', `dict_config` json DEFAULT NULL COMMENT '字典数据配置', `desensitize_config` json DEFAULT NULL COMMENT '字段脱敏配置', `encrypt_config` json DEFAULT NULL COMMENT '接口加解密配置', `trans_config` json DEFAULT NULL COMMENT '字典翻译配置', `layout_type` varchar(64) DEFAULT 'simple-crud' COMMENT '页面模板类型(对应 ai_page_template.template_key)', `model_schema` json DEFAULT NULL COMMENT '可视化数据模型协议', `page_schema` json DEFAULT NULL COMMENT '可视化页面搭建协议', `draft_version` int NOT NULL DEFAULT '0' COMMENT '草稿版本号', `published_version` int NOT NULL DEFAULT '0' COMMENT '已发布版本号', `publish_time` datetime DEFAULT NULL COMMENT '发布时间', `publish_by` bigint DEFAULT NULL COMMENT '发布人', `domain_id` bigint DEFAULT NULL COMMENT '业务领域ID', `domain_code` varchar(48) DEFAULT NULL COMMENT '业务领域编码', `object_code` varchar(48) DEFAULT NULL COMMENT '业务对象编码', `object_name` varchar(128) DEFAULT NULL COMMENT '业务对象名称', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `runtime_datasource_id` bigint DEFAULT NULL COMMENT '运行数据源ID', `runtime_datasource_code` varchar(64) DEFAULT NULL COMMENT '运行数据源编码', `runtime_datasource_snapshot` json DEFAULT NULL COMMENT '运行数据源快照,不含密码', `runtime_table_name` varchar(128) DEFAULT NULL COMMENT '运行表名', `primary_key_field` varchar(64) NOT NULL DEFAULT 'id' COMMENT '主键字段名', `primary_key_column` varchar(64) NOT NULL DEFAULT 'id' COMMENT '主键列名', `primary_key_type` varchar(32) NOT NULL DEFAULT 'bigint' COMMENT '主键类型', `tenant_strategy` json DEFAULT NULL COMMENT '租户隔离策略', `audit_strategy` json DEFAULT NULL COMMENT '审计字段策略', `logic_delete_strategy` json DEFAULT NULL COMMENT '逻辑删除策略', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_config_key_active` (`config_key`,`del_flag`), KEY `idx_table_name` (`table_name`), KEY `idx_tenant_id` (`tenant_id`), KEY `idx_ai_crud_publish_status` (`tenant_id`,`publish_status`,`update_time`), KEY `idx_ai_crud_domain` (`tenant_id`,`domain_id`,`publish_status`,`update_time`), KEY `idx_ai_crud_domain_object` (`tenant_id`,`domain_id`,`object_code`), KEY `idx_ai_crud_runtime_ds` (`tenant_id`,`runtime_datasource_id`,`publish_status`), KEY `idx_ai_crud_lowcode_page` (`tenant_id`,`mode`,`build_mode`,`update_time`,`id`), KEY `idx_ai_crud_runtime_object_lookup` (`tenant_id`,`object_code`,`mode`,`build_mode`,`publish_status`,`publish_time`), KEY `idx_ai_crud_runtime_config_lookup` (`tenant_id`,`config_key`,`mode`,`build_mode`,`publish_status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRUD配置驱动表'; -- forge_admin_new.ai_crud_config_version definition CREATE TABLE `ai_crud_config_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `config_id` bigint NOT NULL COMMENT 'CRUD配置ID', `config_key` varchar(64) NOT NULL COMMENT 'CRUD配置键', `domain_id` bigint DEFAULT NULL COMMENT '业务领域ID', `domain_code` varchar(48) DEFAULT NULL COMMENT '业务领域编码', `object_code` varchar(48) DEFAULT NULL COMMENT '业务对象编码', `object_name` varchar(128) DEFAULT NULL COMMENT '业务对象名称', `version_no` int NOT NULL COMMENT '版本号', `version_type` varchar(20) NOT NULL DEFAULT 'publish' COMMENT '版本类型:publish发布 rollback回滚', `model_schema` json DEFAULT NULL COMMENT '可视化数据模型协议', `page_schema` json DEFAULT NULL COMMENT '可视化页面搭建协议', `search_schema` json DEFAULT NULL COMMENT '搜索表单Schema JSON', `columns_schema` json DEFAULT NULL COMMENT '表格列Schema JSON', `edit_schema` json DEFAULT NULL COMMENT '编辑表单Schema JSON', `api_config` json DEFAULT NULL COMMENT 'API配置JSON', `options` json DEFAULT NULL COMMENT 'AiCrudPage运行时配置', `publish_snapshot` longtext COMMENT '发布快照JSON', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `runtime_datasource_id` bigint DEFAULT NULL COMMENT '运行数据源ID', `runtime_datasource_code` varchar(64) DEFAULT NULL COMMENT '运行数据源编码', `runtime_datasource_snapshot` json DEFAULT NULL COMMENT '运行数据源快照,不含密码', `runtime_table_name` varchar(128) DEFAULT NULL COMMENT '运行表名', `primary_key_field` varchar(64) NOT NULL DEFAULT 'id' COMMENT '主键字段名', `primary_key_column` varchar(64) NOT NULL DEFAULT 'id' COMMENT '主键列名', `primary_key_type` varchar(32) NOT NULL DEFAULT 'bigint' COMMENT '主键类型', `tenant_strategy` json DEFAULT NULL COMMENT '租户隔离策略', `audit_strategy` json DEFAULT NULL COMMENT '审计字段策略', `logic_delete_strategy` json DEFAULT NULL COMMENT '逻辑删除策略', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_crud_version_no` (`tenant_id`,`config_id`,`version_no`), KEY `idx_ai_crud_version_config` (`tenant_id`,`config_id`,`create_time`), KEY `idx_ai_crud_version_key` (`tenant_id`,`config_key`,`version_no`), KEY `idx_ai_crud_version_domain` (`tenant_id`,`domain_id`,`version_no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI CRUD低代码发布版本表'; -- forge_admin_new.ai_crud_export_task definition CREATE TABLE `ai_crud_export_task` ( `id` bigint NOT NULL COMMENT '任务ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `config_key` varchar(64) NOT NULL COMMENT 'CRUD配置键', `export_name` varchar(128) DEFAULT NULL COMMENT '导出名称', `file_name` varchar(255) DEFAULT NULL COMMENT '导出文件名', `file_id` varchar(64) DEFAULT NULL COMMENT '文件中心ID', `file_size` bigint DEFAULT NULL COMMENT '文件大小(字节)', `status` varchar(20) NOT NULL DEFAULT 'PENDING' COMMENT '任务状态:PENDING/RUNNING/SUCCESS/FAILED', `total_count` bigint NOT NULL DEFAULT '0' COMMENT '总数据量', `exported_count` bigint NOT NULL DEFAULT '0' COMMENT '已导出数据量', `progress` int NOT NULL DEFAULT '0' COMMENT '导出进度百分比', `query_params` json DEFAULT NULL COMMENT '导出查询参数快照', `error_message` varchar(1000) DEFAULT NULL COMMENT '失败原因', `finish_time` datetime DEFAULT NULL COMMENT '完成时间', `expire_time` datetime DEFAULT NULL COMMENT '文件过期时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建组织ID', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_ai_crud_export_task_user` (`tenant_id`,`create_by`,`config_key`,`create_time`), KEY `idx_ai_crud_export_task_status` (`tenant_id`,`status`,`expire_time`), KEY `idx_ai_crud_export_task_file` (`file_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用CRUD异步导出任务表'; -- forge_admin_new.ai_custom_query_scheme definition CREATE TABLE `ai_custom_query_scheme` ( `id` bigint NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `config_key` varchar(64) NOT NULL COMMENT 'CRUD配置键', `scheme_name` varchar(128) NOT NULL COMMENT '查询方案名称', `conditions_json` json DEFAULT NULL COMMENT '查询条件JSON', `columns_json` json DEFAULT NULL COMMENT '展示字段JSON', `sort_json` json DEFAULT NULL COMMENT '排序配置JSON', `display_json` json DEFAULT NULL COMMENT '展示方式配置JSON', `is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默认方案(1是 0否)', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), KEY `idx_tenant_config_user` (`tenant_id`,`config_key`,`create_by`), KEY `idx_tenant_config_default` (`tenant_id`,`config_key`,`create_by`,`is_default`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI自定义查询方案表'; -- forge_admin_new.ai_dashboard_component_lineage definition CREATE TABLE `ai_dashboard_component_lineage` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `record_id` bigint NOT NULL COMMENT '生成记录ID', `user_id` bigint NOT NULL COMMENT '用户ID', `session_id` varchar(80) DEFAULT NULL COMMENT 'AI会话ID', `project_id` bigint DEFAULT NULL COMMENT '大屏项目ID', `project_name` varchar(128) DEFAULT NULL COMMENT '大屏项目名称', `business_definition_id` bigint DEFAULT NULL COMMENT '业务定义ID', `business_name` varchar(128) DEFAULT NULL COMMENT '业务定义名称', `component_index` int DEFAULT NULL COMMENT '组件序号', `component_key` varchar(100) DEFAULT NULL COMMENT '组件Key', `component_title` varchar(200) DEFAULT NULL COMMENT '组件标题', `dataset_id` bigint NOT NULL COMMENT '数据集ID', `dataset_name` varchar(128) DEFAULT NULL COMMENT '数据集名称', `field_names` varchar(2000) DEFAULT NULL COMMENT '使用字段,逗号分隔', `binding_status` varchar(32) DEFAULT NULL COMMENT '绑定状态', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_ai_dashboard_lineage_dataset` (`tenant_id`,`dataset_id`,`create_time`), KEY `idx_ai_dashboard_lineage_record` (`tenant_id`,`record_id`), KEY `idx_ai_dashboard_lineage_project` (`tenant_id`,`project_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI大屏组件数据资产血缘'; -- forge_admin_new.ai_dashboard_generate_record definition CREATE TABLE `ai_dashboard_generate_record` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `user_id` bigint NOT NULL COMMENT '用户ID', `session_id` varchar(80) DEFAULT NULL COMMENT 'AI会话ID', `project_id` bigint DEFAULT NULL COMMENT '大屏项目ID', `project_name` varchar(128) DEFAULT NULL COMMENT '大屏项目名称', `business_definition_id` bigint DEFAULT NULL COMMENT '业务定义ID', `business_name` varchar(128) DEFAULT NULL COMMENT '业务定义名称', `provider_id` bigint DEFAULT NULL COMMENT 'AI供应商ID', `provider_name` varchar(128) DEFAULT NULL COMMENT 'AI供应商名称', `model_name` varchar(128) DEFAULT NULL COMMENT '模型名称', `style` varchar(20) DEFAULT NULL COMMENT '生成风格', `canvas_width` int DEFAULT NULL COMMENT '画布宽度', `canvas_height` int DEFAULT NULL COMMENT '画布高度', `prompt` text COMMENT '用户提示词', `request_json` longtext COMMENT '生成请求JSON', `generated_title` varchar(200) DEFAULT NULL COMMENT '生成大屏标题', `response_json` longtext COMMENT '生成结果JSON', `validation_summary_json` longtext COMMENT '前端校验摘要JSON', `status` varchar(32) NOT NULL DEFAULT 'success' COMMENT '状态:success/failed/parse_failed/stopped', `component_count` int NOT NULL DEFAULT '0' COMMENT '组件数量', `bound_count` int NOT NULL DEFAULT '0' COMMENT '动态绑定数量', `static_count` int NOT NULL DEFAULT '0' COMMENT '静态组件数量', `static_fallback_count` int NOT NULL DEFAULT '0' COMMENT '静态降级数量', `repaired_count` int NOT NULL DEFAULT '0' COMMENT '自动修复数量', `elapsed_ms` bigint DEFAULT NULL COMMENT '生成耗时毫秒', `error_message` varchar(1000) DEFAULT NULL COMMENT '错误原因', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_ai_dashboard_record_user_time` (`tenant_id`,`user_id`,`create_time`), KEY `idx_ai_dashboard_record_business` (`tenant_id`,`business_definition_id`,`create_time`), KEY `idx_ai_dashboard_record_project` (`tenant_id`,`project_id`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI大屏生成记录'; -- forge_admin_new.ai_formula_execution_log definition CREATE TABLE `ai_formula_execution_log` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `trace_id` varchar(64) DEFAULT NULL COMMENT '公式执行链路ID', `object_code` varchar(64) NOT NULL COMMENT '业务对象编码', `record_id` varchar(64) DEFAULT NULL COMMENT '业务记录ID', `field_code` varchar(64) NOT NULL COMMENT '公式字段编码', `formula_type` varchar(32) DEFAULT NULL COMMENT '公式类型:CALC/AGGREGATE/CONDITIONAL/LOOKUP', `formula_mode` varchar(32) DEFAULT NULL COMMENT '计算模式:STORED/VIRTUAL', `expression` text COMMENT '表达式或配置摘要', `input_snapshot` json DEFAULT NULL COMMENT '输入快照,脱敏后存储', `output_value` text COMMENT '输出值摘要,脱敏后存储', `success` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否执行成功:1成功 0失败', `error_message` text COMMENT '错误信息', `elapsed_ms` bigint DEFAULT NULL COMMENT '执行耗时(毫秒)', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_ai_formula_log_trace` (`tenant_id`,`trace_id`), KEY `idx_ai_formula_log_record` (`tenant_id`,`object_code`,`record_id`,`create_time`), KEY `idx_ai_formula_log_field` (`tenant_id`,`field_code`,`create_time`), KEY `idx_ai_formula_log_success` (`tenant_id`,`success`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-公式执行日志表'; -- forge_admin_new.ai_formula_function definition CREATE TABLE `ai_formula_function` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `function_code` varchar(64) NOT NULL COMMENT '函数编码', `display_name` varchar(128) NOT NULL COMMENT '展示名称', `category` varchar(64) NOT NULL COMMENT '函数分类', `description` varchar(500) DEFAULT NULL COMMENT '函数说明', `source_type` varchar(32) NOT NULL DEFAULT 'BUILTIN' COMMENT '来源类型:BUILTIN/SYSTEM/TENANT/MARKET', `argument_schema` json DEFAULT NULL COMMENT '参数Schema', `return_type` varchar(32) DEFAULT NULL COMMENT '返回类型', `example` text COMMENT '示例', `status` varchar(32) NOT NULL DEFAULT 'ENABLED' COMMENT '状态:ENABLED/DISABLED', `current_version` varchar(32) DEFAULT NULL COMMENT '当前版本', `latest_version` varchar(32) DEFAULT NULL COMMENT '最新版本', `builtin` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否内置函数', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序号', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_formula_function_code` (`tenant_id`,`function_code`), KEY `idx_ai_formula_function_query` (`tenant_id`,`category`,`source_type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-公式函数注册表'; -- forge_admin_new.ai_formula_function_install definition CREATE TABLE `ai_formula_function_install` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `function_code` varchar(64) NOT NULL COMMENT '函数编码', `installed_version` varchar(32) NOT NULL COMMENT '已安装版本', `install_status` varchar(32) NOT NULL DEFAULT 'INSTALLED' COMMENT '安装状态:INSTALLED/UNINSTALLED', `enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用', `source_type` varchar(32) NOT NULL DEFAULT 'BUILTIN' COMMENT '来源类型:BUILTIN/SYSTEM/TENANT/MARKET', `installed_by` bigint DEFAULT NULL COMMENT '安装人', `installed_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '安装时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_formula_function_install` (`tenant_id`,`function_code`), KEY `idx_ai_formula_function_install_status` (`tenant_id`,`install_status`,`enabled`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-公式函数安装表'; -- forge_admin_new.ai_formula_function_version definition CREATE TABLE `ai_formula_function_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `function_code` varchar(64) NOT NULL COMMENT '函数编码', `version` varchar(32) NOT NULL COMMENT '函数版本', `implementation_type` varchar(32) NOT NULL DEFAULT 'JAVA_BEAN' COMMENT '实现类型', `bean_name` varchar(128) DEFAULT NULL COMMENT 'Spring Bean名称', `method_name` varchar(128) DEFAULT NULL COMMENT '方法名称', `argument_schema` json DEFAULT NULL COMMENT '参数Schema', `return_type` varchar(32) DEFAULT NULL COMMENT '返回类型', `example` text COMMENT '示例', `release_note` varchar(500) DEFAULT NULL COMMENT '版本说明', `status` varchar(32) NOT NULL DEFAULT 'ENABLED' COMMENT '状态:ENABLED/DISABLED/DEPRECATED', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_formula_function_version` (`tenant_id`,`function_code`,`version`), KEY `idx_ai_formula_function_version_code` (`tenant_id`,`function_code`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI业务应用平台-公式函数版本表'; -- forge_admin_new.ai_lowcode_domain definition CREATE TABLE `ai_lowcode_domain` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父级领域ID,0表示根节点', `domain_code` varchar(48) NOT NULL COMMENT '领域编码', `domain_name` varchar(128) NOT NULL COMMENT '领域名称', `domain_desc` varchar(500) DEFAULT NULL COMMENT '领域说明', `icon` varchar(128) DEFAULT NULL COMMENT '领域图标', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `status` varchar(16) NOT NULL DEFAULT 'ENABLED' COMMENT '状态:ENABLED启用 DISABLED停用', `menu_parent_id` bigint DEFAULT NULL COMMENT '默认菜单父级ID', `table_prefix` varchar(64) NOT NULL DEFAULT 'biz_' COMMENT '默认表名前缀', `config_key_prefix` varchar(64) NOT NULL DEFAULT 'biz_' COMMENT '默认配置键前缀', `default_app_type` varchar(32) NOT NULL DEFAULT 'SINGLE' COMMENT '默认应用类型', `default_layout_type` varchar(64) NOT NULL DEFAULT 'simple-crud' COMMENT '默认页面模板', `default_table_mode` varchar(32) NOT NULL DEFAULT 'CREATE' COMMENT '默认建表模式', `domain_schema` json DEFAULT NULL COMMENT '领域扩展协议', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_lowcode_domain_code_active` (`tenant_id`,`domain_code`,`del_flag`), UNIQUE KEY `uk_ai_lowcode_domain_name_active` (`tenant_id`,`parent_id`,`domain_name`,`del_flag`), KEY `idx_ai_lowcode_domain_parent` (`tenant_id`,`parent_id`,`sort`), KEY `idx_ai_lowcode_domain_status` (`tenant_id`,`status`,`sort`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI低代码业务领域表'; -- forge_admin_new.ai_lowcode_model definition CREATE TABLE `ai_lowcode_model` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `domain_id` bigint NOT NULL COMMENT '业务领域ID', `domain_code` varchar(48) NOT NULL COMMENT '业务领域编码', `model_code` varchar(48) NOT NULL COMMENT '模型编码', `model_name` varchar(128) NOT NULL COMMENT '模型名称', `model_desc` varchar(512) DEFAULT NULL COMMENT '模型描述', `status` varchar(16) NOT NULL DEFAULT 'ENABLED' COMMENT '状态:ENABLED启用 DISABLED停用', `tenant_enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用多租户', `master_data` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否主数据模型', `model_schema` longtext COMMENT '模型结构协议JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `runtime_datasource_id` bigint DEFAULT NULL COMMENT '模型运行数据源ID', `runtime_datasource_code` varchar(64) DEFAULT NULL COMMENT '模型运行数据源编码', `runtime_table_name` varchar(128) DEFAULT NULL COMMENT '模型运行表名', `table_mode` varchar(16) DEFAULT NULL COMMENT '表模式:CREATE/EXISTING', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_lowcode_model_code_active` (`tenant_id`,`domain_id`,`model_code`,`del_flag`), KEY `idx_ai_lowcode_model_domain` (`tenant_id`,`domain_id`,`status`), KEY `idx_ai_lowcode_model_master` (`tenant_id`,`master_data`,`status`), KEY `idx_lowcode_model_runtime_ds` (`tenant_id`,`runtime_datasource_id`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI低代码数据模型表'; -- forge_admin_new.ai_model definition CREATE TABLE `ai_model` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `provider_id` bigint NOT NULL COMMENT '供应商ID', `model_type` varchar(32) NOT NULL COMMENT '模型类型(chat/embedding/image/audio)', `model_id` varchar(128) NOT NULL COMMENT '模型标识(如gpt-4o)', `model_name` varchar(128) NOT NULL COMMENT '模型显示名称', `description` varchar(512) DEFAULT NULL COMMENT '描述', `max_tokens` int DEFAULT NULL COMMENT '最大Token数', `context_window` int DEFAULT NULL COMMENT '上下文窗口Token数', `input_price_per_million_cent` bigint DEFAULT NULL COMMENT '输入价格(分/百万Token)', `output_price_per_million_cent` bigint DEFAULT NULL COMMENT '输出价格(分/百万Token)', `icon` varchar(512) DEFAULT NULL COMMENT '模型图标(文件ID或URL)', `is_default` char(1) DEFAULT '0' COMMENT '是否默认模型(0否1是)', `status` char(1) DEFAULT '0' COMMENT '状态(0正常1停用)', `sort_order` int DEFAULT '0' COMMENT '排序号', `tenant_id` bigint DEFAULT NULL COMMENT '租户编号', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `remark` varchar(512) DEFAULT NULL COMMENT '备注', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_model_provider_model_active` (`provider_id`,`model_id`,`del_flag`), KEY `idx_ai_model_provider_id` (`provider_id`), KEY `idx_ai_model_type` (`model_type`) ) ENGINE=InnoDB AUTO_INCREMENT=2075737166192865283 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI模型表'; -- forge_admin_new.ai_model_capability definition CREATE TABLE `ai_model_capability` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `model_id` bigint NOT NULL, `capability_code` varchar(64) NOT NULL, `config_json` json DEFAULT NULL, `status` char(1) NOT NULL DEFAULT '0', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_model_capability_active` (`tenant_id`,`model_id`,`capability_code`,`del_flag`), KEY `idx_ai_model_capability_model` (`tenant_id`,`model_id`,`status`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI模型能力关系'; -- forge_admin_new.ai_model_invocation_log definition CREATE TABLE `ai_model_invocation_log` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL, `request_id` varchar(64) NOT NULL, `user_id` bigint DEFAULT NULL, `agent_code` varchar(64) NOT NULL, `session_id` varchar(80) DEFAULT NULL, `phase` varchar(24) NOT NULL, `dispatched` tinyint NOT NULL DEFAULT '0', `route_source` varchar(32) DEFAULT NULL, `route_reason` varchar(64) DEFAULT NULL, `route_policy_id` bigint DEFAULT NULL, `provider_id` bigint DEFAULT NULL, `model_id` bigint DEFAULT NULL, `provider_model_id` varchar(128) DEFAULT NULL, `adapter_code` varchar(32) DEFAULT NULL, `outcome` varchar(24) NOT NULL, `error_category` varchar(32) DEFAULT NULL, `http_status` int DEFAULT NULL, `error_code` varchar(64) DEFAULT NULL, `latency_ms` bigint NOT NULL DEFAULT '0', `prompt_tokens` bigint DEFAULT NULL, `completion_tokens` bigint DEFAULT NULL, `total_tokens` bigint DEFAULT NULL, `usage_available` tinyint NOT NULL DEFAULT '0', `cost_available` tinyint NOT NULL DEFAULT '0', `input_price_per_million_cent` bigint DEFAULT NULL, `output_price_per_million_cent` bigint DEFAULT NULL, `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_invocation_request` (`tenant_id`,`request_id`), KEY `idx_ai_invocation_tenant_time` (`tenant_id`,`create_time`), KEY `idx_ai_invocation_model_time` (`tenant_id`,`model_id`,`create_time`), KEY `idx_ai_invocation_agent_time` (`tenant_id`,`agent_code`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI模型调用治理日志'; -- forge_admin_new.ai_model_route_policy definition CREATE TABLE `ai_model_route_policy` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `policy_code` varchar(64) NOT NULL, `policy_name` varchar(128) NOT NULL, `required_capabilities` json DEFAULT NULL, `status` char(1) NOT NULL DEFAULT '0', `remark` varchar(500) DEFAULT NULL, `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_route_policy_code_active` (`tenant_id`,`policy_code`,`del_flag`), KEY `idx_ai_route_policy_status` (`tenant_id`,`status`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI模型路由策略'; -- forge_admin_new.ai_model_route_target definition CREATE TABLE `ai_model_route_target` ( `id` bigint NOT NULL, `tenant_id` bigint NOT NULL DEFAULT '1', `policy_id` bigint NOT NULL, `model_id` bigint NOT NULL, `priority` int NOT NULL DEFAULT '100', `status` char(1) NOT NULL DEFAULT '0', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `create_by` bigint DEFAULT NULL, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_route_target_active` (`tenant_id`,`policy_id`,`model_id`,`del_flag`), KEY `idx_ai_route_target_order` (`tenant_id`,`policy_id`,`status`,`del_flag`,`priority`,`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI模型路由显式候选'; -- forge_admin_new.ai_page_template definition CREATE TABLE `ai_page_template` ( `id` bigint NOT NULL COMMENT '主键', `template_key` varchar(64) NOT NULL COMMENT '模板唯一标识(如 simple-crud / tree-crud)', `template_name` varchar(128) NOT NULL COMMENT '模板显示名称', `description` varchar(512) DEFAULT '' COMMENT '模板描述', `icon` varchar(64) DEFAULT '' COMMENT '图标(mdi: 前缀)', `system_prompt` text COMMENT '该模板专属的 AI system prompt 补充', `schema_hint` json DEFAULT NULL COMMENT '告诉 AI 该模板可用的字段约束(JSON)', `default_config` json DEFAULT NULL COMMENT '默认配置值(JSON,如 modalType/searchGridCols 等)', `enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用(1启用 0停用)', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `is_builtin` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否内置(1内置不可删除)', `codegen_type` varchar(16) NOT NULL DEFAULT 'TEMPLATE' COMMENT '代码生成策略:TEMPLATE-Velocity模板 / AI-大模型生成', `create_by` bigint DEFAULT NULL, `create_time` datetime DEFAULT NULL, `create_dept` bigint DEFAULT NULL, `update_by` bigint DEFAULT NULL, `update_time` datetime DEFAULT NULL, `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_template_key_active` (`template_key`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI页面模板表(组件市场)'; -- forge_admin_new.ai_prompt_template definition CREATE TABLE `ai_prompt_template` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `template_name` varchar(128) NOT NULL COMMENT '模板名称', `template_code` varchar(80) DEFAULT NULL COMMENT '模板编码', `usage_scene` varchar(64) NOT NULL DEFAULT 'dashboard_generate' COMMENT '使用场景:dashboard_generate大屏生成等', `business_category` varchar(64) DEFAULT NULL COMMENT '业务分类', `domain_category` varchar(64) DEFAULT NULL COMMENT '领域分类', `template_tags` varchar(255) DEFAULT NULL COMMENT '模板标签,逗号分隔', `description` varchar(500) DEFAULT NULL COMMENT '模板说明', `prompt_content` longtext NOT NULL COMMENT '提示词内容', `example_input` text COMMENT '示例输入', `status` char(1) NOT NULL DEFAULT '0' COMMENT '状态:0启用 1停用', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `is_recommended` char(1) NOT NULL DEFAULT '0' COMMENT '是否推荐:0否 1是', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序号', `use_count` int NOT NULL DEFAULT '0' COMMENT '使用次数', `test_count` int NOT NULL DEFAULT '0' COMMENT '测试次数', `download_count` int NOT NULL DEFAULT '0' COMMENT '下载次数', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_ai_prompt_template_code_active` (`tenant_id`,`template_code`,`del_flag`), KEY `idx_ai_prompt_template_scene` (`tenant_id`,`usage_scene`,`status`,`sort_order`), KEY `idx_ai_prompt_template_category` (`tenant_id`,`business_category`,`domain_category`), KEY `idx_ai_prompt_template_recommend` (`tenant_id`,`is_recommended`,`use_count`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI提示词模板库'; -- forge_admin_new.ai_provider definition CREATE TABLE `ai_provider` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `provider_name` varchar(50) NOT NULL COMMENT '供应商名称(如 阿里百炼、OpenAI)', `provider_type` varchar(30) NOT NULL COMMENT '类型(openai/azure/dashscope/ollama)', `adapter_code` varchar(32) NOT NULL DEFAULT 'openai_compatible' COMMENT '连接适配器(openai_compatible/dashscope_native)', `logo` varchar(512) DEFAULT NULL COMMENT '供应商Logo(文件ID或URL)', `api_key` varchar(500) NOT NULL COMMENT 'API Key', `base_url` varchar(500) DEFAULT NULL COMMENT 'API Base URL', `models` json DEFAULT NULL COMMENT '可用模型列表 [{"name":"qwen-plus","enabled":true}]', `is_default` char(1) NOT NULL DEFAULT '0' COMMENT '是否默认供应商(0否 1是)', `status` char(1) NOT NULL DEFAULT '0' COMMENT '状态(0正常 1停用)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', `default_model` varchar(100) DEFAULT NULL COMMENT '默认模型名称', `create_dept` varchar(30) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='AI供应商配置表'; -- forge_admin_new.ai_report_data_business_dataset definition CREATE TABLE `ai_report_data_business_dataset` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `business_id` bigint NOT NULL COMMENT '业务定义ID', `dataset_id` bigint NOT NULL COMMENT '数据集ID', `is_primary` tinyint NOT NULL DEFAULT '0' COMMENT '是否主数据集:1是 0否', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `usage_remark` varchar(500) DEFAULT NULL COMMENT '数据集用途说明', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_business_dataset` (`tenant_id`,`business_id`,`dataset_id`), KEY `idx_data_business_dataset_business` (`tenant_id`,`business_id`), KEY `idx_data_business_dataset_dataset` (`tenant_id`,`dataset_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台业务定义数据集绑定'; -- forge_admin_new.ai_report_data_business_definition definition CREATE TABLE `ai_report_data_business_definition` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `business_code` varchar(64) NOT NULL COMMENT '业务编码', `business_name` varchar(100) NOT NULL COMMENT '业务名称', `business_desc` text NOT NULL COMMENT '业务定义描述', `analysis_goal` text COMMENT '分析目标', `metric_definition` text COMMENT '指标口径', `dimension_definition` text COMMENT '分析维度', `usage_guide` text COMMENT 'AI使用建议', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_business_code_tenant_active` (`tenant_id`,`business_code`,`del_flag`), KEY `idx_data_business_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台业务定义'; -- forge_admin_new.ai_report_data_connection definition CREATE TABLE `ai_report_data_connection` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `connection_code` varchar(64) NOT NULL COMMENT '连接编码', `connection_name` varchar(100) NOT NULL COMMENT '连接名称', `db_type` varchar(32) NOT NULL COMMENT '数据库类型:MYSQL/POSTGRESQL/ORACLE/SQLSERVER', `driver_class_name` varchar(200) NOT NULL COMMENT '驱动类名', `jdbc_url` varchar(1000) NOT NULL COMMENT 'JDBC连接地址', `username` varchar(128) NOT NULL COMMENT '用户名', `password_cipher` varchar(500) DEFAULT NULL COMMENT '密码密文', `schema_name` varchar(128) DEFAULT NULL COMMENT '模式名/数据库名', `test_sql` varchar(200) NOT NULL DEFAULT 'SELECT 1' COMMENT '测试SQL', `pool_config_json` json DEFAULT NULL COMMENT '连接池配置JSON', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `description` varchar(500) DEFAULT NULL COMMENT '描述', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_connection_code_tenant_active` (`tenant_id`,`connection_code`,`del_flag`), KEY `idx_data_connection_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台数据连接'; -- forge_admin_new.ai_report_data_dataset definition CREATE TABLE `ai_report_data_dataset` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `dataset_code` varchar(64) NOT NULL COMMENT '数据集编码', `dataset_name` varchar(100) NOT NULL COMMENT '数据集名称', `connection_id` bigint NOT NULL COMMENT '数据连接ID', `category_id` bigint DEFAULT NULL COMMENT '分类ID', `dataset_type` varchar(20) NOT NULL COMMENT '数据集类型:TABLE/SQL', `table_name` varchar(200) DEFAULT NULL COMMENT '单表模式表名', `sql_text` longtext COMMENT 'SQL模式查询SQL', `param_schema_json` json DEFAULT NULL COMMENT '参数定义JSON', `default_order_json` json DEFAULT NULL COMMENT '默认排序JSON', `max_rows` int NOT NULL DEFAULT '1000' COMMENT '最大返回行数', `timeout_seconds` int NOT NULL DEFAULT '15' COMMENT '查询超时时间秒', `cache_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否启用缓存:1是 0否', `cache_ttl_seconds` int DEFAULT NULL COMMENT '缓存秒数', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `publish_status` tinyint NOT NULL DEFAULT '0' COMMENT '发布状态:0未发布 1已发布 2已下架', `access_mode` varchar(20) NOT NULL DEFAULT 'PUBLIC' COMMENT '访问模式:PUBLIC公开 PRIVATE私有', `description` varchar(500) DEFAULT NULL COMMENT '描述', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dataset_code_tenant_active` (`tenant_id`,`dataset_code`,`del_flag`), KEY `idx_data_dataset_connection` (`tenant_id`,`connection_id`), KEY `idx_data_dataset_status` (`tenant_id`,`status`), KEY `idx_data_dataset_access_mode` (`tenant_id`,`access_mode`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台数据集'; -- forge_admin_new.ai_report_data_dataset_acl definition CREATE TABLE `ai_report_data_dataset_acl` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `dataset_id` bigint NOT NULL COMMENT '数据集ID', `subject_type` varchar(20) NOT NULL COMMENT '授权主体类型:USER/ROLE/ORG', `subject_id` bigint NOT NULL COMMENT '授权主体ID', `access_level` varchar(20) NOT NULL DEFAULT 'QUERY' COMMENT '访问级别:VIEW/QUERY/MANAGE', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dataset_acl_subject` (`tenant_id`,`dataset_id`,`subject_type`,`subject_id`,`access_level`), KEY `idx_data_dataset_acl_dataset` (`tenant_id`,`dataset_id`), KEY `idx_data_dataset_acl_subject` (`tenant_id`,`subject_type`,`subject_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台数据集授权'; -- forge_admin_new.ai_report_data_dataset_category definition CREATE TABLE `ai_report_data_dataset_category` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `parent_id` bigint DEFAULT NULL COMMENT '父分类ID', `level` int NOT NULL DEFAULT '1' COMMENT '层级', `ancestors` varchar(500) NOT NULL DEFAULT '0/' COMMENT '祖先路径', `category_code` varchar(64) NOT NULL COMMENT '分类编码', `category_name` varchar(100) NOT NULL COMMENT '分类名称', `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `description` varchar(500) DEFAULT NULL COMMENT '描述', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dataset_category_code_tenant_active` (`tenant_id`,`category_code`,`del_flag`), KEY `idx_data_dataset_category_parent` (`tenant_id`,`parent_id`), KEY `idx_data_dataset_category_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台数据集分类'; -- forge_admin_new.ai_report_data_dataset_field definition CREATE TABLE `ai_report_data_dataset_field` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `dataset_id` bigint NOT NULL COMMENT '数据集ID', `field_name` varchar(128) NOT NULL COMMENT '字段名/SQL别名', `field_label` varchar(128) DEFAULT NULL COMMENT '字段显示名', `source_column` varchar(128) DEFAULT NULL COMMENT '来源列名', `db_type` varchar(100) DEFAULT NULL COMMENT '数据库字段类型', `data_type` varchar(32) NOT NULL DEFAULT 'STRING' COMMENT '标准类型:STRING/NUMBER/DATE/DATETIME/BOOLEAN', `field_role` varchar(20) NOT NULL DEFAULT 'DIMENSION' COMMENT '字段角色:DIMENSION/MEASURE', `default_agg` varchar(20) DEFAULT NULL COMMENT '默认聚合:SUM/COUNT/AVG/MAX/MIN', `query_enabled` tinyint NOT NULL DEFAULT '1' COMMENT '是否可筛选', `display_enabled` tinyint NOT NULL DEFAULT '1' COMMENT '是否可展示', `sensitive_level` varchar(20) NOT NULL DEFAULT 'NONE' COMMENT '敏感级别:NONE/MASK/HIDDEN', `mask_rule` varchar(100) DEFAULT NULL COMMENT '脱敏规则', `dict_type` varchar(100) DEFAULT NULL COMMENT '字典类型', `date_format` varchar(64) DEFAULT NULL COMMENT '日期展示格式', `data_unit` varchar(32) DEFAULT NULL COMMENT '数据计量单位', `dimension_id` bigint DEFAULT NULL COMMENT '绑定维度ID', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `description` varchar(500) DEFAULT NULL COMMENT '描述', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dataset_field` (`tenant_id`,`dataset_id`,`field_name`), KEY `idx_data_dataset_field_dataset` (`tenant_id`,`dataset_id`), KEY `idx_data_dataset_field_dimension` (`tenant_id`,`dimension_id`) ) ENGINE=InnoDB AUTO_INCREMENT=125 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台数据集字段'; -- forge_admin_new.ai_report_data_dataset_row_scope definition CREATE TABLE `ai_report_data_dataset_row_scope` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `dataset_id` bigint NOT NULL COMMENT '数据集ID', `enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否启用:1是 0否', `scope_mode` varchar(32) NOT NULL DEFAULT 'SYSTEM_DATA_SCOPE' COMMENT '行权限模式:SYSTEM_DATA_SCOPE跟随系统数据权限', `tenant_column` varchar(128) DEFAULT NULL COMMENT '租户字段名/表达式', `org_column` varchar(128) DEFAULT NULL COMMENT '组织字段名/表达式', `user_column` varchar(128) DEFAULT NULL COMMENT '用户字段名/表达式', `region_column` varchar(128) DEFAULT NULL COMMENT '行政区划字段名/表达式', `region_strategy` varchar(32) NOT NULL DEFAULT 'SELF_AND_DESCENDANTS' COMMENT '行政区划策略:SELF/SELF_AND_CHILDREN/SELF_AND_DESCENDANTS', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dataset_row_scope` (`tenant_id`,`dataset_id`), KEY `idx_data_dataset_row_scope_enabled` (`tenant_id`,`enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台数据集行权限配置'; -- forge_admin_new.ai_report_data_dimension definition CREATE TABLE `ai_report_data_dimension` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `dimension_code` varchar(64) NOT NULL COMMENT '维度编码', `dimension_name` varchar(100) NOT NULL COMMENT '维度名称', `source_type` varchar(20) NOT NULL DEFAULT 'MANUAL' COMMENT '来源类型:MANUAL/SQL', `connection_id` bigint DEFAULT NULL COMMENT 'SQL来源数据连接ID', `sql_text` longtext COMMENT 'SQL来源查询语句', `value_column` varchar(128) DEFAULT NULL COMMENT '值字段列名', `label_column` varchar(128) DEFAULT NULL COMMENT '显示字段列名', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `last_sync_time` datetime DEFAULT NULL COMMENT '最近同步时间', `description` varchar(500) DEFAULT NULL COMMENT '描述', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dimension_code_tenant_active` (`tenant_id`,`dimension_code`,`del_flag`), KEY `idx_data_dimension_source` (`tenant_id`,`source_type`), KEY `idx_data_dimension_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台维度'; -- forge_admin_new.ai_report_data_dimension_item definition CREATE TABLE `ai_report_data_dimension_item` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `dimension_id` bigint NOT NULL COMMENT '维度ID', `item_value` varchar(255) NOT NULL COMMENT '维度值', `item_label` varchar(255) NOT NULL COMMENT '维度显示值', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:1启用 0禁用', `extra_json` json DEFAULT NULL COMMENT '扩展信息JSON', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_data_dimension_item_value` (`tenant_id`,`dimension_id`,`item_value`), KEY `idx_data_dimension_item_dimension` (`tenant_id`,`dimension_id`), KEY `idx_data_dimension_item_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台维度值'; -- forge_admin_new.ai_report_directory definition CREATE TABLE `ai_report_directory` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父目录ID', `ancestors` varchar(500) NOT NULL DEFAULT '0' COMMENT '祖级链', `directory_name` varchar(100) NOT NULL COMMENT '目录名称', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', PRIMARY KEY (`id`), KEY `idx_tenant_parent` (`tenant_id`,`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='报表目录表'; -- forge_admin_new.ai_report_material definition CREATE TABLE `ai_report_material` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `file_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '通用文件ID', `material_category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'background' COMMENT '素材分类(background/panel/icon/illustration)', `is_private` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否私有(1私有 0公共)', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(1正常 0删除)', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_report_material_file` (`tenant_id`,`file_id`), KEY `idx_report_material_category` (`tenant_id`,`material_category`,`status`), KEY `idx_report_material_create_by` (`create_by`), KEY `idx_report_material_scope` (`tenant_id`,`is_private`,`create_by`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='报表素材表'; -- forge_admin_new.ai_report_project definition CREATE TABLE `ai_report_project` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `directory_id` bigint DEFAULT NULL COMMENT '所属目录ID', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '备注', `project_name` varchar(100) NOT NULL COMMENT '项目名称', `index_img` varchar(500) DEFAULT NULL COMMENT '封面图URL', `status` char(1) NOT NULL DEFAULT '0' COMMENT '状态(0正常 1停用)', `canvas_width` int NOT NULL DEFAULT '1920' COMMENT '画布宽度', `canvas_height` int NOT NULL DEFAULT '1080' COMMENT '画布高度', `background_color` varchar(20) DEFAULT '#1e1e2e' COMMENT '背景颜色', `component_data` longtext COMMENT '组件列表JSON', `publish_status` char(1) NOT NULL DEFAULT '0' COMMENT '发布状态(0未发布 1已发布)', `publish_url` varchar(500) DEFAULT NULL COMMENT '发布地址', `publish_time` datetime DEFAULT NULL COMMENT '发布时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`id`), KEY `idx_tenant_id` (`tenant_id`), KEY `idx_create_by` (`create_by`) ) ENGINE=InnoDB AUTO_INCREMENT=2079815686363049986 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='go-view项目表'; -- forge_admin_new.ai_report_project_version definition CREATE TABLE `ai_report_project_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `project_id` bigint NOT NULL COMMENT '大屏项目ID', `project_name` varchar(100) NOT NULL COMMENT '大屏项目名称', `version_no` int NOT NULL COMMENT '版本号', `version_name` varchar(32) NOT NULL COMMENT '版本名称', `operation_type` varchar(20) NOT NULL DEFAULT 'publish' COMMENT '操作类型:publish发布 rollback回退', `source_version_id` bigint DEFAULT NULL COMMENT '回退来源版本ID', `publisher_id` bigint DEFAULT NULL COMMENT '发布人ID', `publisher_name` varchar(100) DEFAULT NULL COMMENT '发布人名称', `publish_time` datetime DEFAULT NULL COMMENT '发布时间', `publish_url` varchar(500) DEFAULT NULL COMMENT '发布地址', `index_img` varchar(500) DEFAULT NULL COMMENT '封面图文件ID', `canvas_width` int DEFAULT NULL COMMENT '画布宽度', `canvas_height` int DEFAULT NULL COMMENT '画布高度', `background_color` varchar(20) DEFAULT NULL COMMENT '背景颜色', `component_data` longtext COMMENT '组件配置JSON', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_report_project_version_no` (`tenant_id`,`project_id`,`version_no`), KEY `idx_report_project_version_project` (`tenant_id`,`project_id`,`create_time`), KEY `idx_report_project_version_publisher` (`tenant_id`,`publisher_id`,`publish_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='大屏项目发布版本表'; -- forge_admin_new.ai_report_template definition CREATE TABLE `ai_report_template` ( `id` bigint NOT NULL COMMENT '模板ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户ID', `source_project_id` bigint NOT NULL COMMENT '来源项目ID', `directory_id` bigint DEFAULT NULL COMMENT '所属目录ID', `template_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模板名称', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '备注', `index_img` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '封面图URL', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '0' COMMENT '状态(0正常 1停用)', `canvas_width` int NOT NULL DEFAULT '1920' COMMENT '画布宽度', `canvas_height` int NOT NULL DEFAULT '1080' COMMENT '画布高度', `background_color` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '#1e1e2e' COMMENT '背景颜色', `component_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板组件JSON', `publish_status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '0' COMMENT '发布状态(0未发布 1已发布)', `template_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '0' COMMENT '模板范围(0私有 1公开)', `publish_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '发布地址', `publish_time` datetime DEFAULT NULL COMMENT '发布时间', `copied_count` int NOT NULL DEFAULT '0' COMMENT '复制次数', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`id`), KEY `idx_template_tenant` (`tenant_id`), KEY `idx_template_source_project` (`source_project_id`), KEY `idx_template_directory` (`directory_id`), KEY `idx_template_publish_status` (`publish_status`), KEY `idx_template_scope` (`template_scope`), KEY `idx_template_create_by` (`create_by`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='模板表'; -- forge_admin_new.biz_leave_request definition CREATE TABLE `biz_leave_request` ( `id` varchar(64) NOT NULL COMMENT '主键ID', `business_key` varchar(64) NOT NULL COMMENT '业务Key(关联流程)', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `apply_user_id` varchar(64) NOT NULL COMMENT '申请人ID', `apply_user_name` varchar(100) NOT NULL COMMENT '申请人姓名', `apply_dept_id` varchar(64) DEFAULT NULL COMMENT '申请部门ID', `apply_dept_name` varchar(200) DEFAULT NULL COMMENT '申请部门名称', `leave_type` varchar(20) NOT NULL COMMENT '请假类型:annual-年假/sick-病假/personal-事假/marriage-婚假/maternity-产假', `start_time` datetime NOT NULL COMMENT '开始时间', `end_time` datetime NOT NULL COMMENT '结束时间', `duration` decimal(10,1) NOT NULL COMMENT '请假天数', `reason` text COMMENT '请假原因', `attachments` text COMMENT '附件JSON列表', `status` varchar(20) NOT NULL DEFAULT 'draft' COMMENT '状态:draft-草稿/pending-审批中/approved-已通过/rejected-已驳回/canceled-已取消', `approve_user_id` varchar(64) DEFAULT NULL COMMENT '审批人ID', `approve_user_name` varchar(100) DEFAULT NULL COMMENT '审批人姓名', `approve_time` datetime DEFAULT NULL COMMENT '审批时间', `approve_comment` text COMMENT '审批意见', `approve_attachments` text COMMENT '审批附件JSON', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '删除标记', PRIMARY KEY (`id`), UNIQUE KEY `uk_business_key` (`business_key`), KEY `idx_apply_user` (`apply_user_id`), KEY `idx_process_instance` (`process_instance_id`), KEY `idx_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='请假申请表'; -- forge_admin_new.biz_lowcode_demo definition CREATE TABLE `biz_lowcode_demo` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `name` text COMMENT '名称', `status` varchar(32) DEFAULT NULL COMMENT '状态', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_biz_lowcode_demo_tenant` (`tenant_id`), KEY `idx_biz_lowcode_demo_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='低代码应用'; -- forge_admin_new.biz_product definition CREATE TABLE `biz_product` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `parent_id` bigint DEFAULT '0' COMMENT '父级ID', `product_name` varchar(255) NOT NULL COMMENT '产品名称', `category` varchar(50) DEFAULT NULL COMMENT '分类', `price` decimal(10,2) DEFAULT NULL COMMENT '价格', `stock` int DEFAULT '0' COMMENT '库存', `status` tinyint(1) DEFAULT '1' COMMENT '状态', `sort` int DEFAULT '0' COMMENT '排序', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint(1) DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='产品管理表'; -- forge_admin_new.biz_scm_product definition CREATE TABLE `biz_scm_product` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `product_code` varchar(64) NOT NULL COMMENT '商品编码', `product_name` varchar(128) NOT NULL COMMENT '商品名称', `category_name` varchar(64) DEFAULT NULL COMMENT '商品分类', `unit_name` varchar(32) DEFAULT NULL COMMENT '单位', `sale_price` decimal(18,2) DEFAULT NULL COMMENT '销售价', `status` varchar(32) DEFAULT NULL COMMENT '状态', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_biz_scm_product_tenant` (`tenant_id`), KEY `idx_biz_scm_product_create_time` (`create_time`), KEY `idx_product_code` (`product_code`), KEY `idx_product_name` (`product_name`), KEY `idx_category_name` (`category_name`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商品'; -- forge_admin_new.business_datasource_demo definition CREATE TABLE `business_datasource_demo` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `title` varchar(128) NOT NULL COMMENT '标题', `route_key` varchar(128) DEFAULT NULL COMMENT 'dynamic-datasource路由Key', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_business_datasource_demo_tenant` (`tenant_id`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='租户业务数据源路由演示表'; -- forge_admin_new.business_object definition CREATE TABLE `business_object` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `fieldkxzkp` int DEFAULT NULL COMMENT '计数器', `input` varchar(128) DEFAULT NULL COMMENT '输入框', `input2` varchar(128) DEFAULT NULL COMMENT '输入框', `fieldkxzkp2` int DEFAULT NULL COMMENT '计数器', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_business_object_tenant` (`tenant_id`), KEY `idx_business_object_create_time` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='dddddd'; -- forge_admin_new.config_properties definition CREATE TABLE `config_properties` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `key` varchar(200) NOT NULL COMMENT '配置键', `value` text COMMENT '配置值', `description` varchar(500) DEFAULT NULL COMMENT '描述', `group` varchar(100) DEFAULT 'DEFAULT_GROUP' COMMENT '配置分组', `type` varchar(50) DEFAULT 'STRING' COMMENT '值类型(STRING/NUMBER/BOOLEAN/JSON)', `enabled` tinyint(1) DEFAULT '1' COMMENT '是否启用', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', `update_by` varchar(64) DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`), UNIQUE KEY `uk_key` (`key`), KEY `idx_group` (`group`), KEY `idx_enabled` (`enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='配置属性表'; -- forge_admin_new.crm_contact definition CREATE TABLE `crm_contact` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `customer_id` bigint NOT NULL COMMENT '客户ID', `contact_name` varchar(100) NOT NULL COMMENT '联系人姓名', `gender` tinyint DEFAULT NULL COMMENT '性别:0-女,1-男', `position` varchar(100) DEFAULT NULL COMMENT '职位', `phone` varchar(50) DEFAULT NULL COMMENT '手机号码', `telephone` varchar(50) DEFAULT NULL COMMENT '固定电话', `email` varchar(200) DEFAULT NULL COMMENT '邮箱', `wechat` varchar(100) DEFAULT NULL COMMENT '微信号', `is_primary` tinyint NOT NULL DEFAULT '0' COMMENT '是否主联系人:0-否,1-是', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0-停用,1-启用', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `options` text COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常,1-删除', PRIMARY KEY (`id`), KEY `idx_crm_contact_tenant_id` (`tenant_id`), KEY `idx_crm_contact_customer` (`tenant_id`,`customer_id`), KEY `idx_crm_contact_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM联系人表'; -- forge_admin_new.crm_contract definition CREATE TABLE `crm_contract` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `customer_id` int NOT NULL COMMENT '客户', `opportunity_id` int DEFAULT NULL COMMENT '商机', `contract_name` varchar(256) NOT NULL COMMENT '合同名称', `contract_code` varchar(100) DEFAULT NULL COMMENT '合同编码', `contract_type` varchar(50) DEFAULT 'SALES' COMMENT '合同类型:SALES-销售,SERVICE-服务,FRAMEWORK-框架', `amount_cent` bigint NOT NULL DEFAULT '0' COMMENT '合同金额(分)', `sign_date` date DEFAULT NULL COMMENT '签约日期', `start_date` date DEFAULT NULL COMMENT '开始日期', `end_date` date DEFAULT NULL COMMENT '结束日期', `status` varchar(32) DEFAULT NULL COMMENT '状态', `approval_status` varchar(50) DEFAULT NULL COMMENT '审批状态', `approval_id` bigint DEFAULT NULL COMMENT '审批流程ID', `owner_id` bigint DEFAULT NULL COMMENT '负责人ID', `owner_name` varchar(100) DEFAULT NULL COMMENT '负责人名称', `dept_id` bigint DEFAULT NULL COMMENT '部门ID', `remark` text COMMENT '备注', `options` text COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常,1-删除', `contract_no` varchar(64) DEFAULT NULL COMMENT '合同编号', `amount` int DEFAULT NULL COMMENT '合同金额', `assignee_id` int DEFAULT NULL COMMENT '负责人', PRIMARY KEY (`id`), KEY `idx_crm_contract_tenant_id` (`tenant_id`), KEY `idx_crm_contract_customer` (`tenant_id`,`customer_id`), KEY `idx_crm_contract_opportunity` (`tenant_id`,`opportunity_id`), KEY `idx_crm_contract_status` (`tenant_id`,`status`), KEY `idx_crm_contract_owner` (`tenant_id`,`owner_id`), KEY `idx_crm_contract_create_time` (`tenant_id`,`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM合同表'; -- forge_admin_new.crm_contract_item definition CREATE TABLE `crm_contract_item` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `contract_id` bigint NOT NULL COMMENT '合同ID', `product_name` varchar(200) NOT NULL COMMENT '产品名称', `product_code` varchar(100) DEFAULT NULL COMMENT '产品编码', `product_spec` varchar(200) DEFAULT NULL COMMENT '产品规格', `unit` varchar(20) DEFAULT NULL COMMENT '单位', `quantity` decimal(18,4) DEFAULT '0.0000' COMMENT '数量', `unit_price_cent` bigint DEFAULT '0' COMMENT '单价(分)', `amount_cent` bigint DEFAULT '0' COMMENT '金额(分)', `sort_order` int DEFAULT '0' COMMENT '排序', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `options` text COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常,1-删除', PRIMARY KEY (`id`), KEY `idx_crm_contract_item_tenant_id` (`tenant_id`), KEY `idx_crm_contract_item_contract` (`tenant_id`,`contract_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM合同明细表'; -- forge_admin_new.crm_customer definition CREATE TABLE `crm_customer` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `customer_name` varchar(128) DEFAULT NULL COMMENT '客户名称', `customer_code` varchar(64) DEFAULT NULL COMMENT '客户编码', `customer_type` varchar(50) DEFAULT 'ENTERPRISE' COMMENT '客户类型:ENTERPRISE-企业,PERSONAL-个人', `industry` varchar(64) DEFAULT NULL COMMENT '所属行业', `region_code` varchar(32) DEFAULT NULL COMMENT '所属区域', `address` varchar(512) DEFAULT NULL COMMENT '详细地址', `contact_name` varchar(64) DEFAULT NULL COMMENT '联系人', `contact_phone` varchar(32) DEFAULT NULL COMMENT '联系电话', `contact_email` varchar(128) DEFAULT NULL COMMENT '联系邮箱', `source` varchar(50) DEFAULT NULL COMMENT '客户来源', `level` varchar(20) DEFAULT 'NORMAL' COMMENT '客户等级:VIP-重要,NORMAL-普通,POTENTIAL-潜在', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0-停用,1-启用', `owner_id` bigint DEFAULT NULL COMMENT '负责人ID', `owner_name` varchar(100) DEFAULT NULL COMMENT '负责人名称', `dept_id` bigint DEFAULT NULL COMMENT '部门ID', `remark` text COMMENT '备注', `options` text COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常,1-删除', `customer_level` varchar(32) DEFAULT NULL COMMENT '客户等级', `field1lim1xu` varchar(128) DEFAULT NULL COMMENT '测试', `field2` varchar(20) DEFAULT NULL COMMENT '测试2', `field1g9xtug` bigint DEFAULT NULL COMMENT '所属组织', `fieldgiuxmr` bigint DEFAULT NULL COMMENT '组织选择11', `fieldaailwe` bigint DEFAULT NULL COMMENT '人员选择', `fieldbvd8sh` varchar(64) DEFAULT NULL COMMENT '字典选择', `content` varchar(128) DEFAULT NULL COMMENT '测试内容', `test11` varchar(128) DEFAULT NULL COMMENT 'f测试111', `ammount` int DEFAULT NULL COMMENT '金额', PRIMARY KEY (`id`), KEY `idx_crm_customer_tenant_id` (`tenant_id`), KEY `idx_crm_customer_status` (`tenant_id`,`status`), KEY `idx_crm_customer_owner` (`tenant_id`,`owner_id`), KEY `idx_crm_customer_create_time` (`tenant_id`,`create_time`), KEY `idx_field1g9xtug` (`field1g9xtug`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM客户表'; -- forge_admin_new.crm_follow_record definition CREATE TABLE `crm_follow_record` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `subject` varchar(256) NOT NULL DEFAULT '' COMMENT '主题', `customer_id` int DEFAULT NULL COMMENT '关联客户', `opportunity_id` int DEFAULT NULL COMMENT '关联商机', `type` varchar(32) DEFAULT NULL COMMENT '跟进方式', `content` text COMMENT '跟进内容', `follow_time` datetime DEFAULT NULL COMMENT '跟进时间', `assignee_id` int DEFAULT NULL COMMENT '负责人', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `field_checkbox8` varchar(255) DEFAULT NULL COMMENT '多选框', `field_mqgqktno` bigint DEFAULT NULL COMMENT '人员选择', `field_mqi5rog5` varchar(64) DEFAULT NULL COMMENT '静态下拉', `field_mqi69njp` bigint DEFAULT NULL COMMENT '部门选择', `field_mqi` bigint DEFAULT NULL COMMENT '部门选择', `org_select` bigint DEFAULT NULL COMMENT '组织选择', `field_mqngsofy` bigint DEFAULT NULL COMMENT '人员选择', `field_mqngy5gn` varchar(32) DEFAULT NULL COMMENT '行政区划', `ceshi_field` varchar(32) DEFAULT NULL COMMENT '行政区划', PRIMARY KEY (`id`), KEY `idx_crm_follow_record_tenant_id` (`tenant_id`), KEY `idx_crm_follow_record_customer` (`tenant_id`,`customer_id`), KEY `idx_crm_follow_record_opportunity` (`tenant_id`,`opportunity_id`), KEY `idx_crm_follow_record_time` (`tenant_id`,`follow_time`), KEY `idx_crm_follow_record_assignee` (`tenant_id`,`assignee_id`), KEY `idx_type` (`type`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM跟进记录表'; -- forge_admin_new.crm_lead definition CREATE TABLE `crm_lead` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `lead_name` varchar(128) DEFAULT NULL COMMENT '线索名称', `source` varchar(64) DEFAULT NULL COMMENT '来源', `contact_name` varchar(64) DEFAULT NULL COMMENT '联系人', `phone` varchar(32) DEFAULT NULL COMMENT '电话', `status` varchar(32) DEFAULT NULL COMMENT '状态', `assignee_id` int DEFAULT NULL COMMENT '负责人', `remark` text COMMENT '备注', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_crm_lead_tenant` (`tenant_id`), KEY `idx_crm_lead_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='线索'; -- forge_admin_new.crm_opportunity definition CREATE TABLE `crm_opportunity` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `customer_id` bigint NOT NULL COMMENT '客户ID', `opportunity_name` varchar(200) NOT NULL COMMENT '商机名称', `opportunity_code` varchar(100) DEFAULT NULL COMMENT '商机编码', `document_no` varchar(64) DEFAULT NULL COMMENT '商机单据编号', `stage` varchar(50) DEFAULT 'INITIAL' COMMENT '商机阶段:INITIAL-初步接触,FOLLOWING-跟进中,NEGOTIATION-商务谈判,CLOSED_WON-赢单,CLOSED_LOST-丢单', `amount_cent` bigint DEFAULT '0' COMMENT '预计金额(分)', `probability` int DEFAULT '0' COMMENT '赢单概率(0-100)', `expected_close_date` date DEFAULT NULL COMMENT '预计成交日期', `actual_close_date` date DEFAULT NULL COMMENT '实际成交日期', `source` varchar(50) DEFAULT NULL COMMENT '商机来源', `owner_id` bigint DEFAULT NULL COMMENT '负责人ID', `owner_name` varchar(100) DEFAULT NULL COMMENT '负责人名称', `dept_id` bigint DEFAULT NULL COMMENT '部门ID', `contact_id` bigint DEFAULT NULL COMMENT '联系人ID', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0-停用,1-启用', `document_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '商机单据状态', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `options` text COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常,1-删除', PRIMARY KEY (`id`), KEY `idx_crm_opportunity_tenant_id` (`tenant_id`), KEY `idx_crm_opportunity_customer` (`tenant_id`,`customer_id`), KEY `idx_crm_opportunity_stage` (`tenant_id`,`stage`), KEY `idx_crm_opportunity_owner` (`tenant_id`,`owner_id`), KEY `idx_crm_opportunity_status` (`tenant_id`,`status`), KEY `idx_crm_opportunity_create_time` (`tenant_id`,`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM商机表'; -- forge_admin_new.crm_payment definition CREATE TABLE `crm_payment` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `contract_id` bigint NOT NULL COMMENT '合同ID', `customer_id` bigint NOT NULL COMMENT '客户ID', `payment_code` varchar(100) DEFAULT NULL COMMENT '回款编码', `amount_cent` bigint NOT NULL DEFAULT '0' COMMENT '回款金额(分)', `payment_date` date NOT NULL COMMENT '回款日期', `payment_method` varchar(50) DEFAULT 'BANK_TRANSFER' COMMENT '回款方式:BANK_TRANSFER-银行转账,CASH-现金,CHECK-支票,OTHER-其他', `payment_status` varchar(50) DEFAULT 'PENDING' COMMENT '回款状态:PENDING-待确认,CONFIRMED-已确认,REJECTED-已驳回', `receiver_id` bigint DEFAULT NULL COMMENT '收款人ID', `receiver_name` varchar(100) DEFAULT NULL COMMENT '收款人名称', `invoice_no` varchar(100) DEFAULT NULL COMMENT '发票号', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `options` text COMMENT '扩展配置JSON', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常,1-删除', PRIMARY KEY (`id`), KEY `idx_crm_payment_tenant_id` (`tenant_id`), KEY `idx_crm_payment_contract` (`tenant_id`,`contract_id`), KEY `idx_crm_payment_customer` (`tenant_id`,`customer_id`), KEY `idx_crm_payment_status` (`tenant_id`,`payment_status`), KEY `idx_crm_payment_date` (`tenant_id`,`payment_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='CRM回款表'; -- forge_admin_new.cust_address definition CREATE TABLE `cust_address` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `address_name` varchar(128) NOT NULL COMMENT '地址名称', `address_id` int DEFAULT NULL COMMENT '地址ID', `cust_id` bigint NOT NULL COMMENT '客户ID', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_cust_address_tenant` (`tenant_id`), KEY `idx_cust_address_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='客户地址管理'; -- forge_admin_new.cust_info definition CREATE TABLE `cust_info` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `name` varchar(128) DEFAULT NULL COMMENT '名称', `status` varchar(32) DEFAULT NULL COMMENT '状态', `cust_name` varchar(129) DEFAULT NULL COMMENT '客户名称', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `hy` varchar(128) DEFAULT NULL COMMENT '所属行业', PRIMARY KEY (`id`), KEY `idx_cust_info_tenant` (`tenant_id`), KEY `idx_cust_info_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='客户信息'; -- forge_admin_new.forge_schema_history definition CREATE TABLE `forge_schema_history` ( `installed_rank` int NOT NULL, `version` varchar(50) DEFAULT NULL, `description` varchar(200) NOT NULL, `type` varchar(20) NOT NULL, `script` varchar(1000) NOT NULL, `checksum` int DEFAULT NULL, `installed_by` varchar(100) NOT NULL, `installed_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `execution_time` int NOT NULL, `success` tinyint(1) NOT NULL, PRIMARY KEY (`installed_rank`), KEY `forge_schema_history_s_idx` (`success`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- forge_admin_new.gen_datasource definition CREATE TABLE `gen_datasource` ( `datasource_id` bigint NOT NULL AUTO_INCREMENT COMMENT '数据源ID', `datasource_name` varchar(100) NOT NULL COMMENT '数据源名称', `datasource_code` varchar(50) NOT NULL COMMENT '数据源编码(唯一标识)', `db_type` varchar(20) NOT NULL DEFAULT 'MySQL' COMMENT '数据库类型:MySQL/Oracle/PostgreSQL/SQLServer', `driver_class_name` varchar(200) NOT NULL COMMENT '驱动类名', `url` varchar(500) NOT NULL COMMENT 'JDBC连接地址', `username` varchar(100) NOT NULL COMMENT '用户名', `password` varchar(200) NOT NULL COMMENT '密码(加密存储)', `is_default` tinyint DEFAULT '0' COMMENT '是否默认数据源(1-是,0-否)', `is_enabled` tinyint DEFAULT '1' COMMENT '是否启用(1-启用,0-禁用)', `test_query` varchar(200) DEFAULT 'SELECT 1' COMMENT '测试查询SQL', `sort` int DEFAULT '0' COMMENT '排序', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `usage_scope` varchar(32) NOT NULL DEFAULT 'BOTH' COMMENT '数据源用途范围:LOWCODE_RUNTIME/TENANT_BUSINESS/DEVELOPER_IMPORT/BOTH', `allow_runtime_write` tinyint NOT NULL DEFAULT '1' COMMENT '是否允许低代码运行时写入', `allow_runtime_ddl` tinyint NOT NULL DEFAULT '0' COMMENT '是否允许低代码执行运行时DDL', `readonly` tinyint NOT NULL DEFAULT '0' COMMENT '是否只读', `risk_level` varchar(16) NOT NULL DEFAULT 'MEDIUM' COMMENT '风险等级:LOW/MEDIUM/HIGH', PRIMARY KEY (`datasource_id`), UNIQUE KEY `uk_datasource_code` (`datasource_code`), KEY `idx_is_default` (`is_default`), KEY `idx_is_enabled` (`is_enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成器数据源配置'; -- forge_admin_new.gen_table definition CREATE TABLE `gen_table` ( `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID', `datasource_id` bigint unsigned DEFAULT NULL COMMENT '数据源ID', `table_name` varchar(200) NOT NULL COMMENT '表名称', `table_comment` varchar(500) DEFAULT NULL COMMENT '表描述', `class_name` varchar(100) NOT NULL COMMENT '实体类名称', `business_name` varchar(100) DEFAULT NULL COMMENT '业务名称', `function_name` varchar(100) DEFAULT NULL COMMENT '功能名称', `module_name` varchar(100) DEFAULT 'system' COMMENT '模块名称', `package_name` varchar(200) DEFAULT 'com.mdframe.forge.plugin' COMMENT '包路径', `author` varchar(50) DEFAULT 'Forge Generator' COMMENT '作者', `gen_type` varchar(20) DEFAULT 'DOWNLOAD' COMMENT '生成方式:DOWNLOAD-下载代码包/PROJECT-直接生成到项目', `gen_path` varchar(500) DEFAULT '/' COMMENT '生成路径', `template_engine` varchar(20) DEFAULT 'VELOCITY' COMMENT '模板引擎:VELOCITY/FREEMARKER/AI', `options` json DEFAULT NULL COMMENT '其他生成选项', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', PRIMARY KEY (`table_id`), UNIQUE KEY `uk_table_name` (`table_name`) ) ENGINE=InnoDB AUTO_INCREMENT=229 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成表配置'; -- forge_admin_new.gen_table_column definition CREATE TABLE `gen_table_column` ( `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字段ID', `table_id` bigint NOT NULL COMMENT '表ID', `column_name` varchar(200) NOT NULL COMMENT '字段名称', `column_comment` varchar(500) DEFAULT NULL COMMENT '字段描述', `column_type` varchar(100) NOT NULL COMMENT '字段类型', `java_type` varchar(50) DEFAULT 'String' COMMENT 'Java类型', `java_field` varchar(100) DEFAULT NULL COMMENT 'Java字段名', `is_pk` tinyint DEFAULT '0' COMMENT '是否主键', `is_increment` tinyint DEFAULT '0' COMMENT '是否自增', `is_required` tinyint DEFAULT '0' COMMENT '是否必填', `is_insert` tinyint DEFAULT '1' COMMENT '是否插入字段', `is_edit` tinyint DEFAULT '1' COMMENT '是否编辑字段', `is_list` tinyint DEFAULT '1' COMMENT '是否列表字段', `is_query` tinyint DEFAULT '0' COMMENT '是否查询字段', `query_type` varchar(20) DEFAULT 'EQ' COMMENT '查询方式:EQ/LIKE/BETWEEN/GT/LT等', `html_type` varchar(20) DEFAULT 'INPUT' COMMENT '显示类型:INPUT/SELECT/DATETIME/TEXTAREA等', `dict_type` varchar(100) DEFAULT NULL COMMENT '字典类型', `validate_rule` varchar(500) DEFAULT NULL COMMENT '验证规则(JSON格式)', `formula_config` text COMMENT '公式配置JSON {type,expression,mode,dependsOn,aggregate,condition}', `ai_recommended` tinyint(1) DEFAULT '0' COMMENT '是否AI推荐(0否 1是)', `sort` int DEFAULT '0' COMMENT '排序', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`column_id`), KEY `idx_table_id` (`table_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3693 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成表字段配置'; -- forge_admin_new.gen_template definition CREATE TABLE `gen_template` ( `template_id` bigint NOT NULL AUTO_INCREMENT COMMENT '模板ID', `template_name` varchar(100) NOT NULL COMMENT '模板名称', `template_code` varchar(50) NOT NULL COMMENT '模板编码', `template_type` varchar(20) NOT NULL COMMENT '模板类型:ENTITY/MAPPER/SERVICE/CONTROLLER/DTO/VO/SQL', `template_engine` varchar(20) DEFAULT 'VELOCITY' COMMENT '模板引擎', `template_content` longtext NOT NULL COMMENT '模板内容', `file_suffix` varchar(20) DEFAULT '.java' COMMENT '生成文件后缀', `file_path` varchar(200) DEFAULT NULL COMMENT '生成文件路径(相对路径)', `is_system` tinyint DEFAULT '1' COMMENT '是否系统内置', `is_enabled` tinyint DEFAULT '1' COMMENT '是否启用', `sort` int DEFAULT '0' COMMENT '排序', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `tenant_id` bigint unsigned DEFAULT NULL, PRIMARY KEY (`template_id`), UNIQUE KEY `uk_template_code` (`template_code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成模板配置'; -- forge_admin_new.hr_leave_application definition CREATE TABLE `hr_leave_application` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `application_no` varchar(64) DEFAULT NULL COMMENT '申请单号', `employee_id` bigint DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(100) DEFAULT NULL COMMENT '员工姓名', `department_id` bigint DEFAULT NULL COMMENT '部门ID', `department_name` varchar(100) DEFAULT NULL COMMENT '部门名称', `position_name` varchar(100) DEFAULT NULL COMMENT '岗位名称', `leave_reason` text COMMENT '离职原因', `last_work_date` date NOT NULL COMMENT '最后工作日', `handover_owner_id` bigint DEFAULT NULL COMMENT '交接负责人ID', `handover_owner_name` varchar(100) DEFAULT NULL COMMENT '交接负责人', `document_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '单据状态', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0停用 1启用', `remark` text COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0正常 1删除', `fdeimpzgv313ebc` varchar(128) DEFAULT NULL COMMENT '输入框', `frpjmpzgzlc1hfc` varchar(128) DEFAULT NULL COMMENT '输入框', `input` varchar(128) DEFAULT NULL COMMENT '员工姓名', `price` varchar(18) DEFAULT NULL COMMENT '价格', `quantity` varchar(11) DEFAULT NULL COMMENT '数量', `total_price` varchar(18) DEFAULT NULL COMMENT '总价', `field_input4` varchar(128) DEFAULT NULL COMMENT '测试1', PRIMARY KEY (`id`), KEY `idx_hr_leave_application_tenant` (`tenant_id`), KEY `idx_hr_leave_application_status` (`tenant_id`,`document_status`), KEY `idx_hr_leave_application_last_date` (`tenant_id`,`last_work_date`), KEY `idx_hr_leave_application_employee` (`tenant_id`,`employee_id`), KEY `idx_application_no` (`application_no`), KEY `idx_employee_id` (`employee_id`), KEY `idx_employee_name` (`employee_name`), KEY `idx_department_id` (`department_id`), KEY `idx_department_name` (`department_name`), KEY `idx_position_name` (`position_name`), KEY `idx_last_work_date` (`last_work_date`), KEY `idx_handover_owner_id` (`handover_owner_id`), KEY `idx_handover_owner_name` (`handover_owner_name`), KEY `idx_document_status` (`document_status`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='HR离职申请表'; -- forge_admin_new.hr_leave_handover definition CREATE TABLE `hr_leave_handover` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `leave_application_id` bigint NOT NULL COMMENT '离职申请ID', `handover_title` varchar(200) NOT NULL COMMENT '交接标题', `employee_name` varchar(100) NOT NULL COMMENT '员工姓名', `department_name` varchar(100) DEFAULT NULL COMMENT '部门名称', `position_name` varchar(100) DEFAULT NULL COMMENT '岗位名称', `last_work_date` date DEFAULT NULL COMMENT '最后工作日', `handover_owner_id` bigint DEFAULT NULL COMMENT '交接负责人ID', `handover_owner_name` varchar(100) DEFAULT NULL COMMENT '交接负责人', `handover_status` varchar(32) NOT NULL DEFAULT 'PENDING' COMMENT '交接状态', `completed_time` datetime DEFAULT NULL COMMENT '完成时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标记:0正常 1删除', PRIMARY KEY (`id`), KEY `idx_hr_leave_handover_tenant` (`tenant_id`), KEY `idx_hr_leave_handover_application` (`tenant_id`,`leave_application_id`), KEY `idx_hr_leave_handover_status` (`tenant_id`,`handover_status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='HR离职交接表'; -- forge_admin_new.in_out_demo definition CREATE TABLE `in_out_demo` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `input` varchar(128) DEFAULT NULL COMMENT '输入框', `input2` text COMMENT '多行输入框', `fieldkxzkp` int DEFAULT NULL COMMENT '计数器', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_in_out_demo_tenant` (`tenant_id`), KEY `idx_in_out_demo_create_time` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='测试demo'; -- forge_admin_new.in_out_history definition CREATE TABLE `in_out_history` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `checkbox` varchar(255) DEFAULT NULL COMMENT '多选框', `radio` varchar(64) DEFAULT NULL COMMENT '单选框', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `input` text COMMENT '多行输入框', `input2` varchar(128) DEFAULT NULL COMMENT '输入框', `input3` varchar(128) DEFAULT NULL COMMENT '密码输入框', `checkbox2` varchar(255) DEFAULT NULL COMMENT '多选框', `radio2` varchar(64) DEFAULT NULL COMMENT '单选框', `fieldkxzkp` int DEFAULT NULL COMMENT '计数器', `selector` varchar(64) DEFAULT NULL COMMENT '选择器', `switch` tinyint DEFAULT NULL COMMENT '开关', `time` varchar(32) DEFAULT NULL COMMENT '时间', `time2` varchar(32) DEFAULT NULL COMMENT '时间区间', PRIMARY KEY (`id`), KEY `idx_in_out_history_tenant` (`tenant_id`), KEY `idx_in_out_history_create_time` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='InOutHistory'; -- forge_admin_new.lsjy_desk definition CREATE TABLE `lsjy_desk` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `desktype` varchar(64) DEFAULT NULL COMMENT '类型', `field_input` varchar(128) DEFAULT NULL COMMENT '输入框', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `deskname` varchar(128) DEFAULT NULL COMMENT '名称', `desk_num` int DEFAULT NULL COMMENT '容纳数', PRIMARY KEY (`id`), KEY `idx_lsjy_desk_tenant` (`tenant_id`), KEY `idx_lsjy_desk_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='桌台'; -- forge_admin_new.order_manage definition CREATE TABLE `order_manage` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `order_no` varchar(64) NOT NULL COMMENT '订单编号', `customer_name` varchar(100) DEFAULT NULL COMMENT '客户姓名', `customer_phone` varchar(20) DEFAULT NULL COMMENT '客户电话', `order_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额', `order_status` varchar(20) DEFAULT '1' COMMENT '订单状态(1:待付款,2:已付款,3:已发货,4:已完成,5:已取消)', `order_type` varchar(20) DEFAULT '1' COMMENT '订单类型(1:普通订单,2:团购订单,3:秒杀订单)', `pay_time` datetime DEFAULT NULL COMMENT '支付时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` varchar(64) DEFAULT NULL COMMENT '更新人', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint(1) DEFAULT '0' COMMENT '删除标志(0:正常,1:删除)', PRIMARY KEY (`id`), UNIQUE KEY `uk_order_no` (`order_no`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单管理表'; -- forge_admin_new.procurement_warehouse_product definition CREATE TABLE `procurement_warehouse_product` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `field_input` varchar(128) DEFAULT NULL COMMENT '输入框', `field_textarea` text COMMENT '多行文本', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_procurement_warehouse_product_tenant` (`tenant_id`), KEY `idx_procurement_warehouse_product_create_time` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='产品'; -- forge_admin_new.purchase_material definition CREATE TABLE `purchase_material` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `code` varchar(128) DEFAULT NULL COMMENT '物料编码', `name` varchar(128) DEFAULT NULL COMMENT '物料名称', `spec_model` varchar(128) DEFAULT NULL COMMENT '规格型号', `unit` varchar(128) DEFAULT NULL COMMENT '单位', `amount` int DEFAULT NULL COMMENT '成交单价', `status` varchar(64) NOT NULL DEFAULT '1' COMMENT '状态', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_purchase_material_tenant` (`tenant_id`), KEY `idx_purchase_material_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='物料管理'; -- forge_admin_new.purchase_procurement definition CREATE TABLE `purchase_procurement` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `order_no` varchar(128) DEFAULT NULL COMMENT '采购单号', `project_name` varchar(128) DEFAULT NULL COMMENT '项目名称', `supplier_name` varchar(128) DEFAULT NULL COMMENT '供应商', `amount` int DEFAULT NULL COMMENT '采购金额', `purchaser` varchar(128) DEFAULT NULL COMMENT '采购人', `apply_date` date DEFAULT NULL COMMENT '申请日期', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_purchase_procurement_tenant` (`tenant_id`), KEY `idx_purchase_procurement_create_time` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购管理'; -- forge_admin_new.purchase_warehouse_management definition CREATE TABLE `purchase_warehouse_management` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `warehouse_name` varchar(128) DEFAULT NULL COMMENT '仓库名称/位置', `type` varchar(64) NOT NULL DEFAULT '1' COMMENT '类型', `material_class` int DEFAULT NULL COMMENT '物料种类', `inventory_quantity` varchar(128) DEFAULT NULL COMMENT '库存总量', `material_warn` varchar(128) DEFAULT NULL COMMENT '预警物料', `inventory_entry` int DEFAULT NULL COMMENT '本月入库', `warehouse_dispatch` varchar(128) DEFAULT NULL COMMENT '本月出库', `project_id` varchar(128) DEFAULT NULL COMMENT '关联项目', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_purchase_warehouse_management_tenant` (`tenant_id`), KEY `idx_purchase_warehouse_management_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='仓库管理'; -- forge_admin_new.pw_material definition CREATE TABLE `pw_material` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `material_code` varchar(64) DEFAULT NULL COMMENT '物料编号', `material_name` varchar(128) DEFAULT NULL COMMENT '物料名称', `spec_model` varchar(128) DEFAULT NULL COMMENT '规格型号', `unit` varchar(32) DEFAULT NULL COMMENT '单位', `category` varchar(64) DEFAULT NULL COMMENT '物料分类', `reference_price_cent` varchar(128) DEFAULT NULL COMMENT '参考单价(分)', `warning_quantity` varchar(18) DEFAULT NULL COMMENT '预警数量', `status` varchar(32) NOT NULL DEFAULT 'ENABLED' COMMENT '状态', `remark` text COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_material_code` (`tenant_id`,`material_code`), KEY `idx_pw_material_name` (`tenant_id`,`material_name`), KEY `idx_pw_material_status` (`tenant_id`,`status`), KEY `idx_material_code` (`material_code`), KEY `idx_material_name` (`material_name`), KEY `idx_spec_model` (`spec_model`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009207 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-物料'; -- forge_admin_new.pw_outbound_order definition CREATE TABLE `pw_outbound_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `outbound_no` varchar(64) NOT NULL COMMENT '出库单号', `warehouse_id` bigint NOT NULL COMMENT '所属仓库ID', `warehouse_name` varchar(128) DEFAULT NULL COMMENT '所属仓库', `applicant_name` varchar(64) DEFAULT NULL COMMENT '申请人', `outbound_date` date DEFAULT NULL COMMENT '出库日期', `outbound_reason` varchar(255) DEFAULT NULL COMMENT '出库原因', `order_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '单据状态', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_outbound_no` (`tenant_id`,`outbound_no`), KEY `idx_pw_outbound_warehouse` (`tenant_id`,`warehouse_id`), KEY `idx_pw_outbound_status` (`tenant_id`,`order_status`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009263 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-出库单'; -- forge_admin_new.pw_outbound_order_item definition CREATE TABLE `pw_outbound_order_item` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `outbound_id` varchar(128) DEFAULT NULL COMMENT '出库单ID', `warehouse_id` varchar(128) DEFAULT NULL COMMENT '仓库ID', `material_id` bigint DEFAULT NULL COMMENT '物料ID', `material_code` varchar(64) DEFAULT NULL COMMENT '物料编号', `material_name` varchar(128) DEFAULT NULL COMMENT '物料名称', `spec_model` varchar(128) DEFAULT NULL COMMENT '规格型号', `unit` varchar(32) DEFAULT NULL COMMENT '单位', `stock_quantity` varchar(18) DEFAULT NULL COMMENT '库存数量', `outbound_quantity` varchar(18) DEFAULT NULL COMMENT '出库数量', `lock_code` varchar(128) DEFAULT NULL COMMENT '数量锁定编码', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), KEY `idx_pw_outbound_item_order` (`tenant_id`,`outbound_id`), KEY `idx_pw_outbound_item_material` (`tenant_id`,`material_id`), KEY `idx_outbound_id` (`outbound_id`), KEY `idx_material_code` (`material_code`), KEY `idx_material_name` (`material_name`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009274 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-出库明细'; -- forge_admin_new.pw_purchase_order definition CREATE TABLE `pw_purchase_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `purchase_no` varchar(64) DEFAULT NULL COMMENT '采购单号', `project_name` varchar(128) DEFAULT NULL COMMENT '项目名称', `delivery_type` varchar(32) NOT NULL DEFAULT 'WAREHOUSE' COMMENT '送达类型', `warehouse_id` bigint DEFAULT NULL COMMENT '目标仓库', `warehouse_name` varchar(128) DEFAULT NULL COMMENT '目标仓库', `purchaser_name` varchar(64) DEFAULT NULL COMMENT '采购人', `purchase_date` date DEFAULT NULL COMMENT '采购日期', `supplier_id` bigint DEFAULT NULL COMMENT '供应商ID', `supplier_name` varchar(128) DEFAULT NULL COMMENT '供应商', `supplier_contact` varchar(64) DEFAULT NULL COMMENT '供应商联系人', `supplier_phone` varchar(32) DEFAULT NULL COMMENT '供应商联系电话', `purchase_amount_cent` varchar(128) DEFAULT NULL COMMENT '采购金额(分)', `order_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '单据状态', `attachment_ids` varchar(500) DEFAULT NULL COMMENT '附件ID集合', `remark` text COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_purchase_no` (`tenant_id`,`purchase_no`), KEY `idx_pw_purchase_project` (`tenant_id`,`project_name`), KEY `idx_pw_purchase_status` (`tenant_id`,`order_status`), KEY `idx_pw_purchase_warehouse` (`tenant_id`,`warehouse_id`), KEY `idx_purchase_no` (`purchase_no`), KEY `idx_project_name` (`project_name`), KEY `idx_warehouse_name` (`warehouse_name`), KEY `idx_supplier_name` (`supplier_name`), KEY `idx_order_status` (`order_status`), KEY `idx_rel_purchaseno` (`purchase_no`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009253 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-采购单'; -- forge_admin_new.pw_purchase_order_item definition CREATE TABLE `pw_purchase_order_item` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `purchase_id` varchar(128) DEFAULT NULL COMMENT '采购单ID', `material_id` varchar(128) DEFAULT NULL COMMENT '物料ID', `material_code` varchar(64) DEFAULT NULL COMMENT '物料编号', `material_name` varchar(128) DEFAULT NULL COMMENT '物料名称', `spec_model` varchar(128) DEFAULT NULL COMMENT '规格型号', `unit` varchar(32) DEFAULT NULL COMMENT '单位', `quantity` varchar(18) DEFAULT NULL COMMENT '数量', `cost_price_cent` bigint NOT NULL DEFAULT '0' COMMENT '成本单价,单位分', `deal_price_cent` varchar(128) DEFAULT NULL COMMENT '成交单价(分)', `amount_cent` varchar(128) DEFAULT NULL COMMENT '金额(分)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), KEY `idx_pw_purchase_item_order` (`tenant_id`,`purchase_id`), KEY `idx_pw_purchase_item_material` (`tenant_id`,`material_id`), KEY `idx_purchase_id` (`purchase_id`), KEY `idx_material_code` (`material_code`), KEY `idx_material_name` (`material_name`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009264 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-采购明细'; -- forge_admin_new.pw_supplier definition CREATE TABLE `pw_supplier` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `supplier_code` varchar(64) DEFAULT NULL COMMENT '供应商编号', `supplier_name` varchar(128) DEFAULT NULL COMMENT '供应商名称', `contact_name` varchar(64) DEFAULT NULL COMMENT '联系人', `contact_phone` varchar(32) DEFAULT NULL COMMENT '联系电话', `status` varchar(32) NOT NULL DEFAULT 'ENABLED' COMMENT '状态', `remark` text COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_supplier_code` (`tenant_id`,`supplier_code`), KEY `idx_pw_supplier_name` (`tenant_id`,`supplier_name`), KEY `idx_pw_supplier_status` (`tenant_id`,`status`), KEY `idx_supplier_code` (`supplier_code`), KEY `idx_supplier_name` (`supplier_name`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009214 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-供应商'; -- forge_admin_new.pw_supplier_material definition CREATE TABLE `pw_supplier_material` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `supplier_id` bigint DEFAULT NULL COMMENT '供应商ID', `supplier_name` varchar(128) DEFAULT NULL COMMENT '供应商名称', `material_id` bigint DEFAULT NULL COMMENT '物料ID', `material_code` varchar(64) DEFAULT NULL COMMENT '物料编号', `material_name` varchar(128) DEFAULT NULL COMMENT '物料名称', `spec_model` varchar(128) DEFAULT NULL COMMENT '规格型号', `unit` varchar(32) DEFAULT NULL COMMENT '单位', `quote_price_cent` int DEFAULT NULL COMMENT '报价(分)', `last_price_cent` bigint NOT NULL DEFAULT '0' COMMENT '上次报价,单位分', `effective_date` date DEFAULT NULL COMMENT '报价有效期', `status` varchar(32) NOT NULL DEFAULT 'ENABLED' COMMENT '状态', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_supplier_material` (`tenant_id`,`supplier_id`,`material_id`), KEY `idx_pw_supplier_material_supplier` (`tenant_id`,`supplier_id`), KEY `idx_pw_supplier_material_material` (`tenant_id`,`material_id`), KEY `idx_supplier_id` (`supplier_id`), KEY `idx_supplier_name` (`supplier_name`), KEY `idx_material_code` (`material_code`), KEY `idx_material_name` (`material_name`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009236 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-供应商物料报价'; -- forge_admin_new.pw_transfer_order definition CREATE TABLE `pw_transfer_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `transfer_no` varchar(64) NOT NULL COMMENT '调拨单号', `from_warehouse_id` bigint NOT NULL COMMENT '调出仓库ID', `from_warehouse_name` varchar(128) DEFAULT NULL COMMENT '调出仓库', `to_warehouse_id` bigint NOT NULL COMMENT '调入仓库ID', `to_warehouse_name` varchar(128) DEFAULT NULL COMMENT '调入仓库', `transfer_person_name` varchar(64) DEFAULT NULL COMMENT '调拨人', `transfer_date` date DEFAULT NULL COMMENT '调拨日期', `transfer_reason` varchar(255) DEFAULT NULL COMMENT '调拨原因', `order_status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '单据状态', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_transfer_no` (`tenant_id`,`transfer_no`), KEY `idx_pw_transfer_from` (`tenant_id`,`from_warehouse_id`), KEY `idx_pw_transfer_to` (`tenant_id`,`to_warehouse_id`), KEY `idx_pw_transfer_status` (`tenant_id`,`order_status`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009282 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-调拨单'; -- forge_admin_new.pw_transfer_order_item definition CREATE TABLE `pw_transfer_order_item` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `transfer_id` bigint NOT NULL COMMENT '调拨单ID', `material_id` bigint DEFAULT NULL COMMENT '物料ID', `material_code` varchar(64) DEFAULT NULL COMMENT '物料编号', `material_name` varchar(128) DEFAULT NULL COMMENT '物料名称', `spec_model` varchar(128) DEFAULT NULL COMMENT '规格型号', `unit` varchar(32) DEFAULT NULL COMMENT '单位', `current_stock_quantity` decimal(18,3) NOT NULL DEFAULT '0.000' COMMENT '当前库存', `transfer_quantity` decimal(18,3) NOT NULL DEFAULT '0.000' COMMENT '调拨数量', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), KEY `idx_pw_transfer_item_order` (`tenant_id`,`transfer_id`), KEY `idx_pw_transfer_item_material` (`tenant_id`,`material_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009292 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-调拨明细'; -- forge_admin_new.pw_warehouse definition CREATE TABLE `pw_warehouse` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `warehouse_code` varchar(64) DEFAULT NULL COMMENT '仓库编号', `warehouse_name` varchar(128) DEFAULT NULL COMMENT '仓库名称', `warehouse_type` varchar(32) NOT NULL DEFAULT 'CENTER' COMMENT '仓库类型', `project_name` varchar(128) DEFAULT NULL COMMENT '关联项目', `location` varchar(255) DEFAULT NULL COMMENT '位置', `related_contract_no` varchar(64) DEFAULT NULL COMMENT '关联合同', `status` varchar(32) NOT NULL DEFAULT 'ENABLED' COMMENT '状态', `remark` text COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_pw_warehouse_code` (`tenant_id`,`warehouse_code`), KEY `idx_pw_warehouse_type` (`tenant_id`,`warehouse_type`), KEY `idx_pw_warehouse_project` (`tenant_id`,`project_name`), KEY `idx_warehouse_code` (`warehouse_code`), KEY `idx_warehouse_name` (`warehouse_name`), KEY `idx_warehouse_type` (`warehouse_type`), KEY `idx_project_name` (`project_name`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=1950000000000009225 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购仓储-仓库'; -- forge_admin_new.QRTZ_CALENDARS definition DROP TABLE IF EXISTS `QRTZ_CALENDARS`; CREATE TABLE `QRTZ_CALENDARS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `calendar_name` varchar(200) NOT NULL COMMENT '日历名称', `calendar` blob NOT NULL COMMENT '存放持久化calendar对象', PRIMARY KEY (`sched_name`,`calendar_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='日历信息表'; -- forge_admin_new.QRTZ_FIRED_TRIGGERS definition DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`; CREATE TABLE `QRTZ_FIRED_TRIGGERS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `entry_id` varchar(95) NOT NULL COMMENT '调度器实例id', `trigger_name` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_name的外键', `trigger_group` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_group的外键', `instance_name` varchar(200) NOT NULL COMMENT '调度器实例名', `fired_time` bigint NOT NULL COMMENT '触发的时间', `sched_time` bigint NOT NULL COMMENT '定时器制定的时间', `priority` int NOT NULL COMMENT '优先级', `state` varchar(16) NOT NULL COMMENT '状态', `job_name` varchar(200) DEFAULT NULL COMMENT '任务名称', `job_group` varchar(200) DEFAULT NULL COMMENT '任务组名', `is_nonconcurrent` varchar(1) DEFAULT NULL COMMENT '是否并发', `requests_recovery` varchar(1) DEFAULT NULL COMMENT '是否接受恢复执行', PRIMARY KEY (`sched_name`,`entry_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='已触发的触发器表'; -- forge_admin_new.QRTZ_JOB_DETAILS definition DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`; CREATE TABLE `QRTZ_JOB_DETAILS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `job_name` varchar(200) NOT NULL COMMENT '任务名称', `job_group` varchar(200) NOT NULL COMMENT '任务组名', `description` varchar(250) DEFAULT NULL COMMENT '相关介绍', `job_class_name` varchar(250) NOT NULL COMMENT '执行任务类名称', `is_durable` varchar(1) NOT NULL COMMENT '是否持久化', `is_nonconcurrent` varchar(1) NOT NULL COMMENT '是否并发', `is_update_data` varchar(1) NOT NULL COMMENT '是否更新数据', `requests_recovery` varchar(1) NOT NULL COMMENT '是否接受恢复执行', `job_data` blob COMMENT '存放持久化job对象', PRIMARY KEY (`sched_name`,`job_name`,`job_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='任务详细信息表'; -- forge_admin_new.QRTZ_LOCKS definition DROP TABLE IF EXISTS `QRTZ_LOCKS`; CREATE TABLE `QRTZ_LOCKS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `lock_name` varchar(40) NOT NULL COMMENT '悲观锁名称', PRIMARY KEY (`sched_name`,`lock_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='存储的悲观锁信息表'; -- forge_admin_new.QRTZ_PAUSED_TRIGGER_GRPS definition DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`; CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `trigger_group` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_group的外键', PRIMARY KEY (`sched_name`,`trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='暂停的触发器表'; -- forge_admin_new.QRTZ_SCHEDULER_STATE definition DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`; CREATE TABLE `QRTZ_SCHEDULER_STATE` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `instance_name` varchar(200) NOT NULL COMMENT '实例名称', `last_checkin_time` bigint NOT NULL COMMENT '上次检查时间', `checkin_interval` bigint NOT NULL COMMENT '检查间隔时间', PRIMARY KEY (`sched_name`,`instance_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='调度器状态表'; -- forge_admin_new.sample_purchase_order definition CREATE TABLE `sample_purchase_order` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `order_no` varchar(64) NOT NULL COMMENT '采购单号', `title` varchar(128) NOT NULL COMMENT '采购主题', `supplier_name` varchar(128) NOT NULL COMMENT '供应商', `amount_cent` bigint NOT NULL DEFAULT '0' COMMENT '采购金额,单位分', `purchase_items` text COMMENT '采购明细', `need_date` date DEFAULT NULL COMMENT '需求日期', `status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '业务状态', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `applicant_id` bigint DEFAULT NULL COMMENT '申请人ID', `applicant_name` varchar(64) DEFAULT NULL COMMENT '申请人名称', `applicant_dept_id` bigint DEFAULT NULL COMMENT '申请部门ID', `applicant_dept_name` varchar(128) DEFAULT NULL COMMENT '申请部门名称', `business_key` varchar(128) DEFAULT NULL COMMENT '流程业务Key', `process_instance_id` varchar(128) DEFAULT NULL COMMENT '流程实例ID', `dept_leader_id` bigint DEFAULT NULL COMMENT '部门负责人ID', `engineering_manager_id` bigint DEFAULT NULL COMMENT '工程部经理ID', `countersign_user_ids` varchar(500) DEFAULT NULL COMMENT '会签用户ID,逗号分隔', `cc_role_keys` varchar(500) DEFAULT NULL COMMENT '流程完成抄送角色编码,逗号分隔', `arrival_list_file_ids` varchar(1000) DEFAULT NULL COMMENT '负责人节点上传清单文件ID', `applicant_modify_remark` varchar(500) DEFAULT NULL COMMENT '申请人修改说明', `dept_leader_remark` varchar(500) DEFAULT NULL COMMENT '部门负责人意见', `engineering_manager_remark` varchar(500) DEFAULT NULL COMMENT '工程部经理意见', `countersign_remark` varchar(500) DEFAULT NULL COMMENT '会签意见', `reject_reason` varchar(500) DEFAULT NULL COMMENT '驳回原因', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_sample_purchase_order_no_active` (`tenant_id`,`order_no`,`del_flag`), UNIQUE KEY `uk_sample_purchase_order_business_key_active` (`tenant_id`,`business_key`,`del_flag`), KEY `idx_sample_purchase_order_status` (`tenant_id`,`status`,`update_time`), KEY `idx_sample_purchase_order_process` (`tenant_id`,`process_instance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购单审批测试表'; -- forge_admin_new.sys_api_config definition CREATE TABLE `sys_api_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `api_name` varchar(100) NOT NULL COMMENT '接口名称 (如:查询用户信息)', `api_code` varchar(100) DEFAULT NULL COMMENT '接口编码 (用于程序逻辑引用)', `req_method` varchar(20) NOT NULL COMMENT '请求方式 (GET, POST, PUT, DELETE, ALL)', `url_path` varchar(255) NOT NULL COMMENT '接口请求路径 (支持Ant风格, 如 /api/user/**)', `api_version` varchar(20) DEFAULT 'v1.0.0' COMMENT '接口版本号', `module_code` varchar(50) NOT NULL COMMENT '所属业务模块 (如: sys, order, pay)', `service_id` varchar(100) DEFAULT NULL COMMENT '所属微服务ID (若为微服务架构)', `auth_flag` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否需认证/鉴权 (Token校验)', `encrypt_flag` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需报文加解密 (敏感数据保护)', `tenant_flag` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用租户隔离 (数据权限)', `limit_flag` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否开启限流', `sensitive_fields` text COMMENT '需脱敏字段 (JSON数组存储, 如 ["phone", "id_card"])', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态 (1-正常, 0-停用)', `remark` varchar(500) DEFAULT NULL COMMENT '备注说明', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_method_url_active` (`url_path`,`req_method`,`del_flag`), KEY `idx_module` (`module_code`) USING BTREE COMMENT '模块查询索引', KEY `idx_tenant_id` (`tenant_id`) USING BTREE COMMENT '租户索引' ) ENGINE=InnoDB AUTO_INCREMENT=1670 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='REST接口配置管理表'; -- forge_admin_new.sys_auth_online_user definition CREATE TABLE `sys_auth_online_user` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `token_value` varchar(255) NOT NULL COMMENT 'Token值', `user_id` bigint NOT NULL COMMENT '用户ID', `username` varchar(100) NOT NULL COMMENT '用户名', `real_name` varchar(100) DEFAULT NULL COMMENT '真实姓名', `dept_name` varchar(100) DEFAULT NULL COMMENT '部门名称', `ip_address` varchar(50) DEFAULT NULL COMMENT '登录IP地址', `login_location` varchar(100) DEFAULT NULL COMMENT '登录地点', `browser` varchar(50) DEFAULT NULL COMMENT '浏览器类型', `os` varchar(50) DEFAULT NULL COMMENT '操作系统', `login_time` datetime NOT NULL COMMENT '登录时间', `last_activity_time` datetime DEFAULT NULL COMMENT '最后活动时间', `expire_time` datetime DEFAULT NULL COMMENT 'Token过期时间', `status` tinyint DEFAULT '1' COMMENT '状态: 1-在线, 0-已下线', `logout_time` datetime DEFAULT NULL COMMENT '登出时间', `logout_type` tinyint DEFAULT NULL COMMENT '登出类型: 1-主动登出, 2-被踢下线, 3-被顶下线, 4-Token过期', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_token` (`token_value`), KEY `idx_user_id` (`user_id`), KEY `idx_status` (`status`), KEY `idx_login_time` (`login_time`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4696 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='在线用户表'; -- forge_admin_new.sys_auth_online_user_history definition CREATE TABLE `sys_auth_online_user_history` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `user_id` bigint NOT NULL COMMENT '用户ID', `username` varchar(100) NOT NULL COMMENT '用户名', `ip_address` varchar(50) DEFAULT NULL COMMENT '登录IP地址', `login_location` varchar(100) DEFAULT NULL COMMENT '登录地点', `browser` varchar(50) DEFAULT NULL COMMENT '浏览器类型', `os` varchar(50) DEFAULT NULL COMMENT '操作系统', `login_time` datetime NOT NULL COMMENT '登录时间', `logout_time` datetime DEFAULT NULL COMMENT '登出时间', `online_duration` int DEFAULT NULL COMMENT '在线时长(秒)', `logout_type` tinyint DEFAULT NULL COMMENT '登出类型: 1-主动登出, 2-被踢下线, 3-被顶下线, 4-Token过期', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_user_id` (`user_id`), KEY `idx_login_time` (`login_time`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='在线用户历史表'; -- forge_admin_new.sys_client definition CREATE TABLE `sys_client` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `client_code` varchar(50) NOT NULL COMMENT '客户端编码', `client_name` varchar(100) NOT NULL COMMENT '客户端名称', `app_id` varchar(64) NOT NULL COMMENT '应用ID', `app_secret` varchar(128) DEFAULT NULL COMMENT '应用密钥摘要,仅client_secret客户端使用', `client_auth_method` varchar(32) NOT NULL DEFAULT 'client_secret' COMMENT '客户端认证方式:none/client_secret', `token_timeout` bigint DEFAULT '7200' COMMENT 'Token有效期(秒)', `token_activity_timeout` bigint DEFAULT '-1' COMMENT 'Token活跃超时(秒)', `token_prefix` varchar(20) DEFAULT 'Bearer' COMMENT 'Token前缀', `token_name` varchar(50) DEFAULT 'Authorization' COMMENT 'Token名称', `concurrent_login` tinyint(1) DEFAULT '0' COMMENT '是否允许并发登录(0-否 1-是)', `share_token` tinyint(1) DEFAULT '0' COMMENT '是否共享Token(0-否 1-是)', `enable_ip_limit` tinyint(1) DEFAULT '0' COMMENT '是否启用IP限制', `ip_whitelist` text COMMENT 'IP白名单(JSON数组)', `enable_encrypt` tinyint(1) DEFAULT '0' COMMENT '是否启用加密传输', `encrypt_algorithm` varchar(50) DEFAULT 'AES' COMMENT '加密算法', `max_user_count` bigint DEFAULT '-1' COMMENT '最大用户数(-1不限)', `max_online_count` bigint DEFAULT '-1' COMMENT '最大在线数(-1不限)', `auth_types` varchar(255) DEFAULT 'password' COMMENT '支持的认证方式(逗号分隔)', `captcha_type` varchar(32) DEFAULT NULL COMMENT '验证码类型:graphical图形,slider滑块,sms短信;为空继承全局配置', `status` tinyint DEFAULT '1' COMMENT '状态(0-禁用 1-启用)', `description` varchar(500) DEFAULT NULL COMMENT '客户端描述', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_time` datetime DEFAULT CURRENT_TIMESTAMP, `create_by` bigint DEFAULT NULL, `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `update_by` bigint DEFAULT NULL, `create_dept` bigint DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uk_client_code` (`client_code`), UNIQUE KEY `uk_app_id` (`app_id`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='客户端管理表'; -- forge_admin_new.sys_config definition CREATE TABLE `sys_config` ( `config_id` bigint NOT NULL AUTO_INCREMENT COMMENT '参数主键', `tenant_id` bigint DEFAULT '0' COMMENT '租户编号', `config_name` varchar(100) DEFAULT '' COMMENT '参数名称', `config_key` varchar(100) DEFAULT '' COMMENT '参数键名', `config_value` varchar(500) DEFAULT '' COMMENT '参数键值', `config_type` char(1) DEFAULT 'N' COMMENT '系统内置(Y是 N否)', `config_desc` varchar(500) DEFAULT NULL COMMENT '参数描述', `sort` int DEFAULT '0' COMMENT '排序', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`config_id`), UNIQUE KEY `uk_tenant_config_key_active` (`tenant_id`,`config_key`,`del_flag`), KEY `idx_config_type` (`config_type`) ) ENGINE=InnoDB AUTO_INCREMENT=448 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统配置表'; -- forge_admin_new.sys_config_group definition CREATE TABLE `sys_config_group` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `group_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分组编码', `group_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分组名称', `group_icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '分组图标', `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '配置值(JSON格式)', `sort` int DEFAULT '0' COMMENT '排序', `status` tinyint DEFAULT '1' COMMENT '状态(0-禁用 1-启用)', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '备注', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `uk_group_code` (`group_code`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统配置分组表'; -- forge_admin_new.sys_data_scope_config definition CREATE TABLE `sys_data_scope_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `resource_code` varchar(100) NOT NULL COMMENT '资源编码(对应接口路径或功能模块)', `resource_name` varchar(100) DEFAULT NULL COMMENT '资源名称', `mapper_method` varchar(200) NOT NULL COMMENT 'Mapper方法(如:com.example.mapper.UserMapper.selectList)', `table_alias` varchar(50) DEFAULT 't' COMMENT '主表别名', `user_id_column` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '用户ID字段名', `org_id_column` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '组织ID字段名', `tenant_id_column` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '租户ID字段名', `region_code_column` varchar(250) DEFAULT NULL COMMENT '行政区划字段名', `user_region_column` varchar(200) DEFAULT NULL COMMENT '用户表行政区划字段名', `user_table_alias` varchar(100) DEFAULT NULL COMMENT '用户表别名', `enabled` tinyint DEFAULT '1' COMMENT '是否启用(0-禁用,1-启用)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_mapper_active` (`tenant_id`,`mapper_method`,`del_flag`), KEY `idx_resource_code` (`resource_code`), KEY `idx_enabled` (`enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='数据权限配置表'; -- forge_admin_new.sys_dict_data definition CREATE TABLE `sys_dict_data` ( `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码', `tenant_id` bigint DEFAULT '0' COMMENT '租户编号', `dict_sort` int DEFAULT '0' COMMENT '字典排序', `dict_label` varchar(100) DEFAULT '' COMMENT '字典标签', `dict_value` varchar(100) DEFAULT '' COMMENT '字典键值', `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型', `css_class` varchar(100) DEFAULT NULL COMMENT '样式属性(其他样式扩展)', `list_class` varchar(100) DEFAULT NULL COMMENT '表格回显样式', `is_default` char(1) DEFAULT 'N' COMMENT '是否默认(Y是 N否)', `parent_dict_code` bigint unsigned DEFAULT NULL COMMENT '上级字典编码', `linked_dict_type` varchar(100) DEFAULT NULL COMMENT '关联的字典类型', `linked_dict_value` varchar(100) DEFAULT NULL COMMENT '关联的字典值', `dict_status` tinyint DEFAULT '1' COMMENT '字典状态(0-禁用,1-正常)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`dict_code`), UNIQUE KEY `uk_tenant_dict_data_active` (`tenant_id`,`dict_type`,`dict_value`,`del_flag`), KEY `idx_tenant_dict_type` (`tenant_id`,`dict_type`), KEY `idx_parent_dict_code` (`parent_dict_code`), KEY `idx_linked_dict` (`linked_dict_type`,`linked_dict_value`) ) ENGINE=InnoDB AUTO_INCREMENT=803 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='字典数据表'; -- forge_admin_new.sys_dict_type definition CREATE TABLE `sys_dict_type` ( `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键', `tenant_id` bigint DEFAULT '0' COMMENT '租户编号', `dict_name` varchar(100) DEFAULT '' COMMENT '字典名称', `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型(租户内唯一)', `dict_status` tinyint DEFAULT '1' COMMENT '字典状态(0-禁用,1-正常)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`dict_id`), UNIQUE KEY `uk_tenant_dict_type_active` (`tenant_id`,`dict_type`,`del_flag`), KEY `idx_dict_status` (`dict_status`) ) ENGINE=InnoDB AUTO_INCREMENT=196 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='字典类型表'; -- forge_admin_new.sys_email_config definition CREATE TABLE `sys_email_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `config_id` varchar(64) DEFAULT NULL COMMENT '配置标识', `smtp_server` varchar(128) NOT NULL COMMENT 'SMTP服务器地址', `port` int DEFAULT '465' COMMENT '端口', `username` varchar(128) DEFAULT NULL COMMENT '用户名', `password` varchar(256) DEFAULT NULL COMMENT '密码/授权码', `from_address` varchar(128) NOT NULL COMMENT '发件人地址', `from_name` varchar(64) DEFAULT NULL COMMENT '发件人名称', `is_ssl` tinyint DEFAULT '1' COMMENT '是否开启SSL', `is_auth` tinyint DEFAULT '1' COMMENT '是否开启验证', `retry_interval` int DEFAULT '5' COMMENT '重试间隔(秒)', `max_retries` int DEFAULT '1' COMMENT '最大重试次数', `status` tinyint DEFAULT '0' COMMENT '状态(0禁用 1启用)', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', `update_by` varchar(64) DEFAULT NULL COMMENT '更新人', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), KEY `idx_tenant_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='邮件配置表'; -- forge_admin_new.sys_employee definition CREATE TABLE `sys_employee` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `emp_name` varchar(100) NOT NULL COMMENT '姓名', `emp_no` varchar(50) NOT NULL COMMENT '工号', `dept_id` bigint DEFAULT NULL COMMENT '部门ID', `position` varchar(100) DEFAULT NULL COMMENT '职位', `hire_date` date DEFAULT NULL COMMENT '入职日期', `phone` varchar(20) DEFAULT NULL COMMENT '手机号', `email` varchar(100) DEFAULT NULL COMMENT '邮箱', `status` tinyint(1) DEFAULT '1' COMMENT '状态(1:正常,0:停用)', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_emp_no_active` (`emp_no`,`del_flag`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='员工信息表'; -- forge_admin_new.sys_excel_column_config definition CREATE TABLE `sys_excel_column_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `config_key` varchar(100) NOT NULL COMMENT '关联配置键', `field_name` varchar(100) NOT NULL COMMENT '字段名(实体属性名)', `column_name` varchar(200) NOT NULL COMMENT '列名(Excel表头)', `width` int DEFAULT '20' COMMENT '列宽', `order_num` int DEFAULT '0' COMMENT '排序(值越小越靠前)', `export` tinyint(1) DEFAULT '1' COMMENT '是否导出(1-是,0-否)', `date_format` varchar(50) DEFAULT NULL COMMENT '日期格式(如:yyyy-MM-dd)', `number_format` varchar(50) DEFAULT NULL COMMENT '数字格式', `dict_type` varchar(50) DEFAULT NULL COMMENT '字典类型(关联sys_dict_type)', `importable` tinyint(1) DEFAULT '1' COMMENT '是否可导入(1-是,0-否)', `required` tinyint(1) DEFAULT '0' COMMENT '是否必填(1-是,0-否)', `example_value` varchar(255) DEFAULT NULL COMMENT '示例值(用于模板)', `validation_rule` varchar(255) DEFAULT NULL COMMENT '校验规则(正则表达式)', `validation_message` varchar(255) DEFAULT NULL COMMENT '校验失败提示信息', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', PRIMARY KEY (`id`), KEY `idx_config_key` (`config_key`), KEY `idx_order` (`order_num`) ) ENGINE=InnoDB AUTO_INCREMENT=2068887631264264248 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Excel列配置表'; -- forge_admin_new.sys_excel_export_config definition CREATE TABLE `sys_excel_export_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `config_key` varchar(100) NOT NULL COMMENT '配置键(唯一标识)', `config_type` varchar(16) NOT NULL DEFAULT 'BOTH' COMMENT '配置类型:EXPORT导出 IMPORT导入 BOTH导入导出', `export_name` varchar(200) NOT NULL COMMENT '导出名称', `sheet_name` varchar(100) DEFAULT 'Sheet1' COMMENT 'Sheet名称', `file_name_template` varchar(200) DEFAULT NULL COMMENT '文件名模板(支持占位符:{date}、{time})', `data_source_bean` varchar(100) DEFAULT NULL COMMENT '数据源Bean名称(如:userService,导入-only可为空)', `query_method` varchar(100) DEFAULT NULL COMMENT '数据查询方法名(如:list、page,导入-only可为空)', `auto_trans` tinyint(1) DEFAULT '1' COMMENT '是否自动翻译字典(1-是,0-否)', `pageable` tinyint(1) DEFAULT '0' COMMENT '是否分页查询(1-是,0-否)', `max_rows` int DEFAULT '10000' COMMENT '最大导出条数', `sort_field` varchar(50) DEFAULT NULL COMMENT '排序字段', `sort_order` varchar(10) DEFAULT NULL COMMENT '排序方向(ASC/DESC)', `status` tinyint(1) DEFAULT '1' COMMENT '状态(1-启用,0-禁用)', `include_sample` tinyint(1) DEFAULT '0' COMMENT '是否包含示例数据(用于模板)', `allow_import` tinyint(1) DEFAULT '1' COMMENT '是否允许导入', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', PRIMARY KEY (`id`), UNIQUE KEY `config_key` (`config_key`), KEY `idx_config_key` (`config_key`) ) ENGINE=InnoDB AUTO_INCREMENT=2068887630966468614 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Excel导出配置表'; -- forge_admin_new.sys_external_api definition CREATE TABLE `sys_external_api` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `system_id` bigint NOT NULL COMMENT '所属系统ID', `api_code` varchar(50) NOT NULL COMMENT '接口编码', `api_name` varchar(100) NOT NULL COMMENT '接口名称', `api_desc` varchar(500) DEFAULT NULL COMMENT '接口描述', `api_path` varchar(255) NOT NULL COMMENT '接口路径', `api_method` varchar(10) NOT NULL COMMENT '请求方法(GET/POST/PUT/DELETE)', `request_content_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '请求Content-Type', `request_headers` text COMMENT '请求头配置(JSON)', `request_params` text COMMENT '请求参数配置(JSON)', `request_body_template` text COMMENT '请求体模板', `response_content_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '响应Content-Type', `response_data_path` varchar(100) DEFAULT NULL COMMENT '响应数据路径(JsonPath)', `response_total_path` varchar(100) DEFAULT NULL COMMENT '响应总数路径(JsonPath)', `param_mapping_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用参数映射', `param_mappings` text COMMENT '参数映射配置(JSON)', `response_transform_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用响应转换', `response_transform_script` text COMMENT '响应转换脚本', `error_code_path` varchar(100) DEFAULT NULL COMMENT '错误码路径(JsonPath)', `error_msg_path` varchar(100) DEFAULT NULL COMMENT '错误消息路径(JsonPath)', `success_codes` varchar(100) DEFAULT NULL COMMENT '成功码列表', `doc_file_id` varchar(100) DEFAULT NULL COMMENT '接口文档文件ID', `doc_file_name` varchar(255) DEFAULT NULL COMMENT '接口文档文件名', `rate_limit_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用限流', `rate_limit_qps` int DEFAULT NULL COMMENT '限流QPS', `cache_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用缓存', `cache_ttl` int DEFAULT NULL COMMENT '缓存时间(秒)', `cache_key_template` varchar(255) DEFAULT NULL COMMENT '缓存Key模板', `permission_check_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用权限检查', `required_permission` varchar(100) DEFAULT NULL COMMENT '所需权限', `api_status` int DEFAULT '1' COMMENT '状态(0停用 1启用)', `sort_order` int DEFAULT '0' COMMENT '排序', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_api_code_system` (`api_code`,`system_id`), KEY `idx_tenant_id` (`tenant_id`), KEY `idx_system_id` (`system_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='外部接口配置表'; -- forge_admin_new.sys_external_api_log definition CREATE TABLE `sys_external_api_log` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `system_id` bigint DEFAULT NULL COMMENT '外部系统ID', `api_id` bigint NOT NULL COMMENT '外部接口ID', `system_name` varchar(100) DEFAULT NULL COMMENT '系统名称快照', `api_name` varchar(100) DEFAULT NULL COMMENT '接口名称快照', `api_code` varchar(50) DEFAULT NULL COMMENT '接口编码快照', `request_method` varchar(10) DEFAULT NULL COMMENT '请求方法', `request_url` varchar(1000) DEFAULT NULL COMMENT '请求URL', `request_params` text COMMENT '请求参数', `request_body` text COMMENT '请求体', `response_body` text COMMENT '响应体', `http_status_code` int DEFAULT NULL COMMENT 'HTTP状态码', `call_status` tinyint DEFAULT '1' COMMENT '调用状态(0失败 1成功)', `error_message` varchar(1000) DEFAULT NULL COMMENT '错误信息', `duration_ms` bigint DEFAULT NULL COMMENT '耗时毫秒', `debug_flag` tinyint(1) DEFAULT '0' COMMENT '是否调试调用', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_tenant_api` (`tenant_id`,`api_id`), KEY `idx_system_id` (`system_id`), KEY `idx_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=2328 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='外部接口调用日志表'; -- forge_admin_new.sys_external_system definition CREATE TABLE `sys_external_system` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `system_code` varchar(50) NOT NULL COMMENT '系统编码', `system_name` varchar(100) NOT NULL COMMENT '系统名称', `system_desc` varchar(500) DEFAULT NULL COMMENT '系统描述', `base_url` varchar(255) NOT NULL COMMENT '基础URL', `auth_type` varchar(20) NOT NULL COMMENT '认证类型(none/basic/token/oauth2/api_key/custom)', `basic_username` varchar(100) DEFAULT NULL COMMENT 'Basic认证用户名', `basic_password` varchar(255) DEFAULT NULL COMMENT 'Basic认证密码', `token_value` varchar(500) DEFAULT NULL COMMENT 'Token值', `token_header_name` varchar(50) DEFAULT NULL COMMENT 'Token Header名称', `token_prefix` varchar(20) DEFAULT NULL COMMENT 'Token前缀', `oauth2_token_url` varchar(255) DEFAULT NULL COMMENT 'OAuth2 Token URL', `oauth2_client_id` varchar(100) DEFAULT NULL COMMENT 'OAuth2 Client ID', `oauth2_client_secret` varchar(255) DEFAULT NULL COMMENT 'OAuth2 Client Secret', `oauth2_grant_type` varchar(20) DEFAULT NULL COMMENT 'OAuth2授权类型', `oauth2_scope` varchar(100) DEFAULT NULL COMMENT 'OAuth2 Scope', `api_key_name` varchar(50) DEFAULT NULL COMMENT 'API Key名称', `api_key_value` varchar(255) DEFAULT NULL COMMENT 'API Key值', `api_key_position` varchar(20) DEFAULT NULL COMMENT 'API Key位置(header/query)', `custom_auth_adapter` varchar(100) DEFAULT NULL COMMENT '自定义认证适配器', `custom_auth_config` text COMMENT '自定义认证配置', `trusted_internal` tinyint(1) DEFAULT '0' COMMENT '是否可信内部Forge系统', `proxy_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用代理', `proxy_host` varchar(100) DEFAULT NULL COMMENT '代理主机', `proxy_port` int DEFAULT NULL COMMENT '代理端口', `proxy_username` varchar(100) DEFAULT NULL COMMENT '代理用户名', `proxy_password` varchar(255) DEFAULT NULL COMMENT '代理密码', `retry_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用重试', `retry_max_attempts` int DEFAULT NULL COMMENT '最大重试次数', `retry_backoff_interval` int DEFAULT NULL COMMENT '重试间隔(ms)', `connect_timeout` int DEFAULT NULL COMMENT '连接超时(ms)', `read_timeout` int DEFAULT NULL COMMENT '读取超时(ms)', `write_timeout` int DEFAULT NULL COMMENT '写入超时(ms)', `ssl_verify_enabled` tinyint(1) DEFAULT '1' COMMENT '是否启用SSL验证', `request_logging_enabled` tinyint(1) DEFAULT '0' COMMENT '是否启用请求日志', `system_status` int DEFAULT '1' COMMENT '状态(0停用 1启用)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_system_code_tenant` (`system_code`,`tenant_id`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='外部系统配置表'; -- forge_admin_new.sys_file_group definition CREATE TABLE `sys_file_group` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `group_name` varchar(100) NOT NULL COMMENT '分组名称', `group_code` varchar(100) DEFAULT NULL COMMENT '分组编码', `group_type` varchar(50) DEFAULT 'default' COMMENT '分组类型(document-文档,image-图片,video-视频,audio-音频,archive-压缩包,default-默认)', `parent_id` bigint DEFAULT NULL COMMENT '父分组ID', `sort` int DEFAULT '0' COMMENT '排序', `icon` varchar(100) DEFAULT NULL COMMENT '图标', `description` varchar(500) DEFAULT NULL COMMENT '描述', `status` tinyint(1) DEFAULT '1' COMMENT '状态(1-正常,0-禁用)', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `deleted` tinyint(1) DEFAULT '0' COMMENT '删除标记(0-未删除,1-已删除)', PRIMARY KEY (`id`), KEY `idx_parent_id` (`parent_id`), KEY `idx_group_type` (`group_type`), KEY `idx_group_code` (`group_code`), KEY `idx_sys_file_group_tenant` (`tenant_id`,`deleted`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=2077546230840676354 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='文件分组表'; -- forge_admin_new.sys_file_metadata definition CREATE TABLE `sys_file_metadata` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `file_id` varchar(64) NOT NULL COMMENT '文件唯一ID', `group_id` bigint DEFAULT NULL COMMENT '分组ID', `original_name` varchar(500) NOT NULL COMMENT '原始文件名', `storage_name` varchar(500) NOT NULL COMMENT '存储文件名', `file_path` varchar(1000) NOT NULL COMMENT '文件路径', `file_size` bigint NOT NULL COMMENT '文件大小(字节)', `mime_type` varchar(200) DEFAULT NULL COMMENT '文件MIME类型', `extension` varchar(50) DEFAULT NULL COMMENT '文件扩展名', `md5` varchar(64) DEFAULT NULL COMMENT '文件MD5', `storage_type` varchar(50) NOT NULL COMMENT '存储策略', `bucket` varchar(100) DEFAULT NULL COMMENT '存储桶/命名空间', `access_url` varchar(1000) DEFAULT NULL COMMENT '访问URL', `thumbnail_url` varchar(1000) DEFAULT NULL COMMENT '缩略图URL', `business_type` varchar(100) DEFAULT NULL COMMENT '业务类型', `business_id` varchar(100) DEFAULT NULL COMMENT '业务ID', `uploader_id` bigint DEFAULT NULL COMMENT '上传者ID', `upload_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '上传时间', `expire_time` datetime DEFAULT NULL COMMENT '过期时间', `is_private` tinyint(1) DEFAULT '0' COMMENT '是否私有', `download_count` int DEFAULT '0' COMMENT '下载次数', `status` tinyint(1) DEFAULT '1' COMMENT '状态(1-正常,0-已删除)', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', PRIMARY KEY (`id`), UNIQUE KEY `file_id` (`file_id`), KEY `idx_file_id` (`file_id`), KEY `idx_md5` (`md5`), KEY `idx_business` (`business_type`,`business_id`), KEY `idx_uploader` (`uploader_id`), KEY `idx_upload_time` (`upload_time`), KEY `idx_sys_file_metadata_tenant` (`tenant_id`,`status`,`upload_time`) ) ENGINE=InnoDB AUTO_INCREMENT=2079833685673406466 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='文件元数据表'; -- forge_admin_new.sys_file_storage_config definition CREATE TABLE `sys_file_storage_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `config_name` varchar(100) NOT NULL COMMENT '配置名称', `storage_type` varchar(50) NOT NULL COMMENT '存储类型(local/minio/aliyun_oss等)', `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认策略', `enabled` tinyint(1) DEFAULT '1' COMMENT '是否启用', `endpoint` varchar(500) DEFAULT NULL COMMENT '访问端点', `access_key` varchar(200) DEFAULT NULL COMMENT '访问密钥ID', `secret_key` varchar(200) DEFAULT NULL COMMENT '访问密钥Secret', `bucket_name` varchar(100) DEFAULT NULL COMMENT '存储桶名称', `region` varchar(100) DEFAULT NULL COMMENT '区域', `base_path` varchar(200) DEFAULT NULL COMMENT '基础路径', `domain` varchar(500) DEFAULT NULL COMMENT '访问域名', `use_https` tinyint(1) DEFAULT '1' COMMENT '是否使用HTTPS', `max_file_size` int DEFAULT '100' COMMENT '最大文件大小(MB)', `allowed_types` varchar(500) NOT NULL COMMENT '允许的文件类型(逗号分隔)', `order_num` int DEFAULT '0' COMMENT '排序', `extra_config` text COMMENT '扩展配置(JSON)', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`id`), KEY `idx_storage_type` (`storage_type`), KEY `idx_is_default` (`is_default`) ) ENGINE=InnoDB AUTO_INCREMENT=2076579065463427075 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='文件存储配置表'; -- forge_admin_new.sys_flow_approval_level definition CREATE TABLE `sys_flow_approval_level` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `node_config_id` varchar(64) NOT NULL COMMENT '节点配置ID', `level_index` int NOT NULL COMMENT '层级序号', `level_name` varchar(100) DEFAULT NULL COMMENT '层级名称', `assignee_type` varchar(50) DEFAULT NULL COMMENT '审批人类型', `assignee_value` text COMMENT '审批人值', `condition_expr` varchar(500) DEFAULT NULL COMMENT '层级条件表达式', `skip_condition` varchar(500) DEFAULT NULL COMMENT '跳过条件', `sort_order` int DEFAULT '0' COMMENT '排序', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`id`), KEY `idx_node_config_id` (`node_config_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='审批层级配置表'; -- forge_admin_new.sys_flow_business definition CREATE TABLE `sys_flow_business` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `business_key` varchar(100) NOT NULL COMMENT '业务Key', `business_type` varchar(50) NOT NULL COMMENT '业务类型(order/contract等)', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `process_def_id` varchar(64) DEFAULT NULL COMMENT '流程定义ID', `process_def_key` varchar(100) DEFAULT NULL COMMENT '流程定义KEY', `title` varchar(200) DEFAULT NULL COMMENT '流程标题', `status` varchar(50) DEFAULT 'draft' COMMENT '业务状态(draft-草稿/running-审批中/approved-已通过/rejected-已驳回/canceled-已取消)', `apply_user_id` varchar(64) DEFAULT NULL COMMENT '申请人', `apply_user_name` varchar(100) DEFAULT NULL COMMENT '申请人姓名', `apply_dept_id` varchar(64) DEFAULT NULL COMMENT '申请部门ID', `apply_dept_name` varchar(100) DEFAULT NULL COMMENT '申请部门名称', `apply_time` datetime DEFAULT NULL COMMENT '申请时间', `end_time` datetime DEFAULT NULL COMMENT '结束时间', `duration` bigint DEFAULT NULL COMMENT '流程耗时(毫秒)', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_business_tenant_key` (`tenant_id`,`business_key`), KEY `idx_process_instance_id` (`process_instance_id`), KEY `idx_apply_user_id` (`apply_user_id`), KEY `idx_status` (`status`), KEY `idx_sys_flow_business_tenant` (`tenant_id`,`status`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程业务关联表'; -- forge_admin_new.sys_flow_category definition CREATE TABLE `sys_flow_category` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `category_code` varchar(50) NOT NULL COMMENT '分类编码', `category_name` varchar(100) NOT NULL COMMENT '分类名称', `description` varchar(500) DEFAULT NULL COMMENT '描述', `sort_order` int DEFAULT '0' COMMENT '排序', `status` tinyint DEFAULT '1' COMMENT '状态(0-禁用/1-启用)', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `parent_id` varchar(64) DEFAULT NULL COMMENT '父分类ID', `level` int DEFAULT '1' COMMENT '层级深度', `ancestors` varchar(500) DEFAULT NULL COMMENT '祖先路径', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_category_tenant_code` (`tenant_id`,`category_code`), KEY `idx_category_code` (`category_code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程分类表'; -- forge_admin_new.sys_flow_cc definition CREATE TABLE `sys_flow_cc` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `process_def_key` varchar(100) DEFAULT NULL COMMENT '流程定义KEY', `task_id` varchar(64) DEFAULT NULL COMMENT '来源任务ID', `title` varchar(200) DEFAULT NULL COMMENT '标题', `content` text COMMENT '内容摘要', `business_key` varchar(100) DEFAULT NULL COMMENT '业务Key', `cc_user_id` varchar(64) NOT NULL COMMENT '抄送人ID', `cc_user_name` varchar(100) DEFAULT NULL COMMENT '抄送人姓名', `send_user_id` varchar(64) DEFAULT NULL COMMENT '发送人ID', `send_user_name` varchar(100) DEFAULT NULL COMMENT '发送人姓名', `cc_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '抄送时间', `read_time` datetime DEFAULT NULL COMMENT '阅读时间', `is_read` tinyint DEFAULT '0' COMMENT '是否已读(0-未读/1-已读)', PRIMARY KEY (`id`), KEY `idx_process_instance_id` (`process_instance_id`), KEY `idx_cc_user_id` (`cc_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程抄送表'; -- forge_admin_new.sys_flow_comment definition CREATE TABLE `sys_flow_comment` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `process_def_key` varchar(100) DEFAULT NULL COMMENT '流程定义KEY', `task_id` varchar(64) DEFAULT NULL COMMENT '任务ID', `task_name` varchar(200) DEFAULT NULL COMMENT '任务名称', `type` varchar(20) DEFAULT 'comment' COMMENT '类型(comment-审批意见/event-流程事件)', `message` text COMMENT '意见内容', `user_id` varchar(64) DEFAULT NULL COMMENT '用户ID', `user_name` varchar(100) DEFAULT NULL COMMENT '用户姓名', `full_message` text COMMENT '完整消息(JSON)', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_process_instance_id` (`process_instance_id`), KEY `idx_task_id` (`task_id`), KEY `idx_user_id` (`user_id`), KEY `idx_sys_flow_comment_tenant` (`tenant_id`,`process_instance_id`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程意见表'; -- forge_admin_new.sys_flow_condition_item definition CREATE TABLE `sys_flow_condition_item` ( `id` varchar(64) NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `rule_id` varchar(64) NOT NULL COMMENT '规则ID', `field_name` varchar(100) NOT NULL COMMENT '字段名称', `field_label` varchar(100) DEFAULT NULL COMMENT '字段标签', `field_type` varchar(32) DEFAULT 'string' COMMENT '字段类型:string/number/date/boolean/user/dept/role', `operator` varchar(32) NOT NULL COMMENT '操作符:eq/ne/gt/lt/ge/le/contains/startsWith/endsWith/in/notIn/isEmpty/isNotEmpty', `value` text COMMENT '比较值(JSON格式,支持多值)', `logic_connector` varchar(10) DEFAULT 'and' COMMENT '逻辑连接符:and/or', `group_id` varchar(64) DEFAULT NULL COMMENT '分组ID(用于条件分组)', `sort_order` int DEFAULT '0' COMMENT '排序号', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_rule_id` (`rule_id`), KEY `idx_group_id` (`group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='条件规则项表'; -- forge_admin_new.sys_flow_condition_rule definition CREATE TABLE `sys_flow_condition_rule` ( `id` varchar(64) NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `rule_name` varchar(100) NOT NULL COMMENT '规则名称', `rule_code` varchar(100) DEFAULT NULL COMMENT '规则编码', `model_id` varchar(64) DEFAULT NULL COMMENT '模型ID', `sequence_flow_id` varchar(128) NOT NULL COMMENT '序列流ID(BPMN中的SequenceFlow ID)', `condition_type` varchar(32) DEFAULT 'simple' COMMENT '条件类型:simple-简单条件,composite-组合条件,script-脚本', `condition_expression` text COMMENT '条件表达式(JSON格式存储)', `priority` int DEFAULT '0' COMMENT '优先级(数字越小优先级越高)', `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认路径', `status` int DEFAULT '1' COMMENT '状态:0-禁用,1-启用', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), KEY `idx_model_id` (`model_id`), KEY `idx_sequence_flow_id` (`sequence_flow_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程条件规则表'; -- forge_admin_new.sys_flow_entry definition CREATE TABLE `sys_flow_entry` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `entry_code` varchar(128) NOT NULL COMMENT '入口编码', `entry_name` varchar(128) NOT NULL COMMENT '入口名称', `entry_desc` varchar(500) DEFAULT NULL COMMENT '入口说明', `model_key` varchar(128) NOT NULL COMMENT '流程模型Key', `form_key` varchar(128) NOT NULL COMMENT '表单Key', `form_version_id` bigint NOT NULL COMMENT '表单版本ID', `data_mode` varchar(32) NOT NULL DEFAULT 'PROCESS_ONLY' COMMENT '数据模式', `object_code` varchar(64) DEFAULT NULL COMMENT '业务对象编码', `config_key` varchar(128) DEFAULT NULL COMMENT '动态CRUD配置Key', `visible_scope` json DEFAULT NULL COMMENT '可见范围配置', `title_template` varchar(256) DEFAULT NULL COMMENT '流程标题模板', `business_key_template` varchar(256) DEFAULT NULL COMMENT '业务Key模板', `submit_strategy` json DEFAULT NULL COMMENT '提交策略配置', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0禁用 1启用', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_entry_code` (`tenant_id`,`entry_code`), KEY `idx_flow_entry_model` (`tenant_id`,`model_key`,`status`), KEY `idx_flow_entry_form` (`tenant_id`,`form_key`,`form_version_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程应用入口表'; -- forge_admin_new.sys_flow_entry_field_mapping definition CREATE TABLE `sys_flow_entry_field_mapping` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `entry_id` bigint NOT NULL COMMENT '流程入口ID', `form_field` varchar(128) NOT NULL COMMENT '表单字段', `target_type` varchar(32) NOT NULL DEFAULT 'FLOW_VARIABLE' COMMENT '目标类型:FLOW_VARIABLE/BUSINESS_FIELD', `target_field` varchar(128) DEFAULT NULL COMMENT '目标字段', `flow_variable` varchar(128) DEFAULT NULL COMMENT '流程变量名', `required` tinyint NOT NULL DEFAULT '0' COMMENT '是否必填映射', `mapping_config` json DEFAULT NULL COMMENT '映射扩展配置', `sort` int NOT NULL DEFAULT '0' COMMENT '排序', `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_entry_mapping` (`tenant_id`,`entry_id`,`form_field`,`target_type`,`target_field`), KEY `idx_flow_entry_mapping_entry` (`tenant_id`,`entry_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程入口字段映射表'; -- forge_admin_new.sys_flow_error_log definition CREATE TABLE `sys_flow_error_log` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `process_def_id` varchar(64) DEFAULT NULL COMMENT '流程定义ID', `process_def_key` varchar(100) DEFAULT NULL COMMENT '流程定义KEY', `business_key` varchar(100) DEFAULT NULL COMMENT '业务Key', `task_id` varchar(64) DEFAULT NULL COMMENT 'Flowable任务ID', `task_name` varchar(200) DEFAULT NULL COMMENT '任务名称', `activity_id` varchar(100) DEFAULT NULL COMMENT 'BPMN节点ID', `activity_name` varchar(200) DEFAULT NULL COMMENT 'BPMN节点名称', `error_stage` varchar(80) DEFAULT NULL COMMENT '错误发生环节', `error_type` varchar(300) DEFAULT NULL COMMENT '异常类型', `error_message` text COMMENT '异常摘要', `stack_trace` text COMMENT '异常堆栈', `job_id` varchar(64) DEFAULT NULL COMMENT 'Flowable作业ID', `job_retries` int DEFAULT NULL COMMENT 'Flowable作业剩余重试次数', `status` tinyint DEFAULT '0' COMMENT '状态(0-未处理/1-已重试/2-已解决/3-重试失败)', `retry_count` int DEFAULT '0' COMMENT '人工重试次数', `last_retry_user_id` varchar(64) DEFAULT NULL COMMENT '最近重试人', `last_retry_time` datetime DEFAULT NULL COMMENT '最近重试时间', `retry_message` text COMMENT '重试说明或失败原因', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_process_instance_id` (`process_instance_id`), KEY `idx_activity_id` (`activity_id`), KEY `idx_job_id` (`job_id`), KEY `idx_status` (`status`), KEY `idx_create_time` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程运行错误日志表'; -- forge_admin_new.sys_flow_fill_batch definition CREATE TABLE `sys_flow_fill_batch` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `entry_id` bigint NOT NULL COMMENT '流程入口ID', `entry_code` varchar(128) NOT NULL COMMENT '入口编码', `batch_name` varchar(128) NOT NULL COMMENT '批次名称', `period_key` varchar(64) DEFAULT NULL COMMENT '周期标识', `target_scope` json DEFAULT NULL COMMENT '目标组织范围', `owner_rule` json DEFAULT NULL COMMENT '负责人规则', `deadline_time` datetime DEFAULT NULL COMMENT '截止时间', `allow_resubmit` tinyint NOT NULL DEFAULT '1' COMMENT '驳回后是否允许重新提交', `status` varchar(32) NOT NULL DEFAULT 'DRAFT' COMMENT '批次状态:DRAFT/PUBLISHED/CLOSED', `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_flow_fill_batch_entry` (`tenant_id`,`entry_code`,`status`,`deadline_time`), KEY `idx_flow_fill_batch_period` (`tenant_id`,`period_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程组织批量填报批次表'; -- forge_admin_new.sys_flow_fill_batch_item definition CREATE TABLE `sys_flow_fill_batch_item` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `batch_id` bigint NOT NULL COMMENT '批次ID', `entry_code` varchar(128) NOT NULL COMMENT '入口编码', `org_id` bigint NOT NULL COMMENT '组织ID', `org_name` varchar(128) DEFAULT NULL COMMENT '组织名称', `owner_user_id` bigint DEFAULT NULL COMMENT '负责人用户ID', `owner_user_name` varchar(100) DEFAULT NULL COMMENT '负责人姓名', `form_instance_id` bigint DEFAULT NULL COMMENT '表单实例ID', `object_code` varchar(64) DEFAULT NULL COMMENT '业务对象编码', `record_id` bigint DEFAULT NULL COMMENT '业务记录ID', `process_instance_id` varchar(128) DEFAULT NULL COMMENT '流程实例ID', `submit_status` varchar(32) NOT NULL DEFAULT 'PENDING' COMMENT '填报状态:PENDING/SUBMITTED/RETURNED/OVERDUE', `flow_status` varchar(32) DEFAULT NULL COMMENT '流程状态', `deadline_time` datetime DEFAULT NULL COMMENT '截止时间', `submit_time` datetime DEFAULT NULL COMMENT '提交时间', `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_fill_batch_org` (`tenant_id`,`batch_id`,`org_id`), KEY `idx_flow_fill_item_owner` (`tenant_id`,`owner_user_id`,`submit_status`), KEY `idx_flow_fill_item_process` (`tenant_id`,`process_instance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程组织批量填报明细表'; -- forge_admin_new.sys_flow_form definition CREATE TABLE `sys_flow_form` ( `id` bigint NOT NULL COMMENT '主键ID', `form_key` varchar(100) NOT NULL COMMENT '表单Key(唯一标识)', `form_name` varchar(200) NOT NULL COMMENT '表单名称', `form_category` varchar(64) DEFAULT NULL COMMENT '表单分类', `form_type` varchar(50) DEFAULT 'dynamic' COMMENT '表单类型(dynamic-动态表单/external-外部表单/builtin-内置表单)', `form_schema` text COMMENT '表单Schema(JSON格式)', `field_registry` json DEFAULT NULL COMMENT '字段目录快照', `form_url` varchar(500) DEFAULT NULL COMMENT '外部表单URL(formType为external时使用)', `component_path` varchar(200) DEFAULT NULL COMMENT '内置表单组件路径(formType为builtin时使用)', `form_config` text COMMENT '表单配置(JSON格式,包含校验规则、事件等)', `default_data_mode` varchar(32) NOT NULL DEFAULT 'PROCESS_ONLY' COMMENT '默认数据模式', `version` int DEFAULT '1' COMMENT '版本号', `status` tinyint DEFAULT '1' COMMENT '状态(0-禁用/1-启用)', `publish_status` tinyint NOT NULL DEFAULT '0' COMMENT '发布状态:0草稿 1已发布', `current_version_id` bigint DEFAULT NULL COMMENT '当前发布版本ID', `description` varchar(500) DEFAULT NULL COMMENT '描述', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `deleted` tinyint DEFAULT '0' COMMENT '删除标志(0-正常/1-删除)', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_form_tenant_key` (`tenant_id`,`form_key`), KEY `idx_form_key` (`form_key`), KEY `idx_form_name` (`form_name`), KEY `idx_status` (`status`), KEY `idx_tenant_id` (`tenant_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程表单定义表'; -- forge_admin_new.sys_flow_form_instance definition CREATE TABLE `sys_flow_form_instance` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `entry_id` bigint DEFAULT NULL COMMENT '流程入口ID', `entry_code` varchar(128) NOT NULL COMMENT '入口编码', `business_key` varchar(256) NOT NULL COMMENT '流程业务Key', `process_instance_id` varchar(128) DEFAULT NULL COMMENT '流程实例ID', `model_key` varchar(128) NOT NULL COMMENT '流程模型Key', `form_key` varchar(128) NOT NULL COMMENT '表单Key', `form_version_id` bigint NOT NULL COMMENT '表单版本ID', `form_version` int NOT NULL COMMENT '表单版本号', `schema_snapshot` longtext COMMENT '表单Schema快照', `field_registry` json DEFAULT NULL COMMENT '字段目录快照', `form_data` json DEFAULT NULL COMMENT '表单填报数据', `data_mode` varchar(32) NOT NULL DEFAULT 'PROCESS_ONLY' COMMENT '数据模式', `object_code` varchar(64) DEFAULT NULL COMMENT '业务对象编码', `record_id` bigint DEFAULT NULL COMMENT '业务记录ID', `title` varchar(256) DEFAULT NULL COMMENT '流程标题', `start_user_id` bigint DEFAULT NULL COMMENT '发起人ID', `start_user_name` varchar(100) DEFAULT NULL COMMENT '发起人姓名', `start_dept_id` bigint DEFAULT NULL COMMENT '发起部门ID', `start_dept_name` varchar(128) DEFAULT NULL COMMENT '发起部门名称', `status` varchar(32) NOT NULL DEFAULT 'RUNNING' COMMENT '状态:DRAFT/RUNNING/APPROVED/REJECTED/CANCELED/TERMINATED', `submit_time` datetime DEFAULT NULL COMMENT '提交时间', `end_time` datetime DEFAULT NULL COMMENT '结束时间', `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_form_instance_business` (`tenant_id`,`business_key`), KEY `idx_flow_form_instance_process` (`tenant_id`,`process_instance_id`), KEY `idx_flow_form_instance_entry` (`tenant_id`,`entry_code`,`status`,`create_time`), KEY `idx_flow_form_instance_record` (`tenant_id`,`object_code`,`record_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程表单填报实例表'; -- forge_admin_new.sys_flow_form_version definition CREATE TABLE `sys_flow_form_version` ( `id` bigint NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `form_id` bigint NOT NULL COMMENT '流程表单ID', `form_key` varchar(128) NOT NULL COMMENT '表单Key', `form_name` varchar(128) NOT NULL COMMENT '表单名称', `form_category` varchar(64) DEFAULT NULL COMMENT '表单分类', `form_type` varchar(32) NOT NULL DEFAULT 'dynamic' COMMENT '表单类型', `version` int NOT NULL COMMENT '版本号', `form_schema` longtext COMMENT '表单Schema快照', `field_registry` json DEFAULT NULL COMMENT '字段目录快照', `form_config` json DEFAULT NULL COMMENT '表单配置快照', `default_data_mode` varchar(32) NOT NULL DEFAULT 'PROCESS_ONLY' COMMENT '默认数据模式', `publish_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间', `publish_by` bigint DEFAULT NULL COMMENT '发布人ID', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新人', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_form_version` (`tenant_id`,`form_id`,`version`), KEY `idx_flow_form_version_key` (`tenant_id`,`form_key`,`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程表单发布版本表'; -- forge_admin_new.sys_flow_model definition CREATE TABLE `sys_flow_model` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `model_key` varchar(100) NOT NULL COMMENT '模型标识', `model_name` varchar(200) NOT NULL COMMENT '模型名称', `description` varchar(500) DEFAULT NULL COMMENT '描述', `category` varchar(100) DEFAULT NULL COMMENT '分类', `flow_type` varchar(50) DEFAULT NULL COMMENT '流程类型(leave-请假/expense-报销/approval-审批)', `designer_type` varchar(32) NOT NULL DEFAULT 'approval' COMMENT '设计器类型:approval-审批流程/business-业务流程', `form_type` varchar(50) DEFAULT 'dynamic' COMMENT '表单类型(dynamic-动态表单/custom-业务表单)', `form_id` varchar(64) DEFAULT NULL COMMENT '表单ID(业务表单时使用)', `form_json` text COMMENT '动态表单JSON配置', `version` int DEFAULT '1' COMMENT '版本号', `process_definition_id` varchar(64) DEFAULT NULL COMMENT 'Flowable流程定义ID', `deployment_id` varchar(64) DEFAULT NULL COMMENT 'Flowable部署ID', `deployment_key` varchar(100) DEFAULT NULL COMMENT '部署KEY(发布后生成)', `status` tinyint DEFAULT '0' COMMENT '状态(0-设计/1-已发布/2-禁用)', `importance_level` int NOT NULL DEFAULT '1' COMMENT '重要性等级(1-普通/2-重要)', `deploy_time` datetime DEFAULT NULL COMMENT '发布时间', `last_update_by` varchar(64) DEFAULT NULL COMMENT '最后修改人', `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint DEFAULT '0' COMMENT '删除标志(0-正常/1-删除)', `bpmn_xml` longtext, `notify_type` varchar(30) DEFAULT NULL COMMENT '事件通知方式:none-不通知 / redis-Redis Pub/Sub / webhook-HTTP Webhook(互斥)', `webhook_url` varchar(500) DEFAULT NULL COMMENT 'Webhook 回调地址,仅 notify_type=webhook 时生效', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_model_tenant_key` (`tenant_id`,`model_key`), KEY `idx_model_key` (`model_key`), KEY `idx_category` (`category`), KEY `idx_status` (`status`), KEY `idx_sys_flow_model_tenant` (`tenant_id`,`status`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程模型表'; -- forge_admin_new.sys_flow_model_version definition CREATE TABLE `sys_flow_model_version` ( `id` varchar(64) NOT NULL COMMENT '主键', `model_id` varchar(64) NOT NULL COMMENT '模型ID', `version` int NOT NULL COMMENT '版本号', `version_name` varchar(100) NOT NULL COMMENT '版本名称', `version_tag` varchar(20) NOT NULL DEFAULT 'draft' COMMENT '版本标记(draft/test/release/deprecated)', `bpmn_xml` text NOT NULL COMMENT 'BPMN XML', `form_json` text COMMENT '表单配置', `change_description` varchar(500) DEFAULT NULL COMMENT '变更说明', `deployment_id` varchar(64) DEFAULT NULL COMMENT '部署ID', `process_definition_id` varchar(64) DEFAULT NULL COMMENT '流程定义ID', `publish_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '发布人', `publish_time` datetime NOT NULL COMMENT '发布时间', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `del_flag` int NOT NULL DEFAULT '0' COMMENT '删除标志(0-正常/1-删除)', PRIMARY KEY (`id`), UNIQUE KEY `uk_model_version` (`model_id`,`version`), KEY `idx_model_id` (`model_id`), KEY `idx_sys_flow_model_version_tenant` (`tenant_id`,`model_id`,`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程模型版本历史表'; -- forge_admin_new.sys_flow_node_config definition CREATE TABLE `sys_flow_node_config` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `model_id` varchar(64) NOT NULL COMMENT '流程模型ID', `node_id` varchar(100) NOT NULL COMMENT '节点ID', `node_name` varchar(200) DEFAULT NULL COMMENT '节点名称', `node_type` varchar(50) DEFAULT 'approval' COMMENT '节点类型', `assignee_type` varchar(50) DEFAULT NULL COMMENT '审批人类型(user/role/dept/post/expr)', `assignee_value` text COMMENT '审批人值', `assignee_expr` varchar(500) DEFAULT NULL COMMENT '审批人表达式', `multi_instance_type` varchar(50) DEFAULT 'none' COMMENT '会签类型(none/sequential/parallel)', `completion_condition` varchar(500) DEFAULT NULL COMMENT '完成条件', `pass_rate` decimal(5,2) DEFAULT NULL COMMENT '通过比例', `due_date_days` int DEFAULT NULL COMMENT '超时天数', `due_date_hours` int DEFAULT NULL COMMENT '超时小时数', `timeout_action` varchar(50) DEFAULT NULL COMMENT '超时动作(auto_pass/auto_reject/notify)', `allow_approve` tinyint DEFAULT '1' COMMENT '允许通过', `allow_delegate` tinyint DEFAULT '1' COMMENT '允许转办', `allow_transfer` tinyint DEFAULT '1' COMMENT '允许转交', `allow_add_sign` tinyint DEFAULT '0' COMMENT '允许加签', `allow_counter_sign` tinyint DEFAULT '0' COMMENT '允许减签', `allow_return` tinyint DEFAULT '0' COMMENT '允许退回上一审批节点', `allow_terminate` tinyint DEFAULT '0' COMMENT '允许终结流程', `require_signature` tinyint DEFAULT '0' COMMENT '办理时需要签名', `require_comment` tinyint DEFAULT '1' COMMENT '办理时需要审批意见', `form_permission` text COMMENT '表单字段权限配置JSON', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `timeout_notify_users` text, `allow_reject` varchar(10) DEFAULT NULL, `allow_reject_to_start` varchar(10) DEFAULT NULL, `allow_withdraw` varchar(10) DEFAULT NULL, `form_key` varchar(30) DEFAULT NULL, `priority` int DEFAULT NULL, `task_listeners` text, `ext_config` varchar(100) DEFAULT NULL, `status` varchar(10) DEFAULT NULL, `last_update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后修改人', `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '创建人', `del_flag` varchar(64) NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `update_by` varchar(20) DEFAULT NULL, `overdue_reminder_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否启用逾期提醒', `overdue_reminder_template_code` varchar(50) DEFAULT NULL COMMENT '逾期提醒消息模板编码', `overdue_reminder_channels` varchar(200) DEFAULT NULL COMMENT '逾期提醒推送渠道,逗号分隔', `overdue_reminder_repeat_mode` varchar(32) NOT NULL DEFAULT 'once' COMMENT '逾期提醒重复策略:once/interval', `overdue_reminder_interval_minutes` int NOT NULL DEFAULT '1440' COMMENT '重复提醒间隔分钟', `overdue_reminder_max_times` int NOT NULL DEFAULT '1' COMMENT '最大提醒次数', PRIMARY KEY (`id`), UNIQUE KEY `uk_model_node_active` (`model_id`,`node_id`,`del_flag`), KEY `idx_model_id` (`model_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='审批节点配置表'; -- forge_admin_new.sys_flow_overdue_reminder_record definition CREATE TABLE `sys_flow_overdue_reminder_record` ( `id` varchar(64) NOT NULL COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `task_id` varchar(64) NOT NULL COMMENT 'Flowable任务ID', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `process_def_key` varchar(100) DEFAULT NULL COMMENT '流程定义KEY', `task_def_key` varchar(100) DEFAULT NULL COMMENT '任务定义Key', `reminder_key` varchar(160) NOT NULL COMMENT '提醒批次键', `channel` varchar(20) NOT NULL COMMENT '推送渠道', `template_code` varchar(50) DEFAULT NULL COMMENT '消息模板编码', `receiver_user_ids` text COMMENT '接收人用户ID集合', `message_id` bigint DEFAULT NULL COMMENT '消息ID', `send_status` tinyint NOT NULL DEFAULT '0' COMMENT '发送状态:0-待发送/1-成功/2-失败', `send_time` datetime DEFAULT NULL COMMENT '发送时间', `error_message` varchar(1000) DEFAULT NULL COMMENT '失败原因', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_overdue_reminder` (`tenant_id`,`reminder_key`,`channel`), KEY `idx_flow_overdue_task` (`tenant_id`,`task_id`,`send_time`), KEY `idx_flow_overdue_status` (`tenant_id`,`send_status`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程任务逾期提醒记录'; -- forge_admin_new.sys_flow_spel_template definition CREATE TABLE `sys_flow_spel_template` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `template_name` varchar(100) NOT NULL COMMENT '模板名称', `template_code` varchar(50) NOT NULL COMMENT '模板编码', `expression` varchar(500) NOT NULL COMMENT 'SPEL表达式', `description` varchar(200) DEFAULT NULL COMMENT '描述说明', `category` varchar(50) DEFAULT 'general' COMMENT '分类:general/dept/role/region/custom', `example_params` varchar(500) DEFAULT NULL COMMENT '示例参数(JSON格式)', `status` int NOT NULL DEFAULT '1' COMMENT '状态:0-禁用,1-启用', `sort` int DEFAULT '100' COMMENT '排序', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `deleted` int DEFAULT '0' COMMENT '删除标志', PRIMARY KEY (`id`), UNIQUE KEY `uk_template_code` (`tenant_id`,`template_code`), KEY `idx_tenant_id` (`tenant_id`), KEY `idx_category` (`category`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程SPEL表达式模板'; -- forge_admin_new.sys_flow_statistics definition CREATE TABLE `sys_flow_statistics` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `process_def_key` varchar(100) NOT NULL COMMENT '流程定义KEY', `stat_date` date NOT NULL COMMENT '统计日期', `total_instances` int DEFAULT '0' COMMENT '总实例数', `running_instances` int DEFAULT '0' COMMENT '运行中实例数', `completed_instances` int DEFAULT '0' COMMENT '已完成实例数', `terminated_instances` int DEFAULT '0' COMMENT '已终止实例数', `avg_duration` bigint DEFAULT NULL COMMENT '平均耗时(毫秒)', `max_duration` bigint DEFAULT NULL COMMENT '最大耗时', `min_duration` bigint DEFAULT NULL COMMENT '最小耗时', `total_tasks` int DEFAULT '0' COMMENT '总任务数', `avg_task_duration` bigint DEFAULT NULL COMMENT '平均任务耗时', `timeout_tasks` int DEFAULT '0' COMMENT '超时任务数', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_statistics_tenant_date` (`tenant_id`,`process_def_key`,`stat_date`), KEY `idx_stat_date` (`stat_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程监控统计表'; -- forge_admin_new.sys_flow_task definition CREATE TABLE `sys_flow_task` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `task_id` varchar(64) DEFAULT NULL COMMENT 'Flowable任务ID', `task_name` varchar(200) DEFAULT NULL COMMENT '任务名称', `task_def_key` varchar(100) DEFAULT NULL COMMENT '任务定义Key', `task_def_id` varchar(100) DEFAULT NULL COMMENT '任务定义ID', `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例ID', `process_def_id` varchar(64) DEFAULT NULL COMMENT '流程定义ID', `process_def_key` varchar(100) DEFAULT NULL COMMENT '流程定义KEY', `business_key` varchar(100) DEFAULT NULL COMMENT '业务Key', `business_type` varchar(50) DEFAULT NULL COMMENT '业务类型', `title` varchar(200) NOT NULL COMMENT '任务标题', `assignee` varchar(64) DEFAULT NULL COMMENT '处理人(签收后)', `assignee_name` varchar(100) DEFAULT NULL COMMENT '处理人姓名', `candidate_users` varchar(1000) DEFAULT NULL COMMENT '候选人(逗号分隔)', `candidate_groups` varchar(1000) DEFAULT NULL COMMENT '候选组(逗号分隔)', `owner` varchar(64) DEFAULT NULL COMMENT '任务拥有人', `due_date` datetime DEFAULT NULL COMMENT '截止日期', `priority` int DEFAULT '50' COMMENT '优先级(0-100)', `status` tinyint DEFAULT '0' COMMENT '状态(0-待办/1-已签收/2-已通过/3-已驳回/4-已转办/5-已委派/6-已撤回)', `comment` text COMMENT '审批意见', `signature` text COMMENT '审批签名', `attachment_urls` text COMMENT '附件URL(逗号分隔)', `start_user_id` varchar(64) DEFAULT NULL COMMENT '流程发起人', `start_user_name` varchar(100) DEFAULT NULL COMMENT '发起人姓名', `start_dept_id` varchar(64) DEFAULT NULL COMMENT '发起部门ID', `start_dept_name` varchar(100) DEFAULT NULL COMMENT '发起部门名称', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `claim_time` datetime DEFAULT NULL COMMENT '签收时间', `complete_time` datetime DEFAULT NULL COMMENT '完成时间', `action_idempotency_key` varchar(128) DEFAULT NULL COMMENT '受控流程动作幂等键', `action_request_digest` varchar(71) DEFAULT NULL COMMENT '受控流程动作规范请求SHA-256摘要', `action_type` varchar(16) DEFAULT NULL COMMENT '受控流程动作类型APPROVE/REJECT', PRIMARY KEY (`id`), KEY `idx_task_id` (`task_id`), KEY `idx_process_instance_id` (`process_instance_id`), KEY `idx_assignee` (`assignee`), KEY `idx_status` (`status`), KEY `idx_create_time` (`create_time`), KEY `idx_sys_flow_task_tenant` (`tenant_id`,`status`,`create_time`), KEY `idx_flow_task_action_idempotency` (`tenant_id`,`action_idempotency_key`,`action_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程任务表'; -- forge_admin_new.sys_flow_template definition CREATE TABLE `sys_flow_template` ( `id` varchar(64) NOT NULL COMMENT '主键', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `template_key` varchar(100) NOT NULL COMMENT '模板标识', `template_name` varchar(200) NOT NULL COMMENT '模板名称', `category` varchar(50) DEFAULT NULL COMMENT '分类', `description` varchar(500) DEFAULT NULL COMMENT '描述', `icon` varchar(100) DEFAULT NULL COMMENT '图标', `form_type` varchar(50) DEFAULT NULL COMMENT '表单类型', `form_json` text COMMENT '表单JSON', `bpmn_xml` text COMMENT 'BPMN流程XML', `thumbnail` varchar(500) DEFAULT NULL COMMENT '缩略图', `variables` text COMMENT '流程变量定义(JSON)', `version` int DEFAULT '1' COMMENT '版本', `status` tinyint DEFAULT '1' COMMENT '状态(0-禁用/1-启用)', `usage_count` int DEFAULT '0' COMMENT '使用次数', `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志:0正常 1删除', `is_system` varchar(10) DEFAULT NULL, `sort_order` int DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uk_flow_template_tenant_key` (`tenant_id`,`template_key`), KEY `idx_template_key` (`template_key`), KEY `idx_category` (`category`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='流程模板表'; -- forge_admin_new.sys_id_sequence definition CREATE TABLE `sys_id_sequence` ( `biz_key` varchar(100) NOT NULL COMMENT '业务维度唯一键', `max_id` bigint NOT NULL DEFAULT '0' COMMENT '当前已分配的最大ID', `step` int NOT NULL DEFAULT '1000' COMMENT '步长', `version` int NOT NULL DEFAULT '0' COMMENT '版本(乐观锁)', `reset_policy` varchar(20) DEFAULT 'NONE' COMMENT '重置策略:NONE/DAILY/HOURLY', `seq_length` int DEFAULT '8' COMMENT '序列长度(左侧补零)', `prefix` varchar(50) DEFAULT NULL COMMENT '前缀', PRIMARY KEY (`biz_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='分布式ID序列配置表'; -- forge_admin_new.sys_job_api_idempotency definition CREATE TABLE `sys_job_api_idempotency` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `token_id` bigint NOT NULL COMMENT '服务账号Token ID', `job_config_id` bigint NOT NULL COMMENT '任务配置ID', `idempotency_key_hash` char(64) NOT NULL COMMENT '幂等键SHA-256 Hash', `execution_id` bigint NOT NULL COMMENT '预留执行记录ID', `expires_at` datetime NOT NULL COMMENT '幂等记录过期时间', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_job_api_idempotency_active` (`tenant_id`,`token_id`,`job_config_id`,`idempotency_key_hash`,`del_flag`), KEY `idx_job_api_idempotency_execution` (`execution_id`), KEY `idx_job_api_idempotency_expires_at` (`expires_at`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='定时任务开放API幂等记录'; -- forge_admin_new.sys_job_api_token definition CREATE TABLE `sys_job_api_token` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `caller_name` varchar(100) NOT NULL COMMENT '调用方名称', `caller_description` varchar(500) DEFAULT NULL COMMENT '调用方说明', `token_key_id` varchar(22) NOT NULL COMMENT 'Token不可猜测Key ID', `token_prefix` varchar(32) NOT NULL COMMENT 'Token展示前缀', `token_hash` char(64) NOT NULL COMMENT 'Token HMAC-SHA256 Hash', `scopes` varchar(255) NOT NULL COMMENT '空格分隔Scope', `resource_job_ids` json NOT NULL COMMENT '允许访问的任务ID JSON数组', `resource_job_groups` json NOT NULL COMMENT '允许访问的任务组 JSON数组', `status` varchar(20) NOT NULL DEFAULT 'ACTIVE' COMMENT '状态:ACTIVE/REVOKED', `issued_at` datetime NOT NULL COMMENT '签发时间', `expires_at` datetime NOT NULL COMMENT '过期时间', `last_used_at` datetime DEFAULT NULL COMMENT '最后使用时间', `revoked_at` datetime DEFAULT NULL COMMENT '吊销时间', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_job_api_token_key_active` (`token_key_id`,`del_flag`), KEY `idx_job_api_token_tenant_status` (`tenant_id`,`status`,`del_flag`), KEY `idx_job_api_token_expires_at` (`expires_at`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='定时任务开放API服务账号Token'; -- forge_admin_new.sys_job_config definition CREATE TABLE `sys_job_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `job_name` varchar(200) NOT NULL COMMENT '任务名称', `job_group` varchar(200) NOT NULL DEFAULT 'DEFAULT' COMMENT '任务分组', `description` varchar(500) DEFAULT NULL COMMENT '任务描述', `executor_bean` varchar(200) DEFAULT NULL COMMENT '执行器Bean名称', `executor_method` varchar(200) DEFAULT NULL COMMENT '执行器方法名', `executor_handler` varchar(200) DEFAULT NULL COMMENT '执行器Handler', `executor_service` varchar(200) DEFAULT NULL COMMENT '执行器服务名(RPC模式)', `schedule_type` varchar(20) NOT NULL DEFAULT 'CRON' COMMENT '调度类型:CRON/ONCE', `cron_expression` varchar(100) DEFAULT NULL COMMENT 'Cron表达式', `fire_once_time` datetime DEFAULT NULL COMMENT '一次性任务本地触发时间', `timezone` varchar(64) NOT NULL DEFAULT 'Asia/Shanghai' COMMENT 'IANA时区', `job_param` text COMMENT '任务参数', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0-停止 1-运行', `execute_mode` varchar(20) NOT NULL DEFAULT 'HANDLER' COMMENT '执行模式:BEAN/HANDLER', `invoke_mode` varchar(16) NOT NULL DEFAULT 'SINGLE' COMMENT '调用方式:SINGLE/FLOW', `flow_model_key` varchar(100) DEFAULT NULL COMMENT '已发布流程模型Key', `flow_model_version` int DEFAULT NULL COMMENT '保存时固定的流程模型版本', `flow_deployment_id` varchar(64) DEFAULT NULL COMMENT '保存时固定的Flowable部署ID', `flow_process_definition_id` varchar(64) DEFAULT NULL COMMENT '保存时固定的Flowable流程定义ID', `concurrent_policy` varchar(32) NOT NULL DEFAULT 'ALLOW' COMMENT '并发策略:ALLOW/SKIP_IF_RUNNING', `misfire_policy` varchar(32) NOT NULL DEFAULT 'DO_NOTHING' COMMENT '错过触发策略:FIRE_ONCE_NOW/DO_NOTHING', `idempotent_flag` tinyint NOT NULL DEFAULT '0' COMMENT '是否允许幂等重试:0否 1是', `retry_count` int DEFAULT '0' COMMENT '失败重试次数', `consecutive_failures` int NOT NULL DEFAULT '0' COMMENT '连续失败次数', `last_completion_time` datetime DEFAULT NULL COMMENT '最近推进失败统计的执行完成时间', `last_completion_execution_id` bigint DEFAULT NULL COMMENT '最近推进失败统计的执行ID', `alarm_enabled` tinyint NOT NULL DEFAULT '0' COMMENT '是否启用失败告警:0否 1是', `alarm_channels` varchar(64) DEFAULT NULL COMMENT '失败告警渠道:WEB,EMAIL', `alarm_recipient_user_ids` varchar(2000) DEFAULT NULL COMMENT '站内信接收用户ID,逗号分隔', `alarm_email` varchar(500) DEFAULT NULL COMMENT '告警邮箱', `webhook_url` varchar(500) DEFAULT NULL COMMENT 'WebHook地址', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', `sync_status` varchar(20) NOT NULL DEFAULT 'PENDING' COMMENT 'Quartz同步状态', `sync_error` varchar(1000) DEFAULT NULL COMMENT '最近一次Quartz同步错误', `sync_time` datetime DEFAULT NULL COMMENT '最近一次Quartz同步时间', `version` int NOT NULL DEFAULT '0' COMMENT '乐观锁版本号', PRIMARY KEY (`id`), UNIQUE KEY `uk_job_name_group_active` (`job_name`,`job_group`,`del_flag`), KEY `idx_job_sync_status_del` (`sync_status`,`del_flag`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务配置表'; -- forge_admin_new.sys_job_log definition CREATE TABLE `sys_job_log` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `job_name` varchar(200) NOT NULL COMMENT '任务名称', `job_group` varchar(200) NOT NULL COMMENT '任务分组', `executor_handler` varchar(200) DEFAULT NULL COMMENT '执行器Handler', `job_param` text COMMENT '任务参数', `trigger_time` datetime DEFAULT NULL COMMENT '触发时间', `start_time` datetime DEFAULT NULL COMMENT '开始时间', `heartbeat_time` datetime DEFAULT NULL COMMENT '运行中任务最近心跳时间', `end_time` datetime DEFAULT NULL COMMENT '结束时间', `duration` bigint DEFAULT NULL COMMENT '执行耗时(ms)', `status` tinyint NOT NULL COMMENT '状态:1-成功 0-失败', `result` text COMMENT '执行结果', `exception_msg` text COMMENT '异常信息', `retry_count` int DEFAULT '0' COMMENT '重试次数', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', `job_config_id` bigint DEFAULT NULL COMMENT '任务配置ID', `trigger_type` varchar(20) NOT NULL DEFAULT 'UNKNOWN' COMMENT '触发类型', `scheduled_fire_time` datetime DEFAULT NULL COMMENT 'Quartz原计划触发时间', `fire_instance_id` varchar(200) DEFAULT NULL COMMENT 'Quartz执行实例ID', `process_instance_id` varchar(64) DEFAULT NULL COMMENT 'Flowable流程实例ID', PRIMARY KEY (`id`), KEY `idx_job_name` (`job_name`), KEY `idx_trigger_time` (`trigger_time`), KEY `idx_status` (`status`), KEY `idx_job_log_config_trigger` (`job_config_id`,`trigger_time`), KEY `idx_job_log_observability` (`job_config_id`,`status`,`trigger_type`,`trigger_time`), KEY `idx_job_log_process_instance` (`process_instance_id`,`del_flag`), KEY `idx_job_log_recovery` (`status`,`heartbeat_time`,`trigger_time`,`del_flag`) ) ENGINE=InnoDB AUTO_INCREMENT=14800 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务执行日志表'; -- forge_admin_new.sys_login_log definition CREATE TABLE `sys_login_log` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志ID', `tenant_id` bigint DEFAULT '0' COMMENT '租户编号', `user_id` bigint DEFAULT NULL COMMENT '用户ID', `username` varchar(50) DEFAULT NULL COMMENT '用户名', `login_type` varchar(50) DEFAULT NULL COMMENT '登录类型(LOGIN/LOGOUT/REGISTER)', `login_status` tinyint DEFAULT '1' COMMENT '登录状态(0-失败,1-成功)', `login_ip` varchar(50) DEFAULT NULL COMMENT '登录IP', `login_location` varchar(255) DEFAULT NULL COMMENT '登录地点', `browser` varchar(100) DEFAULT NULL COMMENT '浏览器', `os` varchar(100) DEFAULT NULL COMMENT '操作系统', `user_agent` varchar(500) DEFAULT NULL COMMENT '用户代理', `login_message` varchar(500) DEFAULT NULL COMMENT '登录信息', `login_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间', `client_code` varchar(50) DEFAULT 'pc' COMMENT '客户端代码:pc/app', PRIMARY KEY (`id`), KEY `idx_tenant_user` (`tenant_id`,`user_id`), KEY `idx_login_time` (`login_time`), KEY `idx_login_status` (`login_status`) ) ENGINE=InnoDB AUTO_INCREMENT=11562 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='登录日志表'; -- forge_admin_new.sys_message definition CREATE TABLE `sys_message` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `title` varchar(200) NOT NULL COMMENT '消息标题', `content` text NOT NULL COMMENT '消息内容', `type` varchar(20) NOT NULL DEFAULT 'SYSTEM' COMMENT '消息类型:SYSTEM-系统消息/SMS-短信/EMAIL-邮件/CUSTOM-自定义', `send_scope` varchar(20) NOT NULL DEFAULT 'USERS' COMMENT '发送范围:ALL-全员/ORG-指定组织/USERS-指定人员', `send_channel` varchar(20) NOT NULL DEFAULT 'WEB' COMMENT '发送渠道:WEB-站内信/SMS-短信/EMAIL-邮件/PUSH-推送', `status` tinyint NOT NULL DEFAULT '0' COMMENT '消息状态:0-草稿/1-已发送/2-发送失败', `sender_id` bigint DEFAULT NULL COMMENT '发送人ID', `sender_name` varchar(100) DEFAULT NULL COMMENT '发送人姓名', `template_code` varchar(50) DEFAULT NULL COMMENT '模板编码', `template_params` json DEFAULT NULL COMMENT '模板参数JSON', `biz_type` varchar(50) DEFAULT NULL COMMENT '业务类型(如:ORDER、APPROVAL、TASK等)', `biz_key` varchar(100) DEFAULT NULL COMMENT '业务主键(如:订单ID、流程实例ID等)', `connection_id` bigint DEFAULT NULL COMMENT '企业协同连接ID(COLLABORATION渠道使用)', `idempotency_key` varchar(128) DEFAULT NULL COMMENT '确定性消息幂等键(相同键并发只创建一份逻辑消息)', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', PRIMARY KEY (`id`), UNIQUE KEY `uk_message_idempotency` (`tenant_id`,`idempotency_key`), KEY `idx_tenant_type` (`tenant_id`,`type`), KEY `idx_status` (`status`), KEY `idx_create_time` (`create_time`), KEY `idx_biz` (`biz_type`,`biz_key`) ) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统消息主表'; -- forge_admin_new.sys_message_biz_type definition CREATE TABLE `sys_message_biz_type` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `biz_type` varchar(50) NOT NULL COMMENT '业务类型编码', `biz_name` varchar(100) NOT NULL COMMENT '业务类型名称', `jump_url` varchar(500) DEFAULT NULL COMMENT '跳转URL模板,支持变量:${bizKey}、${messageId}', `jump_target` varchar(20) DEFAULT '_self' COMMENT '跳转方式:_self-当前页/_blank-新窗口', `icon` varchar(100) DEFAULT NULL COMMENT '图标', `sort` int DEFAULT '0' COMMENT '排序', `enabled` tinyint NOT NULL DEFAULT '1' COMMENT '是否启用:0-禁用/1-启用', `remark` varchar(500) DEFAULT NULL COMMENT '备注说明', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_type_active` (`tenant_id`,`biz_type`,`del_flag`), KEY `idx_enabled` (`enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='消息业务类型配置表'; -- forge_admin_new.sys_message_receiver definition CREATE TABLE `sys_message_receiver` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `message_id` bigint NOT NULL COMMENT '消息ID', `user_id` bigint NOT NULL COMMENT '接收人用户ID', `org_id` bigint DEFAULT NULL COMMENT '接收人所属组织ID', `read_flag` tinyint NOT NULL DEFAULT '0' COMMENT '已读标记:0-未读/1-已读', `read_time` datetime DEFAULT NULL COMMENT '阅读时间', `delivery_status` varchar(32) DEFAULT NULL COMMENT '外部渠道投递状态:PENDING/SENT/FAILED/SKIPPED(站内信为NULL)', `delivery_attempts` int NOT NULL DEFAULT '0' COMMENT '投递尝试次数', `external_id` varchar(200) DEFAULT NULL COMMENT '外部渠道逐人消息ID', `last_error_code` varchar(64) DEFAULT NULL COMMENT '最近失败错误码', `last_attempt_time` datetime DEFAULT NULL COMMENT '最近投递尝试时间', `next_retry_time` datetime DEFAULT NULL COMMENT '下次补偿重试时间', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_message_user` (`message_id`,`user_id`), KEY `idx_user_read` (`user_id`,`read_flag`), KEY `idx_tenant_user` (`tenant_id`,`user_id`), KEY `idx_receiver_delivery_retry` (`delivery_status`,`next_retry_time`) ) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='消息接收人表'; -- forge_admin_new.sys_message_send_record definition CREATE TABLE `sys_message_send_record` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `message_id` bigint NOT NULL COMMENT '消息ID', `channel` varchar(20) NOT NULL COMMENT '发送渠道:WEB/SMS/EMAIL/PUSH/COLLABORATION', `connection_id` bigint DEFAULT NULL COMMENT '企业协同连接ID', `idempotency_key` varchar(128) DEFAULT NULL COMMENT '本次渠道投递幂等键', `attempt_no` int NOT NULL DEFAULT '1' COMMENT '第几次尝试', `provider_request_id` varchar(128) DEFAULT NULL COMMENT '供应商请求ID(用于排障,不含敏感内容)', `receiver_count` int DEFAULT '0' COMMENT '接收人数量', `success_count` int DEFAULT '0' COMMENT '发送成功数量', `fail_count` int DEFAULT '0' COMMENT '发送失败数量', `external_id` varchar(100) DEFAULT NULL COMMENT '第三方渠道返回的消息ID', `status` tinyint NOT NULL DEFAULT '0' COMMENT '发送状态:0-发送中/1-成功/2-失败', `error_msg` text COMMENT '错误信息', `send_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发送时间', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_message_id` (`message_id`), KEY `idx_send_time` (`send_time`), KEY `idx_send_record_idempotency` (`tenant_id`,`idempotency_key`) ) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='消息发送记录表'; -- forge_admin_new.sys_message_template definition CREATE TABLE `sys_message_template` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `template_code` varchar(50) NOT NULL COMMENT '模板编码(唯一)', `template_name` varchar(100) NOT NULL COMMENT '模板名称', `type` varchar(20) NOT NULL DEFAULT 'SYSTEM' COMMENT '消息类型:SYSTEM/SMS/EMAIL/CUSTOM', `title_template` varchar(200) DEFAULT NULL COMMENT '标题模板(支持${变量}占位符)', `content_template` text NOT NULL COMMENT '内容模板(支持${变量}占位符)', `default_channel` varchar(20) DEFAULT 'WEB' COMMENT '默认发送渠道', `enabled` tinyint NOT NULL DEFAULT '1' COMMENT '是否启用:0-禁用/1-启用', `remark` varchar(500) DEFAULT NULL COMMENT '备注说明', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_code_active` (`tenant_id`,`template_code`,`del_flag`), KEY `idx_type` (`type`), KEY `idx_enabled` (`enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=1910000000000005108 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='消息模板表'; -- forge_admin_new.sys_notice definition CREATE TABLE `sys_notice` ( `notice_id` bigint NOT NULL AUTO_INCREMENT COMMENT '公告ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `notice_title` varchar(200) NOT NULL COMMENT '公告标题', `notice_content` text NOT NULL COMMENT '公告内容', `notice_type` varchar(20) NOT NULL DEFAULT 'NOTICE' COMMENT '公告类型:NOTICE-通知公告/ANNOUNCEMENT-系统公告/NEWS-新闻动态', `publish_status` tinyint NOT NULL DEFAULT '0' COMMENT '发布状态:0-草稿/1-已发布/2-已撤回', `publish_time` datetime DEFAULT NULL COMMENT '发布时间', `publisher_id` bigint DEFAULT NULL COMMENT '发布人ID', `publisher_name` varchar(100) DEFAULT NULL COMMENT '发布人姓名', `publish_scope` tinyint NOT NULL DEFAULT '0' COMMENT '发布范围:0-全部组织/1-指定组织', `effective_time` datetime DEFAULT NULL COMMENT '生效时间', `expiration_time` datetime DEFAULT NULL COMMENT '失效时间', `is_top` tinyint NOT NULL DEFAULT '0' COMMENT '是否置顶:0-否/1-是', `top_sort` int DEFAULT '0' COMMENT '置顶排序(数字越大越靠前)', `attachment_ids` varchar(500) DEFAULT NULL COMMENT '附件ID列表(多个附件ID用逗号分隔,关联sys_file_metadata表)', `read_count` int DEFAULT '0' COMMENT '阅读次数', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` tinyint NOT NULL DEFAULT '0' COMMENT '删除标志(0正常 1删除)', PRIMARY KEY (`notice_id`), KEY `idx_tenant_id` (`tenant_id`), KEY `idx_publish_status` (`publish_status`), KEY `idx_notice_type` (`notice_type`), KEY `idx_effective_time` (`effective_time`), KEY `idx_expiration_time` (`expiration_time`), KEY `idx_is_top_sort` (`is_top`,`top_sort`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知公告表'; -- forge_admin_new.sys_notice_org definition CREATE TABLE `sys_notice_org` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `notice_id` bigint NOT NULL COMMENT '公告ID', `org_id` bigint NOT NULL COMMENT '组织ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_notice_id` (`notice_id`), KEY `idx_org_id` (`org_id`), KEY `idx_sys_notice_org_tenant` (`tenant_id`,`notice_id`,`org_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知公告组织关联表'; -- forge_admin_new.sys_notice_read_record definition CREATE TABLE `sys_notice_read_record` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户ID', `notice_id` bigint NOT NULL COMMENT '公告ID', `user_id` bigint NOT NULL COMMENT '用户ID', `user_name` varchar(100) DEFAULT NULL COMMENT '用户姓名', `org_id` bigint DEFAULT NULL COMMENT '用户所属组织ID', `org_name` varchar(100) DEFAULT NULL COMMENT '用户所属组织名称', `read_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '阅读时间', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_notice_user` (`notice_id`,`user_id`), KEY `idx_notice_id` (`notice_id`), KEY `idx_user_id` (`user_id`), KEY `idx_sys_notice_read_tenant` (`tenant_id`,`notice_id`,`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知公告已读记录表'; -- forge_admin_new.sys_operation_log definition CREATE TABLE `sys_operation_log` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志ID', `tenant_id` bigint DEFAULT '0' COMMENT '租户编号', `user_id` bigint DEFAULT NULL COMMENT '操作用户ID', `username` varchar(50) DEFAULT NULL COMMENT '操作用户名', `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名', `operation_module` varchar(100) DEFAULT NULL COMMENT '操作模块', `operation_type` varchar(50) DEFAULT NULL COMMENT '操作类型(ADD/UPDATE/DELETE/QUERY/EXPORT/IMPORT)', `operation_desc` varchar(500) DEFAULT NULL COMMENT '操作描述', `operation_page` varchar(500) DEFAULT NULL COMMENT '操作页面路径', `operation_page_title` varchar(200) DEFAULT NULL COMMENT '操作页面标题', `operation_content` varchar(1000) DEFAULT NULL COMMENT '操作内容', `request_method` varchar(10) DEFAULT NULL COMMENT '请求方式(GET/POST/PUT/DELETE)', `request_url` varchar(500) DEFAULT NULL COMMENT '请求URL', `request_params` text COMMENT '请求参数', `response_result` text COMMENT '响应结果', `before_data` mediumtext COMMENT '操作前数据', `after_data` mediumtext COMMENT '操作后数据', `diff_data` mediumtext COMMENT '操作数据差异', `error_msg` text COMMENT '错误信息', `operation_status` tinyint DEFAULT '1' COMMENT '操作状态(0-失败,1-成功)', `operation_ip` varchar(50) DEFAULT NULL COMMENT '操作IP', `operation_location` varchar(255) DEFAULT NULL COMMENT '操作地点', `user_agent` varchar(500) DEFAULT NULL COMMENT '用户代理', `execute_time` bigint DEFAULT '0' COMMENT '执行时长(毫秒)', `operation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', PRIMARY KEY (`id`), KEY `idx_tenant_user` (`tenant_id`,`user_id`), KEY `idx_operation_time` (`operation_time`), KEY `idx_operation_status` (`operation_status`), KEY `idx_request_url` (`request_url`(255)), KEY `idx_operation_page_time` (`operation_page`(191),`operation_time`), KEY `idx_operator_name` (`operator_name`) ) ENGINE=InnoDB AUTO_INCREMENT=58126 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='操作日志表'; -- forge_admin_new.sys_org definition CREATE TABLE `sys_org` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '组织ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `org_code` varchar(100) DEFAULT NULL COMMENT '组织编码', `org_parent_code` varchar(100) DEFAULT NULL COMMENT '父级组织编码', `org_name` varchar(100) NOT NULL COMMENT '组织名称', `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父级组织ID(0为顶级)', `ancestors` varchar(500) DEFAULT NULL COMMENT '祖级编码(逗号分隔,如:1,2,3)', `sort` int DEFAULT '0' COMMENT '排序(值越小越靠前)', `org_type` varchar(64) DEFAULT '1' COMMENT '组织类型(sys_org_type 字典值)', `org_status` tinyint NOT NULL DEFAULT '1' COMMENT '组织状态(0-禁用,1-正常)', `leader_id` bigint DEFAULT NULL COMMENT '负责人ID(关联sys_user.id)', `leader_name` varchar(50) DEFAULT NULL COMMENT '负责人姓名', `phone` varchar(20) DEFAULT NULL COMMENT '组织联系电话', `address` varchar(255) DEFAULT NULL COMMENT '组织地址', `region_code` varchar(30) DEFAULT NULL COMMENT '行政区划编码', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_org_name_active` (`tenant_id`,`org_name`,`del_flag`), KEY `idx_tenant_parent` (`tenant_id`,`parent_id`), KEY `idx_org_status` (`org_status`), KEY `idx_ancestors` (`ancestors`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='组织表'; -- forge_admin_new.sys_outbound_whitelist definition CREATE TABLE `sys_outbound_whitelist` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `scene` varchar(32) NOT NULL COMMENT '出站场景:JOB_WEBHOOK/JOB_RPC/FLOW_API', `protocol` varchar(8) NOT NULL COMMENT '协议:http/https', `host` varchar(253) NOT NULL COMMENT '规范化精确主机名或IP', `port_start` int NOT NULL COMMENT '允许端口起始值', `port_end` int NOT NULL COMMENT '允许端口结束值', `allow_private` tinyint NOT NULL DEFAULT '0' COMMENT '是否允许RFC1918或ULA私网:0否 1是', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0停用 1启用', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_outbound_whitelist_active` (`tenant_id`,`scene`,`protocol`,`host`,`port_start`,`port_end`,`del_flag`), KEY `idx_outbound_whitelist_match` (`tenant_id`,`scene`,`protocol`,`host`,`status`,`del_flag`), CONSTRAINT `chk_outbound_port_range` CHECK (((`port_start` between 1 and 65535) and (`port_end` between `port_start` and 65535))), CONSTRAINT `chk_outbound_private_scene` CHECK (((`allow_private` = 0) or (`scene` in (_utf8mb4'FLOW_API',_utf8mb4'JOB_RPC')))) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='平台受控出站白名单'; -- forge_admin_new.sys_post definition CREATE TABLE `sys_post` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `post_code` varchar(50) NOT NULL COMMENT '岗位编码(租户内唯一)', `org_id` bigint NOT NULL COMMENT '所属组织ID(关联sys_org.id)', `post_name` varchar(100) NOT NULL COMMENT '岗位名称', `post_status` tinyint NOT NULL DEFAULT '1' COMMENT '岗位状态(0-禁用,1-正常)', `post_type` tinyint DEFAULT '1' COMMENT '岗位类型(1-管理岗,2-技术岗,3-业务岗,4-其他)', `sort` int DEFAULT '0' COMMENT '排序(值越小越靠前)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_org_post_active` (`tenant_id`,`org_id`,`post_name`,`del_flag`), UNIQUE KEY `uk_tenant_post_code_active` (`tenant_id`,`post_code`,`del_flag`), KEY `idx_tenant_org` (`tenant_id`,`org_id`), KEY `idx_post_status` (`post_status`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='岗位表'; -- forge_admin_new.sys_region_code definition CREATE TABLE `sys_region_code` ( `code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '行政区划代码', `name` varchar(100) NOT NULL COMMENT '行政区划名称', `level` tinyint NOT NULL COMMENT '行政级别(1-省,2-市,3-区/县,4-街道)', `parent_code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '父级代码', `full_name` varchar(200) DEFAULT NULL COMMENT '全名', `city_code` varchar(20) DEFAULT NULL COMMENT '地市编码', PRIMARY KEY (`code`), KEY `idx_parent_code` (`parent_code`), KEY `sys_region_code_name_IDX` (`name`) USING BTREE, KEY `idx_parent_level` (`parent_code`,`level`), KEY `idx_code_level` (`code`,`level`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- forge_admin_new.sys_resource definition CREATE TABLE `sys_resource` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '资源ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `resource_name` varchar(100) NOT NULL COMMENT '资源名称', `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父级资源ID(0为顶级)', `resource_type` tinyint NOT NULL COMMENT '资源类型(1-目录,2-菜单,3-按钮,4-API接口)', `sort` int DEFAULT '0' COMMENT '排序(值越小越靠前)', `path` varchar(255) DEFAULT NULL COMMENT '资源路由(菜单/目录用)', `component` varchar(255) DEFAULT NULL COMMENT '前端组件路径(菜单用)', `is_external` tinyint DEFAULT '0' COMMENT '是否外链(0-否,1-是)', `sso_enabled` tinyint DEFAULT '0' COMMENT '是否启用SSO(0-否,1-是)', `sso_target_client` varchar(64) DEFAULT NULL COMMENT 'SSO目标客户端编码', `open_target` varchar(20) DEFAULT '_self' COMMENT '打开方式:_self-当前页/_blank-新窗口', `is_public` tinyint DEFAULT '0' COMMENT '是否公开资源(0-否,1-是,公开资源无需权限验证)', `menu_status` tinyint DEFAULT '1' COMMENT '菜单状态(0-隐藏,1-显示,仅菜单/目录用)', `visible` tinyint DEFAULT '1' COMMENT '显示状态(0-隐藏,1-显示,所有资源通用)', `perms` varchar(100) DEFAULT NULL COMMENT '权限标识(如:sys:user:list,按钮/API用)', `icon` varchar(100) DEFAULT NULL COMMENT '图标(菜单/目录用)', `api_method` varchar(10) DEFAULT NULL COMMENT 'API请求方法(GET/POST/PUT/DELETE,仅API用)', `api_url` varchar(255) DEFAULT NULL COMMENT 'API接口地址(仅API用)', `keep_alive` tinyint DEFAULT '0' COMMENT '是否缓存(0-否,1-是,菜单用)', `always_show` tinyint DEFAULT '0' COMMENT '是否总是显示(0-否,1-是,菜单用)', `redirect` varchar(255) DEFAULT NULL COMMENT '重定向地址(菜单用)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `client_code` varchar(50) DEFAULT 'pc' COMMENT '客户端代码:pc/app', `min_user_type` int NOT NULL DEFAULT '2' COMMENT '最低可访问用户类型(0-系统管理员,1-租户管理员,2-普通用户)', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_resource_active` (`tenant_id`,`resource_type`,`perms`,`del_flag`), KEY `idx_tenant_parent` (`tenant_id`,`parent_id`), KEY `idx_resource_type` (`resource_type`), KEY `idx_api_url_method` (`api_url`,`api_method`) COMMENT 'API查询优化', KEY `idx_resource_menu_tree` (`client_code`,`del_flag`,`sort`,`create_time` DESC) ) ENGINE=InnoDB AUTO_INCREMENT=9617 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统资源表(菜单/按钮/API)'; -- forge_admin_new.sys_resource_0607 definition CREATE TABLE `sys_resource_0607` ( `id` bigint NOT NULL DEFAULT '0' COMMENT '资源ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `resource_name` varchar(100) NOT NULL COMMENT '资源名称', `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父级资源ID(0为顶级)', `resource_type` tinyint NOT NULL COMMENT '资源类型(1-目录,2-菜单,3-按钮,4-API接口)', `sort` int DEFAULT '0' COMMENT '排序(值越小越靠前)', `path` varchar(255) DEFAULT NULL COMMENT '资源路由(菜单/目录用)', `component` varchar(255) DEFAULT NULL COMMENT '前端组件路径(菜单用)', `is_external` tinyint DEFAULT '0' COMMENT '是否外链(0-否,1-是)', `sso_enabled` tinyint DEFAULT '0' COMMENT '是否启用SSO(0-否,1-是)', `sso_target_client` varchar(64) DEFAULT NULL COMMENT 'SSO目标客户端编码', `open_target` varchar(20) DEFAULT '_self' COMMENT '打开方式:_self-当前页/_blank-新窗口', `is_public` tinyint DEFAULT '0' COMMENT '是否公开资源(0-否,1-是,公开资源无需权限验证)', `menu_status` tinyint DEFAULT '1' COMMENT '菜单状态(0-隐藏,1-显示,仅菜单/目录用)', `visible` tinyint DEFAULT '1' COMMENT '显示状态(0-隐藏,1-显示,所有资源通用)', `perms` varchar(100) DEFAULT NULL COMMENT '权限标识(如:sys:user:list,按钮/API用)', `icon` varchar(100) DEFAULT NULL COMMENT '图标(菜单/目录用)', `api_method` varchar(10) DEFAULT NULL COMMENT 'API请求方法(GET/POST/PUT/DELETE,仅API用)', `api_url` varchar(255) DEFAULT NULL COMMENT 'API接口地址(仅API用)', `keep_alive` tinyint DEFAULT '0' COMMENT '是否缓存(0-否,1-是,菜单用)', `always_show` tinyint DEFAULT '0' COMMENT '是否总是显示(0-否,1-是,菜单用)', `redirect` varchar(255) DEFAULT NULL COMMENT '重定向地址(菜单用)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `client_code` varchar(50) DEFAULT 'pc' COMMENT '客户端代码:pc/app' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- forge_admin_new.sys_role definition CREATE TABLE `sys_role` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `role_name` varchar(50) NOT NULL COMMENT '角色名称(租户内唯一)', `role_key` varchar(100) NOT NULL COMMENT '角色权限字符串(如:admin,user:view)', `role_type` int DEFAULT '1' COMMENT '角色类型(1-管理角色,2-业务角色,3-审批角色,4-数据角色)', `org_scope_type` tinyint NOT NULL DEFAULT '1' COMMENT '组织适用范围类型(1租户全局 2指定组织)', `data_scope` tinyint DEFAULT '1' COMMENT '权限范围(1-全部数据,2-本租户数据,3-本组织数据,4-本组织及子组织,5-个人数据)', `sort` int DEFAULT '0' COMMENT '排序(值越小越靠前)', `role_status` tinyint NOT NULL DEFAULT '1' COMMENT '角色状态(0-禁用,1-正常)', `is_system` tinyint DEFAULT '0' COMMENT '是否系统内置角色(0-否,1-是)', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_role_key_active` (`tenant_id`,`role_key`,`del_flag`), UNIQUE KEY `uk_tenant_role_name_active` (`tenant_id`,`role_name`,`del_flag`), KEY `idx_tenant_status` (`tenant_id`,`role_status`), KEY `idx_data_scope` (`data_scope`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色表'; -- forge_admin_new.sys_role_data_scope definition CREATE TABLE `sys_role_data_scope` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `role_id` bigint NOT NULL COMMENT '角色ID', `org_id` bigint NOT NULL COMMENT '组织ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_role_org` (`tenant_id`,`role_id`,`org_id`), KEY `idx_role_id` (`role_id`), KEY `idx_org_id` (`org_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色-自定义数据权限关联表'; -- forge_admin_new.sys_role_org definition CREATE TABLE `sys_role_org` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `role_id` bigint NOT NULL COMMENT '角色ID', `org_id` bigint NOT NULL COMMENT '组织ID', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_role_org` (`tenant_id`,`role_id`,`org_id`), KEY `idx_org_role` (`tenant_id`,`org_id`,`role_id`), KEY `idx_role_id` (`role_id`), KEY `idx_org_id` (`org_id`) ) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色适用组织范围表'; -- forge_admin_new.sys_role_resource definition CREATE TABLE `sys_role_resource` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `role_id` bigint NOT NULL COMMENT '角色ID', `resource_id` bigint NOT NULL COMMENT '资源ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_role_resource` (`tenant_id`,`role_id`,`resource_id`), KEY `idx_role_id` (`role_id`), KEY `idx_resource_id` (`resource_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3039 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色-资源关联表'; -- forge_admin_new.sys_sms_config definition CREATE TABLE `sys_sms_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `config_id` varchar(64) DEFAULT NULL COMMENT '配置标识', `supplier` varchar(32) NOT NULL COMMENT '厂商标识(alibaba/tencent/huawei等)', `access_key_id` varchar(128) DEFAULT NULL COMMENT '访问密钥ID', `access_key_secret` varchar(256) DEFAULT NULL COMMENT '访问密钥Secret', `signature` varchar(64) DEFAULT NULL COMMENT '短信签名', `template_id` varchar(64) DEFAULT NULL COMMENT '默认模板ID', `weight` int DEFAULT '1' COMMENT '权重(负载均衡)', `retry_interval` int DEFAULT '5' COMMENT '重试间隔(秒)', `max_retries` int DEFAULT '0' COMMENT '最大重试次数', `maximum` int DEFAULT NULL COMMENT '发送上限', `extra_config` text COMMENT '额外配置(JSON格式)', `daily_limit` int DEFAULT NULL COMMENT '每日发送上限', `minute_limit` int DEFAULT NULL COMMENT '每分钟发送上限', `status` tinyint DEFAULT '0' COMMENT '状态(0禁用 1启用)', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', `update_by` varchar(64) DEFAULT NULL COMMENT '更新人', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), KEY `idx_tenant_status` (`tenant_id`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='短信配置表'; -- forge_admin_new.sys_social_app_config definition CREATE TABLE `sys_social_app_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `app_code` varchar(64) NOT NULL COMMENT '应用编码(连接内唯一)', `app_name` varchar(100) DEFAULT NULL COMMENT '应用名称', `client_id` varchar(255) DEFAULT NULL COMMENT '应用ID/Key(企业微信为AgentId所属应用的CorpId沿用连接)', `agent_id` varchar(100) DEFAULT NULL COMMENT '企业微信AgentId', `secret_mode` varchar(32) NOT NULL DEFAULT 'CIPHER' COMMENT 'Secret存储模式:CIPHER密文/EXTERNAL_REF外部引用', `secret_cipher` varchar(1000) DEFAULT NULL COMMENT '应用Secret密文(FPC1版本化密文,禁止明文)', `secret_ref` varchar(500) DEFAULT NULL COMMENT '外部Secret引用(extref:前缀)', `secret_update_time` datetime DEFAULT NULL COMMENT 'Secret最近轮换时间', `callback_token_cipher` varchar(1000) DEFAULT NULL COMMENT '回调Token密文', `encoding_aes_key_cipher` varchar(1000) DEFAULT NULL COMMENT '回调EncodingAESKey密文', `redirect_uri` varchar(500) DEFAULT NULL COMMENT 'OAuth回调地址', `scope` varchar(500) DEFAULT NULL COMMENT '授权范围', `config_json` json DEFAULT NULL COMMENT '应用级扩展配置JSON', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0停用 1启用', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_app_active` (`tenant_id`,`connection_id`,`app_code`,`del_flag`), KEY `idx_social_app_connection` (`connection_id`,`status`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同物理应用配置表'; -- forge_admin_new.sys_social_callback_event definition CREATE TABLE `sys_social_callback_event` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `app_config_id` bigint DEFAULT NULL COMMENT '定位回调凭据的物理应用ID', `event_id` varchar(128) DEFAULT NULL COMMENT '外部事件ID', `dedup_hash` varchar(64) NOT NULL COMMENT '去重哈希(签名+时间戳+nonce+正文摘要)', `event_type` varchar(64) DEFAULT NULL COMMENT '事件类型', `event_time` datetime DEFAULT NULL COMMENT '外部事件时间', `signature_status` varchar(32) NOT NULL DEFAULT 'VERIFIED' COMMENT '验签状态:VERIFIED/REJECTED', `payload_cipher` mediumtext COMMENT '解密后事件正文密文(FPC1版本化密文,按留存期清理)', `process_status` varchar(32) NOT NULL DEFAULT 'PENDING' COMMENT '处理状态:PENDING/PROCESSING/PROCESSED/FAILED/DISCARDED', `retry_count` int NOT NULL DEFAULT '0' COMMENT '重试次数', `next_retry_time` datetime DEFAULT NULL COMMENT '下次重试时间', `error_code` varchar(64) DEFAULT NULL COMMENT '错误码', `error_summary` varchar(500) DEFAULT NULL COMMENT '脱敏错误摘要', `claimed_by` varchar(64) DEFAULT NULL COMMENT '当前处理Worker标识', `claim_time` datetime DEFAULT NULL COMMENT '领取时间', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_callback_dedup` (`tenant_id`,`connection_id`,`dedup_hash`), KEY `idx_social_callback_process` (`process_status`,`next_retry_time`), KEY `idx_social_callback_conn` (`tenant_id`,`connection_id`,`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同回调事件收件箱'; -- forge_admin_new.sys_social_capability_binding definition CREATE TABLE `sys_social_capability_binding` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `capability` varchar(32) NOT NULL COMMENT '业务能力:LOGIN/DIRECTORY/MESSAGE/TODO', `app_config_id` bigint NOT NULL COMMENT '绑定的物理应用ID', `config_json` json DEFAULT NULL COMMENT '能力级扩展配置JSON', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态:0停用 1启用', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_capability_active` (`tenant_id`,`connection_id`,`capability`,`del_flag`), KEY `idx_social_capability_app` (`app_config_id`,`del_flag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同能力绑定表'; -- forge_admin_new.sys_social_config definition CREATE TABLE `sys_social_config` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `platform` varchar(50) NOT NULL COMMENT '平台类型(WECHAT、WECOM、DINGTALK、GITHUB、GITEE等)', `platform_name` varchar(100) DEFAULT NULL COMMENT '平台名称', `platform_logo` varchar(500) DEFAULT NULL COMMENT '平台Logo', `connection_code` varchar(64) DEFAULT NULL COMMENT '连接编码(租户内唯一)', `connection_name` varchar(100) DEFAULT NULL COMMENT '连接名称', `enterprise_id` varchar(100) DEFAULT NULL COMMENT '外部企业ID(企业微信CorpId等)', `connection_type` varchar(32) DEFAULT NULL COMMENT '连接类型:CORP_INTERNAL自建应用/THIRD_PARTY第三方/OAUTH_ONLY仅登录', `identity_policy` varchar(32) DEFAULT NULL COMMENT '身份匹配策略:BIND_ONLY仅绑定已有/AUTO_CREATE自动创建/MANUAL人工处理', `directory_authority` varchar(32) DEFAULT NULL COMMENT '目录权威来源:EXTERNAL外部权威/LOCAL本地权威/NONE不同步', `default_org_id` bigint DEFAULT NULL COMMENT '目录同步默认挂载的根组织ID', `client_id` varchar(255) NOT NULL COMMENT '应用ID/Key(兼容旧登录配置,迁移后由应用配置承载)', `client_secret` varchar(255) NOT NULL COMMENT '应用Secret(兼容旧登录配置,迁移完成后必须清空)', `redirect_uri` varchar(500) DEFAULT NULL COMMENT '回调地址(兼容旧登录配置)', `agent_id` varchar(100) DEFAULT NULL COMMENT '企业微信AgentId(兼容旧登录配置)', `scope` varchar(500) DEFAULT NULL COMMENT '授权范围(兼容旧登录配置)', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(1-启用,0-停用)', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `remark` varchar(500) DEFAULT NULL COMMENT '备注说明', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_dept` bigint unsigned DEFAULT NULL COMMENT '创建组织ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_conn_code_active` (`tenant_id`,`connection_code`,`del_flag`), UNIQUE KEY `uk_social_conn_enterprise_active` (`tenant_id`,`platform`,`enterprise_id`,`del_flag`), KEY `idx_tenant` (`tenant_id`) USING BTREE, KEY `idx_social_platform` (`platform`,`tenant_id`,`del_flag`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同连接表(原三方登录配置表)'; -- forge_admin_new.sys_social_org_mapping definition CREATE TABLE `sys_social_org_mapping` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `external_dept_id` varchar(100) NOT NULL COMMENT '外部部门ID', `external_parent_id` varchar(100) DEFAULT NULL COMMENT '外部父部门ID', `external_dept_name` varchar(200) DEFAULT NULL COMMENT '外部部门名称', `org_id` bigint DEFAULT NULL COMMENT 'Forge组织ID', `source_hash` varchar(64) DEFAULT NULL COMMENT '外部快照哈希(用于变更检测)', `last_seen_run_id` bigint DEFAULT NULL COMMENT '最近一次出现的同步批次ID', `status` varchar(32) NOT NULL DEFAULT 'ACTIVE' COMMENT '映射状态:ACTIVE/INACTIVE/ISSUE', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_org_mapping_active` (`tenant_id`,`connection_id`,`external_dept_id`,`del_flag`), KEY `idx_social_org_mapping_org` (`tenant_id`,`connection_id`,`org_id`), KEY `idx_social_org_mapping_seen` (`tenant_id`,`connection_id`,`last_seen_run_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同外部部门映射表'; -- forge_admin_new.sys_social_post_mapping definition CREATE TABLE `sys_social_post_mapping` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `external_post_code` varchar(100) NOT NULL COMMENT '外部岗位编码/文本', `external_post_name` varchar(200) DEFAULT NULL COMMENT '外部岗位名称', `post_id` bigint DEFAULT NULL COMMENT 'Forge岗位ID(企微首期默认不自动创建)', `status` varchar(32) NOT NULL DEFAULT 'ACTIVE' COMMENT '映射状态:ACTIVE/INACTIVE/ISSUE', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_post_mapping_active` (`tenant_id`,`connection_id`,`external_post_code`,`del_flag`), KEY `idx_social_post_mapping_post` (`tenant_id`,`connection_id`,`post_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同外部岗位映射表'; -- forge_admin_new.sys_social_sync_issue definition CREATE TABLE `sys_social_sync_issue` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `sync_log_id` bigint DEFAULT NULL COMMENT '产生问题的同步批次ID', `object_type` varchar(32) NOT NULL COMMENT '对象类型:DEPT/USER/POST/TAG', `external_id` varchar(100) DEFAULT NULL COMMENT '外部对象ID', `issue_code` varchar(64) NOT NULL COMMENT '问题码', `issue_summary` varchar(500) DEFAULT NULL COMMENT '脱敏问题摘要(禁止明文手机号/邮箱/姓名)', `process_status` varchar(32) NOT NULL DEFAULT 'PENDING' COMMENT '处理状态:PENDING/RESOLVED/IGNORED', `process_action` varchar(32) DEFAULT NULL COMMENT '处理动作:BIND/IGNORE/RETRY', `process_by` bigint DEFAULT NULL COMMENT '处理人ID', `process_time` datetime DEFAULT NULL COMMENT '处理时间', `retry_count` int NOT NULL DEFAULT '0' COMMENT '重试次数', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), KEY `idx_social_sync_issue_status` (`tenant_id`,`connection_id`,`process_status`,`del_flag`), KEY `idx_social_sync_issue_log` (`sync_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同同步问题单表'; -- forge_admin_new.sys_social_sync_log definition CREATE TABLE `sys_social_sync_log` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '批次ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `sync_type` varchar(32) NOT NULL COMMENT '同步类型:FULL/DEPT/USER/TAG/INCREMENT', `trigger_source` varchar(32) NOT NULL DEFAULT 'MANUAL' COMMENT '触发来源:MANUAL/JOB/CALLBACK', `stage` varchar(32) DEFAULT NULL COMMENT '当前阶段:FETCH/VALIDATE/PLAN/APPLY/FINALIZE', `status` varchar(32) NOT NULL DEFAULT 'RUNNING' COMMENT '批次状态:RUNNING/SUCCESS/PARTIAL/FAILED', `dept_count` int NOT NULL DEFAULT '0' COMMENT '拉取部门数', `user_count` int NOT NULL DEFAULT '0' COMMENT '拉取成员数', `tag_count` int NOT NULL DEFAULT '0' COMMENT '拉取标签数', `created_count` int NOT NULL DEFAULT '0' COMMENT '创建对象数', `updated_count` int NOT NULL DEFAULT '0' COMMENT '更新对象数', `inactivated_count` int NOT NULL DEFAULT '0' COMMENT '停用对象数', `issue_count` int NOT NULL DEFAULT '0' COMMENT '问题单数', `cursor_info` varchar(500) DEFAULT NULL COMMENT '断点游标信息', `error_code` varchar(64) DEFAULT NULL COMMENT '错误码', `error_summary` varchar(1000) DEFAULT NULL COMMENT '脱敏错误摘要', `start_time` datetime DEFAULT NULL COMMENT '开始时间', `end_time` datetime DEFAULT NULL COMMENT '结束时间', `create_by` bigint DEFAULT NULL COMMENT '触发人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_social_sync_log_conn` (`tenant_id`,`connection_id`,`create_time`), KEY `idx_social_sync_log_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同同步批次日志表'; -- forge_admin_new.sys_social_tag definition CREATE TABLE `sys_social_tag` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `external_tag_id` varchar(100) NOT NULL COMMENT '外部标签ID', `tag_name` varchar(200) DEFAULT NULL COMMENT '标签名称', `status` varchar(32) NOT NULL DEFAULT 'ACTIVE' COMMENT '标签状态:ACTIVE/INACTIVE', `last_seen_run_id` bigint DEFAULT NULL COMMENT '最近一次出现的同步批次ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_tag_active` (`tenant_id`,`connection_id`,`external_tag_id`,`del_flag`), KEY `idx_social_tag_seen` (`tenant_id`,`connection_id`,`last_seen_run_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同外部标签表'; -- forge_admin_new.sys_social_tag_member definition CREATE TABLE `sys_social_tag_member` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `tag_id` bigint NOT NULL COMMENT '本地标签ID(sys_social_tag.id)', `member_type` varchar(16) NOT NULL COMMENT '成员类型:USER/DEPT', `external_member_id` varchar(100) NOT NULL COMMENT '外部成员ID(userid或部门ID)', `local_target_id` bigint DEFAULT NULL COMMENT '映射到的Forge用户/组织ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_tag_member` (`tenant_id`,`tag_id`,`member_type`,`external_member_id`), KEY `idx_social_tag_member_conn` (`tenant_id`,`connection_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同标签成员关系表(可重建)'; -- forge_admin_new.sys_social_todo_link definition CREATE TABLE `sys_social_todo_link` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `connection_id` bigint NOT NULL COMMENT '企业协同连接ID', `task_id` varchar(64) NOT NULL COMMENT 'Flowable任务ID', `user_id` bigint NOT NULL COMMENT 'Forge用户ID', `external_user_id` varchar(100) DEFAULT NULL COMMENT '外部用户ID', `desired_state` varchar(32) NOT NULL COMMENT '期望状态:ACTIVE/CLOSED', `delivery_state` varchar(32) NOT NULL DEFAULT 'PENDING' COMMENT '投递状态:PENDING/SENT/FAILED/CLOSED', `version` bigint NOT NULL DEFAULT '0' COMMENT '状态版本号(CAS)', `external_id` varchar(200) DEFAULT NULL COMMENT '外部待办/卡片ID', `idempotency_key` varchar(128) DEFAULT NULL COMMENT '幂等键', `retry_at` datetime DEFAULT NULL COMMENT '下次重试时间', `last_error_code` varchar(64) DEFAULT NULL COMMENT '最近错误码', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_social_todo_link_active` (`tenant_id`,`connection_id`,`task_id`,`user_id`,`del_flag`), KEY `idx_social_todo_link_retry` (`delivery_state`,`retry_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业协同待办投影表'; -- forge_admin_new.sys_tenant definition CREATE TABLE `sys_tenant` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '租户ID', `tenant_name` varchar(100) NOT NULL COMMENT '租户名称', `contact_person` varchar(50) DEFAULT NULL COMMENT '负责人', `contact_phone` varchar(20) DEFAULT NULL COMMENT '联系电话', `user_limit` int DEFAULT '0' COMMENT '租户人员数量上限(0表示无限制)', `tenant_status` tinyint NOT NULL DEFAULT '1' COMMENT '租户状态(0-禁用,1-正常)', `expire_time` datetime DEFAULT NULL COMMENT '过期时间', `tenant_desc` varchar(500) DEFAULT NULL COMMENT '租户描述', `create_by` bigint DEFAULT NULL COMMENT '创建者(系统租户ID)', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `browser_icon` varchar(255) DEFAULT NULL COMMENT '浏览器icon(存储图标URL/Base64)', `browser_title` varchar(100) DEFAULT NULL COMMENT '浏览器标签名称', `system_name` varchar(100) DEFAULT NULL COMMENT '系统名称', `system_logo` varchar(255) DEFAULT NULL COMMENT '系统logo(存储logo URL/Base64)', `system_intro` varchar(500) DEFAULT NULL COMMENT '系统介绍', `copyright_info` varchar(200) DEFAULT NULL COMMENT '版权显示文本', `system_layout` varchar(50) DEFAULT 'default' COMMENT '系统布局(default-默认,classic-经典,modern-现代等)', `system_theme` varchar(50) DEFAULT 'light' COMMENT '系统主题(light-亮色,dark-暗色,auto-跟随系统等)', `theme_config` varchar(1000) DEFAULT NULL COMMENT '主题配置', `create_dept` bigint unsigned DEFAULT NULL, `default_business_datasource_id` bigint DEFAULT NULL COMMENT '默认业务数据源ID', `default_business_datasource_code` varchar(64) DEFAULT NULL COMMENT '默认业务数据源编码', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_tenant_name_active` (`tenant_name`,`del_flag`), KEY `idx_tenant_status` (`tenant_status`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='租户表'; -- forge_admin_new.sys_user definition CREATE TABLE `sys_user` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `username` varchar(50) NOT NULL COMMENT '用户名(租户内唯一)', `real_name` varchar(50) DEFAULT NULL COMMENT '用户真实姓名', `user_type` tinyint DEFAULT '1' COMMENT '用户类型(0-系统管理员,1-租户管理员,2-普通用户)', `user_client` varchar(20) DEFAULT NULL COMMENT '用户触点(app/pc/h5/wechat)', `email` varchar(100) DEFAULT NULL COMMENT '邮箱', `phone` varchar(20) DEFAULT NULL COMMENT '手机号', `id_card` varchar(18) DEFAULT NULL COMMENT '身份证号', `gender` tinyint DEFAULT '0' COMMENT '性别(0-未知,1-男,2-女)', `password` varchar(100) NOT NULL COMMENT '密码(加密存储)', `salt` varchar(50) DEFAULT NULL COMMENT '密码盐值', `user_status` tinyint NOT NULL DEFAULT '1' COMMENT '用户状态(0-禁用,1-正常,2-锁定)', `avatar` varchar(255) DEFAULT NULL COMMENT '头像URL', `region_code` varchar(10) DEFAULT NULL COMMENT '行政区划编码', `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间', `last_login_ip` varchar(50) DEFAULT NULL COMMENT '最后登录IP', `login_count` int DEFAULT '0' COMMENT '登录次数', `force_password_change` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否必须修改密码', `remark` varchar(500) DEFAULT NULL COMMENT '备注', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `sys_user_unique_active` (`tenant_id`,`username`,`del_flag`), KEY `idx_tenant_status` (`tenant_id`,`user_status`), KEY `idx_user_type` (`user_type`), KEY `idx_region_code` (`region_code`) ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表'; -- forge_admin_new.sys_user_org definition CREATE TABLE `sys_user_org` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `user_id` bigint NOT NULL COMMENT '用户ID', `org_id` bigint NOT NULL COMMENT '组织ID', `is_main` tinyint DEFAULT '0' COMMENT '是否主组织(0-否,1-是)', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_user_org` (`tenant_id`,`user_id`,`org_id`), KEY `idx_user_id` (`user_id`), KEY `idx_org_id` (`org_id`), KEY `idx_user_main_org` (`user_id`,`is_main`) COMMENT '查询用户主组织优化' ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户-组织关联表'; -- forge_admin_new.sys_user_org_role definition CREATE TABLE `sys_user_org_role` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `user_id` bigint NOT NULL COMMENT '用户ID', `org_id` bigint NOT NULL COMMENT '组织ID', `role_id` bigint NOT NULL COMMENT '角色ID', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_user_org_role` (`tenant_id`,`user_id`,`org_id`,`role_id`), KEY `idx_user_org` (`tenant_id`,`user_id`,`org_id`), KEY `idx_org_role` (`tenant_id`,`org_id`,`role_id`), KEY `idx_role_id` (`role_id`), KEY `idx_user_id` (`user_id`), KEY `idx_org_id` (`org_id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户组织内角色授权表'; -- forge_admin_new.sys_user_post definition CREATE TABLE `sys_user_post` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `user_id` bigint NOT NULL COMMENT '用户ID', `post_id` bigint NOT NULL COMMENT '岗位ID', `is_main` tinyint DEFAULT '0' COMMENT '是否主岗(0-否,1-是)', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_user_post` (`tenant_id`,`user_id`,`post_id`), KEY `idx_user_id` (`user_id`), KEY `idx_post_id` (`post_id`), KEY `idx_user_main_post` (`user_id`,`is_main`) COMMENT '查询用户主岗优化' ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户-岗位关联表'; -- forge_admin_new.sys_user_role definition CREATE TABLE `sys_user_role` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号', `user_id` bigint NOT NULL COMMENT '用户ID', `role_id` bigint NOT NULL COMMENT '角色ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_user_role` (`tenant_id`,`user_id`,`role_id`), KEY `idx_user_id` (`user_id`), KEY `idx_role_id` (`role_id`) ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户-角色关联表'; -- forge_admin_new.sys_user_social definition CREATE TABLE `sys_user_social` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `user_id` bigint NOT NULL COMMENT '用户ID', `platform` varchar(50) NOT NULL COMMENT '平台类型', `connection_id` bigint DEFAULT NULL COMMENT '企业协同连接ID(应用层迁移回填,歧义进入阻塞清单)', `external_enterprise_id` varchar(100) DEFAULT NULL COMMENT '外部企业ID(企业微信CorpId等)', `managed_by_sync` tinyint NOT NULL DEFAULT '0' COMMENT '是否由目录同步管理:0否 1是', `external_status` varchar(32) DEFAULT NULL COMMENT '外部账号状态:ACTIVE/DISABLED/DELETED', `source_hash` varchar(64) DEFAULT NULL COMMENT '外部资料快照哈希(用于变更检测)', `last_sync_time` datetime DEFAULT NULL COMMENT '最近同步时间', `uuid` varchar(255) NOT NULL COMMENT '第三方用户唯一标识', `username` varchar(100) DEFAULT NULL COMMENT '第三方用户名', `nickname` varchar(100) DEFAULT NULL COMMENT '第三方昵称', `avatar` varchar(500) DEFAULT NULL COMMENT '头像', `email` varchar(100) DEFAULT NULL COMMENT '邮箱', `access_token` varchar(500) DEFAULT NULL COMMENT '访问令牌(已弃用,新绑定不落库)', `refresh_token` varchar(500) DEFAULT NULL COMMENT '刷新令牌(已弃用,新绑定不落库)', `expire_time` datetime DEFAULT NULL COMMENT '令牌过期时间', `bind_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '绑定时间', `tenant_id` bigint DEFAULT NULL COMMENT '租户ID', `del_flag` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除标记:0正常,删除后写主键', PRIMARY KEY (`id`), UNIQUE KEY `uk_user_social_conn_uuid_active` (`tenant_id`,`connection_id`,`uuid`,`del_flag`), UNIQUE KEY `uk_user_social_conn_user_active` (`tenant_id`,`connection_id`,`user_id`,`del_flag`), KEY `idx_user_id` (`user_id`) USING BTREE, KEY `idx_tenant` (`tenant_id`) USING BTREE, KEY `idx_user_social_platform_uuid` (`platform`,`uuid`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户三方账号绑定表'; -- forge_admin_new.sys_user_tenant definition CREATE TABLE `sys_user_tenant` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL COMMENT '租户ID', `user_id` bigint NOT NULL COMMENT '用户ID', `member_type` tinyint NOT NULL DEFAULT '2' COMMENT '成员类型(1-租户管理员,2-普通成员)', `is_default` tinyint NOT NULL DEFAULT '0' COMMENT '是否默认租户(0-否,1-是)', `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态(0-禁用,1-正常)', `create_by` bigint DEFAULT NULL COMMENT '创建者', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门', `update_by` bigint DEFAULT NULL COMMENT '更新者', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_user_tenant` (`tenant_id`,`user_id`), KEY `idx_user_tenant_user` (`user_id`,`status`), KEY `idx_user_tenant_default` (`user_id`,`is_default`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户-租户成员关系表'; -- forge_admin_new.tf_f_order definition CREATE TABLE `tf_f_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `order_code` varchar(128) DEFAULT NULL COMMENT '订单编码', `order_name` varchar(128) DEFAULT NULL COMMENT '订单名称', `order_time` datetime DEFAULT NULL COMMENT '下单时间', `order_status` varchar(128) DEFAULT NULL COMMENT '订单状态', `cust_phone` varchar(20) DEFAULT NULL COMMENT '客户手机号', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `order_class` int DEFAULT NULL COMMENT '订单分类', `file_id` varchar(50) DEFAULT NULL COMMENT '文件', `org_id` varchar(128) DEFAULT NULL COMMENT '归属组织', PRIMARY KEY (`id`), KEY `idx_tf_f_order_tenant` (`tenant_id`), KEY `idx_tf_f_order_create_time` (`create_time`), KEY `idx_order_code` (`order_code`), KEY `idx_rel_orderclass` (`order_class`), KEY `idx_order_name` (`order_name`), KEY `idx_order_status` (`order_status`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单基本信息'; -- forge_admin_new.tf_f_order_class definition CREATE TABLE `tf_f_order_class` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `name` varchar(128) NOT NULL COMMENT '分类名称', `parent_id` bigint NOT NULL COMMENT '父级分类ID', `class_sort` int NOT NULL COMMENT '排序', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_tf_f_order_class_tenant` (`tenant_id`), KEY `idx_tf_f_order_class_create_time` (`create_time`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单分类'; -- forge_admin_new.tf_f_order_purchase_order definition CREATE TABLE `tf_f_order_purchase_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `order_no` varchar(64) NOT NULL COMMENT '订单编号', `partner_name` varchar(128) DEFAULT NULL COMMENT '往来单位', `total_amount` decimal(18,2) DEFAULT NULL COMMENT '订单金额', `order_date` date DEFAULT NULL COMMENT '订单日期', `status` varchar(32) DEFAULT NULL COMMENT '状态', `remark` text COMMENT '备注', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_tf_f_order_purchase_order_tenant` (`tenant_id`), KEY `idx_tf_f_order_purchase_order_create_time` (`create_time`), KEY `idx_order_no` (`order_no`), KEY `idx_partner_name` (`partner_name`), KEY `idx_order_date` (`order_date`), KEY `idx_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='采购订单'; -- forge_admin_new.tf_f_order_sales_order definition CREATE TABLE `tf_f_order_sales_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号', `order_no` varchar(64) NOT NULL COMMENT '订单编号', `partner_name` varchar(128) DEFAULT NULL COMMENT '往来单位', `total_amount` decimal(18,2) DEFAULT NULL COMMENT '订单金额', `order_date` date DEFAULT NULL COMMENT '订单日期', `status` varchar(32) DEFAULT NULL COMMENT '状态', `remark` text COMMENT '备注', `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志', `create_by` bigint DEFAULT NULL COMMENT '创建人ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dept` bigint DEFAULT NULL COMMENT '创建部门ID', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_tf_f_order_sales_order_tenant` (`tenant_id`), KEY `idx_tf_f_order_sales_order_create_time` (`create_time`), KEY `idx_order_no` (`order_no`), KEY `idx_partner_name` (`partner_name`), KEY `idx_order_date` (`order_date`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='销售订单'; -- forge_admin_new.worker_node definition CREATE TABLE `worker_node` ( `ID` bigint NOT NULL AUTO_INCREMENT COMMENT 'auto increment id', `HOST_NAME` varchar(64) NOT NULL COMMENT 'host name', `PORT` varchar(64) NOT NULL COMMENT 'port', `TYPE` int NOT NULL COMMENT 'node type: ACTUAL or CONTAINER', `LAUNCH_DATE` date NOT NULL COMMENT 'launch date', `MODIFIED` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'modified time', `CREATED` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2273 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='DB WorkerID Assigner for UID Generator'; -- forge_admin_new.QRTZ_TRIGGERS definition DROP TABLE IF EXISTS `QRTZ_TRIGGERS`; CREATE TABLE `QRTZ_TRIGGERS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `trigger_name` varchar(200) NOT NULL COMMENT '触发器的名字', `trigger_group` varchar(200) NOT NULL COMMENT '触发器所属组的名字', `job_name` varchar(200) NOT NULL COMMENT 'QRTZ_JOB_DETAILS表job_name的外键', `job_group` varchar(200) NOT NULL COMMENT 'QRTZ_JOB_DETAILS表job_group的外键', `description` varchar(250) DEFAULT NULL COMMENT '相关介绍', `next_fire_time` bigint DEFAULT NULL COMMENT '上一次触发时间(毫秒)', `prev_fire_time` bigint DEFAULT NULL COMMENT '下一次触发时间(默认为-1表示不触发)', `priority` int DEFAULT NULL COMMENT '优先级', `trigger_state` varchar(16) NOT NULL COMMENT '触发器状态', `trigger_type` varchar(8) NOT NULL COMMENT '触发器的类型', `start_time` bigint NOT NULL COMMENT '开始时间', `end_time` bigint DEFAULT NULL COMMENT '结束时间', `calendar_name` varchar(200) DEFAULT NULL COMMENT '日程表名称', `misfire_instr` smallint DEFAULT NULL COMMENT '补偿执行的策略', `job_data` blob COMMENT '存放持久化job对象', PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`), KEY `sched_name` (`sched_name`,`job_name`,`job_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='触发器详细信息表'; -- forge_admin_new.QRTZ_BLOB_TRIGGERS definition DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`; CREATE TABLE `QRTZ_BLOB_TRIGGERS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `trigger_name` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_name的外键', `trigger_group` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_group的外键', `blob_data` blob COMMENT '存放持久化Trigger对象', PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='Blob类型的触发器表'; -- forge_admin_new.QRTZ_CRON_TRIGGERS definition DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`; CREATE TABLE `QRTZ_CRON_TRIGGERS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `trigger_name` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_name的外键', `trigger_group` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_group的外键', `cron_expression` varchar(200) NOT NULL COMMENT 'cron表达式', `time_zone_id` varchar(80) DEFAULT NULL COMMENT '时区', PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='Cron类型的触发器表'; -- forge_admin_new.QRTZ_SIMPLE_TRIGGERS definition DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`; CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `trigger_name` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_name的外键', `trigger_group` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_group的外键', `repeat_count` bigint NOT NULL COMMENT '重复的次数统计', `repeat_interval` bigint NOT NULL COMMENT '重复的间隔时间', `times_triggered` bigint NOT NULL COMMENT '已经触发的次数', PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='简单触发器的信息表'; -- forge_admin_new.QRTZ_SIMPROP_TRIGGERS definition DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`; CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` ( `sched_name` varchar(120) NOT NULL COMMENT '调度名称', `trigger_name` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_name的外键', `trigger_group` varchar(200) NOT NULL COMMENT 'QRTZ_TRIGGERS表trigger_group的外键', `str_prop_1` varchar(512) DEFAULT NULL COMMENT 'String类型的trigger的第一个参数', `str_prop_2` varchar(512) DEFAULT NULL COMMENT 'String类型的trigger的第二个参数', `str_prop_3` varchar(512) DEFAULT NULL COMMENT 'String类型的trigger的第三个参数', `int_prop_1` int DEFAULT NULL COMMENT 'int类型的trigger的第一个参数', `int_prop_2` int DEFAULT NULL COMMENT 'int类型的trigger的第二个参数', `long_prop_1` bigint DEFAULT NULL COMMENT 'long类型的trigger的第一个参数', `long_prop_2` bigint DEFAULT NULL COMMENT 'long类型的trigger的第二个参数', `dec_prop_1` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数', `dec_prop_2` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数', `bool_prop_1` varchar(1) DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数', `bool_prop_2` varchar(1) DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数', PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='同步机制的行锁表'; INSERT INTO ai_agent (id,tenant_id,agent_name,agent_code,description,system_prompt,provider_id,model_name,model_selection_mode,route_policy_id,temperature,max_tokens,extra_config,status,create_by,create_time,update_by,update_time,del_flag,create_dept) VALUES (1,1,'大屏生成助手','dashboard_generator','根据用户需求自动生成数据可视化大屏布局','你是一个资深数据可视化大屏设计专家。你需要自主根据业务场景智能决策大屏布局结构与视觉层级,无需依赖固定模板;必须自动识别并优先使用系统提供的可用组件库,严格从给定组件列表中选择,不使用未注册组件;涉及 KPI、核心指标展示时,4-6 个概览指标优先使用 KpiGroup,1-3 个重点指标再优先使用 KpiCard、FlipperNumber 等专用组件;布局与视觉效果需最大化使用动态背景、装饰边框、PanelFrame 模块框、动态标题、3D/光效类新增组件,尽量复用丰富组件库,让大屏视觉更饱满、科技感更强、层次更立体;整体设计遵循主次分明、重点突出、非对称错落、留白透气的专业指挥舱大屏标准,并且只输出一个合法 JSON 对象。 ## 画布 - 尺寸: {{canvasWidth}}px × {{canvasHeight}}px - 坐标原点在左上角,x 向右增大,y 向下增大 - 背景色: {{backgroundColor}} - 风格: {{styleLabel}},{{backgroundSuggestion}},{{textColorSuggestion}} ## 绝对硬性要求 1. 只输出 JSON 对象,不要 markdown、解释、注释、前后缀。 2. 每个组件对象必须完整包含 key、x、y、w、h、option(或 title)等字段,字段名和值必须一一对应,禁止把值和字段名混写。错误示例: "h"y": 65"title": "xxx" — 这会导致 JSON 解析失败。正确: "h": 370, "y": 655, "title": "实时告警记录"。 3. JSON 字符串必须使用英文双引号包裹,数字不加引号。 4. 所有 key 必须来自"可用组件"。 5. JSON 字段名必须独立书写,禁止把字段名拼进字符串值;例如必须写 "title": "产品合格率", "option": {...},禁止写 "title": "产品合格率option": {...}。 6. 所有 x/y/w/h 必须是数字,且 x+w <= {{canvasWidth}},y+h <= {{canvasHeight}}。 7. 除"模块框/边框与其紧随其后的被包裹组件"外,其他组件矩形禁止重叠。 8. 模块优先用 PanelFrame 包裹其后一个图表、地图或表格组件;如果不用 PanelFrame 才使用 Border01-Border13。PanelFrame 或边框都必须放在被包裹组件前面。 9. 如果不能确定某组件是否可用,不要使用它。 10. 输出前必须自检:JSON 结构完整、括号配对、没有字段值错位、每个组件 key/x/y/w/h 完整。 ## 颜色统一要求 - 为整个大屏选定一个统一的主题色(accentColor),标题、模块框、指标卡、图表的强调色围绕此颜色协调搭配。 - 如果用户在需求中指定了颜色,优先使用用户指定的颜色;用户未指定时按主题自动匹配:智慧城市/数字孪生→#25d8ff 青蓝、安全生产/工业→#ffcf5a 橙黄、能源环保→#47ffb2 翠绿、金融商务→#ff9f43 金橙、医疗健康→#38bdf8 天蓝、政务管理→#3b82f6 深蓝、科技/互联网→#a78bfa 紫、物流交通→#f59e0b 琥珀。 - 深色背景下:标题 accentColor=主题色,模块框 accentColor=主题色、borderColor=主题色深变,KpiCard 如使用则 accentColor=主题色、borderColor=主题色深变、numberColor=#f7fbff、labelColor=主题色浅变、backgroundColor=深色半透明。 ## 视觉设计目标 - 禁止简单图表堆叠、禁止均等网格平铺、禁止模块尺寸全部一致,要做成真实指挥舱沉浸式大屏。 - 标题优先使用 ScreenTitle 系列(ScreenTitle、ScreenTitle02-08),每次选择不同风格。标题风格参考: ScreenTitle03=星环光晕, ScreenTitle04=锋刃工业, ScreenTitle05=两侧装饰框, ScreenTitle06=动态脉冲发光, ScreenTitle07=晶体切面, ScreenTitle08=控制台轨道节点。 - 图表、地图、表格等模块统一用同一种 PanelFrame 风格包裹,增强整体高级感;优先选用光效、扫描、辉光类边框组件。 - 顶部如果需要 4-6 个概览指标,优先使用 KpiGroup;如果只需要 1-3 个重点指标,再优先使用 KpiCard / FlipperNumber。 - 主视觉必须有中心重心:地图、三维地球、大尺寸趋势图、关系图、综合大屏主图,杜绝全屏平均分散小图。 - 深色大屏且画布足够时,优先添加 1 个 GlowBackdrop 作为低层发光背景,增强科技氛围;GlowBackdrop 不要被 PanelFrame 或 Border 包裹。 - 两侧及空余区域丰富填充:排行、占比、趋势、漏斗、雷达、桑基图、热力图、词云、滚动表格、时钟装饰等,优先复用新增增强组件,如 SectionHeader、StatusBadgeList、DataPairList、MiniTrendCard、TimelineList、StepFlow、DividerLine、GlowBackdrop。 - 数据名称、文案贴合业务主题,数值混合整数、小数、百分比,避免单调统一。 - 图表类型多样化,不局限柱状/折线/饼图,优先多用高级异形图表提升质感。 ## 智能高级布局规范 ### 布局核心准则 无需固定坐标硬编码,按画布宽高**自适应智能分版**;严格遵循「**主次分层、非对称错落、一大带多小、宽窄不等分、留白透气**」,拒绝呆板三列均分、整齐网格平铺。 ### 可选高级版式(AI自动匹配业务任选其一) 1. 中心主图环绕式:中间超大地图/三维地球/主视觉大图,四周错落排布KPI、排行、图表、表格,大小模块穿插,打造指挥舱沉浸感。 2. 上标题-KPI + 中下非对称宫格:顶部通栏标题,下接横向KPI指标区;中下区域采用左宽右窄、左大右小、多宫格错落布局,不做等宽拆分。 3. 左主右辅纵深式:左侧占比55%-65%放置核心主图,右侧纵向切分多块小模块,放置排行、分析图、实时列表,形成视觉纵深层次。 4. 窄侧边栏+宽主内容式:左右一侧做窄边栏,放置滚动表格、排名、时钟、公告装饰;剩余大面积做主视觉+多模块分析,适配政务、监控、智慧城市场景。 5. 通栏分层悬浮式:中间通栏主图表,上下穿插错落悬浮小模块,搭配动态背景、边角装饰、多层辉光边框,强化立体层次感。 ### 通用布局细则 - 标题通栏居中,左右预留合理边距,不贴边拥挤。 - KPI指标区按指标数量自适应排布:4-6 个概览指标优先 KpiGroup,1-3 个指标优先 KpiCard / FlipperNumber;可等宽可错落宽窄,不强制固定个数。 - 所有模块之间保留均匀间距,四周留白不贴边、不挤堆。 - 优先大小混搭、高低错落,用PanelFrame和装饰边框做视觉嵌套分层。 - 小画布精简克制,保留标题+核心KPI+1张主图+2-3个辅助图,不强行堆砌组件。 - 布局时主动复用动态背景、光效边框、装饰角标、3D特效、翻牌数字等组件增强质感;一般搭配 2-4 个增强组件即可,丰富但不要过载,不要在同一角落堆叠多个摘要型模块。 ## 当前画布已有内容 {{canvasContext}} ## 业务定义与绑定数据集上下文 {{businessContext}} ## 用户需求 {{prompt}} ## 可用组件 {{componentCatalog}} ## 输出格式 { "title": "大屏标题", "canvasConfig": { "width": {{canvasWidth}}, "height": {{canvasHeight}}, "background": "{{backgroundColor}}" }, "components": [ { "key": "组件key", "x": 20, "y": 100, "w": 500, "h": 300, "title": "组件标题", "option": {}, "request": { "datasetId": 123, "datasetName": "数据集名称", "datasetFields": ["维度字段", "指标字段"], "datasetMapping": { "mode": "auto", "fieldMap": {}, "syncHeader": true } } } ] } ## option 规则 - 如果“业务定义与绑定数据集上下文”中提供了 datasets,图表、表格、排行、指标类组件应优先绑定其中的 datasetId。只有标题、装饰、说明或无法匹配数据集的组件才使用纯静态数据。 - 绑定数据集时必须在组件上输出 request.datasetId;datasetFields 只能使用该数据集 fields 中存在的 fieldName。request.datasetMapping.fieldMap 可声明 category/value/name/time/series 等组件语义字段到数据集 fieldName 的映射。 - 绑定了 request.datasetId 的组件仍可提供 option.dataset 作为兜底预览数据,但运行时会由数据集查询刷新。 - ECharts 和 VChart 图表只填 option.dataset,不要写 series、xAxis、yAxis、tooltip。 - 普通图表 dataset: { "dimensions": ["类目", "系列1", "系列2"], "source": [{"类目": "1月", "系列1": 820.5, "系列2": 320.2}] } - 饼图 PieCommon/PieCircle/VChartPie 只能有 2 个 dimensions: 名称和值。 - Radar: { "dataset": { "radarIndicator": [{"name": "指标", "max": 100}], "seriesData": [{"name": "当前", "value": [80, 90]}] } } - ScreenTitle 系列: { "dataset": "大屏标题", "subtitle": "实时监控", "fontSize": 46, "accentColor": "#25d8ff", "showBorder": true, "showBackground": true, "showDecorations": true } - KpiGroup: { "dataset": [{"title": "今日产量", "value": 12345.6, "unit": "件", "trend": "+12.5%"}], "columns": 4, "accentColor": "#25d8ff" } - KpiCard: { "title": "今日产量", "dataset": 12345.6, "unit": "件", "trendValue": 12.5, "trendType": "up", "iconText": "KPI", "accentColor": "#25d8ff", "borderColor": "#1c95ff", "numberColor": "#f7fbff", "labelColor": "#b8d7ff", "backgroundColor": "#061a3acc" } - SectionHeader: { "title": "模块标题", "subtitle": "SECTION OVERVIEW", "unit": "单位", "accentColor": "#25d8ff" } - StatusBadgeList: { "dataset": [{"label": "运行中", "value": 126, "color": "#47ffb2"}], "columns": 4, "unit": "台" } - DataPairList: { "dataset": [{"label": "设备编号", "value": "CNC-01"}], "columns": 2 } - MiniTrendCard: { "title": "实时产量", "dataset": 12850, "unit": "件", "trend": "+12.5%", "points": [18, 28, 24, 42, 38, 56, 68] } - TimelineList: { "dataset": [{"time": "10:23", "title": "CNC-01 温度过高", "level": "高", "status": "danger"}] } - StepFlow: { "dataset": [{"title": "投料", "status": "done"}, {"title": "加工", "status": "active"}, {"title": "质检", "status": "pending"}] } - DividerLine: { "direction": "horizontal", "thickness": 2, "accentColor": "#25d8ff", "secondColor": "#47ffb2" } - GlowBackdrop: { "variant": "reactor", "accentColor": "#25d8ff", "secondColor": "#47ffb2", "thirdColor": "#ffcf5a", "opacity": 0.9 }。variant 可选 reactor、grid、wing、stargate、radar,且应作为背景低层组件使用。 - PanelFrame 系列: { "title": "模块标题", "unit": "单位", "accentColor": "#25d8ff", "borderColor": "#1d70ff" } - TextCommon/TextGradient: { "dataset": "文字", "fontSize": 36, "fontColor": "#ffffff", "fontWeight": "bold", "textAlign": "center", "letterSpacing": 4 } - FlipperNumber: { "dataset": 12345.6, "unit": "万元" } - RankProgressList: { "dataset": [{"name": "项目A", "value": 96.8}], "unit": "%", "max": 100 } - TableList: { "dataset": [{"name": "项目A", "value": 100.5}] } - TableScrollBoard: { "header": ["列1", "列2"], "dataset": [["值1", "值2"]] } - WordCloud/VChartWordCloud: { "dataset": [{"name": "关键词", "value": 100}] } - Border01-Border13、Clock、CountDown 不要 option 字段;PanelFrame/PanelFrame02 需要 option.title、option.accentColor、option.borderColor。 ## 自检 输出前检查:JSON 可解析;没有尾逗号;没有中文占位数字;组件不越界;非模块框/边框组件不重叠;PanelFrame/边框只包裹紧随其后的组件;GlowBackdrop 不被 PanelFrame/Border 包裹;标题优先用 ScreenTitle;整体有主图、指标、辅助分析;复用足量动态/特效/装饰组件;版式非对称有错落层级;整个大屏颜色统一协调。',2075737070143303682,'deepseek-v4-pro','PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 0, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-04-13 17:38:55',1,'2026-07-11 14:24:45',0,NULL), (2,1,'流程BPMN生成助手','flow_bpmn_builder','根据自然语言生成或修改 Flowable BPMN XML 流程配置','你是一个 Flowable BPMN 流程设计专家。你需要根据用户的自然语言需求,生成或修改企业审批流程的 BPMN 2.0 XML 配置。 你会收到“平台流程配置上下文”,其中包含当前系统可用的审批人类型、表单类型、会签策略、SPEL表达式模板、启用表单和当前模型节点配置。生成或修改流程时必须优先复用这些上下文,避免编造系统不存在的表达式、表单Key、表单URL或审批配置。 你必须严格输出一个 JSON 对象,不要输出 Markdown、解释文本或代码块。 JSON 字段: - modelKey: 流程标识。优先使用用户传入的当前 modelKey。 - modelName: 流程名称。 - description: 流程说明。 - category: 流程分类编码,可为空。 - flowType: 流程类型,可为空。 - formType: dynamic/external/none。 - formJson: 动态表单 JSON 数组或空字符串。 - summary: 本次生成或修改摘要。 - bpmnXml: 完整 BPMN 2.0 XML 字符串。 BPMN XML 约束: 1. definitions 必须包含 bpmn、bpmndi、dc、di、xsi、flowable 命名空间。 2. process id 必须等于 modelKey,且 isExecutable="true"。 3. 必须包含 startEvent、endEvent、BPMNDiagram、BPMNPlane、BPMNShape、BPMNEdge。 4. 所有 sequenceFlow 的 sourceRef/targetRef 必须引用真实存在的节点。 5. 用户任务审批人优先使用 flowable:assignee、flowable:candidateUsers、flowable:candidateGroups。 6. 发起人使用 flowable:initiator="initiator"。 7. 条件分支使用 bpmn:conditionExpression,表达式可使用流程变量,例如 ${amount > 5000}。 8. 节点 id 使用英文、数字、下划线,禁止中文 id。 9. 图形坐标从左到右布局,避免节点重叠。 10. bpmnXml 必须是 JSON 字符串中的合法值,换行和双引号必须正确转义。 如果用户要求修改当前流程,必须基于当前 BPMN XML 增量修改,保留未被要求改变的节点、条件和审批人配置。',2054373853659234305,'deepseek-v4-pro','PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 2, "openingStatement": "测试\\n", "suggestedQuestions": []}','0',NULL,'2026-05-07 15:02:52',1,'2026-06-18 15:58:10',0,NULL), (3,1,'低代码业务系统生成 Agent','lowcode_system_generator','根据用户业务需求自动划分业务领域、生成数据模型和低代码应用草稿','你是 Forge 低代码业务系统生成 Agent。用户只输入完整业务需求,你需要自动完成业务领域划分、数据模型设计、应用页面规划和页面模板选择。你必须只输出一个合法 JSON 对象,不输出 Markdown、解释、注释或额外前后缀。输出内容必须遵守已注入的低代码协议上下文。AI 结果只能作为草稿建议,不能自动保存、不能执行 DDL、不能发布应用,必须等待用户确认。',2054373853659234305,'deepseek-v4-pro','PINNED',NULL,0.30,6000,'{"scene": "lowcode-system-generator", "skills": [], "mcpTools": ["http_request", "workflow_trigger", "code_executor"], "saveMode": "confirm-before-save", "contextCount": 4, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-05-25 14:25:15',1,'2026-07-03 15:12:04',0,'1'), (104,1,'CRUD配置生成器','crud_config_builder','根据自然语言描述或数据库表结构生成CRUD配置JSON','你是一个CRUD配置生成专家。根据用户的描述或数据库表结构,生成符合AiCrudPage组件规范的CRUD配置JSON。 配置JSON必须包含以下字段: - tableName: 表名 - tableComment: 表描述 - searchSchema: 搜索表单配置数组,每项包含field/label/type,可选dictType - columnsSchema: 表格列配置数组,每项包含key/title/dataIndex,最后一列为操作列(key=actions) - editSchema: 编辑表单配置数组,每项包含field/label/type/required,可选dictType/props - apiConfig: API配置对象 搜索type可选:input/select/daterange/number 编辑type可选:input/textarea/select/radio/checkbox/switch/date/datetime/number/upload/imageUpload/fileUpload/cascader/treeSelect 基类字段(id/tenant_id/create_by/create_time/create_dept/update_by/update_time/del_flag)不进editSchema 有dictType的select字段必须加上dictType属性 请仅输出JSON,不要输出其他内容。',2054373853659234305,'deepseek-v4-pro','PINNED',NULL,0.30,4096,'{"skills": [], "mcpTools": [], "contextCount": 2, "openingStatement": "1111", "suggestedQuestions": []}','0',NULL,'2026-04-20 17:47:33',1,'2026-07-15 06:57:36',0,NULL), (1001,1,'代码生成字段顾问','codegen_column_advisor','根据数据库字段信息推荐Java类型、表单组件、字典类型、验证规则','你是一个数据库字段配置顾问。根据用户提供的表信息和字段列表,推荐每个字段的最佳配置。 ## 输入格式 用户会提供表名、表注释和字段列表(包含字段名、数据库类型、注释)。 ## 你需要推荐 对每个字段推荐以下配置: 1. javaType:Java 类型(Integer/Long/String/BigDecimal/LocalDateTime/LocalDate/Boolean) 2. htmlType:表单组件(INPUT/TEXTAREA/SELECT/RADIO/CHECKBOX/DATETIME/IMAGE/FILE/EDITOR) 3. dictType:字典编码(如果字段是枚举类型,推荐合适的字典编码;不是字典类型则为空) 4. queryType:查询方式(EQ/LIKE/BETWEEN/GT/LT/IN) 5. isRequired:是否必填(1必填/0非必填) 6. validateRule:验证规则JSON(如 {"required":true,"pattern":"^1[3-9]\\\\d{9}$","message":"手机号格式不正确"}) ## 推断规则 - 字段名含 status/type/category/level → 推荐 SELECT 组件 + 对应字典 - 字段名含 name/title → 推荐 INPUT + LIKE 查询 - 字段名含 amount/price/money → 推荐 INPUT + BigDecimal + 金额验证 - 字段名含 phone/mobile → 推荐 INPUT + 手机号验证 - 字段名含 email → 推荐 INPUT + 邮箱验证 - 字段名含 description/content/remark 且 varchar>255 → 推荐 TEXTAREA - 字段名含 time/date → 推荐 DATETIME + BETWEEN 查询 - 字段名含 image/avatar/logo/pic/photo → 推荐 IMAGE - 字段名含 file/attachment → 推荐 FILE - 字段名含 content/body 且 text类型 → 推荐 EDITOR - tinyint(1) → Boolean + RADIO - 基类字段(id/tenant_id/create_by/create_time/create_dept/update_by/update_time/remark)→ isInsert=0,isEdit=0,isList=0,isQuery=0 ## 字典列表 以下是系统中已有的字典编码,请优先使用: {{dictList}} ## 输出格式 返回 JSON 数组,每个元素对应一个字段的推荐配置: ```json [ { "columnName": "字段名", "javaType": "Java类型", "htmlType": "表单组件", "dictType": "字典编码或空", "queryType": "查询方式", "isRequired": 0, "validateRule": "{}" } ] ``` 只返回 JSON 数组,不要返回其他内容。',NULL,NULL,'PINNED',NULL,0.30,4096,NULL,'0',NULL,'2026-04-20 14:22:46',1,'2026-05-15 17:47:01',0,NULL), (1002,1,'代码生成Schema构建器','codegen_schema_builder','根据自然语言描述推断数据模型Schema','你是一个数据模型设计专家。根据用户的自然语言描述,推断出完整的数据表结构。 ## 推断规则 1. 根据描述推断表名(小写字母+下划线,如 biz_order)和表注释 2. 推断合理的字段列表,每个字段包含: - columnName:字段名(小写字母+下划线) - columnComment:字段注释 - columnType:数据库类型(如 varchar(255)、bigint、int、decimal(10,2)、datetime) - javaType:Java 类型 - javaField:Java 字段名(小驼峰) - htmlType:表单组件 - dictType:字典编码(如适用) - isRequired:是否必填 - validateRule:验证规则JSON 3. 不需要包含基类字段(id/tenant_id/create_by/create_time/create_dept/update_by/update_time),系统会自动追加 4. 主键 id 不需要指定 5. 字段类型选择遵循 MySQL 最佳实践 ## 字典列表 以下是系统中已有的字典编码,请优先使用: {{dictList}} ## 输出格式 返回 JSON 对象: ```json { "tableName": "表名", "tableComment": "表注释", "columns": [ { "columnName": "字段名", "columnComment": "字段注释", "columnType": "数据库类型", "javaType": "Java类型", "javaField": "java字段名", "htmlType": "表单组件", "dictType": "字典编码或空", "isRequired": 0, "validateRule": "{}" } ] } ``` 只返回 JSON 对象,不要返回其他内容。',NULL,NULL,'PINNED',NULL,0.30,4096,NULL,'0',NULL,'2026-04-20 14:22:46',1,'2026-07-06 11:27:54',0,NULL), (2059214156555722753,1,'智能客服','comster','','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',2054373853659234305,NULL,'PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 0, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-05-26 18:04:48',1,'2026-06-07 21:05:48',0,'2'), (2065608043843035137,0,'111','a11','','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',NULL,NULL,'PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 0, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-06-13 09:31:49',1,'2026-06-24 15:37:50',0,'2'), (2068695481209667585,0,'Ggg','gvgg','','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',NULL,NULL,'PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-06-21 22:00:12',1,'2026-07-05 22:29:43',0,'2'), (2071208712998268929,0,'deepseek66','d001','deepseek模型','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',2075737070143303682,'deepseek-v4-pro','PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 0, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-06-28 20:26:53',1,'2026-07-13 18:19:17',0,'6'); INSERT INTO ai_agent (id,tenant_id,agent_name,agent_code,description,system_prompt,provider_id,model_name,model_selection_mode,route_policy_id,temperature,max_tokens,extra_config,status,create_by,create_time,update_by,update_time,del_flag,create_dept) VALUES (2071826751582154753,0,'test','test','','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',NULL,NULL,'PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 0, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-06-30 13:22:45',1,'2026-07-08 10:15:09',0,'6'), (2079105351108796417,0,'流程模型','bpmn1','','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',2075737070143303682,NULL,'PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "contextCount": 0, "openingStatement": "", "suggestedQuestions": []}','0',1,'2026-07-20 15:25:18',1,'2026-07-21 23:04:59',0,'6'), (2079737984897568770,0,'标书数学','bs123321532','','你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。 要求: 1. 优先基于已配置的上下文和工具能力回答。 2. 不确定的信息要说明限制,不要编造。 3. 输出结构清晰,必要时给出步骤或清单。',2075737070143303682,NULL,'PINNED',NULL,0.70,4000,'{"skills": [], "mcpTools": [], "openingStatement": "", "suggestedQuestions": []}','1',1,'2026-07-22 09:19:10',1,'2026-07-22 09:19:10',0,'6'); INSERT INTO ai_business_action_execution_log (id,tenant_id,suite_code,object_code,record_id,action_code,action_name,execute_status,request_digest,step_result,result_message,error_message,correlation_id,idempotency_key,duration_ms,capability_request_id,client_id,service_user_id,actor_type,create_by,create_time,create_dept,update_by,update_time) VALUES (2073992579186487297,1,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER','1950000000000009262','submit_outbound_approval','提交审批并锁定库存','FAILED','sha256:898da4de37f680b7d0948fc022605ab0d16d4171ac08d5586cea642db9783e2c; {"objectCode":"PW_OUTBOUND_ORDER","recordId":"1950000000000009262","actionCode":"submit_outbound_approval","formKeys":[],"contextKeys":["routeQuery","row"]}','[{"result": {"itemCount": 1, "rowResults": [{"status": "SUCCESS", "itemIndex": 0, "stepResults": [{"result": {"lockId": "2073992579543003138", "message": "数量已锁定", "itemCode": "1950000000000009201", "ledgerId": "2073992579647860738", "quantity": 12, "itemIndex": 0, "accountCode": "1950000000000009221", "dimensionKey": "", "idempotentHit": false, "operationType": "LOCK", "lockedQuantity": 24, "targetItemCode": null, "targetLedgerId": null, "balanceQuantity": 150, "domainActionType": "QUANTITY", "availableQuantity": 126, "targetAccountCode": null, "targetDimensionKey": null, "targetLockedQuantity": null, "targetBalanceQuantity": null, "targetAvailableQuantity": null}, "status": "SUCCESS", "message": "数量已锁定", "stepCode": "outbound_item_lock", "stepName": "明细锁定", "stepType": "DOMAIN_ACTION", "durationMs": 79, "errorMessage": null}]}]}, "status": "SUCCESS", "message": "循环步骤执行完成,共 1 行", "stepCode": "foreach_outbound_lock_items", "stepName": "逐行锁定出库数量", "stepType": "FOREACH", "durationMs": 81, "errorMessage": null}, {"result": {}, "status": "FAILED", "message": "步骤执行失败", "stepCode": "start_outbound_flow", "stepName": "发起出库审批", "stepType": "START_FLOW", "durationMs": 170, "errorMessage": "当前状态「已提交」不可发起主流程"}]','出库审批提交或库存锁定失败','当前状态「已提交」不可发起主流程','a2a4a2370f2843dbb3ed76cd0f9890b6',NULL,378,NULL,NULL,NULL,NULL,1,'2026-07-06 12:48:58',6,1,'2026-07-06 12:48:59'), (2076087035855417345,1,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER','1950000000000009262','submit_outbound_approval','提交审批并锁定库存','FAILED','sha256:898da4de37f680b7d0948fc022605ab0d16d4171ac08d5586cea642db9783e2c; {"objectCode":"PW_OUTBOUND_ORDER","recordId":"1950000000000009262","actionCode":"submit_outbound_approval","formKeys":[],"contextKeys":["routeQuery","row"]}','[{"result": {"itemCount": 1, "rowResults": [{"status": "SUCCESS", "itemIndex": 0, "stepResults": [{"result": {"lockId": "2076087036144824321", "message": "数量已锁定", "itemCode": "1950000000000009201", "ledgerId": "2076087036241293314", "quantity": 12, "itemIndex": 0, "accountCode": "1950000000000009221", "dimensionKey": "", "idempotentHit": false, "operationType": "LOCK", "lockedQuantity": 24, "targetItemCode": null, "targetLedgerId": null, "balanceQuantity": 150, "domainActionType": "QUANTITY", "availableQuantity": 126, "targetAccountCode": null, "targetDimensionKey": null, "targetLockedQuantity": null, "targetBalanceQuantity": null, "targetAvailableQuantity": null}, "status": "SUCCESS", "message": "数量已锁定", "stepCode": "outbound_item_lock", "stepName": "明细锁定", "stepType": "DOMAIN_ACTION", "durationMs": 77, "errorMessage": null}]}]}, "status": "SUCCESS", "message": "循环步骤执行完成,共 1 行", "stepCode": "foreach_outbound_lock_items", "stepName": "逐行锁定出库数量", "stepType": "FOREACH", "durationMs": 81, "errorMessage": null}, {"result": {}, "status": "FAILED", "message": "步骤执行失败", "stepCode": "start_outbound_flow", "stepName": "发起出库审批", "stepType": "START_FLOW", "durationMs": 142, "errorMessage": "当前状态「已提交」不可发起主流程"}]','出库审批提交或库存锁定失败','当前状态「已提交」不可发起主流程','22a1a93da4a14e4393996e82f5c3d979',NULL,329,NULL,NULL,NULL,NULL,1,'2026-07-12 07:31:36',6,1,'2026-07-12 07:31:36'); INSERT INTO ai_business_app (id,tenant_id,app_code,app_name,app_type,application_id,suite_code,object_code,entry_mode,entry_url,config_key,icon,description,status,sort_order,`options`,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000000301,1,'CRM_CUSTOMER_MANAGE','客户','BUSINESS',1110789817060294726,'CRM','CUSTOMER','RUNTIME','/ai/crud-page/crm_customer','crm_customer','ionicons5:BusinessOutline','客户',1,0,'{"source": "lowcode_publish"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000302,1,'CRM_CONTACT_MANAGE','联系人','BUSINESS',1110789817060294656,'CRM','CONTACT','RUNTIME','/ai/crud-page/crm_contact','crm_contact','ionicons5:PersonOutline','联系人',1,0,'{"source": "lowcode_publish"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000303,1,'CRM_LEAD_MANAGE','线索','BUSINESS',1110789817060294657,'CRM','LEAD','RUNTIME','/ai/crud-page/crm_lead','crm_lead','ionicons5:SparklesOutline','线索',1,3,'{"source": "lowcode_publish"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000304,1,'CRM_OPPORTUNITY_MANAGE','商机管理','BUSINESS',1110789817060294658,'CRM','OPPORTUNITY','RUNTIME','/ai/crud-page/crm_opportunity','crm_opportunity','ionicons5:TrendingUpOutline','商机标准后台业务入口',1,4,'{"sample": true, "adminMenu": {"path": "/ai/crud-page/crm_opportunity?appId=1910000000000000304&runtimeOpenMode=LIST", "sort": 4, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9393", "suiteAsParent": true, "actualParentId": "9392", "menuResourceId": "9393", "suiteMenuResourceId": "9392"}, "entryGroup": "crm-standard"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000305,1,'CRM_CONTRACT_MANAGE','合同','BUSINESS',1110789817060294726,'CRM','CONTRACT','RUNTIME','/ai/crud-page/crm_contract','crm_contract','ionicons5:DocumentTextOutline','合同',1,0,'{"source": "lowcode_publish"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000306,1,'CRM_PAYMENT_MANAGE','回款管理','BUSINESS',1110789817060294726,'CRM','PAYMENT','RUNTIME','/ai/crud-page/crm_payment','crm_payment','ionicons5:WalletOutline','回款标准后台业务入口',1,6,'{"sample": true, "entryGroup": "crm-standard"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000307,1,'CRM_FOLLOW_RECORD_MANAGE','跟进记录','BUSINESS',1110789817060294658,'CRM','FOLLOW_RECORD','RUNTIME','/ai/crud-page/crm_follow_record','crm_follow_record','ionicons5:ChatbubblesOutline','跟进记录',1,8,'{"source": "lowcode_publish"}',1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56',0), (1910000000000000308,1,'CRM_SALES_TASK_MANAGE','销售任务','BUSINESS',1110789817060294661,'CRM','SALES_TASK','RUNTIME','/ai/crud-page/crm_sales_task','crm_sales_task','ionicons5:CheckboxOutline','销售任务标准后台业务入口',1,8,'{"sample": true, "entryGroup": "crm-standard"}',1,'2026-05-27 13:01:03',1,1,'2026-07-22 13:31:05',0), (1910000000000000941,1,'PW_MATERIAL_MANAGE','物料','BUSINESS',1110789817060294662,'PROCUREMENT_WAREHOUSE','PW_MATERIAL','RUNTIME','/ai/crud-page/pw_material','pw_material','ionicons5:CubeOutline','物料',1,10,'{"source": "lowcode_publish"}',1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56',0), (1910000000000000942,1,'PW_SUPPLIER_MANAGE','供应商','BUSINESS',1110789817060294663,'PROCUREMENT_WAREHOUSE','PW_SUPPLIER','RUNTIME','/ai/crud-page/pw_supplier','pw_supplier','ionicons5:PeopleOutline','供应商',1,20,'{"source": "lowcode_publish"}',1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56',0); INSERT INTO ai_business_app (id,tenant_id,app_code,app_name,app_type,application_id,suite_code,object_code,entry_mode,entry_url,config_key,icon,description,status,sort_order,`options`,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000000943,1,'PW_WAREHOUSE_MANAGE','仓库','BUSINESS',1110789817060294664,'PROCUREMENT_WAREHOUSE','PW_WAREHOUSE','RUNTIME','/ai/crud-page/pw_warehouse','pw_warehouse','ionicons5:HomeOutline','仓库',1,30,'{"source": "lowcode_publish"}',1,'2026-07-03 14:25:24',1,1,'2026-07-23 00:29:38',0), (1910000000000000944,1,'PW_PURCHASE_MANAGE','采购单','BUSINESS',1110789817060294665,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER','RUNTIME','/ai/crud-page/pw_purchase_order','pw_purchase_order','ionicons5:CartOutline','采购单',1,40,'{"source": "lowcode_publish"}',1,'2026-07-03 14:25:24',1,1,'2026-07-22 15:38:52',0), (1910000000000000945,1,'PW_OUTBOUND_MANAGE','出库管理','BUSINESS',1110789817060294666,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER','RUNTIME',NULL,'pw_outbound_order','ionicons5:ExitOutline','出库申请基础 CRUD,后续接入锁定和扣减动作',1,50,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/pw_outbound_order?appId=1910000000000000945&runtimeOpenMode=LIST", "sort": 50, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9441", "suiteAsParent": true, "actualParentId": "9440", "menuResourceId": "9441", "suiteMenuResourceId": "9440"}, "entryType": "OBJECT_LIST", "lowcodeApp": true, "mountTarget": "ADMIN", "defaultParams": {}, "targetPageKey": "list", "runtimeOpenMode": "LIST"}',1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56',0), (1910000000000000946,1,'PW_TRANSFER_MANAGE','调拨管理','BUSINESS',1110789817060294667,'PROCUREMENT_WAREHOUSE','PW_TRANSFER_ORDER','RUNTIME',NULL,'pw_transfer_order','ionicons5:SwapHorizontalOutline','调拨申请基础 CRUD,后续接入转移动作',1,60,'{"lowcodeApp": true, "targetPageKey": "list", "runtimeOpenMode": "LIST"}',1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56',0), (1910000000000005108,1,'CRM_OPPORTUNITY_STATS','商机看板','BUSINESS',1110789817060294658,'CRM','OPPORTUNITY','ROUTE','/app-center/stats?configKey=crm_opportunity&objectCode=OPPORTUNITY&suiteCode=CRM','crm_opportunity','ionicons5:StatsChartOutline','商机阶段、金额和流程结果统计看板',1,40,'{"sample": true, "entryGroup": "crm-analytics"}',1,'2026-06-02 06:48:46',1,1,'2026-07-14 06:48:56',0), (1910000000000005206,1,'HR_LEAVE_APPLICATION_MANAGE','离职申请','BUSINESS',1110789817060294668,'HR','LEAVE_APPLICATION','RUNTIME','/ai/crud-page/hr_leave_application','hr_leave_application','ionicons5:ExitOutline','离职申请',1,0,'{"source": "lowcode_publish", "appMode": "CODE_DOWNLOAD", "codegen": {"includeSql": true, "moduleName": "hr", "sourceType": "DRAFT", "includeDictSql": true, "includeMenuSql": true, "businessApiBase": "/hr/leave-application", "frontendBasePath": "frontend/src/views"}, "adminMenu": {"sort": 0, "syncEnabled": false, "suiteAsParent": true}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "targetFormKey": "hr_leave_application_default_form", "targetPageKey": "list", "permissionCode": "ai:business:LEAVE_APPLICATION:list", "runtimeOpenMode": "LIST"}',1,'2026-06-02 06:48:47',1,1,'2026-07-14 06:48:56',0), (1910000000000005207,1,'HR_LEAVE_HANDOVER_MANAGE','离职交接','BUSINESS',1110789817060294669,'HR','LEAVE_HANDOVER','RUNTIME','/ai/crud-page/hr_leave_handover','hr_leave_handover','ionicons5:ClipboardOutline','离职交接记录入口',1,2,'{"sample": true, "adminMenu": {"path": "/ai/crud-page/hr_leave_handover?appId=1910000000000005207&runtimeOpenMode=LIST", "sort": 2, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9302", "suiteAsParent": true, "actualParentId": "9284", "menuResourceId": "9302", "suiteMenuResourceId": "9284"}, "entryGroup": "hr-leave", "mountTarget": "ADMIN", "runtimeOpenMode": "LIST"}',1,'2026-06-02 06:48:47',1,1,'2026-07-14 06:48:56',0), (1910000000000008303,1,'PURCHASE_ORDER_APPROVAL_TEST','采购单审批测试','BUSINESS',1110789817060294670,'PURCHASE','sample_purchase_order','ROUTE','/business/purchase-order-test',NULL,'ionicons5:ClipboardOutline','打开采购单审批测试页面,创建采购单并验证流程节点表单权限',0,10,'{"sample": true, "codeApp": true, "flowConfigUrl": "/app-center/object/sample_purchase_order/designer?panel=flow-app&codeApp=1&name=采购申请"}',1,'2026-06-29 10:34:00',1,1,'2026-07-14 06:48:56',0), (2063913897860308994,1,'IN_OUT_IN_OUT_HISTORY_RUNTIME','InOutHistory','BUSINESS',1110789817060294671,'IN_OUT','in_out_history','RUNTIME','/ai/crud-page/in_out_history','in_out_history','ionicons5:AppsOutline','InOutHistory',1,0,'{"source": "lowcode_publish", "adminMenu": {"path": "/ai/crud-page/in_out_history?appId=2063913897860308994&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9372", "suiteAsParent": true, "actualParentId": "9371", "menuResourceId": "9372", "suiteMenuResourceId": "9371"}}',1,'2026-06-08 17:19:54',2,1,'2026-07-14 06:48:56',0), (2064182964550672385,1,'TB','TB','BUSINESS',1110789817060294672,'TTT','tbill_code','RUNTIME',NULL,'ttt_tbill_code',NULL,NULL,1,0,'{"adminMenu": {"path": "/ai/crud-page/ttt_tbill_code?appId=2064182964550672385&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9293", "suiteAsParent": true, "actualParentId": "9549", "menuResourceId": "9293", "suiteMenuResourceId": "9549"}, "mountTarget": "ADMIN", "runtimeOpenMode": "LIST"}',1,'2026-06-09 11:09:04',2,1,'2026-07-17 14:35:08',0); INSERT INTO ai_business_app (id,tenant_id,app_code,app_name,app_type,application_id,suite_code,object_code,entry_mode,entry_url,config_key,icon,description,status,sort_order,`options`,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (2068689395142389762,1,'TEST_DATASOURCE_ORDER_MANAGEMENT_RUNTIME','订单管理','BUSINESS',1110789817060294675,'TEST_DATASOURCE','order_management','RUNTIME','/ai/crud-page/test_datasource_order_management','test_datasource_order_management','ionicons5:AppsOutline','订单管理',1,0,'{"source": "lowcode_publish", "appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/test_datasource_order_management?appId=2068689395142389762&runtimeOpenMode=LIST", "sort": 0, "parentId": "9403", "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9402", "suiteAsParent": false, "actualParentId": "9403", "menuResourceId": "9402", "originalParentId": "9403"}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "defaultParams": {}, "targetPageKey": "list", "runtimeOpenMode": "LIST"}',1,'2026-06-21 21:36:01',2,1,'2026-07-14 06:48:56',0), (2070067878156353538,1,'TPM_ASSET_CREATE','资产设备维护','BUSINESS',1110789817060294676,'ASSET_DEVICE_SYSTEM','asset_device_create','RUNTIME',NULL,'asset_device_system_asset_device_create','ionicons5:Build','打开资产设备维护的列表或填报页面',1,0,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/asset_device_system_asset_device_create?appId=2070067878156353538&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9404", "suiteAsParent": true, "actualParentId": "9551", "menuResourceId": "9404", "suiteMenuResourceId": "9551"}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "defaultParams": {}, "targetPageKey": "list", "permissionCode": "ai:business:asset_device_create:list", "runtimeOpenMode": "LIST"}',1,'2026-06-25 16:53:37',6,1,'2026-07-22 14:13:14',0), (2071021662462324737,1,'crm_xians','线索入口','BUSINESS',1110789817060294657,'CRM','LEAD','RUNTIME',NULL,'crm_lead',NULL,'打开线索的列表或填报页面',1,0,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/crm_lead?appId=2071021662462324737&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9405", "suiteAsParent": true, "actualParentId": "9392", "menuResourceId": "9405", "suiteMenuResourceId": "9392"}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "defaultParams": {}, "targetPageKey": "list", "runtimeOpenMode": "LIST"}',1,'2026-06-28 08:03:37',6,1,'2026-07-14 06:48:56',0), (2071021763234672641,1,'crm_hetong1','合同入口','BUSINESS',1110789817060294726,'CRM','CONTRACT','RUNTIME',NULL,'crm_contract',NULL,'打开合同的列表或填报页面',1,0,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/crm_contract?appId=2071021763234672641&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9406", "suiteAsParent": true, "actualParentId": "9392", "menuResourceId": "9406", "suiteMenuResourceId": "9392"}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "defaultParams": {}, "targetPageKey": "list", "runtimeOpenMode": "LIST"}',1,'2026-06-28 08:04:01',6,1,'2026-07-14 06:48:56',0), (2071515329656565762,1,'LSJY_LSJY_DESK_RUNTIME','桌台','BUSINESS',1110789817060294678,'LSJY','lsjy_desk','RUNTIME','/ai/crud-page/lsjy_desk','lsjy_desk','ionicons5:AppsOutline','桌台',1,0,'{"source": "lowcode_publish"}',1,'2026-06-29 16:45:16',6,1,'2026-07-14 06:48:56',0), (2071516567991267330,1,'desk','桌台管理','BUSINESS',1110789817060294678,'LSJY','lsjy_desk','RUNTIME',NULL,'lsjy_desk','ionicons5:AddCircleSharp','打开桌台的列表或填报页面',1,0,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/lsjy_desk?appId=2071516567991267330&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9422", "suiteAsParent": true, "actualParentId": "9419", "menuResourceId": "9422", "suiteMenuResourceId": "9419"}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "defaultParams": {"formDefaultValues": {"deskNum": 2}}, "targetPageKey": "list", "permissionCode": "ai:business:lsjy_desk:list", "runtimeOpenMode": "LIST"}',1,'2026-06-29 16:50:11',6,1,'2026-07-14 06:48:56',0), (2072219603706064897,1,'PURCHASE_MATERIAL_RUNTIME','物料管理','BUSINESS',1110789817060294680,'PURCHASE','material','RUNTIME','/ai/crud-page/purchase_material','purchase_material','ionicons5:AppsOutline','物料管理',0,0,'{"source": "lowcode_publish"}',1,'2026-07-01 15:23:48',6,1,'2026-07-14 06:48:56',0), (2072245036191330305,1,'PURCHASE_WAREHOUSE_MANAGEMENT_RUNTIME','仓库管理','BUSINESS',1110789817060294681,'PURCHASE','warehouse_management','RUNTIME','/ai/crud-page/purchase_warehouse_management','purchase_warehouse_management','ionicons5:AppsOutline','仓库管理',0,0,'{"source": "lowcode_publish"}',1,'2026-07-01 17:04:52',6,1,'2026-07-14 06:48:56',0), (2073052572570349570,1,'PROCUREMENT_WAREHOUSE_PW_OUTBOUND_ORDER_ITEM_RUNTIME','出库明细','BUSINESS',1110789817060294666,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER_ITEM','RUNTIME','/ai/crud-page/pw_outbound_order_item','pw_outbound_order_item','ionicons5:ListOutline','出库明细',1,80,'{"source": "lowcode_publish"}',1,'2026-07-03 22:33:43',6,1,'2026-07-14 06:48:56',0), (2073215476800139265,1,'PROCUREMENT_WAREHOUSE_PW_SUPPLIER_MATERIAL_RUNTIME','供应商报价','BUSINESS',1110789817060294663,'PROCUREMENT_WAREHOUSE','PW_SUPPLIER_MATERIAL','RUNTIME','/ai/crud-page/pw_supplier_material','pw_supplier_material','ionicons5:PricetagOutline','供应商报价',1,25,'{"source": "lowcode_publish"}',1,'2026-07-04 09:21:03',6,1,'2026-07-14 06:48:56',0); INSERT INTO ai_business_app (id,tenant_id,app_code,app_name,app_type,application_id,suite_code,object_code,entry_mode,entry_url,config_key,icon,description,status,sort_order,`options`,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (2073285787654537217,1,'PROCUREMENT_WAREHOUSE_PW_PURCHASE_ORDER_ITEM_RUNTIME','采购明细','BUSINESS',1110789817060294665,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER_ITEM','RUNTIME','/ai/crud-page/pw_purchase_order_item','pw_purchase_order_item','ionicons5:ListOutline','采购明细',1,60,'{"source": "lowcode_publish"}',1,'2026-07-04 14:00:26',6,1,'2026-07-14 20:15:52',0), (2076609726073131009,1,'PROCUREMENT_WAREHOUSE_PRODUCT_RUNTIME','产品','BUSINESS',1110789817060294684,'PROCUREMENT_WAREHOUSE','product','RUNTIME','/ai/crud-page/procurement_warehouse_product','procurement_warehouse_product','ionicons5:AppsOutline','产品',1,0,'{"source": "lowcode_publish"}',1,'2026-07-13 18:08:35',6,1,'2026-07-20 10:53:05',0), (2076866317318647809,1,'PURCHASE_PROCUREMENT_RUNTIME','采购管理','BUSINESS',NULL,'PURCHASE','procurement','RUNTIME','/ai/crud-page/purchase_procurement','purchase_procurement','ionicons5:AppsOutline','采购管理',1,0,'{"source": "lowcode_publish"}',1,'2026-07-14 11:08:11',6,1,'2026-07-22 14:19:05',0), (2077006139794391042,1,'PROCUREMENT_WAREHOUSE_TF_F_ORDER_RUNTIME','订单基本信息','BUSINESS',NULL,'PROCUREMENT_WAREHOUSE','tf_f_order','RUNTIME','/ai/crud-page/procurement_warehouse_tf_f_order','procurement_warehouse_tf_f_order','ionicons5:AppsOutline','订单基本信息',1,0,'{"source": "lowcode_publish"}',1,'2026-07-14 20:23:47',6,1,'2026-07-21 13:12:54',0), (2077006427452342274,1,'ORDERTEST','测试订单管理','BUSINESS',2077004359383646209,'PROCUREMENT_WAREHOUSE','tf_f_order','RUNTIME',NULL,'procurement_warehouse_tf_f_order','ionicons5:AlbumsOutline',NULL,1,0,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"path": "/ai/crud-page/procurement_warehouse_tf_f_order?appId=2077006427452342274&runtimeOpenMode=LIST", "sort": 0, "component": "ai/crud-page", "syncEnabled": true, "activeMenuKey": "9520", "suiteAsParent": true, "actualParentId": "9550", "menuResourceId": "9520", "suiteMenuResourceId": "9550"}, "entryType": "OBJECT_LIST", "mountTarget": "ADMIN", "targetPageKey": "list", "permissionCode": "ai:business:tf_f_order:list", "runtimeOpenMode": "LIST"}',1,'2026-07-14 20:24:56',6,1,'2026-07-21 13:12:54',0), (2077031351042809857,1,'PROCUREMENT_WAREHOUSE_TF_F_ORDER_SALES_ORDER_RUNTIME','销售订单','BUSINESS',NULL,'PROCUREMENT_WAREHOUSE','tf_f_order_sales_order','RUNTIME','/ai/crud-page/procurement_warehouse_tf_f_order_sales_order','procurement_warehouse_tf_f_order_sales_order','ionicons5:AlbumsOutline','销售订单',1,0,'{"source": "lowcode_publish"}',1,'2026-07-14 22:03:58',6,1,'2026-07-20 10:03:17',0), (2079133476546945026,1,'TF_F_ORDER_FORM','订单基本信息填报','BUSINESS',2077217535408779266,'PROCUREMENT_WAREHOUSE','tf_f_order','RUNTIME',NULL,'procurement_warehouse_tf_f_order',NULL,NULL,1,0,'{"appMode": "DYNAMIC_RENDER", "adminMenu": {"sort": 0, "syncEnabled": false, "suiteAsParent": true}, "entryType": "CREATE_FORM", "mountTarget": "ADMIN", "targetFormKey": "procurement_warehouse_tf_f_order_default_form", "targetPageKey": "list", "permissionCode": "ai:business:tf_f_order:list", "runtimeOpenMode": "CREATE_FORM"}',1,'2026-07-20 17:17:04',6,1,'2026-07-21 13:12:54',0); INSERT INTO ai_business_application (id,tenant_id,application_code,application_name,suite_code,icon,description,status,design_status,last_publish_version,last_publish_time,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294656,1,'migrated_b6489c4d977853ef1808104d','客户','CRM','ionicons5:BusinessOutline','管理客户基本信息、客户分级、所属区域和客户生命周期',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000101"}',0,1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56'), (1110789817060294657,1,'migrated_1610722b7c90e613dba89144','线索','CRM','ionicons5:SparklesOutline','管理销售线索、来源、跟进状态和转化进度',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000103"}',0,1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56'), (1110789817060294658,1,'migrated_b8eab8b4dd365f1d4ecc40b0','商机','CRM','ionicons5:TrendingUpOutline','管理商机阶段、预计金额、赢单概率和推进动作',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000104"}',0,1,'2026-05-27 13:01:03',1,1,'2026-07-14 06:48:56'), (1110789817060294659,1,'migrated_e08f778e6bf6922de6f60f00','合同','CRM','ionicons5:DocumentTextOutline','管理合同信息、合同审批、归档和履约状态',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000105"}',0,1,'2026-05-27 13:01:03',1,1,'2026-06-08 18:16:57'), (1110789817060294660,1,'migrated_b6ba1ed83187b324d64ae79a','回款','CRM','ionicons5:WalletOutline','管理回款计划、回款记录和逾期提醒',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000107"}',0,1,'2026-05-27 13:01:03',1,1,'2026-05-28 10:10:50'), (1110789817060294661,1,'migrated_fbe5fe8aa097f91699ca2c96','销售任务','CRM','ionicons5:CheckboxOutline','管理销售计划、待办任务和任务完成情况',1,'DRAFT',NULL,NULL,'{"inAppBuilder": {"nodes": [{"id": "page_home", "icon": "home", "sort": -10, "type": "page", "title": "首页", "pageType": "home"}], "pages": {"page_home": {"title": "首页", "layout": {"items": [], "gridLayout": {"gap": 8, "cols": 12, "items": [{"id": "page-title_9ieo6g", "gridH": 2, "gridW": 8, "gridX": 0, "gridY": 0, "label": "页面标题", "props": {"size": "medium", "style": {"x": "", "y": "", "width": "100%", "height": "100%", "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "pageFlowX": 48, "pageFlowY": 0, "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "pageFlowWidth": "267px", "pageFlowHeight": 56, "backgroundColor": "transparent", "pageFlowMinHeight": 273}, "title": "页面标题", "events": [], "subtitle": "页面说明或当前业务对象摘要", "statusText": "", "statusType": "info"}, "children": [], "blockType": "page-title", "fieldRefs": []}, {"id": "page-title_71gund", "gridH": 2, "gridW": 8, "gridX": 0, "gridY": 2, "label": "页面标题", "props": {"size": "medium", "style": {"x": "", "y": "", "width": "100%", "height": "100%", "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "pageFlowX": 588, "pageFlowY": 0, "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "pageFlowWidth": "180px", "pageFlowHeight": 56, "backgroundColor": "transparent"}, "title": "页面标题", "events": [], "subtitle": "页面说明或当前业务对象摘要", "statusText": "", "statusType": "info"}, "children": [], "blockType": "page-title", "fieldRefs": []}], "rowHeight": 32, "layoutType": "simple-crud", "designWidth": 1366}}, "description": "从左侧选择页面,或进入编辑应用开始搭建。"}}, "homePageId": "page_home", "schemaVersion": 1}, "migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000109"}',0,1,'2026-05-27 13:01:03',1,1,'2026-07-22 13:31:04'), (1110789817060294662,1,'migrated_94097d5e483e5e591c9e1ff1','物料','PROCUREMENT_WAREHOUSE','ionicons5:CubeOutline','物料基础资料',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000911"}',0,1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56'), (1110789817060294663,1,'migrated_003653beb73a26d86edf0cdf','供应商','PROCUREMENT_WAREHOUSE','ionicons5:PeopleOutline','供应商基础资料',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000912"}',0,1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56'), (1110789817060294664,1,'migrated_f3ab1f6bc8c25825ca56645f','仓库','PROCUREMENT_WAREHOUSE','ionicons5:HomeOutline','中心仓库和项目现场仓',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000914"}',0,1,'2026-07-03 14:25:24',1,1,'2026-07-23 00:29:38'), (1110789817060294665,1,'migrated_4202257c5df8b994b9c58ff6','采购单','PROCUREMENT_WAREHOUSE','ionicons5:CartOutline','采购申请和审批入库单据',1,'CHANGED',3,'2026-07-14 20:15:52','{"inAppBuilder": {"nodes": [{"id": "page_home", "icon": "home", "sort": -10, "type": "page", "title": "首页", "pageType": "home"}], "pages": {"page_home": {"title": "首页", "layout": {"items": [], "gridLayout": {"gap": 8, "cols": 12, "items": [{"id": "AiCrudPage_lsbz9t", "gridH": 14, "gridW": 12, "gridX": 0, "gridY": 0, "label": "AiCrudPage", "props": {"api": "", "style": {"x": "", "y": "", "width": "100%", "height": "100%", "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "pageFlowX": 20, "pageFlowY": 0, "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "pageFlowWidth": "867px", "pageFlowHeight": 289, "backgroundColor": "transparent"}, "title": "AiCrudPage", "events": [], "rowKey": "id", "hideAdd": false, "listApi": "", "striped": false, "bordered": false, "editSize": "medium", "editXGap": 16, "editYGap": 8, "createApi": "", "deleteApi": "", "detailApi": "", "exportApi": "", "importApi": "", "isEncrypt": false, "maxHeight": "", "modalType": "modal", "tableSize": "medium", "updateApi": "", "listMethod": "get", "modalWidth": "800px", "renderMode": "table", "searchYGap": 16, "showExport": true, "showImport": true, "showSearch": true, "description": "系统完整 CRUD 页面组件", "hideToolbar": false, "previewMode": "mock", "publicQuery": {}, "editGridCols": 1, "formOpenMode": "modal", "publicParams": {}, "tabWorkspace": {"maxTabs": 8, "showDirtyMark": true, "closeAfterSave": false, "reuseRecordTab": true}, "addButtonText": "新增", "crudHookRules": {}, "customActions": [], "hideSelection": false, "lastPreviewAt": "", "listDataField": "records", "editLabelAlign": "right", "editLabelWidth": "auto", "exportFileName": "", "listTotalField": "total", "searchGridCols": 4, "showPagination": true, "drawerPlacement": "right", "hideBatchDelete": false, "hideModalFooter": false, "previewLiveData": false, "previewRecordId": "", "searchFieldRefs": [], "showExportTasks": true, "detailModalWidth": "min(1080px, 92vw)", "editShowFeedback": true, "exportButtonText": "导出", "lastPreviewError": "", "searchLabelWidth": "auto", "beforeSubmitRules": [], "enableCustomQuery": true, "formDefaultValues": {}, "lastPreviewStatus": "idle", "editLabelPlacement": "left", "lastPreviewMessage": "当前使用模拟预览,不请求接口", "searchFieldSettings": {}, "submitDefaultParams": {}, "searchEnableCollapse": true, "showRenderModeSwitch": true, "searchMaxVisibleFields": 3, "hideDefaultDetailContent": false}, "children": [], "blockType": "AiCrudPage", "fieldRefs": []}], "rowHeight": 32, "layoutType": "simple-crud", "designWidth": 1366}}, "description": "从左侧选择页面,或进入编辑应用开始搭建。"}}, "homePageId": "page_home", "schemaVersion": 1}, "migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000915"}',0,1,'2026-07-03 14:25:24',1,1,'2026-07-22 17:40:34'); INSERT INTO ai_business_application (id,tenant_id,application_code,application_name,suite_code,icon,description,status,design_status,last_publish_version,last_publish_time,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294666,1,'migrated_05ad0747007a4dcdc0501618','出库单','PROCUREMENT_WAREHOUSE','ionicons5:ExitOutline','仓库出库申请单据',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000917"}',0,1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56'), (1110789817060294667,1,'migrated_c7880e96ff38c8838cb340f3','调拨单','PROCUREMENT_WAREHOUSE','ionicons5:SwapHorizontalOutline','仓库间物料调拨单据',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000000919"}',0,1,'2026-07-03 14:25:24',1,1,'2026-07-14 06:48:56'), (1110789817060294668,1,'migrated_a802b7986a51f7360418866c','离职申请','HR','ionicons5:ExitOutline','员工离职申请单据,支持流程流转和状态回写',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000005202"}',0,1,'2026-06-02 06:48:47',1,1,'2026-07-14 06:48:56'), (1110789817060294669,1,'migrated_31c02df35ccfb06bf481948e','离职交接','HR','ionicons5:ClipboardOutline','离职申请通过后自动生成的交接记录',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000005203"}',0,1,'2026-06-02 06:48:47',1,1,'2026-07-14 06:48:56'), (1110789817060294670,1,'migrated_c3018a6f308b98e1cdc054bd','采购申请','PURCHASE','ionicons5:CartOutline','代码实现的采购单审批测试业务,业务流程配置维护节点表单和字段权限',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "1910000000000008302"}',0,1,'2026-06-29 10:34:00',1,1,'2026-06-30 17:13:02'), (1110789817060294671,1,'migrated_42e155aac29c2730b889575e','InOutHistory','IN_OUT',NULL,'由存量业务对象“InOutHistory”整理生成',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2063783773240336385"}',0,1,'2026-06-08 08:42:49',2,1,'2026-07-14 06:48:56'), (1110789817060294672,1,'migrated_b537f267403f7c0cac87a140','T订单','TTT','ionicons5:Accessibility','一个订单对象',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2064179274808860674"}',0,1,'2026-06-09 10:54:24',2,1,'2026-07-14 06:48:56'), (1110789817060294673,1,'migrated_e3bd90084c6c1c2e4ad35595','dddddd','BUSINESS',NULL,'由存量业务对象“dddddd”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2064330294801244161"}',0,1,'2026-06-09 20:54:30',2,1,'2026-06-17 15:33:36'), (1110789817060294674,1,'migrated_2587fb97fdd196c883c97aaa','测试','IN_OUT',NULL,'由存量业务对象“测试”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2064534584246165506"}',0,1,'2026-06-10 10:26:17',2,1,'2026-06-21 15:32:55'), (1110789817060294675,1,'migrated_b40c342b3d26cd34eff01e3d','订单管理','TEST_DATASOURCE',NULL,'由存量业务对象“订单管理”整理生成',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2068689221225574401"}',0,1,'2026-06-21 21:35:19',2,1,'2026-07-14 06:48:56'); INSERT INTO ai_business_application (id,tenant_id,application_code,application_name,suite_code,icon,description,status,design_status,last_publish_version,last_publish_time,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294676,1,'migrated_51fa1c6da8b91abe8ba543f3','资产设备维护','ASSET_DEVICE_SYSTEM','ionicons5:Build','由存量业务对象“资产设备维护”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2070062408473559042"}',0,1,'2026-06-25 16:31:53',6,1,'2026-07-22 14:13:13'), (1110789817060294677,1,'migrated_9bdae5ee8ebb3c9b11928aa9','客户信息','KHXS','ionicons5:Man','由存量业务对象“客户信息”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2070306429540286465"}',0,1,'2026-06-26 08:41:32',6,1,'2026-06-26 08:41:32'), (1110789817060294678,1,'migrated_498169afb49aef0aff2d1704','桌台','LSJY',NULL,'店铺桌台管理',1,'READY',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2071191121076465666"}',0,1,'2026-06-28 19:16:59',6,1,'2026-07-14 06:48:56'), (1110789817060294679,1,'migrated_f168ea3bda491ab231a3e9c8','客户','MANAGEMENT',NULL,'由存量业务对象“客户”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2071759418675212290"}',0,1,'2026-06-30 08:55:11',6,1,'2026-06-30 08:56:53'), (1110789817060294680,1,'migrated_5902c95fc39bda07b0eebe13','物料管理','PURCHASE',NULL,'由存量业务对象“物料管理”整理生成',0,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2072205568382087169"}',0,1,'2026-07-01 14:28:02',6,1,'2026-07-03 22:31:23'), (1110789817060294681,1,'migrated_089ea87c6acba1cf286e0826','仓库管理','PURCHASE',NULL,'由存量业务对象“仓库管理”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2072243167373045761"}',0,1,'2026-07-01 16:57:26',6,1,'2026-07-01 17:13:08'), (1110789817060294682,1,'migrated_267a7e8e267654d011aec811','采购管理','PURCHASE',NULL,'由存量业务对象“采购管理”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2072248915922530306"}',0,1,'2026-07-01 17:20:17',6,1,'2026-07-22 14:19:05'), (1110789817060294683,1,'migrated_b65e2054d0f4d8795d5960e5','送货单','SHD',NULL,'由存量业务对象“送货单”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2073076640056082434"}',0,1,'2026-07-04 00:09:22',6,1,'2026-07-04 00:09:22'), (1110789817060294684,1,'migrated_79d4e1f071c0452aea7b1b1f','产品','PROCUREMENT_WAREHOUSE',NULL,'由存量业务对象“产品”整理生成',1,'CHANGED',1,'2026-07-20 10:52:30','{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2074032071544991746"}',0,1,'2026-07-06 15:25:54',6,1,'2026-07-20 10:53:04'), (1110789817060294685,1,'migrated_57f8081b0ee9e206d5d7c996','sales_order','SALES','ionicons5:Albums','由存量业务对象“sales_order”整理生成',1,'DRAFT',NULL,NULL,'{"migrationSource": "BUSINESS_OBJECT", "primaryObjectId": "2076221038537256961"}',0,1,'2026-07-12 16:24:05',6,1,'2026-07-12 16:24:05'); INSERT INTO ai_business_application (id,tenant_id,application_code,application_name,suite_code,icon,description,status,design_status,last_publish_version,last_publish_time,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294726,1,'legacy_97128b7ddc0b19862b3ef2be','CRM历史入口','CRM','ionicons5:ArchiveOutline','承接迁移时无法唯一归属的存量访问入口',1,'DRAFT',NULL,NULL,'{"migrationSource": "LEGACY_ENTRIES"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (2076804141472071681,1,'test_123','测试12','TEST11','ionicons5:AddOutline',NULL,1,'DRAFT',NULL,NULL,NULL,0,1,'2026-07-14 07:01:07',6,1,'2026-07-14 07:01:07'), (2077004359383646209,1,'crm_test','测试','PROCUREMENT_WAREHOUSE','ionicons5:AirplaneOutline',NULL,1,'CHANGED',2,'2026-07-14 20:52:03',NULL,0,1,'2026-07-14 20:16:43',6,1,'2026-07-21 13:12:54'), (2077021588695285761,1,'tt_order','测试订单2','PROCUREMENT_WAREHOUSE','ionicons5:AlbumsSharp',NULL,1,'DRAFT',NULL,NULL,NULL,2077021588695285761,1,'2026-07-14 21:25:11',6,1,'2026-07-23 09:06:29'), (2077031221619171329,1,'tt_order','测试订单1','PROCUREMENT_WAREHOUSE','ionicons5:AlbumsOutline',NULL,1,'PUBLISHED',1,'2026-07-15 06:28:55',NULL,2077031221619171329,1,'2026-07-14 22:03:27',6,1,'2026-07-23 09:06:29'), (2077178806157721602,1,'tt_22','测试222','PROCUREMENT_WAREHOUSE','ionicons5:AlertOutline',NULL,1,'DRAFT',NULL,NULL,NULL,2077178806157721602,1,'2026-07-15 07:49:54',6,1,'2026-07-23 09:06:29'), (2077216375411093505,1,'order_man','订单管理','PROCUREMENT_WAREHOUSE','ionicons5:ArchiveSharp',NULL,1,'DRAFT',NULL,NULL,NULL,2077216375411093505,1,'2026-07-15 10:19:11',6,1,'2026-07-23 09:06:29'), (2077217535408779266,1,'ord_man','订单管理','PROCUREMENT_WAREHOUSE','ionicons5:AnalyticsOutline',NULL,1,'CHANGED',2,'2026-07-20 10:03:17','{"codegen": {"author": "Forge Generator", "groupId": "com.mdframe.forge", "includeSql": true, "moduleName": "procurement_warehouse", "sourceType": "DRAFT", "entityPrefix": "", "domainPackage": "com.mdframe.forge", "includeBackend": true, "includeDictSql": true, "includeMenuSql": true, "backendBasePath": "backend/src/main/java", "includeExcelSql": true, "includeFrontend": true, "frontendBasePath": "frontend/src/views", "mapperXmlBasePath": "backend/src/main/resources/mapper", "stripTablePrefixes": ["sys_", "ai_", "t_", "tb_", "tf_f_"], "frontendApiBasePath": "frontend/src/api"}}',0,1,'2026-07-15 10:23:48',6,1,'2026-07-21 13:12:54'), (2079024974323261441,1,'crm_xiaoshou','销售系统','IN_OUT','ionicons5:Accessibility',NULL,1,'DRAFT',NULL,NULL,NULL,0,1,'2026-07-20 10:05:55',6,1,'2026-07-20 10:05:55'); INSERT INTO ai_business_application_object (id,tenant_id,application_id,object_id,object_role,sort_order,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294686,1,1110789817060294656,1910000000000000101,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294687,1,1110789817060294657,1910000000000000103,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294688,1,1110789817060294658,1910000000000000104,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294689,1,1110789817060294659,1910000000000000105,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294690,1,1110789817060294660,1910000000000000107,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294691,1,1110789817060294661,1910000000000000109,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294692,1,1110789817060294662,1910000000000000911,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294693,1,1110789817060294663,1910000000000000912,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294694,1,1110789817060294664,1910000000000000914,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294695,1,1110789817060294665,1910000000000000915,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'); INSERT INTO ai_business_application_object (id,tenant_id,application_id,object_id,object_role,sort_order,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294696,1,1110789817060294666,1910000000000000917,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294697,1,1110789817060294667,1910000000000000919,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294698,1,1110789817060294668,1910000000000005202,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294699,1,1110789817060294669,1910000000000005203,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294700,1,1110789817060294670,1910000000000008302,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294701,1,1110789817060294671,2063783773240336385,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',2,1,'2026-07-14 06:48:56'), (1110789817060294702,1,1110789817060294672,2064179274808860674,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',2,1,'2026-07-14 06:48:56'), (1110789817060294703,1,1110789817060294673,2064330294801244161,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',2,1,'2026-07-14 06:48:56'), (1110789817060294704,1,1110789817060294674,2064534584246165506,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',2,1,'2026-07-14 06:48:56'), (1110789817060294705,1,1110789817060294675,2068689221225574401,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',2,1,'2026-07-14 06:48:56'); INSERT INTO ai_business_application_object (id,tenant_id,application_id,object_id,object_role,sort_order,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294706,1,1110789817060294676,2070062408473559042,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294707,1,1110789817060294677,2070306429540286465,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294708,1,1110789817060294678,2071191121076465666,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294709,1,1110789817060294679,2071759418675212290,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294710,1,1110789817060294680,2072205568382087169,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294711,1,1110789817060294681,2072243167373045761,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294712,1,1110789817060294682,2072248915922530306,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294713,1,1110789817060294683,2073076640056082434,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294714,1,1110789817060294684,2074032071544991746,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'), (1110789817060294715,1,1110789817060294685,2076221038537256961,'PRIMARY',0,'{"migrationSource": "PRIMARY_OBJECT"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'); INSERT INTO ai_business_application_object (id,tenant_id,application_id,object_id,object_role,sort_order,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (1110789817060294716,1,1110789817060294658,1910000000000000105,'REFERENCE',3,'{"relationId": "1910000000000000203", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294717,1,1110789817060294659,1910000000000000106,'DETAIL',4,'{"relationId": "1910000000000000204", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294718,1,1110789817060294659,1910000000000000107,'DETAIL',5,'{"relationId": "1910000000000000205", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294719,1,1110789817060294658,1910000000000000108,'DETAIL',7,'{"relationId": "1910000000000000207", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294720,1,1110789817060294663,1910000000000000913,'DETAIL',10,'{"relationId": "1910000000000009501", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294721,1,1110789817060294665,1910000000000000916,'DETAIL',20,'{"relationId": "1910000000000009502", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294722,1,1110789817060294666,1910000000000000918,'DETAIL',30,'{"relationId": "1910000000000009503", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294723,1,1110789817060294667,1910000000000000920,'DETAIL',40,'{"relationId": "1910000000000009504", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',1,1,'2026-07-14 06:48:56'), (1110789817060294724,1,1110789817060294656,1910000000000000102,'DETAIL',10,'{"relationId": "2061046763531378690", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',2,1,'2026-07-14 06:48:56'), (1110789817060294725,1,1110789817060294657,1910000000000000101,'DETAIL',10,'{"relationId": "2071022194354597889", "migrationSource": "OBJECT_RELATION"}',0,1,'2026-07-14 06:48:56',6,1,'2026-07-14 06:48:56'); INSERT INTO ai_business_application_object (id,tenant_id,application_id,object_id,object_role,sort_order,`options`,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (2077005412007149569,1,2077004359383646209,2077005408613957634,'PRIMARY',0,NULL,0,1,'2026-07-14 20:20:53',6,1,'2026-07-14 20:20:53'), (2077021624648859650,1,2077021588695285761,2077021621574434818,'PRIMARY',0,NULL,2077021624648859650,1,'2026-07-14 21:25:19',6,1,'2026-07-23 09:06:30'), (2077031258487103489,1,2077031221619171329,2077031255181991937,'PRIMARY',0,NULL,2077031258487103489,1,'2026-07-14 22:03:36',6,1,'2026-07-23 09:06:30'), (2077031783169368065,1,2077031221619171329,2077031255181991937,'DETAIL',0,NULL,2077031783169368065,1,'2026-07-14 22:05:41',6,1,'2026-07-23 09:06:30'), (2077031791633473537,1,2077031221619171329,2077031255181991937,'PRIMARY',0,NULL,2077031791633473537,1,'2026-07-14 22:05:43',6,1,'2026-07-23 09:06:30'), (2077216594601226242,1,2077216375411093505,2077005408613957634,'PRIMARY',0,NULL,2077216594601226242,1,'2026-07-15 10:20:03',6,1,'2026-07-23 09:06:30'), (2077217554429947906,1,2077217535408779266,2077005408613957634,'PRIMARY',0,'{"source": "APPLICATION_TEMPLATE", "templateCode": "MASTER_DETAIL"}',0,1,'2026-07-15 10:23:52',6,1,'2026-07-15 10:23:52'), (2077217554559971330,1,2077217535408779266,2077031255181991937,'DETAIL',1,'{"source": "APPLICATION_TEMPLATE", "templateCode": "MASTER_DETAIL"}',0,1,'2026-07-15 10:23:52',6,1,'2026-07-15 10:23:52'); INSERT INTO ai_business_application_publish_run (id,tenant_id,application_id,idempotency_key,operation_type,target_version_no,source_version_no,run_status,current_step,snapshot_json,snapshot_hash,selection_json,step_results_json,result_version_id,error_code,error_summary,attempt_count,started_by,started_time,finished_time,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (2076955426045394945,1,1110789817060294665,'app-1110789817060294665-publish-3a831151-5567-499f-aeda-c6d878355be9','PUBLISH',1,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"1110789817060294665","applicationCode":"migrated_4202257c5df8b994b9c58ff6","applicationName":"采购单","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:CartOutline","description":"采购申请和审批入库单据","status":1,"designStatus":"PUBLISHED","options":{"migrationSource":"BUSINESS_OBJECT","primaryObjectId":"1910000000000000915"},"publishedVersion":1},"selection":{"objectIds":["1910000000000000916","1910000000000000915"],"entryIds":["2073285787654537217","1910000000000000944"],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":["1 个未测试扩展仍保留为草稿,已自动跳过本次发布"],"includeAutomation":true},"objects":[{"objectId":"1910000000000000916","objectCode":"PW_PURCHASE_ORDER_ITEM","objectName":"采购明细","objectRole":"DETAIL","designStatus":"PUBLISHED","designVersion":9,"configKey":"pw_purchase_order_item","datasourceCode":null,"tableName":"pw_purchase_order_item","syncStatus":"UNKNOWN","sharedApplicationCount":1},{"objectId":"1910000000000000915","objectCode":"PW_PURCHASE_ORDER","objectName":"采购单","objectRole":"PRIMARY","designStatus":"PUBLISHED","designVersion":79,"configKey":"pw_purchase_order","datasourceCode":null,"tableName":"pw_purchase_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[{"id":"2073285787654537217","appCode":"PROCUREMENT_WAREHOUSE_PW_PURCHASE_ORDER_ITEM_RUNTIME","appName":"采购明细","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"PW_PURCHASE_ORDER_ITEM","entryMode":"RUNTIME","entryUrl":"/ai/crud-page/pw_purchase_order_item","configKey":"pw_purchase_order_item","icon":"ionicons5:ListOutline","description":"采购明细","status":1,"sortOrder":60,"options":{"source":"lowcode_publish"}},{"id":"1910000000000000944","appCode":"PW_PURCHASE_MANAGE","appName":"采购单","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"PW_PURCHASE_ORDER","entryMode":"RUNTIME","entryUrl":"/ai/crud-page/pw_purchase_order","configKey":"pw_purchase_order","icon":"ionicons5:CartOutline","description":"采购单","status":1,"sortOrder":40,"options":{"source":"lowcode_publish"}}],"bindings":[],"extensions":[],"permissions":[{"objectId":"1910000000000000916","objectCode":"PW_PURCHASE_ORDER_ITEM","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]},{"objectId":"1910000000000000915","objectCode":"PW_PURCHASE_ORDER","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]}],"publishedObjectVersions":[{"objectId":"1910000000000000916","designVersionId":"2073301741046226945"},{"objectId":"1910000000000000915","designVersionId":"2076880802892771329"}],"operationType":"PUBLISH"}','fe74025837997dce8020bf68564f59e0d84ec9ffb0ff1903e0966ca6cddfd43c','{"entryIds": ["2073285787654537217", "1910000000000000944"], "objectIds": ["1910000000000000916", "1910000000000000915"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": ["1 个未测试扩展仍保留为草稿,已自动跳过本次发布"], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "4 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-14 17:02:16", "finishedTime": "2026-07-14 17:02:25"}, {"status": "SUCCESS", "message": "候选快照摘要 16cd41242597", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-14 17:02:25", "finishedTime": "2026-07-14 17:02:25"}, {"status": "SUCCESS", "message": "已处理 2 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-14 17:02:25", "finishedTime": "2026-07-14 17:02:27"}, {"status": "SUCCESS", "message": "已切换 2 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-14 17:02:27", "finishedTime": "2026-07-14 17:02:27"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-14 17:02:28", "finishedTime": "2026-07-14 17:02:28"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-14 17:02:28", "finishedTime": "2026-07-14 17:02:28"}]',2076955477371092993,NULL,NULL,1,1,'2026-07-14 17:02:16','2026-07-14 17:02:29',0,1,'2026-07-14 17:02:16',6,1,'2026-07-14 17:02:28'), (2077004061395124225,1,1110789817060294665,'app-1110789817060294665-publish-c59c1478-b99c-469a-883b-b3f7ab109f68','PUBLISH',2,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"1110789817060294665","applicationCode":"migrated_4202257c5df8b994b9c58ff6","applicationName":"采购单","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:CartOutline","description":"采购申请和审批入库单据","status":1,"designStatus":"PUBLISHED","options":{"migrationSource":"BUSINESS_OBJECT","primaryObjectId":"1910000000000000915"},"publishedVersion":2},"selection":{"objectIds":["1910000000000000916","1910000000000000915"],"entryIds":["2073285787654537217","1910000000000000944"],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":["1 个未测试扩展仍保留为草稿,已自动跳过本次发布"],"includeAutomation":true},"objects":[{"objectId":"1910000000000000916","objectCode":"PW_PURCHASE_ORDER_ITEM","objectName":"采购明细","objectRole":"DETAIL","designStatus":"PUBLISHED","designVersion":9,"configKey":"pw_purchase_order_item","datasourceCode":null,"tableName":"pw_purchase_order_item","syncStatus":"UNKNOWN","sharedApplicationCount":1},{"objectId":"1910000000000000915","objectCode":"PW_PURCHASE_ORDER","objectName":"采购单","objectRole":"PRIMARY","designStatus":"PUBLISHED","designVersion":79,"configKey":"pw_purchase_order","datasourceCode":null,"tableName":"pw_purchase_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[{"id":"2073285787654537217","appCode":"PROCUREMENT_WAREHOUSE_PW_PURCHASE_ORDER_ITEM_RUNTIME","appName":"采购明细","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"PW_PURCHASE_ORDER_ITEM","entryMode":"RUNTIME","entryUrl":"/ai/crud-page/pw_purchase_order_item","configKey":"pw_purchase_order_item","icon":"ionicons5:ListOutline","description":"采购明细","status":1,"sortOrder":60,"options":{"source":"lowcode_publish"}},{"id":"1910000000000000944","appCode":"PW_PURCHASE_MANAGE","appName":"采购单","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"PW_PURCHASE_ORDER","entryMode":"RUNTIME","entryUrl":"/ai/crud-page/pw_purchase_order","configKey":"pw_purchase_order","icon":"ionicons5:CartOutline","description":"采购单","status":1,"sortOrder":40,"options":{"source":"lowcode_publish"}}],"bindings":[],"extensions":[],"permissions":[{"objectId":"1910000000000000915","objectCode":"PW_PURCHASE_ORDER","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]},{"objectId":"1910000000000000916","objectCode":"PW_PURCHASE_ORDER_ITEM","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]}],"publishedObjectVersions":[{"objectId":"1910000000000000916","designVersionId":"2073301741046226945"},{"objectId":"1910000000000000915","designVersionId":"2076880802892771329"}],"operationType":"PUBLISH"}','17d291253bc512c4fdf6d57f89ed2ba7234767536bf12511d4ff5ddb37909802','{"entryIds": ["2073285787654537217", "1910000000000000944"], "objectIds": ["1910000000000000916", "1910000000000000915"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": ["1 个未测试扩展仍保留为草稿,已自动跳过本次发布"], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "4 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-14 20:15:31", "finishedTime": "2026-07-14 20:15:31"}, {"status": "SUCCESS", "message": "候选快照摘要 48ee1bbbc4c2", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-14 20:15:31", "finishedTime": "2026-07-14 20:15:32"}, {"status": "SUCCESS", "message": "已处理 2 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-14 20:15:32", "finishedTime": "2026-07-14 20:15:32"}, {"status": "SUCCESS", "message": "已切换 2 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-14 20:15:32", "finishedTime": "2026-07-14 20:15:32"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-14 20:15:32", "finishedTime": "2026-07-14 20:15:32"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-14 20:15:32", "finishedTime": "2026-07-14 20:15:32"}]',2077004065874640897,NULL,NULL,1,1,'2026-07-14 20:15:32','2026-07-14 20:15:33',0,1,'2026-07-14 20:15:32',6,1,'2026-07-14 20:15:33'), (2077004142982725633,1,1110789817060294665,'app-1110789817060294665-publish-a1e49d38-8768-40a6-8b2d-e5415dec5585','PUBLISH',3,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"1110789817060294665","applicationCode":"migrated_4202257c5df8b994b9c58ff6","applicationName":"采购单","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:CartOutline","description":"采购申请和审批入库单据","status":1,"designStatus":"PUBLISHED","options":{"migrationSource":"BUSINESS_OBJECT","primaryObjectId":"1910000000000000915"},"publishedVersion":3},"selection":{"objectIds":["1910000000000000916","1910000000000000915"],"entryIds":["2073285787654537217","1910000000000000944"],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":["1 个未测试扩展仍保留为草稿,已自动跳过本次发布"],"includeAutomation":true},"objects":[{"objectId":"1910000000000000916","objectCode":"PW_PURCHASE_ORDER_ITEM","objectName":"采购明细","objectRole":"DETAIL","designStatus":"PUBLISHED","designVersion":9,"configKey":"pw_purchase_order_item","datasourceCode":null,"tableName":"pw_purchase_order_item","syncStatus":"UNKNOWN","sharedApplicationCount":1},{"objectId":"1910000000000000915","objectCode":"PW_PURCHASE_ORDER","objectName":"采购单","objectRole":"PRIMARY","designStatus":"PUBLISHED","designVersion":79,"configKey":"pw_purchase_order","datasourceCode":null,"tableName":"pw_purchase_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[{"id":"2073285787654537217","appCode":"PROCUREMENT_WAREHOUSE_PW_PURCHASE_ORDER_ITEM_RUNTIME","appName":"采购明细","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"PW_PURCHASE_ORDER_ITEM","entryMode":"RUNTIME","entryUrl":"/ai/crud-page/pw_purchase_order_item","configKey":"pw_purchase_order_item","icon":"ionicons5:ListOutline","description":"采购明细","status":1,"sortOrder":60,"options":{"source":"lowcode_publish"}},{"id":"1910000000000000944","appCode":"PW_PURCHASE_MANAGE","appName":"采购单","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"PW_PURCHASE_ORDER","entryMode":"RUNTIME","entryUrl":"/ai/crud-page/pw_purchase_order","configKey":"pw_purchase_order","icon":"ionicons5:CartOutline","description":"采购单","status":1,"sortOrder":40,"options":{"source":"lowcode_publish"}}],"bindings":[],"extensions":[],"permissions":[{"objectId":"1910000000000000915","objectCode":"PW_PURCHASE_ORDER","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]},{"objectId":"1910000000000000916","objectCode":"PW_PURCHASE_ORDER_ITEM","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]}],"publishedObjectVersions":[{"objectId":"1910000000000000916","designVersionId":"2073301741046226945"},{"objectId":"1910000000000000915","designVersionId":"2076880802892771329"}],"operationType":"PUBLISH"}','b4eb228def2cffa5199eb1c7f2226729731fd96105d39a5336f5ac7ce6cf2046','{"entryIds": ["2073285787654537217", "1910000000000000944"], "objectIds": ["1910000000000000916", "1910000000000000915"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": ["1 个未测试扩展仍保留为草稿,已自动跳过本次发布"], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "4 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-14 20:15:51", "finishedTime": "2026-07-14 20:15:51"}, {"status": "SUCCESS", "message": "候选快照摘要 48ee1bbbc4c2", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-14 20:15:51", "finishedTime": "2026-07-14 20:15:51"}, {"status": "SUCCESS", "message": "已处理 2 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-14 20:15:51", "finishedTime": "2026-07-14 20:15:51"}, {"status": "SUCCESS", "message": "已切换 2 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-14 20:15:51", "finishedTime": "2026-07-14 20:15:51"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-14 20:15:52", "finishedTime": "2026-07-14 20:15:52"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-14 20:15:52", "finishedTime": "2026-07-14 20:15:52"}]',2077004147143475201,NULL,NULL,1,1,'2026-07-14 20:15:51','2026-07-14 20:15:52',0,1,'2026-07-14 20:15:51',6,1,'2026-07-14 20:15:52'), (2077006951715176449,1,2077004359383646209,'app-2077004359383646209-publish-5b616440-fbbf-4641-a440-0cb6cee34a6a','PUBLISH',1,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"2077004359383646209","applicationCode":"crm_test","applicationName":"测试","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:AirplaneOutline","description":null,"status":1,"designStatus":"PUBLISHED","options":null,"publishedVersion":1},"selection":{"objectIds":["2077005408613957634"],"entryIds":["2077006427452342274"],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","objectName":"订单基本信息","objectRole":"PRIMARY","designStatus":"PUBLISHED","designVersion":5,"configKey":"procurement_warehouse_tf_f_order","datasourceCode":"main","tableName":"tf_f_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[{"id":"2077006427452342274","appCode":"ORDERTEST","appName":"测试订单管理","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"tf_f_order","entryMode":"RUNTIME","entryUrl":null,"configKey":"procurement_warehouse_tf_f_order","icon":"ionicons5:AlbumsOutline","description":null,"status":1,"sortOrder":0,"options":{"appMode":"DYNAMIC_RENDER","adminMenu":{"path":"/ai/crud-page/procurement_warehouse_tf_f_order?appId=2077006427452342274&runtimeOpenMode=LIST","sort":0,"parentId":"9440","component":"ai/crud-page","syncEnabled":true,"activeMenuKey":"9520","suiteAsParent":true,"actualParentId":"9440","menuResourceId":"9520","originalParentId":"9440","suiteMenuResourceId":"9440"},"entryType":"OBJECT_LIST","mountTarget":"ADMIN","targetPageKey":"list","permissionCode":"ai:business:tf_f_order:list","runtimeOpenMode":"LIST"}}],"bindings":[],"extensions":[],"permissions":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]}],"publishedObjectVersions":[{"objectId":"2077005408613957634","designVersionId":"2077006140989767682"}],"operationType":"PUBLISH"}','787c7f4ee43452305e565e3c816062ef4be1f26e8ad60322807573c352c9fbf1','{"entryIds": ["2077006427452342274"], "objectIds": ["2077005408613957634"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "2 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-14 20:27:00", "finishedTime": "2026-07-14 20:27:01"}, {"status": "SUCCESS", "message": "候选快照摘要 463566de7482", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-14 20:27:01", "finishedTime": "2026-07-14 20:27:01"}, {"status": "SUCCESS", "message": "已处理 1 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-14 20:27:01", "finishedTime": "2026-07-14 20:27:01"}, {"status": "SUCCESS", "message": "已切换 1 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-14 20:27:01", "finishedTime": "2026-07-14 20:27:01"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-14 20:27:01", "finishedTime": "2026-07-14 20:27:01"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-14 20:27:01", "finishedTime": "2026-07-14 20:27:02"}]',2077006956123389954,NULL,NULL,1,1,'2026-07-14 20:27:01','2026-07-14 20:27:02',0,1,'2026-07-14 20:27:01',6,1,'2026-07-14 20:27:02'), (2077013248934150145,1,2077004359383646209,'app-2077004359383646209-publish-bad9cc7d-58ed-4b38-90dd-95d9826e2e5d','PUBLISH',2,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"2077004359383646209","applicationCode":"crm_test","applicationName":"测试","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:AirplaneOutline","description":null,"status":1,"designStatus":"PUBLISHED","options":null,"publishedVersion":2},"selection":{"objectIds":["2077005408613957634"],"entryIds":["2077006427452342274"],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","objectName":"订单基本信息","objectRole":"PRIMARY","designStatus":"PUBLISHED","designVersion":5,"configKey":"procurement_warehouse_tf_f_order","datasourceCode":"main","tableName":"tf_f_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[{"id":"2077006427452342274","appCode":"ORDERTEST","appName":"测试订单管理","appType":"BUSINESS","suiteCode":"PROCUREMENT_WAREHOUSE","objectCode":"tf_f_order","entryMode":"RUNTIME","entryUrl":null,"configKey":"procurement_warehouse_tf_f_order","icon":"ionicons5:AlbumsOutline","description":null,"status":1,"sortOrder":0,"options":{"appMode":"DYNAMIC_RENDER","adminMenu":{"path":"/ai/crud-page/procurement_warehouse_tf_f_order?appId=2077006427452342274&runtimeOpenMode=LIST","sort":0,"component":"ai/crud-page","syncEnabled":true,"activeMenuKey":"9520","suiteAsParent":true,"actualParentId":"9440","menuResourceId":"9520","suiteMenuResourceId":"9440"},"entryType":"OBJECT_LIST","mountTarget":"ADMIN","targetPageKey":"list","permissionCode":"ai:business:tf_f_order:list","runtimeOpenMode":"LIST"}}],"bindings":[],"extensions":[],"permissions":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]}],"publishedObjectVersions":[{"objectId":"2077005408613957634","designVersionId":"2077006140989767682"}],"operationType":"PUBLISH"}','def6463c7cb07f1d65ccb42d100e8b902e8ae2cbdd1ebd0612c917c363b39127','{"entryIds": ["2077006427452342274"], "objectIds": ["2077005408613957634"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "2 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-14 20:52:02", "finishedTime": "2026-07-14 20:52:02"}, {"status": "SUCCESS", "message": "候选快照摘要 72ad7c5262ca", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-14 20:52:02", "finishedTime": "2026-07-14 20:52:02"}, {"status": "SUCCESS", "message": "已处理 1 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-14 20:52:02", "finishedTime": "2026-07-14 20:52:02"}, {"status": "SUCCESS", "message": "已切换 1 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-14 20:52:02", "finishedTime": "2026-07-14 20:52:03"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-14 20:52:03", "finishedTime": "2026-07-14 20:52:03"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-14 20:52:03", "finishedTime": "2026-07-14 20:52:03"}]',2077013253103288322,NULL,NULL,1,1,'2026-07-14 20:52:02','2026-07-14 20:52:03',0,1,'2026-07-14 20:52:02',6,1,'2026-07-14 20:52:03'), (2077158422276521986,1,2077031221619171329,'app-2077031221619171329-publish-8f0b6a9f-1ad3-44b3-9ab6-9c8fe9e9af28','PUBLISH',1,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"2077031221619171329","applicationCode":"tt_order","applicationName":"测试订单1","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:AlbumsOutline","description":null,"status":1,"designStatus":"PUBLISHED","options":null,"publishedVersion":1},"selection":{"objectIds":["2077031255181991937"],"entryIds":[],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"2077031255181991937","objectCode":"tf_f_order_sales_order","objectName":"销售订单","objectRole":"PRIMARY","designStatus":"PUBLISHED","designVersion":3,"configKey":"procurement_warehouse_tf_f_order_sales_order","datasourceCode":"main","tableName":"tf_f_order_sales_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[],"bindings":[],"extensions":[],"permissions":[{"objectId":"2077031255181991937","objectCode":"tf_f_order_sales_order","allRequiredConfigured":true,"actions":[{"required":true,"configured":true,"actionCode":"VIEW"},{"required":true,"configured":true,"actionCode":"SAVE"},{"required":false,"configured":false,"actionCode":"DELETE"},{"required":true,"configured":true,"actionCode":"SUBMIT"},{"required":false,"configured":true,"actionCode":"WITHDRAW"},{"required":true,"configured":true,"actionCode":"START_FLOW"},{"required":true,"configured":true,"actionCode":"VIEW_FLOW"},{"required":false,"configured":true,"actionCode":"TRIGGER"},{"required":false,"configured":true,"actionCode":"VIEW_STATS"}]}],"publishedObjectVersions":[{"objectId":"2077031255181991937","designVersionId":"2077031351860699137"}],"operationType":"PUBLISH"}','bddfaa86672d3b6b1266b60478d33911d11396fda9ae76ad9da74d75244381fb','{"entryIds": [], "objectIds": ["2077031255181991937"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "3 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-15 06:28:54", "finishedTime": "2026-07-15 06:28:54"}, {"status": "SUCCESS", "message": "候选快照摘要 6dd090a71851", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-15 06:28:54", "finishedTime": "2026-07-15 06:28:54"}, {"status": "SUCCESS", "message": "已处理 1 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-15 06:28:54", "finishedTime": "2026-07-15 06:28:54"}, {"status": "SUCCESS", "message": "已切换 0 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-15 06:28:54", "finishedTime": "2026-07-15 06:28:54"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-15 06:28:54", "finishedTime": "2026-07-15 06:28:55"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-15 06:28:55", "finishedTime": "2026-07-15 06:28:55"}]',2077158426009452545,NULL,NULL,1,1,'2026-07-15 06:28:54','2026-07-15 06:28:55',0,1,'2026-07-15 06:28:54',6,1,'2026-07-15 06:28:55'), (2077296157192634370,1,2077217535408779266,'app-2077217535408779266-publish-94e7f708-38c0-48f2-b6e6-9ca602008158','PUBLISH',1,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"2077217535408779266","applicationCode":"ord_man","applicationName":"订单管理","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:AnalyticsOutline","description":null,"status":1,"designStatus":"PUBLISHED","options":null,"publishedVersion":1},"selection":{"objectIds":["2077005408613957634","2077031255181991937"],"entryIds":[],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","objectName":"订单基本信息","objectRole":"PRIMARY","designStatus":"CHANGED","designVersion":22,"configKey":"procurement_warehouse_tf_f_order","datasourceCode":"main","tableName":"tf_f_order","syncStatus":"UNKNOWN","sharedApplicationCount":2},{"objectId":"2077031255181991937","objectCode":"tf_f_order_sales_order","objectName":"销售订单","objectRole":"DETAIL","designStatus":"PUBLISHED","designVersion":4,"configKey":"procurement_warehouse_tf_f_order_sales_order","datasourceCode":"main","tableName":"tf_f_order_sales_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[],"bindings":[],"extensions":[],"permissions":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]},{"objectId":"2077031255181991937","objectCode":"tf_f_order_sales_order","allRequiredConfigured":true,"actions":[{"actionCode":"VIEW","required":true,"configured":true},{"actionCode":"SAVE","required":true,"configured":true},{"actionCode":"DELETE","required":false,"configured":false},{"actionCode":"SUBMIT","required":true,"configured":true},{"actionCode":"WITHDRAW","required":false,"configured":true},{"actionCode":"START_FLOW","required":true,"configured":true},{"actionCode":"VIEW_FLOW","required":true,"configured":true},{"actionCode":"TRIGGER","required":false,"configured":true},{"actionCode":"VIEW_STATS","required":false,"configured":true}]}],"publishedObjectVersions":[{"objectId":"2077005408613957634","designVersionId":"2077296207947907073"},{"objectId":"2077031255181991937","designVersionId":"2077294690331312130"}],"operationType":"PUBLISH"}','dce94f3b3edd3eeecf8b0056e3c1cc878fa308199c28fbc91da3e0012e2f9249','{"entryIds": [], "objectIds": ["2077005408613957634", "2077031255181991937"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "5 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-15 15:36:13", "finishedTime": "2026-07-15 15:36:13"}, {"status": "SUCCESS", "message": "候选快照摘要 ad4182403ed0", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-15 15:36:13", "finishedTime": "2026-07-15 15:36:13"}, {"status": "SUCCESS", "message": "已处理 2 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-15 15:36:13", "finishedTime": "2026-07-15 15:36:25"}, {"status": "SUCCESS", "message": "已切换 0 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-15 15:36:25", "finishedTime": "2026-07-15 15:36:26"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-15 15:36:26", "finishedTime": "2026-07-15 15:36:26"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-15 15:36:26", "finishedTime": "2026-07-15 15:36:27"}]',2077296217578029058,NULL,NULL,1,1,'2026-07-15 15:36:13','2026-07-15 15:36:27',0,1,'2026-07-15 15:36:13',6,1,'2026-07-15 15:36:27'), (2079024296142053378,1,2077217535408779266,'app-2077217535408779266-publish-1784512990186-896212963dc7','PUBLISH',2,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"2077217535408779266","applicationCode":"ord_man","applicationName":"订单管理","suiteCode":"PROCUREMENT_WAREHOUSE","icon":"ionicons5:AnalyticsOutline","description":null,"status":1,"designStatus":"PUBLISHED","options":{"codegen":{"author":"Forge Generator","groupId":"com.mdframe.forge","includeSql":true,"moduleName":"procurement_warehouse","sourceType":"DRAFT","entityPrefix":"","domainPackage":"com.mdframe.forge","includeBackend":true,"includeDictSql":true,"includeMenuSql":true,"backendBasePath":"backend/src/main/java","includeExcelSql":true,"includeFrontend":true,"frontendBasePath":"frontend/src/views","mapperXmlBasePath":"backend/src/main/resources/mapper","stripTablePrefixes":["sys_","ai_","t_","tb_","tf_f_"],"frontendApiBasePath":"frontend/src/api"}},"publishedVersion":2},"selection":{"objectIds":["2077005408613957634","2077031255181991937"],"entryIds":[],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","objectName":"订单基本信息","objectRole":"PRIMARY","designStatus":"CHANGED","designVersion":40,"configKey":"procurement_warehouse_tf_f_order","datasourceCode":"main","tableName":"tf_f_order","syncStatus":"UNKNOWN","sharedApplicationCount":2},{"objectId":"2077031255181991937","objectCode":"tf_f_order_sales_order","objectName":"销售订单","objectRole":"DETAIL","designStatus":"CHANGED","designVersion":5,"configKey":"procurement_warehouse_tf_f_order_sales_order","datasourceCode":"main","tableName":"tf_f_order_sales_order","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[],"bindings":[],"extensions":[],"permissions":[{"objectId":"2077005408613957634","objectCode":"tf_f_order","allRequiredConfigured":true,"actions":[{"required":true,"configured":true,"actionCode":"VIEW"},{"required":true,"configured":true,"actionCode":"SAVE"},{"required":false,"configured":false,"actionCode":"DELETE"},{"required":true,"configured":true,"actionCode":"SUBMIT"},{"required":false,"configured":true,"actionCode":"WITHDRAW"},{"required":true,"configured":true,"actionCode":"START_FLOW"},{"required":true,"configured":true,"actionCode":"VIEW_FLOW"},{"required":false,"configured":true,"actionCode":"TRIGGER"},{"required":false,"configured":true,"actionCode":"VIEW_STATS"}]},{"objectId":"2077031255181991937","objectCode":"tf_f_order_sales_order","allRequiredConfigured":true,"actions":[{"required":true,"configured":true,"actionCode":"VIEW"},{"required":true,"configured":true,"actionCode":"SAVE"},{"required":false,"configured":false,"actionCode":"DELETE"},{"required":true,"configured":true,"actionCode":"SUBMIT"},{"required":false,"configured":true,"actionCode":"WITHDRAW"},{"required":true,"configured":true,"actionCode":"START_FLOW"},{"required":true,"configured":true,"actionCode":"VIEW_FLOW"},{"required":false,"configured":true,"actionCode":"TRIGGER"},{"required":false,"configured":true,"actionCode":"VIEW_STATS"}]}],"publishedObjectVersions":[{"objectId":"2077005408613957634","designVersionId":"2079024305285636098"},{"objectId":"2077031255181991937","designVersionId":"2079024311367376897"}],"operationType":"PUBLISH"}','6f403bb0740a366d30777244d5f5d7a71332b41e6cf9d532b42a9f37966e97d6','{"entryIds": [], "objectIds": ["2077005408613957634", "2077031255181991937"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "5 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-20 10:03:13", "finishedTime": "2026-07-20 10:03:13"}, {"status": "SUCCESS", "message": "候选快照摘要 a163d419e92b", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-20 10:03:13", "finishedTime": "2026-07-20 10:03:13"}, {"status": "SUCCESS", "message": "已处理 2 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-20 10:03:13", "finishedTime": "2026-07-20 10:03:16"}, {"status": "SUCCESS", "message": "已切换 0 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-20 10:03:16", "finishedTime": "2026-07-20 10:03:16"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-20 10:03:16", "finishedTime": "2026-07-20 10:03:17"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-20 10:03:17", "finishedTime": "2026-07-20 10:03:17"}]',2079024312084602881,NULL,NULL,1,1,'2026-07-20 10:03:13','2026-07-20 10:03:17',0,1,'2026-07-20 10:03:13',6,1,'2026-07-20 10:03:17'), (2079035138459836418,1,1110789817060294661,'app-1110789817060294661-publish-1784515576245-74a155acc0b7','PUBLISH',1,NULL,'PARTIAL','OBJECTS','{"schemaVersion":1,"application":{"id":"1110789817060294661","applicationCode":"migrated_fbe5fe8aa097f91699ca2c96","applicationName":"销售任务","suiteCode":"CRM","icon":"ionicons5:CheckboxOutline","description":"管理销售计划、待办任务和任务完成情况","status":1,"designStatus":"DRAFT","options":{"migrationSource":"BUSINESS_OBJECT","primaryObjectId":"1910000000000000109"}},"selection":{"objectIds":["1910000000000000109"],"entryIds":[],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"1910000000000000109","objectCode":"SALES_TASK","objectName":"销售任务","objectRole":"PRIMARY","designStatus":"CHANGED","designVersion":1,"configKey":"crm_sales_task","datasourceCode":null,"tableName":"crm_sales_task","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[],"bindings":[],"extensions":[],"permissions":[{"objectId":"1910000000000000109","objectCode":"SALES_TASK","allRequiredConfigured":true,"actions":[{"required":true,"configured":true,"actionCode":"VIEW"},{"required":true,"configured":true,"actionCode":"SAVE"},{"required":false,"configured":false,"actionCode":"DELETE"},{"required":true,"configured":true,"actionCode":"SUBMIT"},{"required":false,"configured":true,"actionCode":"WITHDRAW"},{"required":true,"configured":true,"actionCode":"START_FLOW"},{"required":true,"configured":true,"actionCode":"VIEW_FLOW"},{"required":false,"configured":true,"actionCode":"TRIGGER"},{"required":false,"configured":true,"actionCode":"VIEW_STATS"}]}],"publishedObjectVersions":[]}','45a6dde2894bdf3e75e1649431c7de813970a941f8ef54838abb101cf9fae07a','{"entryIds": [], "objectIds": ["1910000000000000109"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "3 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-20 10:46:18", "finishedTime": "2026-07-20 10:46:18"}, {"status": "SUCCESS", "message": "候选快照摘要 45a6dde2894b", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-20 10:46:18", "finishedTime": "2026-07-20 10:46:18"}, {"status": "FAILED", "message": "数据表不存在,请先在数据模型页同步表结构", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-20 10:46:18", "finishedTime": "2026-07-20 10:46:19"}, {"status": "PENDING", "message": null, "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": null, "finishedTime": null}, {"status": "PENDING", "message": null, "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": null, "finishedTime": null}, {"status": "PENDING", "message": null, "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": null, "finishedTime": null}]',NULL,'PUBLISH_STEP_FAILED','数据表不存在,请先在数据模型页同步表结构',1,1,'2026-07-20 10:46:18','2026-07-20 10:46:19',0,1,'2026-07-20 10:46:18',6,1,'2026-07-20 10:46:19'), (2079036689790279682,1,1110789817060294684,'app-1110789817060294684-publish-1784515958081-e6dcf186c999b','PUBLISH',1,NULL,'SUCCESS','COMMIT','{"schemaVersion":1,"application":{"id":"1110789817060294684","applicationCode":"migrated_79d4e1f071c0452aea7b1b1f","applicationName":"产品","suiteCode":"PROCUREMENT_WAREHOUSE","icon":null,"description":"由存量业务对象“产品”整理生成","status":1,"designStatus":"PUBLISHED","options":{"migrationSource":"BUSINESS_OBJECT","primaryObjectId":"2074032071544991746"},"publishedVersion":1},"selection":{"objectIds":["2074032071544991746"],"entryIds":[],"extensionIds":[],"autoIncludedObjectIds":[],"dependencyMessages":[],"includeAutomation":true},"objects":[{"objectId":"2074032071544991746","objectCode":"product","objectName":"产品","objectRole":"PRIMARY","designStatus":"CHANGED","designVersion":5,"configKey":"procurement_warehouse_product","datasourceCode":null,"tableName":"procurement_warehouse_product","syncStatus":"UNKNOWN","sharedApplicationCount":1}],"entries":[],"bindings":[],"extensions":[],"permissions":[{"objectId":"2074032071544991746","objectCode":"product","allRequiredConfigured":true,"actions":[{"required":true,"configured":true,"actionCode":"VIEW"},{"required":true,"configured":true,"actionCode":"SAVE"},{"required":false,"configured":false,"actionCode":"DELETE"},{"required":true,"configured":true,"actionCode":"SUBMIT"},{"required":false,"configured":true,"actionCode":"WITHDRAW"},{"required":true,"configured":true,"actionCode":"START_FLOW"},{"required":true,"configured":true,"actionCode":"VIEW_FLOW"},{"required":false,"configured":true,"actionCode":"TRIGGER"},{"required":false,"configured":true,"actionCode":"VIEW_STATS"}]}],"publishedObjectVersions":[{"objectId":"2074032071544991746","designVersionId":"2079036696656355330"}],"operationType":"PUBLISH"}','f664e6749f65d7ba1d664fbbde19809dda1e7456d3e6ba8aa3424016c03422c6','{"entryIds": [], "objectIds": ["2074032071544991746"], "extensionIds": [], "includeAutomation": true, "dependencyMessages": [], "autoIncludedObjectIds": []}','[{"status": "SUCCESS", "message": "3 项提醒,不阻断发布", "stepCode": "PRECHECK", "stepName": "发布预检查", "startedTime": "2026-07-20 10:52:28", "finishedTime": "2026-07-20 10:52:28"}, {"status": "SUCCESS", "message": "候选快照摘要 744f0680bdd7", "stepCode": "SNAPSHOT", "stepName": "准备快照", "startedTime": "2026-07-20 10:52:28", "finishedTime": "2026-07-20 10:52:28"}, {"status": "SUCCESS", "message": "已处理 1 个业务对象", "stepCode": "OBJECTS", "stepName": "发布业务对象", "startedTime": "2026-07-20 10:52:28", "finishedTime": "2026-07-20 10:52:29"}, {"status": "SUCCESS", "message": "已切换 1 个页面入口", "stepCode": "ENTRIES", "stepName": "切换页面入口", "startedTime": "2026-07-20 10:52:29", "finishedTime": "2026-07-20 10:52:29"}, {"status": "SUCCESS", "message": "已确认 0 个扩展运行版本", "stepCode": "EXTENSIONS", "stepName": "启用业务扩展", "startedTime": "2026-07-20 10:52:29", "finishedTime": "2026-07-20 10:52:29"}, {"status": "SUCCESS", "message": "不可变应用版本已提交", "stepCode": "COMMIT", "stepName": "提交应用版本", "startedTime": "2026-07-20 10:52:29", "finishedTime": "2026-07-20 10:52:29"}]',2079036697419718658,NULL,NULL,1,1,'2026-07-20 10:52:28','2026-07-20 10:52:30',0,1,'2026-07-20 10:52:28',6,1,'2026-07-20 10:52:29'); INSERT INTO ai_business_binding (id,tenant_id,target_type,target_id,target_code,binding_type,binding_key,binding_name,binding_config,description,status,sort_order,create_by,create_time,create_dept,update_by,update_time) VALUES (1910000000000000401,1,'OBJECT',1910000000000000101,'CUSTOMER','IMPORT','import_customer','导入客户','{"template": "customer_import"}','客户对象导入能力',1,1,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000402,1,'OBJECT',1910000000000000102,'CONTACT','IMPORT','import_contact','导入联系人','{"template": "contact_import"}','联系人对象导入能力',1,2,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000403,1,'OBJECT',1910000000000000105,'CONTRACT','IMPORT','import_contract','导入合同','{"template": "contract_import"}','合同对象导入能力',1,3,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000404,1,'OBJECT',1910000000000000101,'CUSTOMER','EXPORT','export_customer','导出客户','{"template": "customer_export"}','客户对象导出能力',1,4,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000405,1,'OBJECT',1910000000000000102,'CONTACT','EXPORT','export_contact','导出联系人','{"template": "contact_export"}','联系人对象导出能力',1,5,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000406,1,'OBJECT',1910000000000000105,'CONTRACT','EXPORT','export_contract','导出合同','{"template": "contract_export"}','合同对象导出能力',1,6,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000407,1,'OBJECT',1910000000000000101,'CUSTOMER','REPORT','customer_report','客户报表','{"reportType": "CUSTOMER_GROWTH"}','客户增长和客户结构分析报表',1,7,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000408,1,'OBJECT',1910000000000000104,'OPPORTUNITY','REPORT','sales_funnel_report','销售漏斗','{"reportType": "SALES_FUNNEL"}','商机阶段和销售漏斗分析报表',1,8,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000409,1,'OBJECT',1910000000000000107,'PAYMENT','REPORT','payment_report','回款报表','{"reportType": "PAYMENT_ANALYSIS"}','回款计划、回款记录和逾期分析报表',1,9,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000410,1,'OBJECT',1910000000000000105,'CONTRACT','TRIGGER','contract_amount_summary','合同金额汇总','{"action": "SUM_DETAIL_AMOUNT"}','根据合同明细汇总合同金额',1,10,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'); INSERT INTO ai_business_binding (id,tenant_id,target_type,target_id,target_code,binding_type,binding_key,binding_name,binding_config,description,status,sort_order,create_by,create_time,create_dept,update_by,update_time) VALUES (1910000000000000411,1,'OBJECT',1910000000000000104,'OPPORTUNITY','TRIGGER','opportunity_stage_reminder','商机阶段提醒','{"action": "STAGE_CHANGE_MESSAGE"}','商机阶段变化后生成提醒',1,11,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000412,1,'OBJECT',1910000000000000107,'PAYMENT','TRIGGER','payment_overdue_reminder','回款逾期提醒','{"action": "OVERDUE_TODO"}','回款逾期后生成待办提醒',1,12,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000413,1,'OBJECT',1910000000000000105,'CONTRACT','APPROVAL','contract_approval','合同审批','{"flowKey": "crm_contract_approval"}','合同提交后进入审批流程',1,13,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000414,1,'OBJECT',1910000000000000104,'OPPORTUNITY','MESSAGE','opportunity_follow_reminder','商机跟进提醒','{"messageType": "FOLLOW_REMINDER"}','商机长期未跟进时提醒销售人员',1,14,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000415,1,'OBJECT',1910000000000000107,'PAYMENT','MESSAGE','payment_overdue_message','回款逾期通知','{"messageType": "OVERDUE_PAYMENT"}','回款逾期后发送消息通知',1,15,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000416,1,'OBJECT',1910000000000000101,'CUSTOMER','PERMISSION','customer_permission','客户对象权限','{"scope": "OWNER_DEPT_REGION"}','客户按负责人、部门和区域进行数据可见控制',1,16,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000417,1,'OBJECT',1910000000000000105,'CONTRACT','PERMISSION','contract_permission','合同对象权限','{"scope": "OWNER_DEPT"}','合同按负责人和部门进行数据可见控制',1,17,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000418,1,'OBJECT',1910000000000000107,'PAYMENT','PERMISSION','payment_permission','回款对象权限','{"scope": "CONTRACT_SCOPE"}','回款继承合同范围的数据可见控制',1,18,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000005102,1,'OBJECT',1910000000000000104,'OPPORTUNITY','FLOW','leave_multi','商机流程审批','{"options": {"sample": true, "businessKeyPattern": "OPPORTUNITY:{recordId}"}, "startMode": "MANUAL_AND_TRIGGER", "flowModelKey": "leave_multi", "flowModelName": "多级审批流程", "titleTemplate": "{opportunityName}-商机审批", "conditionFlows": [], "variableMapping": [{"label": "商机名称", "formField": "opportunityName", "flowVariable": "opportunityName"}, {"label": "客户ID", "formField": "customerId", "flowVariable": "customerId"}, {"label": "预计金额分", "formField": "amountCent", "flowVariable": "amountCent"}, {"label": "商机阶段", "formField": "stage", "flowVariable": "stage"}, {"label": "负责人", "formField": "ownerId", "flowVariable": "ownerId"}, {"label": "部门经理", "formField": "createBy", "flowVariable": "deptManager"}]}','商机单据默认流程绑定,手动按钮和触发器共用',1,1,1,'2026-06-02 06:48:46',1,1,'2026-06-02 07:54:42'), (1910000000000005103,1,'OBJECT',1910000000000000104,'OPPORTUNITY','REPORT','opportunity_document_dashboard','商机单据看板','{"metrics": ["OVERVIEW", "STAGE_DISTRIBUTION", "SUM", "FLOW_RESULT", "TREND"], "configKey": "crm_opportunity", "stageField": "stage", "amountField": "amountCent", "statusField": "documentStatus"}','商机数量、阶段、金额和流程结果统计',1,2,1,'2026-06-02 06:48:46',1,1,'2026-06-02 06:48:46'); INSERT INTO ai_business_binding (id,tenant_id,target_type,target_id,target_code,binding_type,binding_key,binding_name,binding_config,description,status,sort_order,create_by,create_time,create_dept,update_by,update_time) VALUES (1910000000000005209,1,'OBJECT',1910000000000005202,'LEAVE_APPLICATION','FLOW','leave_multi','多级请假流程','{"options": {"sample": true, "businessKeyPattern": "LEAVE_APPLICATION:{recordId}"}, "startMode": "MANUAL", "flowModelKey": "leave_multi", "flowModelName": "多级请假流程", "titleTemplate": "${employeeName}-离职申请", "conditionFlows": [], "variableMapping": [{"label": "员工ID", "formField": "employeeId", "flowVariable": "initiator"}, {"label": "离职原因", "formField": "leaveReason", "flowVariable": "reason"}, {"label": "交接负责人(handoverOwnerId)", "formField": "handoverOwnerId", "flowVariable": "deptManager"}]}','离职申请默认流程绑定',1,1,1,'2026-06-02 06:48:47',1,1,'2026-06-05 07:11:26'), (1910000000000005210,1,'OBJECT',1910000000000005203,'LEAVE_HANDOVER','REPORT','leave_handover_dashboard','离职交接看板','{"metrics": ["OVERVIEW", "STATUS_DISTRIBUTION"], "configKey": "hr_leave_handover", "statusField": "handoverStatus"}','离职交接处理状态统计',1,2,1,'2026-06-02 06:48:47',1,1,'2026-06-02 06:48:47'), (1910000000000008201,1,'OBJECT',1910000000000008302,'sample_purchase_order','FLOW','sample_purchase_order_approval','采购单审批测试流程','{"options": {"sample": true, "codeApp": true, "codeAppMetadata": {"fields": [{"type": "input", "field": "orderNo", "label": "采购单号", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "orderNo", "fieldName": "采购单号", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "input", "field": "title", "label": "采购主题", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "title", "fieldName": "采购主题", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "input", "field": "supplierName", "label": "供应商", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "supplierName", "fieldName": "供应商", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "number", "field": "amountCent", "label": "采购金额(分)", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "amountCent", "fieldName": "采购金额(分)", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "number"}, {"type": "textarea", "field": "purchaseItems", "label": "采购明细", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "purchaseItems", "fieldName": "采购明细", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}, {"type": "date", "field": "needDate", "label": "期望到货日期", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "needDate", "fieldName": "期望到货日期", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "date"}, {"type": "select", "field": "status", "label": "流程状态", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "status", "fieldName": "流程状态", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "select"}, {"type": "input", "field": "applicantName", "label": "申请人", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "applicantName", "fieldName": "申请人", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "input", "field": "applicantDeptName", "label": "申请部门", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "applicantDeptName", "fieldName": "申请部门", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "input", "field": "deptLeaderName", "label": "部门负责人", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "deptLeaderName", "fieldName": "部门负责人", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "input", "field": "engineeringManagerName", "label": "工程部经理", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "engineeringManagerName", "fieldName": "工程部经理", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "input", "field": "countersignUserNames", "label": "会签人员", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "countersignUserNames", "fieldName": "会签人员", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "input"}, {"type": "fileUpload", "field": "arrivalListFileIds", "label": "上传清单", "limit": 5, "visible": true, "fileSize": 20, "internal": false, "readonly": false, "writable": true, "fieldCode": "arrivalListFileIds", "fieldName": "上传清单", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "businessType": "sample_purchase_order", "componentType": "fileUpload", "uploadButtonText": "上传清单"}, {"type": "textarea", "field": "applicantModifyRemark", "label": "申请人修改说明", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "applicantModifyRemark", "fieldName": "申请人修改说明", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "deptLeaderRemark", "label": "部门负责人意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "deptLeaderRemark", "fieldName": "部门负责人意见", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "engineeringManagerRemark", "label": "工程部经理意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "engineeringManagerRemark", "fieldName": "工程部经理意见", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "countersignRemark", "label": "会签意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "countersignRemark", "fieldName": "会签意见", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "rejectReason", "label": "驳回原因", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "rejectReason", "fieldName": "驳回原因", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "remark", "label": "备注", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "remark", "fieldName": "备注", "searchable": false, "formVisible": true, "listVisible": true, "systemField": false, "componentType": "textarea"}], "formAssets": [{"type": "BUSINESS_CODE_FORM", "fields": [{"type": "input", "field": "orderNo", "label": "采购单号", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "orderNo", "systemField": false, "componentType": "input"}, {"type": "input", "field": "title", "label": "采购主题", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "title", "systemField": false, "componentType": "input"}, {"type": "input", "field": "supplierName", "label": "供应商", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "supplierName", "systemField": false, "componentType": "input"}, {"type": "number", "field": "amountCent", "label": "采购金额(分)", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "amountCent", "systemField": false, "componentType": "number"}, {"type": "textarea", "field": "purchaseItems", "label": "采购明细", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "purchaseItems", "systemField": false, "componentType": "textarea"}, {"type": "date", "field": "needDate", "label": "期望到货日期", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "needDate", "systemField": false, "componentType": "date"}, {"type": "select", "field": "status", "label": "流程状态", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "status", "systemField": false, "componentType": "select"}, {"type": "input", "field": "applicantName", "label": "申请人", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "applicantName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "applicantDeptName", "label": "申请部门", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "applicantDeptName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "deptLeaderName", "label": "部门负责人", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "deptLeaderName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "engineeringManagerName", "label": "工程部经理", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "engineeringManagerName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "countersignUserNames", "label": "会签人员", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "countersignUserNames", "systemField": false, "componentType": "input"}, {"type": "fileUpload", "field": "arrivalListFileIds", "label": "上传清单", "limit": 5, "visible": true, "fileSize": 20, "internal": false, "readonly": false, "writable": true, "fieldCode": "arrivalListFileIds", "systemField": false, "businessType": "sample_purchase_order", "componentType": "fileUpload", "uploadButtonText": "上传清单"}, {"type": "textarea", "field": "applicantModifyRemark", "label": "申请人修改说明", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "applicantModifyRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "deptLeaderRemark", "label": "部门负责人意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "deptLeaderRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "engineeringManagerRemark", "label": "工程部经理意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "engineeringManagerRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "countersignRemark", "label": "会签意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "countersignRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "rejectReason", "label": "驳回原因", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "rejectReason", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "remark", "label": "备注", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "remark", "systemField": false, "componentType": "textarea"}], "appName": "采购申请", "formKey": "sample_purchase_order_approval_form", "formUrl": "/business/purchase-order-test", "formMode": "BUSINESS_CODE_FORM", "formName": "采购单审批表单", "fieldCount": 19, "objectCode": "sample_purchase_order", "objectName": "采购申请", "sourceType": "codeProvider", "description": "代码实现的采购单审批表单,支持按流程节点控制字段。", "providerKey": "samplePurchaseOrder", "businessName": "采购申请", "fieldCatalog": [{"type": "input", "field": "orderNo", "label": "采购单号", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "orderNo", "systemField": false, "componentType": "input"}, {"type": "input", "field": "title", "label": "采购主题", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "title", "systemField": false, "componentType": "input"}, {"type": "input", "field": "supplierName", "label": "供应商", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "supplierName", "systemField": false, "componentType": "input"}, {"type": "number", "field": "amountCent", "label": "采购金额(分)", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "amountCent", "systemField": false, "componentType": "number"}, {"type": "textarea", "field": "purchaseItems", "label": "采购明细", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "purchaseItems", "systemField": false, "componentType": "textarea"}, {"type": "date", "field": "needDate", "label": "期望到货日期", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "needDate", "systemField": false, "componentType": "date"}, {"type": "select", "field": "status", "label": "流程状态", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "status", "systemField": false, "componentType": "select"}, {"type": "input", "field": "applicantName", "label": "申请人", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "applicantName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "applicantDeptName", "label": "申请部门", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "applicantDeptName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "deptLeaderName", "label": "部门负责人", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "deptLeaderName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "engineeringManagerName", "label": "工程部经理", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "engineeringManagerName", "systemField": false, "componentType": "input"}, {"type": "input", "field": "countersignUserNames", "label": "会签人员", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "countersignUserNames", "systemField": false, "componentType": "input"}, {"type": "fileUpload", "field": "arrivalListFileIds", "label": "上传清单", "limit": 5, "visible": true, "fileSize": 20, "internal": false, "readonly": false, "writable": true, "fieldCode": "arrivalListFileIds", "systemField": false, "businessType": "sample_purchase_order", "componentType": "fileUpload", "uploadButtonText": "上传清单"}, {"type": "textarea", "field": "applicantModifyRemark", "label": "申请人修改说明", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "applicantModifyRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "deptLeaderRemark", "label": "部门负责人意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "deptLeaderRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "engineeringManagerRemark", "label": "工程部经理意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "engineeringManagerRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "countersignRemark", "label": "会签意见", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "countersignRemark", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "rejectReason", "label": "驳回原因", "visible": true, "internal": false, "readonly": true, "writable": false, "fieldCode": "rejectReason", "systemField": false, "componentType": "textarea"}, {"type": "textarea", "field": "remark", "label": "备注", "visible": true, "internal": false, "readonly": false, "writable": true, "fieldCode": "remark", "systemField": false, "componentType": "textarea"}], "fieldPreview": ["采购单号", "采购主题", "供应商", "采购金额(分)", "采购明细"], "providerName": "采购单审批代码表单", "supportsSave": true}], "objectCode": "sample_purchase_order", "objectName": "采购申请", "pageSchema": {"pages": [{"params": [], "pageKey": "list", "pageName": "列表页", "pageType": "list", "detailApi": "", "routePath": "", "gridLayout": {"gap": 8, "cols": 12, "items": [{"id": "block_crud", "gridH": 16, "gridW": 12, "gridX": 0, "gridY": 0, "label": "业务列表", "props": {"api": "", "style": {"x": 0, "y": 0, "width": "100%", "height": 632, "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "backgroundColor": "transparent"}, "title": "采购申请", "events": [], "rowKey": "id", "hideAdd": false, "listApi": "", "striped": false, "bordered": false, "editSize": "medium", "editXGap": 16, "editYGap": 8, "createApi": "", "deleteApi": "", "detailApi": "", "exportApi": "", "importApi": "", "isEncrypt": false, "maxHeight": "", "modalType": "modal", "tableSize": "small", "updateApi": "", "listMethod": "get", "modalWidth": "800px", "renderMode": "table", "searchYGap": 16, "showExport": false, "showImport": false, "showSearch": true, "description": "系统完整 CRUD 页面组件", "hideToolbar": false, "previewMode": "mock", "publicQuery": {}, "editGridCols": 1, "formOpenMode": "modal", "publicParams": {}, "tabWorkspace": {"maxTabs": 8, "showDirtyMark": true, "closeAfterSave": false, "reuseRecordTab": true}, "addButtonText": "新增", "crudHookRules": {}, "customActions": [], "fieldSettings": {}, "hideSelection": false, "lastPreviewAt": "", "listDataField": "records", "editLabelAlign": "right", "editLabelWidth": "auto", "exportFileName": "", "listTotalField": "total", "searchGridCols": 4, "showPagination": true, "drawerPlacement": "right", "hideBatchDelete": false, "hideModalFooter": false, "previewLiveData": false, "previewRecordId": "", "searchFieldRefs": ["title", "supplierName", "amountCent", "purchaseItems", "needDate", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "remark"], "showExportTasks": true, "defaultSortField": "id", "defaultSortOrder": "desc", "detailModalWidth": "min(1080px, 92vw)", "editShowFeedback": true, "exportButtonText": "导出", "lastPreviewError": "", "searchLabelWidth": "auto", "beforeSubmitRules": [], "enableCustomQuery": false, "formDefaultValues": {}, "lastPreviewStatus": "idle", "editLabelPlacement": "left", "lastPreviewMessage": "当前使用模拟预览,不请求接口", "searchFieldSettings": {}, "submitDefaultParams": {}, "searchEnableCollapse": true, "showRenderModeSwitch": true, "searchMaxVisibleFields": 3, "hideDefaultDetailContent": false}, "children": [], "blockType": "AiCrudPage", "fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName", "applicantDeptName", "deptLeaderName", "engineeringManagerName", "countersignUserNames", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "rejectReason", "remark"]}], "rowHeight": 32, "layoutType": "simple-crud", "designWidth": 1366}, "description": "", "detailMethod": "get", "detailDataField": "data"}, {"params": [{"name": "id", "value": ":id"}], "pageKey": "detail", "pageName": "详情页", "pageType": "detail", "detailApi": "", "routePath": "detail/:id", "gridLayout": {"gap": 8, "cols": 12, "items": [{"id": "back-button_xp418c", "gridH": 1, "gridW": 2, "gridX": 0, "gridY": 0, "label": "返回上一页", "props": {"text": "返回", "type": "default", "style": {"x": "", "y": "", "width": "auto", "height": "100%", "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "widthMode": "auto", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "backgroundColor": "transparent"}, "action": "back", "events": [{"id": "evt_back_1782800840654", "action": "back", "params": [], "trigger": "click", "description": "返回上一页", "targetBlockId": ""}]}, "children": [], "blockType": "back-button", "fieldRefs": []}, {"id": "page-title_izxngi", "gridH": 2, "gridW": 10, "gridX": 2, "gridY": 0, "label": "详情页标题", "props": {"size": "medium", "style": {"x": "", "y": "", "width": "100%", "height": "100%", "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "backgroundColor": "transparent"}, "title": "详情信息", "events": [], "subtitle": "查看当前业务记录的完整信息", "statusText": "详情", "statusType": "info"}, "children": [], "blockType": "page-title", "fieldRefs": []}, {"id": "detail-info_wiisiu", "gridH": 8, "gridW": 12, "gridX": 0, "gridY": 2, "label": "详情信息", "props": {"style": {"x": "", "y": "", "width": "100%", "height": "100%", "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "backgroundColor": "transparent"}, "title": "基础信息", "events": [], "bordered": false, "columnCount": 2, "fieldSettings": {}, "labelPlacement": "left"}, "children": [], "blockType": "detail-info", "fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName"]}], "rowHeight": 32, "layoutType": "simple-crud", "designWidth": 1366}, "description": "业务详情页面", "detailMethod": "get", "detailDataField": "data"}], "zones": [{"props": {"canvas": {"snap": 8, "items": [{"h": 132, "w": 700, "x": 32, "y": 36, "id": "search_query_set", "label": "查询集", "props": {"fieldRefs": ["title", "supplierName", "amountCent", "purchaseItems", "needDate", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "remark"], "placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 1, "fieldRef": "", "fieldRefs": ["title", "supplierName", "amountCent", "purchaseItems", "needDate", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "remark"], "modelCode": "", "modelName": "", "componentKey": "query-set"}, {"h": 40, "w": 104, "x": 760, "y": 82, "id": "search_action_reset", "label": "重置", "props": {"placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 2, "fieldRef": "", "fieldRefs": [], "modelCode": "", "modelName": "", "componentKey": "reset-button"}, {"h": 40, "w": 128, "x": 876, "y": 82, "id": "search_action_custom_query", "label": "自定义查询", "props": {"placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 3, "fieldRef": "", "fieldRefs": [], "modelCode": "", "modelName": "", "componentKey": "custom-query"}], "width": 1040, "height": 300}, "fieldSettings": {}}, "enabled": true, "zoneKey": "search", "fieldRefs": ["title", "supplierName", "amountCent", "purchaseItems", "needDate", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "remark"], "componentKey": "search-form"}, {"props": {"api": "", "title": "采购申请", "canvas": {"snap": 8, "items": [{"h": 40, "w": 104, "x": 32, "y": 28, "id": "table_action_add", "label": "新增", "props": {"placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 1, "fieldRef": "", "fieldRefs": [], "modelCode": "", "modelName": "", "componentKey": "add-button"}, {"h": 40, "w": 104, "x": 148, "y": 28, "id": "table_action_import", "label": "导入", "props": {"placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 2, "fieldRef": "", "fieldRefs": [], "modelCode": "", "modelName": "", "componentKey": "import-button"}, {"h": 40, "w": 104, "x": 264, "y": 28, "id": "table_action_export", "label": "导出", "props": {"placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 3, "fieldRef": "", "fieldRefs": [], "modelCode": "", "modelName": "", "componentKey": "export-button"}, {"h": 40, "w": 128, "x": 380, "y": 28, "id": "table_action_custom_query", "label": "自定义查询", "props": {"placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 4, "fieldRef": "", "fieldRefs": [], "modelCode": "", "modelName": "", "componentKey": "custom-query"}, {"h": 300, "w": 940, "x": 32, "y": 88, "id": "table_data_grid", "label": "采购申请列表", "props": {"fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName", "applicantDeptName", "deptLeaderName", "engineeringManagerName", "countersignUserNames", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "rejectReason", "remark"], "placeholder": ""}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 5, "fieldRef": "", "fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName", "applicantDeptName", "deptLeaderName", "engineeringManagerName", "countersignUserNames", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "rejectReason", "remark"], "modelCode": "", "modelName": "", "componentKey": "data-table"}], "width": 1040, "height": 460}, "rowKey": "id", "hideAdd": false, "listApi": "", "striped": false, "bordered": false, "editSize": "medium", "editXGap": 16, "editYGap": 8, "createApi": "", "deleteApi": "", "detailApi": "", "exportApi": "", "importApi": "", "isEncrypt": false, "maxHeight": "", "modalType": "modal", "tableSize": "small", "updateApi": "", "listMethod": "get", "modalWidth": "800px", "renderMode": "table", "searchYGap": 16, "showExport": false, "showImport": false, "showSearch": true, "hideToolbar": false, "previewMode": "mock", "publicQuery": {}, "editGridCols": 1, "formOpenMode": "modal", "publicParams": {}, "tabWorkspace": {"maxTabs": 8, "showDirtyMark": true, "closeAfterSave": false, "reuseRecordTab": true}, "addButtonText": "新增", "crudHookRules": {}, "customActions": [], "fieldSettings": {}, "hideSelection": false, "lastPreviewAt": "", "listDataField": "records", "editLabelAlign": "right", "editLabelWidth": "auto", "exportFileName": "", "listTotalField": "total", "searchGridCols": 4, "showPagination": true, "drawerPlacement": "right", "hideBatchDelete": false, "hideModalFooter": false, "previewLiveData": false, "previewRecordId": "", "showExportTasks": true, "defaultSortField": "id", "defaultSortOrder": "desc", "detailModalWidth": "min(1080px, 92vw)", "editShowFeedback": true, "exportButtonText": "导出", "lastPreviewError": "", "searchLabelWidth": "auto", "beforeSubmitRules": [], "enableCustomQuery": false, "formDefaultValues": {}, "lastPreviewStatus": "idle", "editLabelPlacement": "left", "lastPreviewMessage": "当前使用模拟预览,不请求接口", "submitDefaultParams": {}, "searchEnableCollapse": true, "showRenderModeSwitch": true, "searchMaxVisibleFields": 3, "hideDefaultDetailContent": false}, "enabled": true, "zoneKey": "table", "fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName", "applicantDeptName", "deptLeaderName", "engineeringManagerName", "countersignUserNames", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "rejectReason", "remark"], "componentKey": "data-table"}, {"props": {"canvas": {"snap": 8, "items": [{"h": 64, "w": 340, "x": 32, "y": 32, "id": "edit_title", "label": "采购主题", "props": {"placeholder": "请输入采购主题"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 1, "fieldRef": "title", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 396, "y": 32, "id": "edit_supplierName", "label": "供应商", "props": {"placeholder": "请输入供应商"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 2, "fieldRef": "supplierName", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 32, "y": 120, "id": "edit_amountCent", "label": "采购金额(分)", "props": {"placeholder": "请输入采购金额(分)"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 3, "fieldRef": "amountCent", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-number"}, {"h": 76, "w": 340, "x": 396, "y": 120, "id": "edit_purchaseItems", "label": "采购明细", "props": {"placeholder": "请输入采购明细"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 4, "fieldRef": "purchaseItems", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 64, "w": 340, "x": 32, "y": 208, "id": "edit_needDate", "label": "期望到货日期", "props": {"placeholder": "请输入期望到货日期"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 5, "fieldRef": "needDate", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-date"}, {"h": 76, "w": 340, "x": 396, "y": 208, "id": "edit_arrivalListFileIds", "label": "上传清单", "props": {"placeholder": "请输入上传清单"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 6, "fieldRef": "arrivalListFileIds", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-upload"}, {"h": 76, "w": 340, "x": 32, "y": 296, "id": "edit_applicantModifyRemark", "label": "申请人修改说明", "props": {"placeholder": "请输入申请人修改说明"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 7, "fieldRef": "applicantModifyRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 396, "y": 296, "id": "edit_deptLeaderRemark", "label": "部门负责人意见", "props": {"placeholder": "请输入部门负责人意见"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 8, "fieldRef": "deptLeaderRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 32, "y": 384, "id": "edit_engineeringManagerRemark", "label": "工程部经理意见", "props": {"placeholder": "请输入工程部经理意见"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 9, "fieldRef": "engineeringManagerRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 396, "y": 384, "id": "edit_countersignRemark", "label": "会签意见", "props": {"placeholder": "请输入会签意见"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 10, "fieldRef": "countersignRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 32, "y": 472, "id": "edit_remark", "label": "备注", "props": {"placeholder": "请输入备注"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 11, "fieldRef": "remark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}], "width": 1040, "height": 596}, "editGridCols": 1}, "enabled": true, "zoneKey": "edit", "fieldRefs": ["title", "supplierName", "amountCent", "purchaseItems", "needDate", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "remark"], "componentKey": "edit-form"}, {"props": {"canvas": {"snap": 8, "items": [{"h": 64, "w": 340, "x": 32, "y": 32, "id": "detail_orderNo", "label": "采购单号", "props": {"placeholder": "请输入采购单号"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 1, "fieldRef": "orderNo", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 396, "y": 32, "id": "detail_title", "label": "采购主题", "props": {"placeholder": "请输入采购主题"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 2, "fieldRef": "title", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 32, "y": 120, "id": "detail_supplierName", "label": "供应商", "props": {"placeholder": "请输入供应商"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 3, "fieldRef": "supplierName", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 396, "y": 120, "id": "detail_amountCent", "label": "采购金额(分)", "props": {"placeholder": "请输入采购金额(分)"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 4, "fieldRef": "amountCent", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-number"}, {"h": 76, "w": 340, "x": 32, "y": 208, "id": "detail_purchaseItems", "label": "采购明细", "props": {"placeholder": "请输入采购明细"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 5, "fieldRef": "purchaseItems", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 64, "w": 340, "x": 396, "y": 208, "id": "detail_needDate", "label": "期望到货日期", "props": {"placeholder": "请输入期望到货日期"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 6, "fieldRef": "needDate", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-date"}, {"h": 64, "w": 340, "x": 32, "y": 296, "id": "detail_status", "label": "流程状态", "props": {"placeholder": "请输入流程状态"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 7, "fieldRef": "status", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-select"}, {"h": 64, "w": 340, "x": 396, "y": 296, "id": "detail_applicantName", "label": "申请人", "props": {"placeholder": "请输入申请人"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 8, "fieldRef": "applicantName", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 32, "y": 384, "id": "detail_applicantDeptName", "label": "申请部门", "props": {"placeholder": "请输入申请部门"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 9, "fieldRef": "applicantDeptName", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 396, "y": 384, "id": "detail_deptLeaderName", "label": "部门负责人", "props": {"placeholder": "请输入部门负责人"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 10, "fieldRef": "deptLeaderName", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 32, "y": 472, "id": "detail_engineeringManagerName", "label": "工程部经理", "props": {"placeholder": "请输入工程部经理"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 11, "fieldRef": "engineeringManagerName", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 64, "w": 340, "x": 396, "y": 472, "id": "detail_countersignUserNames", "label": "会签人员", "props": {"placeholder": "请输入会签人员"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 12, "fieldRef": "countersignUserNames", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-input"}, {"h": 76, "w": 340, "x": 32, "y": 560, "id": "detail_arrivalListFileIds", "label": "上传清单", "props": {"placeholder": "请输入上传清单"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 13, "fieldRef": "arrivalListFileIds", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-upload"}, {"h": 76, "w": 340, "x": 396, "y": 560, "id": "detail_applicantModifyRemark", "label": "申请人修改说明", "props": {"placeholder": "请输入申请人修改说明"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 14, "fieldRef": "applicantModifyRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 32, "y": 648, "id": "detail_deptLeaderRemark", "label": "部门负责人意见", "props": {"placeholder": "请输入部门负责人意见"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 15, "fieldRef": "deptLeaderRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 396, "y": 648, "id": "detail_engineeringManagerRemark", "label": "工程部经理意见", "props": {"placeholder": "请输入工程部经理意见"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 16, "fieldRef": "engineeringManagerRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 32, "y": 736, "id": "detail_countersignRemark", "label": "会签意见", "props": {"placeholder": "请输入会签意见"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 17, "fieldRef": "countersignRemark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 396, "y": 736, "id": "detail_rejectReason", "label": "驳回原因", "props": {"placeholder": "请输入驳回原因"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 18, "fieldRef": "rejectReason", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}, {"h": 76, "w": 340, "x": 32, "y": 824, "id": "detail_remark", "label": "备注", "props": {"placeholder": "请输入备注"}, "style": {"fill": "#ffffff", "radius": 6, "stroke": "#cbd5e1", "labelWidth": 86}, "locked": false, "zIndex": 19, "fieldRef": "remark", "fieldRefs": [], "modelCode": "sample_purchase_order", "modelName": "采购申请", "componentKey": "field-textarea"}], "width": 1040, "height": 948}}, "enabled": false, "zoneKey": "detail", "fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName", "applicantDeptName", "deptLeaderName", "engineeringManagerName", "countersignUserNames", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "rejectReason", "remark"], "componentKey": "detail-panel"}], "layoutType": "simple-crud", "listGridLayout": {"gap": 8, "cols": 12, "items": [{"id": "block_crud", "gridH": 16, "gridW": 12, "gridX": 0, "gridY": 0, "label": "业务列表", "props": {"api": "", "style": {"x": 0, "y": 0, "width": "100%", "height": 632, "margin": 0, "padding": 0, "maxWidth": "", "minWidth": "", "boxShadow": "none", "maxHeight": "", "minHeight": "", "widthMode": "full", "heightMode": "fixed", "borderColor": "transparent", "borderStyle": "none", "borderWidth": 0, "customStyle": "", "borderRadius": 0, "backgroundColor": "transparent"}, "title": "采购申请", "events": [], "rowKey": "id", "hideAdd": false, "listApi": "", "striped": false, "bordered": false, "editSize": "medium", "editXGap": 16, "editYGap": 8, "createApi": "", "deleteApi": "", "detailApi": "", "exportApi": "", "importApi": "", "isEncrypt": false, "maxHeight": "", "modalType": "modal", "tableSize": "small", "updateApi": "", "listMethod": "get", "modalWidth": "800px", "renderMode": "table", "searchYGap": 16, "showExport": false, "showImport": false, "showSearch": true, "description": "系统完整 CRUD 页面组件", "hideToolbar": false, "previewMode": "mock", "publicQuery": {}, "editGridCols": 1, "formOpenMode": "modal", "publicParams": {}, "tabWorkspace": {"maxTabs": 8, "showDirtyMark": true, "closeAfterSave": false, "reuseRecordTab": true}, "addButtonText": "新增", "crudHookRules": {}, "customActions": [], "fieldSettings": {}, "hideSelection": false, "lastPreviewAt": "", "listDataField": "records", "editLabelAlign": "right", "editLabelWidth": "auto", "exportFileName": "", "listTotalField": "total", "searchGridCols": 4, "showPagination": true, "drawerPlacement": "right", "hideBatchDelete": false, "hideModalFooter": false, "previewLiveData": false, "previewRecordId": "", "searchFieldRefs": ["title", "supplierName", "amountCent", "purchaseItems", "needDate", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "remark"], "showExportTasks": true, "defaultSortField": "id", "defaultSortOrder": "desc", "detailModalWidth": "min(1080px, 92vw)", "editShowFeedback": true, "exportButtonText": "导出", "lastPreviewError": "", "searchLabelWidth": "auto", "beforeSubmitRules": [], "enableCustomQuery": false, "formDefaultValues": {}, "lastPreviewStatus": "idle", "editLabelPlacement": "left", "lastPreviewMessage": "当前使用模拟预览,不请求接口", "searchFieldSettings": {}, "submitDefaultParams": {}, "searchEnableCollapse": true, "showRenderModeSwitch": true, "searchMaxVisibleFields": 3, "hideDefaultDetailContent": false}, "children": [], "blockType": "AiCrudPage", "fieldRefs": ["orderNo", "title", "supplierName", "amountCent", "purchaseItems", "needDate", "status", "applicantName", "applicantDeptName", "deptLeaderName", "engineeringManagerName", "countersignUserNames", "arrivalListFileIds", "applicantModifyRemark", "deptLeaderRemark", "engineeringManagerRemark", "countersignRemark", "rejectReason", "remark"]}], "rowHeight": 32, "layoutType": "simple-crud", "designWidth": 1366}, "listLayoutMode": "grid"}, "viewSchema": {"list": {"columns": [{"align": "left", "label": "采购单号", "order": 0, "width": 160, "visible": true, "sortable": false, "fieldCode": "orderNo"}, {"align": "left", "label": "采购主题", "order": 1, "width": 160, "visible": true, "sortable": false, "fieldCode": "title"}, {"align": "left", "label": "供应商", "order": 2, "width": 160, "visible": true, "sortable": false, "fieldCode": "supplierName"}, {"align": "right", "label": "采购金额(分)", "order": 3, "width": 160, "visible": true, "sortable": false, "fieldCode": "amountCent"}, {"align": "left", "label": "采购明细", "order": 4, "width": 220, "visible": true, "sortable": false, "fieldCode": "purchaseItems"}, {"align": "center", "label": "期望到货日期", "order": 5, "width": 160, "visible": true, "sortable": false, "fieldCode": "needDate"}, {"align": "left", "label": "流程状态", "order": 6, "width": 160, "visible": true, "sortable": false, "fieldCode": "status"}, {"align": "left", "label": "申请人", "order": 7, "width": 160, "visible": true, "sortable": false, "fieldCode": "applicantName"}, {"align": "left", "label": "申请部门", "order": 8, "width": 160, "visible": true, "sortable": false, "fieldCode": "applicantDeptName"}, {"align": "left", "label": "部门负责人", "order": 9, "width": 160, "visible": true, "sortable": false, "fieldCode": "deptLeaderName"}, {"align": "left", "label": "工程部经理", "order": 10, "width": 160, "visible": true, "sortable": false, "fieldCode": "engineeringManagerName"}, {"align": "left", "label": "会签人员", "order": 11, "width": 160, "visible": true, "sortable": false, "fieldCode": "countersignUserNames"}, {"align": "left", "label": "上传清单", "order": 12, "width": 160, "visible": true, "sortable": false, "fieldCode": "arrivalListFileIds"}, {"align": "left", "label": "申请人修改说明", "order": 13, "width": 220, "visible": true, "sortable": false, "fieldCode": "applicantModifyRemark"}, {"align": "left", "label": "部门负责人意见", "order": 14, "width": 220, "visible": true, "sortable": false, "fieldCode": "deptLeaderRemark"}, {"align": "left", "label": "工程部经理意见", "order": 15, "width": 220, "visible": true, "sortable": false, "fieldCode": "engineeringManagerRemark"}, {"align": "left", "label": "会签意见", "order": 16, "width": 220, "visible": true, "sortable": false, "fieldCode": "countersignRemark"}, {"align": "left", "label": "驳回原因", "order": 17, "width": 220, "visible": true, "sortable": false, "fieldCode": "rejectReason"}, {"align": "left", "label": "备注", "order": 18, "width": 220, "visible": true, "sortable": false, "fieldCode": "remark"}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "采购单号", "order": 0, "visible": true, "readonly": true, "fieldCode": "orderNo"}, {"align": "left", "label": "采购主题", "order": 1, "visible": true, "readonly": true, "fieldCode": "title"}, {"align": "left", "label": "供应商", "order": 2, "visible": true, "readonly": true, "fieldCode": "supplierName"}, {"align": "left", "label": "采购金额(分)", "order": 3, "visible": true, "readonly": true, "fieldCode": "amountCent"}, {"align": "left", "label": "采购明细", "order": 4, "visible": true, "readonly": true, "fieldCode": "purchaseItems"}, {"align": "left", "label": "期望到货日期", "order": 5, "visible": true, "readonly": true, "fieldCode": "needDate"}, {"align": "left", "label": "流程状态", "order": 6, "visible": true, "readonly": true, "fieldCode": "status"}, {"align": "left", "label": "申请人", "order": 7, "visible": true, "readonly": true, "fieldCode": "applicantName"}, {"align": "left", "label": "申请部门", "order": 8, "visible": true, "readonly": true, "fieldCode": "applicantDeptName"}, {"align": "left", "label": "部门负责人", "order": 9, "visible": true, "readonly": true, "fieldCode": "deptLeaderName"}, {"align": "left", "label": "工程部经理", "order": 10, "visible": true, "readonly": true, "fieldCode": "engineeringManagerName"}, {"align": "left", "label": "会签人员", "order": 11, "visible": true, "readonly": true, "fieldCode": "countersignUserNames"}, {"align": "left", "label": "上传清单", "order": 12, "visible": true, "readonly": true, "fieldCode": "arrivalListFileIds"}, {"align": "left", "label": "申请人修改说明", "order": 13, "visible": true, "readonly": true, "fieldCode": "applicantModifyRemark"}, {"align": "left", "label": "部门负责人意见", "order": 14, "visible": true, "readonly": true, "fieldCode": "deptLeaderRemark"}, {"align": "left", "label": "工程部经理意见", "order": 15, "visible": true, "readonly": true, "fieldCode": "engineeringManagerRemark"}, {"align": "left", "label": "会签意见", "order": 16, "visible": true, "readonly": true, "fieldCode": "countersignRemark"}, {"align": "left", "label": "驳回原因", "order": 17, "visible": true, "readonly": true, "fieldCode": "rejectReason"}, {"align": "left", "label": "备注", "order": 18, "visible": true, "readonly": true, "fieldCode": "remark"}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "采购主题", "order": 0, "visible": true, "collapsed": false, "fieldCode": "title", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "供应商", "order": 1, "visible": true, "collapsed": false, "fieldCode": "supplierName", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "采购金额(分)", "order": 2, "visible": true, "collapsed": false, "fieldCode": "amountCent", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "采购明细", "order": 3, "visible": true, "collapsed": false, "fieldCode": "purchaseItems", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "期望到货日期", "order": 4, "visible": true, "collapsed": false, "fieldCode": "needDate", "matchMode": "eq", "componentKey": "date"}, {"align": "left", "label": "上传清单", "order": 5, "visible": true, "collapsed": false, "fieldCode": "arrivalListFileIds", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "申请人修改说明", "order": 6, "visible": true, "collapsed": false, "fieldCode": "applicantModifyRemark", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "部门负责人意见", "order": 7, "visible": true, "collapsed": false, "fieldCode": "deptLeaderRemark", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "工程部经理意见", "order": 8, "visible": true, "collapsed": false, "fieldCode": "engineeringManagerRemark", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "会签意见", "order": 9, "visible": true, "collapsed": false, "fieldCode": "countersignRemark", "matchMode": "eq", "componentKey": "input"}, {"align": "left", "label": "备注", "order": 10, "visible": true, "collapsed": false, "fieldCode": "remark", "matchMode": "eq", "componentKey": "input"}], "settings": {}}, "overrides": {}, "schemaVersion": "view-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": "auto", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "sample_purchase_order_approval_form", "formName": "采购单审批表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_orderNo", "label": "采购单号", "props": {"clearable": true, "placeholder": "请输入采购单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "orderNo", "columnName": "order_no", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_title", "label": "采购主题", "props": {"clearable": true, "placeholder": "请输入采购主题"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "title", "columnName": "title", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_supplierName", "label": "供应商", "props": {"clearable": true, "placeholder": "请输入供应商"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierName", "columnName": "supplier_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_amountCent", "label": "采购金额(分)", "props": {"clearable": true, "placeholder": "请输入采购金额(分)"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amountCent", "columnName": "amount_cent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaseItems", "label": "采购明细", "props": {"clearable": true, "placeholder": "请输入采购明细"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseItems", "columnName": "purchase_items", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_needDate", "label": "期望到货日期", "props": {"clearable": true, "placeholder": "请选择期望到货日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "needDate", "columnName": "need_date", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "流程状态", "props": {"clearable": true, "placeholder": "请选择流程状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "status", "columnName": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_applicantName", "label": "申请人", "props": {"clearable": true, "placeholder": "请输入申请人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "applicantName", "columnName": "applicant_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_applicantDeptName", "label": "申请部门", "props": {"clearable": true, "placeholder": "请输入申请部门"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "applicantDeptName", "columnName": "applicant_dept_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_deptLeaderName", "label": "部门负责人", "props": {"clearable": true, "placeholder": "请输入部门负责人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "deptLeaderName", "columnName": "dept_leader_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_engineeringManagerName", "label": "工程部经理", "props": {"clearable": true, "placeholder": "请输入工程部经理"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "engineeringManagerName", "columnName": "engineering_manager_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_countersignUserNames", "label": "会签人员", "props": {"clearable": true, "placeholder": "请输入会签人员"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "countersignUserNames", "columnName": "countersign_user_names", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_arrivalListFileIds", "label": "上传清单", "props": {"clearable": true, "placeholder": "请选择上传清单"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "fileUpload", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "arrivalListFileIds", "columnName": "arrival_list_file_ids", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_applicantModifyRemark", "label": "申请人修改说明", "props": {"clearable": true, "placeholder": "请输入申请人修改说明"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "applicantModifyRemark", "columnName": "applicant_modify_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_deptLeaderRemark", "label": "部门负责人意见", "props": {"clearable": true, "placeholder": "请输入部门负责人意见"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "deptLeaderRemark", "columnName": "dept_leader_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_engineeringManagerRemark", "label": "工程部经理意见", "props": {"clearable": true, "placeholder": "请输入工程部经理意见"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "engineeringManagerRemark", "columnName": "engineering_manager_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_countersignRemark", "label": "会签意见", "props": {"clearable": true, "placeholder": "请输入会签意见"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "countersignRemark", "columnName": "countersign_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_rejectReason", "label": "驳回原因", "props": {"clearable": true, "placeholder": "请输入驳回原因"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "rejectReason", "columnName": "reject_reason", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v1"}, "formKey": "sample_purchase_order_approval_form", "formName": "采购单审批表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": "auto", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "sample_purchase_order_approval_form", "formName": "采购单审批表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_orderNo", "label": "采购单号", "props": {"clearable": true, "placeholder": "请输入采购单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "orderNo", "columnName": "order_no", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_title", "label": "采购主题", "props": {"clearable": true, "placeholder": "请输入采购主题"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "title", "columnName": "title", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_supplierName", "label": "供应商", "props": {"clearable": true, "placeholder": "请输入供应商"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierName", "columnName": "supplier_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_amountCent", "label": "采购金额(分)", "props": {"clearable": true, "placeholder": "请输入采购金额(分)"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amountCent", "columnName": "amount_cent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaseItems", "label": "采购明细", "props": {"clearable": true, "placeholder": "请输入采购明细"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseItems", "columnName": "purchase_items", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_needDate", "label": "期望到货日期", "props": {"clearable": true, "placeholder": "请选择期望到货日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "needDate", "columnName": "need_date", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "流程状态", "props": {"clearable": true, "placeholder": "请选择流程状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "status", "columnName": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_applicantName", "label": "申请人", "props": {"clearable": true, "placeholder": "请输入申请人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "applicantName", "columnName": "applicant_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_applicantDeptName", "label": "申请部门", "props": {"clearable": true, "placeholder": "请输入申请部门"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "applicantDeptName", "columnName": "applicant_dept_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_deptLeaderName", "label": "部门负责人", "props": {"clearable": true, "placeholder": "请输入部门负责人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "deptLeaderName", "columnName": "dept_leader_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_engineeringManagerName", "label": "工程部经理", "props": {"clearable": true, "placeholder": "请输入工程部经理"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "engineeringManagerName", "columnName": "engineering_manager_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_countersignUserNames", "label": "会签人员", "props": {"clearable": true, "placeholder": "请输入会签人员"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "countersignUserNames", "columnName": "countersign_user_names", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_arrivalListFileIds", "label": "上传清单", "props": {"clearable": true, "placeholder": "请选择上传清单"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "fileUpload", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "arrivalListFileIds", "columnName": "arrival_list_file_ids", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_applicantModifyRemark", "label": "申请人修改说明", "props": {"clearable": true, "placeholder": "请输入申请人修改说明"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "applicantModifyRemark", "columnName": "applicant_modify_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_deptLeaderRemark", "label": "部门负责人意见", "props": {"clearable": true, "placeholder": "请输入部门负责人意见"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "deptLeaderRemark", "columnName": "dept_leader_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_engineeringManagerRemark", "label": "工程部经理意见", "props": {"clearable": true, "placeholder": "请输入工程部经理意见"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "engineeringManagerRemark", "columnName": "engineering_manager_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_countersignRemark", "label": "会签意见", "props": {"clearable": true, "placeholder": "请输入会签意见"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "countersignRemark", "columnName": "countersign_remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_rejectReason", "label": "驳回原因", "props": {"clearable": true, "placeholder": "请输入驳回原因"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": true, "source": "field_asset", "fieldCode": "rejectReason", "columnName": "reject_reason", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "sample_purchase_order_approval_form"}, "removedFormAssetKeys": ["form:sample_purchase_order_form"]}, "businessKeyPattern": "sample_purchase_order:{recordId}"}, "nodeForms": [], "startMode": "MANUAL", "flowModelKey": "sample_purchase_order_approval", "flowModelName": "采购单审批测试流程", "titleTemplate": "采购单审批11-{orderNo}", "conditionFlows": [], "businessBinding": {"mode": "ADAPTER", "ownerField": "applicantId", "titleField": "title", "statusField": "status", "tenantField": "tenant_id", "primaryKeyField": "id"}, "variableMapping": [{"label": "采购单号(orderNo)", "formField": "orderNo", "flowVariable": "orderNo"}, {"label": "采购主题(title)", "formField": "title", "flowVariable": "title"}, {"label": "供应商(supplierName)", "formField": "supplierName", "flowVariable": "supplierName"}, {"label": "采购金额(分)(amountCent)", "formField": "amountCent", "flowVariable": "amountCent"}, {"label": "采购明细(purchaseItems)", "formField": "purchaseItems", "flowVariable": "purchaseItems"}, {"label": "期望到货日期(needDate)", "formField": "needDate", "flowVariable": "needDate"}, {"label": "流程状态(status)", "formField": "status", "flowVariable": "status"}, {"label": "申请人(applicantName)", "formField": "applicantName", "flowVariable": "applicantName"}, {"label": "申请部门(applicantDeptName)", "formField": "applicantDeptName", "flowVariable": "applicantDeptName"}, {"label": "部门负责人(deptLeaderName)", "formField": "deptLeaderName", "flowVariable": "deptLeaderName"}, {"label": "工程部经理(engineeringManagerName)", "formField": "engineeringManagerName", "flowVariable": "engineeringManagerName"}, {"label": "会签人员(countersignUserNames)", "formField": "countersignUserNames", "flowVariable": "countersignUserNames"}, {"label": "上传清单(arrivalListFileIds)", "formField": "arrivalListFileIds", "flowVariable": "arrivalListFileIds"}, {"label": "申请人修改说明(applicantModifyRemark)", "formField": "applicantModifyRemark", "flowVariable": "applicantModifyRemark"}, {"label": "部门负责人意见(deptLeaderRemark)", "formField": "deptLeaderRemark", "flowVariable": "deptLeaderRemark"}, {"label": "工程部经理意见(engineeringManagerRemark)", "formField": "engineeringManagerRemark", "flowVariable": "engineeringManagerRemark"}, {"label": "会签意见(countersignRemark)", "formField": "countersignRemark", "flowVariable": "countersignRemark"}, {"label": "驳回原因(rejectReason)", "formField": "rejectReason", "flowVariable": "rejectReason"}, {"label": "备注(remark)", "formField": "remark", "flowVariable": "remark"}]}','采购单代码业务默认流程绑定,节点表单和字段权限由业务流程配置维护',1,1,1,'2026-06-29 10:08:39',1,1,'2026-06-30 17:42:53'), (1910000000000009104,1,'OBJECT',1910000000000000915,'PW_PURCHASE_ORDER','FLOW','pw_purchase_approval','采购单审批流程','{"options": {"scenario": "procurement_warehouse", "lowcodeApp": true, "callbackActions": {"APPROVED": "inbound_purchase_stock", "approvedActionCode": "inbound_purchase_stock"}, "businessKeyPattern": "PW_PURCHASE_ORDER:{recordId}"}, "startMode": "ACTION_ONLY", "flowModelKey": "pw_purchase_approval", "flowModelName": "采购单审批流程", "titleTemplate": "采购单审批", "conditionFlows": [], "variableMapping": [{"label": "采购单号", "formField": "purchaseNo", "flowVariable": "documentNo"}, {"label": "项目名称", "formField": "projectName", "flowVariable": "projectName"}, {"label": "申请人ID", "formField": "createBy", "flowVariable": "applicantId"}, {"label": "单据状态", "formField": "orderStatus", "flowVariable": "documentStatus"}, {"label": "采购金额分", "formField": "purchaseAmountCent", "flowVariable": "amountCent"}]}','采购单审批流程,绑定采购仓储业务流程模型',1,1,1,'2026-07-03 14:25:25',1,1,'2026-07-03 21:39:00'), (1910000000000009105,1,'OBJECT',1910000000000000917,'PW_OUTBOUND_ORDER','FLOW','pw_outbound_approval','出库单审批流程','{"options": {"scenario": "procurement_warehouse", "lowcodeApp": true, "callbackActions": {"APPROVED": "commit_outbound_stock", "REJECTED": "release_outbound_stock", "approvedActionCode": "commit_outbound_stock", "rejectedActionCode": "release_outbound_stock"}, "businessKeyPattern": "PW_OUTBOUND_ORDER:{recordId}"}, "startMode": "ACTION_ONLY", "flowModelKey": "pw_outbound_approval", "flowModelName": "出库单审批流程", "titleTemplate": "出库单审批", "conditionFlows": [], "variableMapping": [{"label": "出库单号", "formField": "outboundNo", "flowVariable": "documentNo"}, {"label": "所属仓库", "formField": "warehouseName", "flowVariable": "warehouseName"}, {"label": "申请人ID", "formField": "createBy", "flowVariable": "applicantId"}, {"label": "单据状态", "formField": "orderStatus", "flowVariable": "documentStatus"}]}','出库单审批流程,绑定采购仓储业务流程模型',1,2,1,'2026-07-03 14:25:25',1,1,'2026-07-03 21:39:00'), (1910000000000009106,1,'OBJECT',1910000000000000919,'PW_TRANSFER_ORDER','FLOW','pw_transfer_approval','调拨单审批流程','{"options": {"scenario": "procurement_warehouse", "lowcodeApp": true, "callbackActions": {"APPROVED": "transfer_stock", "approvedActionCode": "transfer_stock"}, "businessKeyPattern": "PW_TRANSFER_ORDER:{recordId}"}, "startMode": "ACTION_ONLY", "flowModelKey": "pw_transfer_approval", "flowModelName": "调拨单审批流程", "titleTemplate": "调拨单审批", "conditionFlows": [], "variableMapping": [{"label": "调拨单号", "formField": "transferNo", "flowVariable": "documentNo"}, {"label": "调出仓库", "formField": "fromWarehouseName", "flowVariable": "fromWarehouseName"}, {"label": "调入仓库", "formField": "toWarehouseName", "flowVariable": "toWarehouseName"}, {"label": "申请人ID", "formField": "createBy", "flowVariable": "applicantId"}, {"label": "单据状态", "formField": "orderStatus", "flowVariable": "documentStatus"}]}','调拨单审批流程,绑定采购仓储业务流程模型',1,3,1,'2026-07-03 14:25:25',1,1,'2026-07-03 21:39:00'), (2063927978193362945,1,'OBJECT',NULL,'CUSTOMER','FLOW','aaa','aaa','{"options": {}, "startMode": "TRIGGER", "flowModelKey": "aaa", "flowModelName": "aaa", "titleTemplate": "${customerCode}", "conditionFlows": [], "variableMapping": [{"label": "所属行业(industry)", "formField": "industry", "flowVariable": "deptId"}]}',NULL,1,0,1,'2026-06-08 18:15:51',2,1,'2026-06-24 10:44:59'); INSERT INTO ai_business_document_config (id,tenant_id,object_id,suite_code,object_code,config_key,document_name,document_no_rule,document_enabled,status_field,starter_field,owner_field,default_flow_key,status_mapping,`options`,create_by,create_time,create_dept,update_by,update_time) VALUES (1910000000000005101,1,1910000000000000104,'CRM','OPPORTUNITY','crm_opportunity','商机单据','OPP-{yyyyMMdd}-{seq4}',1,'documentStatus','createBy','ownerId','leave_multi','{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"sample": true, "scenario": "crm_opportunity_closure", "flowModelHint": "使用已部署的 leave_multi 流程模型"}',1,'2026-06-02 06:48:46',1,1,'2026-06-02 06:48:46'), (1910000000000005208,1,1910000000000005202,'HR','LEAVE_APPLICATION','hr_leave_application','离职申请单据','LEAVE-${yyyyMMdd}-${seq:4}',1,'documentStatus','createBy','handoverOwnerId','leave_multi','{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"sample": true, "scenario": "leave_application_closure", "noRuleTemplate": "LEAVE-${yyyyMMdd}-${seq:4}", "statusMappingRows": [{"tagType": "default", "allowEdit": true, "allowDelete": true, "displayName": "草稿", "statusValue": "DRAFT", "standardLabel": "草稿", "allowStartFlow": true, "standardStatus": "DRAFT"}, {"tagType": "info", "allowEdit": false, "allowDelete": false, "displayName": "已提交", "statusValue": "SUBMITTED", "standardLabel": "已提交", "allowStartFlow": false, "standardStatus": "SUBMITTED"}, {"tagType": "warning", "allowEdit": false, "allowDelete": false, "displayName": "流程中", "statusValue": "IN_PROCESS", "standardLabel": "流程中", "allowStartFlow": false, "standardStatus": "IN_PROCESS"}, {"tagType": "success", "allowEdit": false, "allowDelete": false, "displayName": "已通过", "statusValue": "APPROVED", "standardLabel": "已通过", "allowStartFlow": false, "standardStatus": "APPROVED"}, {"tagType": "error", "allowEdit": true, "allowDelete": false, "displayName": "已驳回", "statusValue": "REJECTED", "standardLabel": "已驳回", "allowStartFlow": true, "standardStatus": "REJECTED"}, {"tagType": "default", "allowEdit": true, "allowDelete": false, "displayName": "已撤回", "statusValue": "CANCELED", "standardLabel": "已撤回", "allowStartFlow": true, "standardStatus": "CANCELED"}, {"tagType": "default", "allowEdit": false, "allowDelete": false, "displayName": "已关闭", "statusValue": "CLOSED", "standardLabel": "已关闭", "allowStartFlow": false, "standardStatus": "CLOSED"}], "statusActionPolicy": {}, "autoStartBeforeDate": "2026-12-31", "detailFlowDiagramVisible": true, "detailFlowTimelineVisible": true}',1,'2026-06-02 06:48:47',1,1,'2026-06-05 07:11:27'), (1910000000000009101,1,1910000000000000915,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER','pw_purchase_order','采购单据','PO-{yyyyMMdd}-{seq4}',1,'orderStatus','createBy','createBy','pw_purchase_approval','{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"scenario": "procurement_warehouse", "lowcodeApp": true, "flowModelKey": "pw_purchase_approval", "flowModelName": "采购单审批流程", "quantityManaged": 1, "submitActionCode": "submit_purchase_approval", "hideStartFlowAction": true, "showStartFlowAction": false}',1,'2026-07-03 14:25:25',1,1,'2026-07-03 21:39:00'), (1910000000000009102,1,1910000000000000917,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER','pw_outbound_order','出库单据','OUT-{yyyyMMdd}-{seq4}',1,'orderStatus','createBy','createBy','pw_outbound_approval','{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"scenario": "procurement_warehouse", "lowcodeApp": true, "flowModelKey": "pw_outbound_approval", "flowModelName": "出库单审批流程", "quantityManaged": 1, "submitActionCode": "submit_outbound_approval", "hideStartFlowAction": true, "showStartFlowAction": false}',1,'2026-07-03 14:25:25',1,1,'2026-07-03 21:39:00'), (1910000000000009103,1,1910000000000000919,'PROCUREMENT_WAREHOUSE','PW_TRANSFER_ORDER','pw_transfer_order','调拨单据','TRF-{yyyyMMdd}-{seq4}',1,'orderStatus','createBy','createBy','pw_transfer_approval','{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"scenario": "procurement_warehouse", "lowcodeApp": true, "flowModelKey": "pw_transfer_approval", "flowModelName": "调拨单审批流程", "quantityManaged": 1, "submitActionCode": "submit_transfer_approval", "hideStartFlowAction": true, "showStartFlowAction": false}',1,'2026-07-03 14:25:25',1,1,'2026-07-03 21:39:00'), (2063926488124923905,1,1910000000000000101,'CRM','CUSTOMER','crm_customer','客户单据','KH${seq:6}',1,'customerLevel','createBy','fieldaailwe','aaa','{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"noRuleTemplate": "KH${seq:6}", "documentNoField": "customerCode", "statusMappingRows": [{"tagType": "default", "allowEdit": true, "allowDelete": true, "displayName": "草稿", "statusValue": "DRAFT", "standardLabel": "草稿", "allowStartFlow": true, "standardStatus": "DRAFT"}, {"tagType": "info", "allowEdit": false, "allowDelete": false, "displayName": "已提交", "statusValue": "SUBMITTED", "standardLabel": "已提交", "allowStartFlow": true, "standardStatus": "SUBMITTED"}, {"tagType": "warning", "allowEdit": false, "allowDelete": false, "displayName": "流程中", "statusValue": "IN_PROCESS", "standardLabel": "流程中", "allowStartFlow": false, "standardStatus": "IN_PROCESS"}, {"tagType": "success", "allowEdit": false, "allowDelete": false, "displayName": "已通过", "statusValue": "APPROVED", "standardLabel": "已通过", "allowStartFlow": false, "standardStatus": "APPROVED"}, {"tagType": "error", "allowEdit": true, "allowDelete": true, "displayName": "已驳回", "statusValue": "REJECTED", "standardLabel": "已驳回", "allowStartFlow": true, "standardStatus": "REJECTED"}, {"tagType": "warning", "allowEdit": true, "allowDelete": true, "displayName": "已撤回", "statusValue": "CANCELED", "standardLabel": "已撤回", "allowStartFlow": true, "standardStatus": "CANCELED"}, {"tagType": "default", "allowEdit": false, "allowDelete": true, "displayName": "已关闭", "statusValue": "CLOSED", "standardLabel": "已关闭", "allowStartFlow": false, "standardStatus": "CLOSED"}], "statusActionPolicy": {}, "detailFlowDiagramVisible": true, "detailFlowTimelineVisible": true}',1,'2026-06-08 18:09:55',2,1,'2026-06-24 10:44:59'), (2068917734606155778,1,2063783773240336385,'IN_OUT','in_out_history','in_out_history','InOutHistory单据',NULL,0,NULL,NULL,NULL,NULL,'{"DRAFT": "DRAFT", "CLOSED": "CLOSED", "APPROVED": "APPROVED", "CANCELED": "CANCELED", "REJECTED": "REJECTED", "SUBMITTED": "SUBMITTED", "IN_PROCESS": "IN_PROCESS"}','{"noRuleTemplate": null, "documentNoField": null, "statusMappingRows": [{"tagType": "default", "allowEdit": true, "allowDelete": true, "displayName": "草稿", "statusValue": "DRAFT", "standardLabel": "草稿", "allowStartFlow": true, "standardStatus": "DRAFT"}, {"tagType": "info", "allowEdit": false, "allowDelete": false, "displayName": "已提交", "statusValue": "SUBMITTED", "standardLabel": "已提交", "allowStartFlow": false, "standardStatus": "SUBMITTED"}, {"tagType": "warning", "allowEdit": false, "allowDelete": false, "displayName": "流程中", "statusValue": "IN_PROCESS", "standardLabel": "流程中", "allowStartFlow": false, "standardStatus": "IN_PROCESS"}, {"tagType": "success", "allowEdit": false, "allowDelete": false, "displayName": "已通过", "statusValue": "APPROVED", "standardLabel": "已通过", "allowStartFlow": false, "standardStatus": "APPROVED"}, {"tagType": "error", "allowEdit": true, "allowDelete": false, "displayName": "已驳回", "statusValue": "REJECTED", "standardLabel": "已驳回", "allowStartFlow": true, "standardStatus": "REJECTED"}, {"tagType": "default", "allowEdit": true, "allowDelete": false, "displayName": "已撤回", "statusValue": "CANCELED", "standardLabel": "已撤回", "allowStartFlow": true, "standardStatus": "CANCELED"}, {"tagType": "default", "allowEdit": false, "allowDelete": false, "displayName": "已关闭", "statusValue": "CLOSED", "standardLabel": "已关闭", "allowStartFlow": false, "standardStatus": "CLOSED"}], "statusActionPolicy": {}, "detailFlowDiagramVisible": true, "detailFlowTimelineVisible": true}',1,'2026-06-22 12:43:21',2,1,'2026-06-22 12:43:21'); INSERT INTO ai_business_extension (id,tenant_id,application_id,object_id,entry_id,extension_code,extension_name,extension_type,hook_code,scope_type,scope_key,sort_order,failure_policy,risk_level,status,draft_version,enabled_version,lock_user_id,lock_username,lock_token_hash,lock_time,lock_expire_time,remark,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (2076919276639399937,1,1110789817060294665,1910000000000000915,1910000000000000944,'cc_va','测试JS校验','CLIENT_JS','BEFORE_SUBMIT','ENTRY',NULL,0,'BLOCK','MEDIUM','DRAFT',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2076919276639399937,1,'2026-07-14 14:38:38',6,1,'2026-07-23 09:06:32'), (2076926197765287938,1,1110789817060294665,1910000000000000915,1910000000000000944,'vali','提交校验','CLIENT_JS','BEFORE_SUBMIT','ENTRY',NULL,0,'BLOCK','MEDIUM','DRAFT',8,NULL,NULL,NULL,NULL,NULL,NULL,'12',0,1,'2026-07-14 15:06:08',6,1,'2026-07-20 09:10:55'); INSERT INTO ai_business_extension_version (id,tenant_id,extension_id,version_no,content,processed_content,config_json,content_hash,validation_passed,validation_summary,test_passed,test_summary,change_summary,del_flag,create_by,create_time,create_dept,update_by,update_time) VALUES (2076919276836532226,1,2076919276639399937,1,'111',NULL,'{}','eeb398e0e34aa8f529334b28a10cefa698a0904a762b3c7211bd7059e3eb1621',1,'校验通过',0,NULL,'创建扩展草稿',0,1,'2026-07-14 14:38:38',6,1,'2026-07-14 14:38:53'), (2076926197937254401,1,2076926197765287938,1,'const amount = Number(readField(''amount'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','12e893eba7deb5d3ea438f720999aff75e1c98ad91656259f1708289103bdce1',1,'校验通过',0,NULL,'创建扩展草稿',0,1,'2026-07-14 15:06:08',6,1,'2026-07-14 15:06:08'), (2076926845252579330,1,2076926197765287938,2,'const amount = Number(readField(''amount'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','12e893eba7deb5d3ea438f720999aff75e1c98ad91656259f1708289103bdce1',1,'校验通过',0,NULL,'保存扩展草稿',0,1,'2026-07-14 15:08:42',6,1,'2026-07-14 15:08:42'), (2076932804268007426,1,2076926197765287938,3,'const amount = Number(readField(''amount'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','12e893eba7deb5d3ea438f720999aff75e1c98ad91656259f1708289103bdce1',1,'校验通过',0,NULL,'11',0,1,'2026-07-14 15:32:23',6,1,'2026-07-14 15:32:23'), (2076941779118161921,1,2076926197765287938,4,'const amount = Number(readField(''amount'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','12e893eba7deb5d3ea438f720999aff75e1c98ad91656259f1708289103bdce1',1,'校验通过',0,NULL,'保存扩展草稿',0,1,'2026-07-14 16:08:03',6,1,'2026-07-14 16:08:02'), (2076949651105349633,1,2076926197765287938,5,'const amount = Number(readField(''amount'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','12e893eba7deb5d3ea438f720999aff75e1c98ad91656259f1708289103bdce1',1,'校验通过',0,NULL,'保存扩展草稿',0,1,'2026-07-14 16:39:19',6,1,'2026-07-14 16:39:19'), (2076949694977769473,1,2076926197765287938,6,'const amount = Number(readField(''amount'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','12e893eba7deb5d3ea438f720999aff75e1c98ad91656259f1708289103bdce1',1,'校验通过',0,NULL,'保存扩展草稿',0,1,'2026-07-14 16:39:30',6,1,'2026-07-14 16:39:30'), (2076954740733870081,1,2076926197765287938,7,'const amount = Number(readField(''purchaseNo'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','90a1665d1980a390a4aaeec8ea53175e5a4dbdeb3813518e39a6c722db3f4421',1,'校验通过',1,'受限测试通过','保存扩展草稿',0,1,'2026-07-14 16:59:33',6,1,'2026-07-14 16:59:33'), (2076954785151549441,1,2076926197765287938,8,'const amount = Number(readField(''purchaseNo'') || 0) if (amount <= 0) { throw new Error(''金额必须大于 0'') } showMessage(''提交校验通过'', ''success'') return { passed: true, amount }',NULL,'{}','90a1665d1980a390a4aaeec8ea53175e5a4dbdeb3813518e39a6c722db3f4421',0,NULL,0,NULL,'保存扩展草稿',0,1,'2026-07-14 16:59:43',6,1,'2026-07-14 16:59:43'); INSERT INTO ai_business_field_template (id,tenant_id,template_code,template_name,suite_code,field_type,field_schema,status,sort_order,description,`options`,create_by,create_time,create_dept,update_by,update_time) VALUES (1910000000000000501,1,'common_customer_name','客户名称','COMMON','TEXT','{"field": "customerName", "label": "客户名称", "width": 180, "length": 128, "remark": "客户名称", "dataType": "varchar", "dictType": "", "readonly": false, "required": true, "sortable": false, "precision": 2, "queryType": "like", "sortOrder": 1, "columnName": "customer_name", "exportable": true, "importable": true, "primaryKey": false, "searchable": true, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "input", "sensitiveType": "NONE", "encryptAlgorithm": "", "businessFieldType": "TEXT"}',1,1,'常用客户主字段,可作为对象显示字段','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'), (1910000000000000502,1,'common_contact_phone','联系电话','COMMON','PHONE','{"field": "contactPhone", "label": "联系电话", "width": 140, "length": 32, "remark": "联系电话", "dataType": "varchar", "dictType": "", "readonly": false, "required": false, "sortable": false, "precision": 2, "queryType": "like", "sortOrder": 2, "columnName": "contact_phone", "exportable": true, "importable": true, "primaryKey": false, "searchable": true, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "input", "sensitiveType": "PHONE", "encryptAlgorithm": "", "businessFieldType": "PHONE"}',1,2,'常用联系电话字段,默认启用手机号脱敏','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'), (1910000000000000503,1,'common_customer_level','客户等级','COMMON','DICT','{"field": "customerLevel", "label": "客户等级", "width": 140, "length": 32, "remark": "客户等级", "dataType": "varchar", "dictType": "crm_customer_level", "readonly": false, "required": false, "sortable": false, "precision": 2, "queryType": "eq", "sortOrder": 3, "columnName": "customer_level", "exportable": true, "importable": true, "primaryKey": false, "searchable": true, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "select", "sensitiveType": "NONE", "encryptAlgorithm": "", "businessFieldType": "DICT"}',1,3,'客户分层字段,默认使用CRM客户等级字典','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'), (1910000000000000504,1,'common_owner_user','负责人','COMMON','USER','{"field": "ownerUserId", "label": "负责人", "width": 140, "length": null, "remark": "业务负责人", "dataType": "bigint", "dictType": "", "readonly": false, "required": false, "sortable": false, "precision": null, "queryType": "eq", "sortOrder": 4, "columnName": "owner_user_id", "exportable": true, "importable": true, "primaryKey": false, "searchable": true, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "userSelect", "sensitiveType": "NONE", "encryptAlgorithm": "", "businessFieldType": "USER"}',1,4,'对象负责人字段,用于权限和数据归属','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'), (1910000000000000505,1,'common_owner_dept','所属部门','COMMON','DEPT','{"field": "ownerDeptId", "label": "所属部门", "width": 140, "length": null, "remark": "所属部门", "dataType": "bigint", "dictType": "", "readonly": false, "required": false, "sortable": false, "precision": null, "queryType": "eq", "sortOrder": 5, "columnName": "owner_dept_id", "exportable": true, "importable": true, "primaryKey": false, "searchable": true, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "orgTreeSelect", "sensitiveType": "NONE", "encryptAlgorithm": "", "businessFieldType": "DEPT"}',1,5,'对象所属部门字段,用于部门维度筛选','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'), (1910000000000000506,1,'common_region_code','所属地区','COMMON','REGION','{"field": "regionCode", "label": "所属地区", "width": 160, "length": 32, "remark": "所属地区", "dataType": "varchar", "dictType": "", "readonly": false, "required": false, "sortable": false, "precision": 2, "queryType": "eq", "sortOrder": 6, "columnName": "region_code", "exportable": true, "importable": true, "primaryKey": false, "searchable": true, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "regionTreeSelect", "sensitiveType": "NONE", "encryptAlgorithm": "", "businessFieldType": "REGION"}',1,6,'行政区划字段,支持区域树选择','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'), (1910000000000000507,1,'common_remark','备注','COMMON','MULTILINE','{"field": "remark", "label": "备注", "width": 220, "length": null, "remark": "备注", "dataType": "text", "dictType": "", "readonly": false, "required": false, "sortable": false, "precision": 2, "queryType": "like", "sortOrder": 7, "columnName": "remark", "exportable": true, "importable": true, "primaryKey": false, "searchable": false, "fieldStatus": "ENABLED", "formVisible": true, "listVisible": true, "systemField": false, "defaultValue": null, "autoIncrement": false, "componentType": "textarea", "sensitiveType": "NONE", "encryptAlgorithm": "", "businessFieldType": "MULTILINE"}',1,7,'通用备注说明字段','{"stage": "business-object-designer", "builtin": true}',1,'2026-05-29 14:39:55',1,1,'2026-05-29 14:39:55'); INSERT INTO ai_business_flow_instance_link (id,tenant_id,object_code,record_id,business_key,flow_model_key,process_instance_id,flow_status,start_user_id,start_time,end_time,`result`,variables_snapshot,create_by,create_time,create_dept,update_by,update_time) VALUES (2061597550728736769,1,'OPPORTUNITY',10,'OPPORTUNITY:10','leave_multi','602ad5c2-5e15-11f1-a0fd-d67ed5f8e875','RUNNING',1,'2026-06-02 07:55:33',NULL,NULL,'{"stage": "INITIAL", "recordId": 10, "amountCent": 0, "customerId": 6, "objectCode": "OPPORTUNITY", "businessKey": "OPPORTUNITY:10", "deptManager": 1, "opportunityName": "221"}',1,'2026-06-02 07:55:33',2,1,'2026-06-02 07:55:33'), (2062424230275862529,1,'LEAVE_APPLICATION',3,'LEAVE_APPLICATION:3','leave_multi','4604f8d2-5fe0-11f1-8401-9ef8ee8744ad','RUNNING',1,'2026-06-04 14:40:29',NULL,NULL,'{"reason": "2121", "recordId": 3, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:3", "deptManager": "超级管理员"}',1,'2026-06-04 14:40:29',2,1,'2026-06-04 14:40:29'), (2062454534688473090,1,'LEAVE_APPLICATION',2,'LEAVE_APPLICATION:2','leave_multi','189dd574-5ff1-11f1-8401-9ef8ee8744ad','RUNNING',1,'2026-06-04 16:40:54',NULL,NULL,'{"reason": "121", "recordId": 2, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:2", "deptManager": "超级管理员"}',1,'2026-06-04 16:40:54',2,1,'2026-06-04 16:40:54'), (2062458425425653761,1,'LEAVE_APPLICATION',1,'LEAVE_APPLICATION:1','leave_multi','41823619-5ff3-11f1-9fec-9ef8ee8744ad','RUNNING',1,'2026-06-04 16:56:22',NULL,NULL,'{"reason": "12313", "recordId": 1, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:1", "deptManager": "超级管理员"}',1,'2026-06-04 16:56:22',2,1,'2026-06-04 16:56:22'), (2062458841269923841,1,'LEAVE_APPLICATION',4,'LEAVE_APPLICATION:4','leave_multi','7c9ab016-5ff3-11f1-9fec-9ef8ee8744ad','RUNNING',1,'2026-06-04 16:58:01',NULL,NULL,'{"reason": "1111", "recordId": 4, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:4", "deptManager": "超级管理员"}',1,'2026-06-04 16:58:01',2,1,'2026-06-04 16:58:01'), (2062469280443670530,1,'LEAVE_APPLICATION',5,'LEAVE_APPLICATION:5','leave_multi','ad78ba8d-5ff6-11f1-98b8-9ef8ee8744ad','RUNNING',1,'2026-06-04 17:39:30',NULL,NULL,'{"reason": "2121", "recordId": 5, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:5", "deptManager": "超级管理员"}',1,'2026-06-04 17:39:30',2,1,'2026-06-04 17:39:30'), (2062470189429039105,1,'LEAVE_APPLICATION',6,'LEAVE_APPLICATION:6','leave_multi','c824189f-5ff9-11f1-bade-9ef8ee8744ad','RUNNING',1,'2026-06-04 17:43:07',NULL,NULL,'{"reason": "11", "recordId": 6, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:6", "deptManager": "超级管理员"}',1,'2026-06-04 17:43:07',2,1,'2026-06-04 17:43:07'), (2062506710685192193,1,'LEAVE_APPLICATION',7,'LEAVE_APPLICATION:7','leave_multi','0f885f2f-600e-11f1-b98d-9ef8ee8744ad','RUNNING',1,'2026-06-04 20:08:14',NULL,NULL,'{"reason": "2121", "recordId": 7, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:7", "deptManager": "超级管理员"}',1,'2026-06-04 20:08:14',2,1,'2026-06-04 20:08:14'), (2063186684673011714,1,'LEAVE_APPLICATION',9,'LEAVE_APPLICATION:9','leave_multi','85985c54-6187-11f1-8e17-4acb94e3ea25','RUNNING',1,'2026-06-06 17:10:12',NULL,NULL,'{"reason": "212", "recordId": 9, "configKey": "hr_leave_application", "initiator": 1, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:9", "deptManager": 1}',1,'2026-06-06 17:10:12',2,1,'2026-06-06 17:10:12'), (2065320714079391746,1,'LEAVE_APPLICATION',12,'LEAVE_APPLICATION:12','leave_multi','25b85bc4-6628-11f1-aae8-5254003c969e','RUNNING',1,'2026-06-12 14:30:05',NULL,NULL,'{"reason": "测试", "recordId": 12, "configKey": "hr_leave_application", "initiator": 23, "objectCode": "LEAVE_APPLICATION", "businessKey": "LEAVE_APPLICATION:12", "deptManager": 24}',1,'2026-06-12 14:30:05',2,1,'2026-06-12 14:30:05'); INSERT INTO ai_business_flow_instance_link (id,tenant_id,object_code,record_id,business_key,flow_model_key,process_instance_id,flow_status,start_user_id,start_time,end_time,`result`,variables_snapshot,create_by,create_time,create_dept,update_by,update_time) VALUES (2067209409074118658,1,'OPPORTUNITY',11,'OPPORTUNITY:11','leave_multi','956dd3ae-6a40-11f1-88fc-5254003c969e','RUNNING',1,'2026-06-17 19:35:05',NULL,NULL,'{"stage": "INITIAL", "ownerId": 11, "recordId": 11, "configKey": "crm_opportunity", "amountCent": 11, "customerId": 1, "objectCode": "OPPORTUNITY", "businessKey": "OPPORTUNITY:11", "deptManager": 1, "opportunityName": "1"}',1,'2026-06-17 19:35:05',2,1,'2026-06-17 19:35:05'), (2073340669090484225,1,'PW_PURCHASE_ORDER',1950000000000009248,'PW_PURCHASE_ORDER:1950000000000009248','pw_purchase_approval','1d47618c-778c-11f1-86f2-3627dbd776e1','RUNNING',1,'2026-07-04 17:38:31',NULL,NULL,'{"recordId": 1950000000000009248, "configKey": "pw_purchase_order", "objectCode": "PW_PURCHASE_ORDER", "businessKey": "PW_PURCHASE_ORDER:1950000000000009248"}',1,'2026-07-04 17:38:31',6,1,'2026-07-04 17:38:31'), (2073349112991981569,1,'PW_PURCHASE_ORDER',1950000000000009249,'PW_PURCHASE_ORDER:1950000000000009249','pw_purchase_approval','cd8b249c-7790-11f1-86f2-3627dbd776e1','APPROVED',1,'2026-07-04 18:12:04','2026-07-04 18:12:36','APPROVED','{"recordId": 1950000000000009249, "configKey": "pw_purchase_order", "amountCent": "12", "documentNo": "DOC202607043001", "objectCode": "PW_PURCHASE_ORDER", "applicantId": 1, "businessKey": "PW_PURCHASE_ORDER:1950000000000009249", "projectName": "测试项目", "documentStatus": "DRAFT"}',1,'2026-07-04 18:12:04',6,1,'2026-07-04 18:12:36'), (2073353932591210498,1,'PW_PURCHASE_ORDER',1950000000000009250,'PW_PURCHASE_ORDER:1950000000000009250','pw_purchase_approval','7a538e86-7793-11f1-86f2-3627dbd776e1','REJECTED',1,'2026-07-04 18:31:13','2026-07-04 18:50:08','REJECTED','{"recordId": 1950000000000009250, "configKey": "pw_purchase_order", "amountCent": "112", "documentNo": "DOC202607043002", "objectCode": "PW_PURCHASE_ORDER", "applicantId": 1, "businessKey": "PW_PURCHASE_ORDER:1950000000000009250", "projectName": "12", "documentStatus": "DRAFT"}',1,'2026-07-04 18:31:13',6,1,'2026-07-04 18:50:08'), (2073363114396712962,1,'PW_PURCHASE_ORDER',1950000000000009250,'PW_PURCHASE_ORDER:1950000000000009250','pw_purchase_approval','933367c0-7798-11f1-86f2-3627dbd776e1','RUNNING',1,'2026-07-04 19:07:42',NULL,NULL,'{"recordId": 1950000000000009250, "configKey": "pw_purchase_order", "amountCent": "112", "documentNo": "DOC202607043002", "objectCode": "PW_PURCHASE_ORDER", "applicantId": 1, "businessKey": "PW_PURCHASE_ORDER:1950000000000009250", "projectName": "12", "documentStatus": "REJECTED", "flowBusinessKey": "PW_PURCHASE_ORDER:1950000000000009250:R2073353932591210499", "recordBusinessKey": "PW_PURCHASE_ORDER:1950000000000009250", "documentBusinessKey": "PW_PURCHASE_ORDER:1950000000000009250"}',1,'2026-07-04 19:07:42',6,1,'2026-07-04 19:07:42'), (2073375324984545281,1,'PW_PURCHASE_ORDER',1950000000000009251,'PW_PURCHASE_ORDER:1950000000000009251','pw_purchase_approval','5a80509a-779f-11f1-b42a-3627dbd776e1','REJECTED',1,'2026-07-04 19:56:14','2026-07-04 19:56:26','REJECTED','{"recordId": 1950000000000009251, "configKey": "pw_purchase_order", "amountCent": "11", "documentNo": "DOC202607044001", "objectCode": "PW_PURCHASE_ORDER", "applicantId": 1, "businessKey": "PW_PURCHASE_ORDER:1950000000000009251", "projectName": "111", "documentStatus": "DRAFT", "flowBusinessKey": "PW_PURCHASE_ORDER:1950000000000009251", "recordBusinessKey": "PW_PURCHASE_ORDER:1950000000000009251", "documentBusinessKey": "PW_PURCHASE_ORDER:1950000000000009251"}',1,'2026-07-04 19:56:14',6,1,'2026-07-04 19:56:26'), (2073375436506894338,1,'PW_PURCHASE_ORDER',1950000000000009251,'PW_PURCHASE_ORDER:1950000000000009251','pw_purchase_approval','6a5b004a-779f-11f1-b42a-3627dbd776e1','RUNNING',1,'2026-07-04 19:56:40',NULL,NULL,'{"recordId": 1950000000000009251, "configKey": "pw_purchase_order", "amountCent": "11", "documentNo": "DOC202607044001", "objectCode": "PW_PURCHASE_ORDER", "applicantId": 1, "businessKey": "PW_PURCHASE_ORDER:1950000000000009251", "projectName": "111", "documentStatus": "REJECTED", "flowBusinessKey": "PW_PURCHASE_ORDER:1950000000000009251:R2073375324984545282", "recordBusinessKey": "PW_PURCHASE_ORDER:1950000000000009251", "documentBusinessKey": "PW_PURCHASE_ORDER:1950000000000009251"}',1,'2026-07-04 19:56:40',6,1,'2026-07-04 19:56:40'); INSERT INTO ai_business_object (id,tenant_id,suite_code,object_code,object_name,object_type,model_id,model_code,display_field,icon,description,status,sort_order,`options`,design_status,config_key,last_publish_time,last_publish_version,designer_options,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000000101,1,'CRM','CUSTOMER','客户','MASTER',1920000000000000001,'crm_customer','customerName','ionicons5:BusinessOutline','管理客户基本信息、客户分级、所属区域和客户生命周期',1,1,'{"sample": true, "capabilityGroup": "customer"}','PUBLISHED','crm_customer','2026-06-29 17:21:12',52,'{"actions": [{"status": 1, "visible": true, "clientKey": "custom_1781684056824", "sortOrder": 10, "actionCode": "custom_1781684056824", "actionName": "自定义操作", "actionType": "OPEN_PAGE", "permission": "", "confirmText": "", "actionConfig": {"params": [], "clientKey": "custom_1781684056824", "openTarget": "_self", "targetPath": "/forge/app-center", "targetFormKey": "", "successBehavior": "none"}, "actionPosition": "ROW", "failureMessage": "", "successMessage": "", "confirmRequired": false}], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "客户名称", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "customerName", "formatter": null}, {"align": "left", "fixed": null, "label": "客户编码", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "customerCode", "formatter": null}, {"align": "left", "fixed": null, "label": "客户等级", "order": 2, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "customerLevel", "formatter": "dictTag"}, {"align": "left", "fixed": null, "label": "所属行业", "order": 3, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "industry", "formatter": "dictTag"}, {"align": "left", "fixed": null, "label": "所属区域", "order": 4, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "regionCode", "formatter": null}, {"align": "left", "fixed": null, "label": "联系人", "order": 5, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contactName", "formatter": null}, {"align": "left", "fixed": null, "label": "联系电话", "order": 6, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contactPhone", "formatter": null}, {"align": "left", "fixed": null, "label": "联系邮箱", "order": 7, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contactEmail", "formatter": null}, {"align": "left", "fixed": null, "label": "详细地址", "order": 8, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "address", "formatter": null}, {"align": "left", "fixed": null, "label": "备注", "order": 9, "width": 220, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "remark", "formatter": null}, {"align": "right", "fixed": null, "label": "所属组织", "order": 10, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "field1g9xtug", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "主信息", "fields": [{"align": "left", "label": "客户编码", "order": 0, "visible": true, "readonly": true, "fieldCode": "customerCode", "formatter": null}, {"align": "left", "label": "金额", "order": 1, "visible": true, "readonly": true, "fieldCode": "ammount", "formatter": null}, {"align": "left", "label": "f测试111", "order": 2, "visible": true, "readonly": true, "fieldCode": "test11", "formatter": null}, {"align": "left", "label": "测试内容", "order": 3, "visible": true, "readonly": true, "fieldCode": "content", "formatter": null}, {"align": "left", "label": "客户名称", "order": 4, "visible": true, "readonly": true, "fieldCode": "customerName", "formatter": null}, {"align": "left", "label": "客户等级", "order": 5, "visible": true, "readonly": true, "fieldCode": "customerLevel", "formatter": "dictTag"}, {"align": "left", "label": "所属行业", "order": 6, "visible": true, "readonly": true, "fieldCode": "industry", "formatter": "dictTag"}, {"align": "left", "label": "所属区域", "order": 7, "visible": true, "readonly": true, "fieldCode": "regionCode", "formatter": null}, {"align": "left", "label": "联系人", "order": 8, "visible": true, "readonly": true, "fieldCode": "contactName", "formatter": null}, {"align": "left", "label": "联系电话", "order": 9, "visible": true, "readonly": true, "fieldCode": "contactPhone", "formatter": null}, {"align": "left", "label": "联系邮箱", "order": 10, "visible": true, "readonly": true, "fieldCode": "contactEmail", "formatter": null}, {"align": "left", "label": "详细地址", "order": 11, "visible": true, "readonly": true, "fieldCode": "address", "formatter": null}, {"align": "left", "label": "备注", "order": 12, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}, {"align": "left", "label": "人员选择", "order": 13, "visible": true, "readonly": true, "fieldCode": "fieldaailwe", "formatter": null}, {"align": "left", "label": "组织选择11", "order": 14, "visible": true, "readonly": true, "fieldCode": "fieldgiuxmr", "formatter": null}, {"align": "left", "label": "所属组织", "order": 15, "visible": true, "readonly": true, "fieldCode": "field1g9xtug", "formatter": null}, {"align": "left", "label": "测试2", "order": 16, "visible": true, "readonly": true, "fieldCode": "field2", "formatter": null}, {"align": "left", "label": "字典选择", "order": 17, "visible": true, "readonly": true, "fieldCode": "fieldbvd8sh", "formatter": null}], "visible": true, "sectionKey": "form_layout"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "客户编码", "order": 0, "visible": true, "collapsed": false, "fieldCode": "customerCode", "matchMode": "like", "componentKey": "input", "defaultValue": ""}, {"align": "left", "label": "客户名称", "order": 1, "visible": true, "collapsed": false, "fieldCode": "customerName", "matchMode": "like", "componentKey": "input", "defaultValue": ""}, {"align": "left", "label": "客户等级", "order": 2, "visible": true, "collapsed": false, "fieldCode": "customerLevel", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "所属行业", "order": 3, "visible": true, "collapsed": false, "fieldCode": "industry", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "所属区域", "order": 4, "visible": true, "collapsed": false, "fieldCode": "regionCode", "matchMode": "eq", "componentKey": "regionTreeSelect", "defaultValue": ""}, {"align": "left", "label": "联系人", "order": 5, "visible": true, "collapsed": false, "fieldCode": "contactName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "联系电话", "order": 6, "visible": true, "collapsed": false, "fieldCode": "contactPhone", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "联系邮箱", "order": 7, "visible": true, "collapsed": false, "fieldCode": "contactEmail", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "所属组织", "order": 8, "visible": true, "collapsed": false, "fieldCode": "field1g9xtug", "matchMode": "eq", "componentKey": "orgTreeSelect", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "master-detail-crud"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 3, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 3, "showActions": true, "formOpenMode": "flat", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "crm_customer_default_form", "formName": "客户表单", "settings": {"formAssets": [], "governance": {"fieldRules": [{"id": "rule_1782724193486", "field": "", "hidden": false, "readonly": false, "required": false, "defaultValue": ""}]}, "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "crm_customer_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 1, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_customerCode", "label": "客户编码", "props": {"__events": [{"id": "evt_1782010777843", "action": "setValue", "trigger": "change", "targetId": "", "condition": ""}, {"id": "evt_1782010779156", "api": "get@/api/options?parent=:value", "action": "setOptions", "trigger": "change", "targetId": "", "whenValue": ""}, {"id": "evt_1782010785274", "action": "openModal", "trigger": "click", "targetId": "", "whenValue": "", "modalTitle": "业务弹窗", "modalContentMode": "currentForm"}, {"id": "evt_1782010789377", "value": "true", "action": "showHide", "trigger": "change", "targetId": "", "whenValue": ""}, {"id": "evt_1782010795400", "api": "post@/api/action", "action": "apiRequest", "trigger": "change", "targetId": "", "whenValue": ""}], "clearable": true, "maxlength": 64, "placeholder": "请输入客户编码"}, "layout": {"span": 1, "align": "left", "labelWidth": 72}, "children": [], "validation": {"rules": [{"message": "必填", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "必填"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerCode", "columnName": "customer_code", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "金额", "props": {"placeholder": "请输入数字", "__designerStyle": {"borderColor": "transparent", "borderStyle": "none", "hideInnerBorder": true}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "ammount", "columnName": "ammount", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "f测试111", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "f测试111不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "test11", "columnName": "test11", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_content", "label": "测试内容", "props": {"placeholder": "请输入输入框", "__designerStyle": {"borderColor": "#2563eb", "borderStyle": "dashed"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "测试内容不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "content", "columnName": "content", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_customerName", "label": "客户名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入客户名称"}, "layout": {"span": 1, "align": "left", "labelWidth": 82}, "children": [], "validation": {"rules": [{"message": "请输入客户名称", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入客户名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerName", "columnName": "customer_name", "createIfMissing": false}, "advancedProps": {"unique": true}}, {"id": "cmp_customerLevel", "label": "客户等级", "props": {"dictType": "crm_customer_level", "clearable": true, "maxlength": 32, "_optionType": 2, "placeholder": "请输入客户等级", "defaultFirstOption": false}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择客户等级"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerLevel", "columnName": "customer_level", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_industry", "label": "所属行业", "props": {"dictType": "crm_industry", "clearable": true, "maxlength": 64, "placeholder": "请输入所属行业"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择所属行业"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "industry", "columnName": "industry", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_regionCode", "label": "所属区域", "props": {"rootCode": "150000", "clearable": true, "dataRight": true, "maxlength": 32, "placeholder": "请输入所属区域", "virtualDisabled": true}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择所属区域"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "regionTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "regionCode", "columnName": "region_code", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactName", "label": "联系人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入联系人"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactName", "columnName": "contact_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactPhone", "label": "联系电话", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入联系电话"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系电话"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactPhone", "columnName": "contact_phone", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactEmail", "label": "联系邮箱", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入联系邮箱"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系邮箱"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactEmail", "columnName": "contact_email", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_address", "label": "详细地址", "props": {"clearable": true, "maxlength": 512, "placeholder": "请输入详细地址"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入详细地址"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "address", "columnName": "address", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 3, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入备注"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_12", "label": "栅格布局", "props": {"__fcType": "fcRow"}, "layout": {"span": 3, "align": "left"}, "children": [{"id": "cmp_0", "label": "栅格列", "props": {"span": 1, "__fcType": "col"}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_fieldaailwe", "label": "人员选择", "props": {"clearable": true, "filterable": true, "placeholder": "请选择人员"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择人员选择"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldaailwe", "columnName": "fieldaailwe", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入栅格列"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_1", "label": "栅格列", "props": {"span": 1, "__fcType": "col"}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_fieldgiuxmr", "label": "组织选择11", "props": {"clearable": true, "filterable": true, "placeholder": "请选择组织", "optionSource": {}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择组织选择11"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldgiuxmr", "columnName": "fieldgiuxmr", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入栅格列"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入栅格布局"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "fcRow", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_field1g9xtug", "label": "所属组织", "props": {"required": false, "clearable": true, "maxlength": 128, "exportable": true, "importable": true, "searchable": true, "formVisible": true, "listVisible": true, "placeholder": "请输入所属组织", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择所属组织"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "field1g9xtug", "columnName": "field1g9xtug", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_field2", "label": "测试2", "props": {"required": false, "clearable": true, "maxlength": 20, "exportable": true, "importable": true, "searchable": false, "formVisible": true, "listVisible": true, "placeholder": "请输入测试2", "defaultValue": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入测试2"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "field2", "columnName": "field2", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldbvd8sh", "label": "字典选择", "props": {"dictType": "", "clearable": true, "maxlength": 64, "filterable": true, "placeholder": "请选择字典项", "referenceObjectCode": "", "referenceDisplayField": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入字典选择"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldbvd8sh", "columnName": "fieldbvd8sh", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "crm_customer_default_form", "formName": "客户表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 3, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 3, "showActions": true, "formOpenMode": "flat", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "crm_customer_default_form", "formName": "客户表单", "settings": {"formAssets": [], "governance": {"fieldRules": [{"id": "rule_1782724193486", "field": "", "hidden": false, "readonly": false, "required": false, "defaultValue": ""}]}, "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "crm_customer_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 1, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_customerCode", "label": "客户编码", "props": {"__events": [{"id": "evt_1782010777843", "action": "setValue", "trigger": "change", "targetId": "", "condition": ""}, {"id": "evt_1782010779156", "api": "get@/api/options?parent=:value", "action": "setOptions", "trigger": "change", "targetId": "", "whenValue": ""}, {"id": "evt_1782010785274", "action": "openModal", "trigger": "click", "targetId": "", "whenValue": "", "modalTitle": "业务弹窗", "modalContentMode": "currentForm"}, {"id": "evt_1782010789377", "value": "true", "action": "showHide", "trigger": "change", "targetId": "", "whenValue": ""}, {"id": "evt_1782010795400", "api": "post@/api/action", "action": "apiRequest", "trigger": "change", "targetId": "", "whenValue": ""}], "clearable": true, "maxlength": 64, "placeholder": "请输入客户编码"}, "layout": {"span": 1, "align": "left", "labelWidth": 72}, "children": [], "validation": {"rules": [{"message": "必填", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "必填"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerCode", "columnName": "customer_code", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "金额", "props": {"placeholder": "请输入数字", "__designerStyle": {"borderColor": "transparent", "borderStyle": "none", "hideInnerBorder": true}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "ammount", "columnName": "ammount", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "f测试111", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "f测试111不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "test11", "columnName": "test11", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_content", "label": "测试内容", "props": {"placeholder": "请输入输入框", "__designerStyle": {"borderColor": "#2563eb", "borderStyle": "dashed"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "测试内容不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "content", "columnName": "content", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_customerName", "label": "客户名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入客户名称"}, "layout": {"span": 1, "align": "left", "labelWidth": 82}, "children": [], "validation": {"rules": [{"message": "请输入客户名称", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入客户名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerName", "columnName": "customer_name", "createIfMissing": false}, "advancedProps": {"unique": true}}, {"id": "cmp_customerLevel", "label": "客户等级", "props": {"dictType": "crm_customer_level", "clearable": true, "maxlength": 32, "_optionType": 2, "placeholder": "请输入客户等级", "defaultFirstOption": false}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择客户等级"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerLevel", "columnName": "customer_level", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_industry", "label": "所属行业", "props": {"dictType": "crm_industry", "clearable": true, "maxlength": 64, "placeholder": "请输入所属行业"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择所属行业"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "industry", "columnName": "industry", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_regionCode", "label": "所属区域", "props": {"rootCode": "150000", "clearable": true, "dataRight": true, "maxlength": 32, "placeholder": "请输入所属区域", "virtualDisabled": true}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择所属区域"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "regionTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "regionCode", "columnName": "region_code", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactName", "label": "联系人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入联系人"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactName", "columnName": "contact_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactPhone", "label": "联系电话", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入联系电话"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系电话"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactPhone", "columnName": "contact_phone", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactEmail", "label": "联系邮箱", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入联系邮箱"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系邮箱"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactEmail", "columnName": "contact_email", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_address", "label": "详细地址", "props": {"clearable": true, "maxlength": 512, "placeholder": "请输入详细地址"}, "layout": {"span": 1, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入详细地址"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "address", "columnName": "address", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 3, "align": "left", "labelWidth": 86}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入备注"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_12", "label": "栅格布局", "props": {"__fcType": "fcRow"}, "layout": {"span": 3, "align": "left"}, "children": [{"id": "cmp_0", "label": "栅格列", "props": {"span": 1, "__fcType": "col"}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_fieldaailwe", "label": "人员选择", "props": {"clearable": true, "filterable": true, "placeholder": "请选择人员"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择人员选择"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldaailwe", "columnName": "fieldaailwe", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入栅格列"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_1", "label": "栅格列", "props": {"span": 1, "__fcType": "col"}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_fieldgiuxmr", "label": "组织选择11", "props": {"clearable": true, "filterable": true, "placeholder": "请选择组织", "optionSource": {}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择组织选择11"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldgiuxmr", "columnName": "fieldgiuxmr", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入栅格列"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入栅格布局"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "fcRow", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_field1g9xtug", "label": "所属组织", "props": {"required": false, "clearable": true, "maxlength": 128, "exportable": true, "importable": true, "searchable": true, "formVisible": true, "listVisible": true, "placeholder": "请输入所属组织", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择所属组织"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "field1g9xtug", "columnName": "field1g9xtug", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_field2", "label": "测试2", "props": {"required": false, "clearable": true, "maxlength": 20, "exportable": true, "importable": true, "searchable": false, "formVisible": true, "listVisible": true, "placeholder": "请输入测试2", "defaultValue": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入测试2"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "field2", "columnName": "field2", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldbvd8sh", "label": "字典选择", "props": {"dictType": "", "clearable": true, "maxlength": 64, "filterable": true, "placeholder": "请选择字典项", "referenceObjectCode": "", "referenceDisplayField": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入字典选择"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldbvd8sh", "columnName": "fieldbvd8sh", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "crm_customer_default_form"}}',1,'2026-05-27 13:01:03',1,1,'2026-06-29 17:21:12',0), (1910000000000000102,1,'CRM','CONTACT','联系人','DETAIL',1920000000000000002,'crm_contact','contactName','ionicons5:PersonOutline','管理客户联系人、角色、联系方式和主要联系人标记',1,2,'{"sample": true, "capabilityGroup": "customer"}','PUBLISHED','crm_contact','2026-05-31 11:18:38',4,'{}',1,'2026-05-27 13:01:03',1,1,'2026-05-31 11:18:39',0), (1910000000000000103,1,'CRM','LEAD','线索','MASTER',1920000000000000003,'crm_lead','leadName','ionicons5:SparklesOutline','管理销售线索、来源、跟进状态和转化进度',1,3,'{"sample": true, "capabilityGroup": "sales"}','PUBLISHED','crm_lead','2026-06-28 08:06:05',3,'{"viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "left", "fixed": null, "label": "线索名称", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "leadName", "formatter": null}, {"align": "left", "fixed": null, "label": "来源", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "source", "formatter": "dictTag"}, {"align": "left", "fixed": null, "label": "联系人", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contactName", "formatter": null}, {"align": "left", "fixed": null, "label": "电话", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "phone", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": "dictTag"}, {"align": "right", "fixed": null, "label": "负责人", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "assigneeId", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "线索名称", "order": 0, "visible": true, "readonly": true, "fieldCode": "leadName", "formatter": null}, {"align": "left", "label": "来源", "order": 0, "visible": true, "readonly": true, "fieldCode": "source", "formatter": "dictTag"}, {"align": "left", "label": "联系人", "order": 0, "visible": true, "readonly": true, "fieldCode": "contactName", "formatter": null}, {"align": "left", "label": "电话", "order": 0, "visible": true, "readonly": true, "fieldCode": "phone", "formatter": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "readonly": true, "fieldCode": "status", "formatter": "dictTag"}, {"align": "right", "label": "负责人", "order": 0, "visible": true, "readonly": true, "fieldCode": "assigneeId", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "right", "label": "ID", "order": 0, "visible": true, "collapsed": false, "fieldCode": "id", "matchMode": "eq", "componentKey": "number", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"layout": {"size": "medium", "rowGap": 16, "columnGap": 16, "labelAlign": "right", "labelWidth": 100, "gridColumns": 2, "showFeedback": true, "inlineFeedback": false, "labelPlacement": "left", "hideRequiredAsterisk": false}, "formKey": "crm_lead_default_form", "formName": "线索表单", "settings": {"formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "crm_lead_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_leadName", "label": "线索名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入线索名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入线索名称", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入线索名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "leadName", "columnName": "lead_name", "createIfMissing": false}}, {"id": "cmp_source", "label": "来源", "props": {"dictType": "crm_lead_source", "clearable": true, "maxlength": 64, "placeholder": "请选择来源"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择来源"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "source", "columnName": "source", "createIfMissing": false}}, {"id": "cmp_contactName", "label": "联系人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入联系人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入联系人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactName", "columnName": "contact_name", "createIfMissing": false}}, {"id": "cmp_phone", "label": "电话", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入电话"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入电话"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "phone", "columnName": "phone", "createIfMissing": false}}, {"id": "cmp_status", "label": "状态", "props": {"dictType": "crm_lead_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "columnName": "status", "createIfMissing": false}}, {"id": "cmp_assigneeId", "label": "负责人", "props": {"clearable": true, "placeholder": "请输入负责人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "assigneeId", "columnName": "assignee_id", "createIfMissing": false}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入备注"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}}], "schemaVersion": "form-first-v1"}}',1,'2026-05-27 13:01:03',1,1,'2026-06-28 08:06:05',0), (1910000000000000104,1,'CRM','OPPORTUNITY','商机','TRANSACTION',1920000000000000004,'crm_opportunity','opportunityName','ionicons5:TrendingUpOutline','管理商机阶段、预计金额、赢单概率和推进动作',1,4,'{"sample": true, "capabilityGroup": "sales"}','CHANGED','crm_opportunity','2026-06-02 06:48:46',NULL,'{"actions": [{"status": 1, "sortOrder": 10, "actionCode": "x", "actionName": "详情", "actionType": "OPEN_PAGE", "permission": null, "actionConfig": {}, "actionPosition": "DETAIL", "failureMessage": null, "successMessage": null, "confirmRequired": false}], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "商机名称", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "opportunityName", "formatter": null}, {"align": "right", "fixed": null, "label": "关联客户", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "customerId", "formatter": null}, {"align": "left", "fixed": null, "label": "阶段", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "stage", "formatter": "dictTag"}, {"align": "right", "fixed": null, "label": "预计金额", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "amount", "formatter": null}, {"align": "right", "fixed": null, "label": "赢单概率", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "probability", "formatter": null}, {"align": "right", "fixed": null, "label": "负责人", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "assigneeId", "formatter": null}, {"align": "center", "fixed": null, "label": "预计成交日期", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "expectedCloseDate", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "商机名称", "order": 0, "visible": true, "readonly": true, "fieldCode": "opportunityName", "formatter": null}, {"align": "right", "label": "关联客户", "order": 0, "visible": true, "readonly": true, "fieldCode": "customerId", "formatter": null}, {"align": "left", "label": "阶段", "order": 0, "visible": true, "readonly": true, "fieldCode": "stage", "formatter": "dictTag"}, {"align": "right", "label": "预计金额", "order": 0, "visible": true, "readonly": true, "fieldCode": "amount", "formatter": null}, {"align": "right", "label": "赢单概率", "order": 0, "visible": true, "readonly": true, "fieldCode": "probability", "formatter": null}, {"align": "right", "label": "负责人", "order": 0, "visible": true, "readonly": true, "fieldCode": "assigneeId", "formatter": null}, {"align": "center", "label": "预计成交日期", "order": 0, "visible": true, "readonly": true, "fieldCode": "expectedCloseDate", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"layout": {"size": "medium", "rowGap": 16, "columnGap": 16, "labelAlign": "right", "labelWidth": 100, "gridColumns": 2, "showFeedback": true, "inlineFeedback": false, "labelPlacement": "left", "hideRequiredAsterisk": false}, "formKey": "crm_opportunity_default_form", "formName": "商机表单", "settings": {"formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "crm_opportunity_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_opportunityName", "label": "商机名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入商机名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入商机名称", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入商机名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "opportunityName", "columnName": "opportunity_name", "createIfMissing": false}}, {"id": "cmp_customerId", "label": "关联客户", "props": {"clearable": true, "placeholder": "请输入关联客户"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入关联客户", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入关联客户"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerId", "columnName": "customer_id", "createIfMissing": false}}, {"id": "cmp_stage", "label": "阶段", "props": {"dictType": "crm_opportunity_stage", "clearable": true, "maxlength": 32, "placeholder": "请选择阶段"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择阶段"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "stage", "columnName": "stage", "createIfMissing": false}}, {"id": "cmp_amount", "label": "预计金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入预计金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入预计金额"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amount", "columnName": "amount", "createIfMissing": false}}, {"id": "cmp_probability", "label": "赢单概率", "props": {"clearable": true, "placeholder": "请输入赢单概率"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入赢单概率"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "probability", "columnName": "probability", "createIfMissing": false}}, {"id": "cmp_assigneeId", "label": "负责人", "props": {"clearable": true, "placeholder": "请输入负责人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "assigneeId", "columnName": "assignee_id", "createIfMissing": false}}, {"id": "cmp_expectedCloseDate", "label": "预计成交日期", "props": {"type": "date", "format": "YYYY-MM-DD", "clearable": true, "placeholder": "请选择预计成交日期", "valueFormat": "YYYY-MM-DD"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择预计成交日期"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "expectedCloseDate", "columnName": "expected_close_date", "createIfMissing": false}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入备注"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}}], "schemaVersion": "form-first-v1"}}',1,'2026-05-27 13:01:03',1,1,'2026-06-17 15:57:24',0), (1910000000000000105,1,'CRM','CONTRACT','合同','TRANSACTION',1920000000000000005,'crm_contract','contractName','ionicons5:DocumentTextOutline','管理合同信息、合同审批、归档和履约状态',1,5,'{"sample": true, "capabilityGroup": "contract"}','PUBLISHED','crm_contract','2026-06-08 18:16:57',2,'{"viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "left", "fixed": null, "label": "合同名称", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contractName", "formatter": null}, {"align": "left", "fixed": null, "label": "合同编号", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contractNo", "formatter": null}, {"align": "right", "fixed": null, "label": "客户", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "customerId", "formatter": null}, {"align": "right", "fixed": null, "label": "商机", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "opportunityId", "formatter": null}, {"align": "right", "fixed": null, "label": "合同金额", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "amount", "formatter": null}, {"align": "center", "fixed": null, "label": "签订日期", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "signDate", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": "dictTag"}, {"align": "right", "fixed": null, "label": "负责人", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "assigneeId", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "合同名称", "order": 0, "visible": true, "readonly": true, "fieldCode": "contractName", "formatter": null}, {"align": "left", "label": "合同编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "contractNo", "formatter": null}, {"align": "right", "label": "客户", "order": 0, "visible": true, "readonly": true, "fieldCode": "customerId", "formatter": null}, {"align": "right", "label": "商机", "order": 0, "visible": true, "readonly": true, "fieldCode": "opportunityId", "formatter": null}, {"align": "right", "label": "合同金额", "order": 0, "visible": true, "readonly": true, "fieldCode": "amount", "formatter": null}, {"align": "center", "label": "签订日期", "order": 0, "visible": true, "readonly": true, "fieldCode": "signDate", "formatter": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "readonly": true, "fieldCode": "status", "formatter": "dictTag"}, {"align": "right", "label": "负责人", "order": 0, "visible": true, "readonly": true, "fieldCode": "assigneeId", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "right", "label": "ID", "order": 0, "visible": true, "collapsed": false, "fieldCode": "id", "matchMode": "eq", "componentKey": "number", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"layout": {"size": "medium", "rowGap": 16, "columnGap": 16, "labelAlign": "right", "labelWidth": 100, "gridColumns": 2, "showFeedback": true, "inlineFeedback": false, "labelPlacement": "left", "hideRequiredAsterisk": false}, "formKey": "crm_contract_default_form", "formName": "合同表单", "settings": {"formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "crm_contract_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_contractName", "label": "合同名称", "props": {"clearable": true, "maxlength": 256, "placeholder": "请输入合同名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入合同名称", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入合同名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contractName", "columnName": "contract_name", "createIfMissing": false}}, {"id": "cmp_contractNo", "label": "合同编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入合同编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入合同编号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contractNo", "columnName": "contract_no", "createIfMissing": false}}, {"id": "cmp_customerId", "label": "客户", "props": {"clearable": true, "placeholder": "请输入客户"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入客户", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入客户"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerId", "columnName": "customer_id", "createIfMissing": false}}, {"id": "cmp_opportunityId", "label": "商机", "props": {"clearable": true, "placeholder": "请输入商机"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入商机"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "opportunityId", "columnName": "opportunity_id", "createIfMissing": false}}, {"id": "cmp_amount", "label": "合同金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入合同金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入合同金额"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amount", "columnName": "amount", "createIfMissing": false}}, {"id": "cmp_signDate", "label": "签订日期", "props": {"type": "date", "format": "YYYY-MM-DD", "clearable": true, "placeholder": "请选择签订日期", "valueFormat": "YYYY-MM-DD"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择签订日期"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "signDate", "columnName": "sign_date", "createIfMissing": false}}, {"id": "cmp_status", "label": "状态", "props": {"dictType": "crm_contract_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "columnName": "status", "createIfMissing": false}}, {"id": "cmp_assigneeId", "label": "负责人", "props": {"clearable": true, "placeholder": "请输入负责人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "assigneeId", "columnName": "assignee_id", "createIfMissing": false}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入备注"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}}], "schemaVersion": "form-first-v1"}}',1,'2026-05-27 13:01:03',1,1,'2026-06-08 18:16:57',0), (1910000000000000106,1,'CRM','CONTRACT_ITEM','合同明细','DETAIL',1920000000000000006,'crm_contract_item','itemName','ionicons5:ListOutline','管理合同商品、服务、数量、单价和金额明细',1,6,'{"sample": true, "capabilityGroup": "contract"}','CHANGED','crm_contract_item',NULL,NULL,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "right", "fixed": null, "label": "关联合同", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contractId", "formatter": null}, {"align": "left", "fixed": null, "label": "商品/服务名称", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "itemName", "formatter": null}, {"align": "right", "fixed": null, "label": "数量", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "quantity", "formatter": null}, {"align": "right", "fixed": null, "label": "单价", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "unitPrice", "formatter": null}, {"align": "right", "fixed": null, "label": "金额", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "amount", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "right", "label": "关联合同", "order": 0, "visible": true, "readonly": true, "fieldCode": "contractId", "formatter": null}, {"align": "left", "label": "商品/服务名称", "order": 0, "visible": true, "readonly": true, "fieldCode": "itemName", "formatter": null}, {"align": "right", "label": "数量", "order": 0, "visible": true, "readonly": true, "fieldCode": "quantity", "formatter": null}, {"align": "right", "label": "单价", "order": 0, "visible": true, "readonly": true, "fieldCode": "unitPrice", "formatter": null}, {"align": "right", "label": "金额", "order": 0, "visible": true, "readonly": true, "fieldCode": "amount", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "right", "label": "ID", "order": 0, "visible": true, "collapsed": false, "fieldCode": "id", "matchMode": "eq", "componentKey": "number", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"layout": {"size": "medium", "rowGap": 16, "columnGap": 16, "labelAlign": "right", "labelWidth": 100, "gridColumns": 2, "showFeedback": true, "inlineFeedback": false, "labelPlacement": "left", "hideRequiredAsterisk": false}, "formKey": "crm_contract_item_default_form", "formName": "合同明细表单", "settings": {"formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "crm_contract_item_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_contractId", "label": "关联合同", "props": {"clearable": true, "placeholder": "请输入关联合同"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入关联合同", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入关联合同"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contractId", "columnName": "contract_id", "createIfMissing": false}}, {"id": "cmp_itemName", "label": "商品/服务名称", "props": {"clearable": true, "maxlength": 256, "placeholder": "请输入商品/服务名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入商品/服务名称", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入商品/服务名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "itemName", "columnName": "item_name", "createIfMissing": false}}, {"id": "cmp_quantity", "label": "数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "quantity", "columnName": "quantity", "createIfMissing": false}}, {"id": "cmp_unitPrice", "label": "单价", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入单价"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入单价"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "unitPrice", "columnName": "unit_price", "createIfMissing": false}}, {"id": "cmp_amount", "label": "金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入金额"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amount", "columnName": "amount", "createIfMissing": false}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入备注"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}}], "schemaVersion": "form-first-v1"}}',1,'2026-05-27 13:01:03',1,1,'2026-06-09 11:21:10',0), (1910000000000000107,1,'CRM','PAYMENT','回款','TRANSACTION',1920000000000000007,'crm_payment','paymentNo','ionicons5:WalletOutline','管理回款计划、回款记录和逾期提醒',1,7,'{"sample": true, "capabilityGroup": "finance"}','DRAFT',NULL,NULL,NULL,NULL,1,'2026-05-27 13:01:03',1,1,'2026-05-28 10:10:50',0), (1910000000000000108,1,'CRM','FOLLOW_RECORD','跟进记录','DETAIL',1920000000000000008,'crm_follow_record','subject','ionicons5:ChatbubblesOutline','管理客户拜访、电话、会议和商机推进记录',1,8,'{"sample": true, "capabilityGroup": "activity"}','PUBLISHED','crm_follow_record','2026-05-30 19:58:01',2,'{}',1,'2026-05-27 13:01:03',1,1,'2026-05-30 19:58:01',0), (1910000000000000109,1,'CRM','SALES_TASK','销售任务','TRANSACTION',1920000000000000009,'crm_sales_task','taskName','ionicons5:CheckboxOutline','管理销售计划、待办任务和任务完成情况',1,9,'{"sample": true, "capabilityGroup": "sales"}','CHANGED','crm_sales_task',NULL,NULL,'{}',1,'2026-05-27 13:01:03',1,1,'2026-07-22 13:31:05',0), (1910000000000000911,1,'PROCUREMENT_WAREHOUSE','PW_MATERIAL','物料','MASTER',1920000000000000901,'pw_material','materialName','ionicons5:CubeOutline','物料基础资料',1,10,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED','pw_material','2026-07-04 07:08:27',3,'{"viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "物料编号", "order": 1, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialCode", "formatter": null}, {"align": "left", "fixed": null, "label": "物料名称", "order": 2, "width": 180, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialName", "formatter": null}, {"align": "left", "fixed": null, "label": "规格型号", "order": 3, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "specModel", "formatter": null}, {"align": "left", "fixed": null, "label": "单位", "order": 4, "width": 80, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "unit", "formatter": null}, {"align": "left", "fixed": null, "label": "参考单价(分)", "order": 5, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "referencePriceCent", "formatter": null}, {"align": "left", "fixed": null, "label": "预警数量", "order": 6, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warningQuantity", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 7, "width": 100, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "物料编号", "order": 1, "visible": true, "readonly": true, "fieldCode": "materialCode", "formatter": null}, {"align": "left", "label": "物料名称", "order": 2, "visible": true, "readonly": true, "fieldCode": "materialName", "formatter": null}, {"align": "left", "label": "规格型号", "order": 3, "visible": true, "readonly": true, "fieldCode": "specModel", "formatter": null}, {"align": "left", "label": "单位", "order": 4, "visible": true, "readonly": true, "fieldCode": "unit", "formatter": null}, {"align": "left", "label": "参考单价(分)", "order": 5, "visible": true, "readonly": true, "fieldCode": "referencePriceCent", "formatter": null}, {"align": "left", "label": "预警数量", "order": 6, "visible": true, "readonly": true, "fieldCode": "warningQuantity", "formatter": null}, {"align": "left", "label": "状态", "order": 7, "visible": true, "readonly": true, "fieldCode": "status", "formatter": null}, {"align": "left", "label": "备注", "order": 8, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "物料编号", "order": 1, "visible": true, "collapsed": false, "fieldCode": "materialCode", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料名称", "order": 2, "visible": true, "collapsed": false, "fieldCode": "materialName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "规格型号", "order": 3, "visible": true, "collapsed": false, "fieldCode": "specModel", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 7, "visible": true, "collapsed": false, "fieldCode": "status", "matchMode": "eq", "componentKey": "select", "defaultValue": "ENABLED"}], "settings": {}}, "overrides": {"layoutType": "simple-crud"}, "schemaVersion": "view-schema-v1"}, "defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": false, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_material_default_form", "formName": "物料表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_materialCode", "label": "物料编号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "material_code", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入物料编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialName", "label": "物料名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入物料名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入物料名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_specModel", "label": "规格型号", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入规格型号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "specModel", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_unit", "label": "单位", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "unit", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_referencePriceCent", "label": "参考单价(分)", "props": {"clearable": true, "placeholder": "请输入参考单价(分)"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "referencePriceCent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warningQuantity", "label": "预警数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入预警数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warningQuantity", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"dictType": "marter_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_material_default_form", "formName": "物料表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_material_default_form", "formName": "物料表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_materialCode", "label": "物料编号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "material_code", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入物料编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialName", "label": "物料名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入物料名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入物料名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_specModel", "label": "规格型号", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入规格型号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "specModel", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_unit", "label": "单位", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "unit", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_referencePriceCent", "label": "参考单价(分)", "props": {"clearable": true, "placeholder": "请输入参考单价(分)"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "referencePriceCent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warningQuantity", "label": "预警数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入预警数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warningQuantity", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"dictType": "marter_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_material_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-04 07:08:27',0); INSERT INTO ai_business_object (id,tenant_id,suite_code,object_code,object_name,object_type,model_id,model_code,display_field,icon,description,status,sort_order,`options`,design_status,config_key,last_publish_time,last_publish_version,designer_options,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000000912,1,'PROCUREMENT_WAREHOUSE','PW_SUPPLIER','供应商','MASTER',1920000000000000902,'pw_supplier','supplierName','ionicons5:PeopleOutline','供应商基础资料',1,20,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED','pw_supplier','2026-07-04 07:12:26',3,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "供应商编号", "order": 1, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "supplierCode", "formatter": null}, {"align": "left", "fixed": null, "label": "供应商名称", "order": 2, "width": 180, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "supplierName", "formatter": null}, {"align": "left", "fixed": null, "label": "联系人", "order": 3, "width": 100, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contactName", "formatter": null}, {"align": "left", "fixed": null, "label": "联系电话", "order": 4, "width": 130, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "contactPhone", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 5, "width": 100, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "供应商编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "supplierCode", "formatter": null}, {"align": "left", "label": "供应商名称", "order": 1, "visible": true, "readonly": true, "fieldCode": "supplierName", "formatter": null}, {"align": "left", "label": "联系人", "order": 2, "visible": true, "readonly": true, "fieldCode": "contactName", "formatter": null}, {"align": "left", "label": "联系电话", "order": 3, "visible": true, "readonly": true, "fieldCode": "contactPhone", "formatter": null}, {"align": "left", "label": "状态", "order": 4, "visible": true, "readonly": true, "fieldCode": "status", "formatter": null}, {"align": "left", "label": "备注", "order": 5, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "供应商名称", "order": 0, "visible": true, "collapsed": false, "fieldCode": "supplierName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "联系人", "order": 1, "visible": true, "collapsed": false, "fieldCode": "contactName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "联系电话", "order": 2, "visible": true, "collapsed": false, "fieldCode": "contactPhone", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 3, "visible": true, "collapsed": false, "fieldCode": "status", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": "ENABLED"}, {"align": "left", "label": "备注", "order": 4, "visible": true, "collapsed": false, "fieldCode": "remark", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "master-detail-crud"}, "schemaVersion": "view-schema-v1"}, "defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": false, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_supplier_default_form", "formName": "供应商表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_supplierCode", "label": "供应商编号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "document_daily_no", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入供应商编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_supplierName", "label": "供应商名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入供应商名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入供应商名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactName", "label": "联系人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入联系人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactPhone", "label": "联系电话", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入联系电话"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactPhone", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_supplier_default_form", "formName": "供应商表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_supplier_default_form", "formName": "供应商表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_supplierCode", "label": "供应商编号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "document_daily_no", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入供应商编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_supplierName", "label": "供应商名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入供应商名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入供应商名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactName", "label": "联系人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入联系人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_contactPhone", "label": "联系电话", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入联系电话"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "contactPhone", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_supplier_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-04 07:12:26',0), (1910000000000000913,1,'PROCUREMENT_WAREHOUSE','PW_SUPPLIER_MATERIAL','供应商报价','DETAIL',1920000000000000904,'pw_supplier_material','materialName','ionicons5:PricetagOutline','供应商物料报价',1,30,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED','pw_supplier_material','2026-07-04 09:21:02',1,'{"defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": false, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-04 09:21:03',0), (1910000000000000914,1,'PROCUREMENT_WAREHOUSE','PW_WAREHOUSE','仓库','MASTER',1920000000000000903,'pw_warehouse','warehouseName','ionicons5:HomeOutline','中心仓库和项目现场仓',1,40,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','CHANGED','pw_warehouse','2026-07-04 07:13:39',2,'{"viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "仓库编号", "order": 0, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warehouseCode", "formatter": null}, {"align": "left", "fixed": null, "label": "仓库名称/位置", "order": 0, "width": 200, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warehouseName", "formatter": null}, {"align": "left", "fixed": null, "label": "类型", "order": 0, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warehouseType", "formatter": null}, {"align": "left", "fixed": null, "label": "关联项目", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "projectName", "formatter": null}, {"align": "left", "fixed": null, "label": "关联合同", "order": 0, "width": 150, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "relatedContractNo", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "仓库编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "warehouseCode", "formatter": null}, {"align": "left", "label": "仓库名称/位置", "order": 0, "visible": true, "readonly": true, "fieldCode": "warehouseName", "formatter": null}, {"align": "left", "label": "类型", "order": 0, "visible": true, "readonly": true, "fieldCode": "warehouseType", "formatter": null}, {"align": "left", "label": "关联项目", "order": 0, "visible": true, "readonly": true, "fieldCode": "projectName", "formatter": null}, {"align": "left", "label": "位置", "order": 0, "visible": true, "readonly": true, "fieldCode": "location", "formatter": null}, {"align": "left", "label": "关联合同", "order": 0, "visible": true, "readonly": true, "fieldCode": "relatedContractNo", "formatter": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "readonly": true, "fieldCode": "status", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "仓库编号", "order": 0, "visible": true, "collapsed": false, "fieldCode": "warehouseCode", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "仓库名称/位置", "order": 0, "visible": true, "collapsed": false, "fieldCode": "warehouseName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "类型", "order": 0, "visible": true, "collapsed": false, "fieldCode": "warehouseType", "matchMode": "eq", "componentKey": "select", "defaultValue": "CENTER"}, {"align": "left", "label": "关联项目", "order": 0, "visible": true, "collapsed": false, "fieldCode": "projectName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "collapsed": false, "fieldCode": "status", "matchMode": "eq", "componentKey": "select", "defaultValue": "ENABLED"}], "settings": {}}, "overrides": {"layoutType": "simple-crud"}, "schemaVersion": "view-schema-v1"}, "defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": false, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_warehouse_default_form", "formName": "仓库表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_warehouseCode", "label": "仓库编号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "document_daily_no", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入仓库编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warehouseName", "label": "仓库名称/位置", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入仓库名称/位置"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入仓库名称/位置"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warehouseType", "label": "类型", "props": {"clearable": true, "maxlength": 32, "placeholder": "请选择类型"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择类型"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseType", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_projectName", "label": "关联项目", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入关联项目"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "projectName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_location", "label": "位置", "props": {"clearable": true, "maxlength": 255, "placeholder": "请输入位置"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "location", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_relatedContractNo", "label": "关联合同", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入关联合同"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "relatedContractNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_warehouse_default_form", "formName": "仓库表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_warehouse_default_form", "formName": "仓库表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_warehouseCode", "label": "仓库编号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "document_daily_no", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入仓库编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warehouseName", "label": "仓库名称/位置", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入仓库名称/位置"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入仓库名称/位置"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warehouseType", "label": "类型", "props": {"clearable": true, "maxlength": 32, "placeholder": "请选择类型"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择类型"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseType", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_projectName", "label": "关联项目", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入关联项目"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "projectName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_location", "label": "位置", "props": {"clearable": true, "maxlength": 255, "placeholder": "请输入位置"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "location", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_relatedContractNo", "label": "关联合同", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入关联合同"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "relatedContractNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_warehouse_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-23 00:29:38',0), (1910000000000000915,1,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER','采购单','TRANSACTION',1920000000000000905,'pw_purchase_order','purchaseNo','ionicons5:CartOutline','采购申请和审批入库单据',1,50,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','CHANGED','pw_purchase_order','2026-07-14 12:05:43',18,'{"actions": [{"status": 1, "visible": true, "clientKey": "submit_purchase_approval", "sortOrder": 10, "actionCode": "submit_purchase_approval", "actionName": "提交审批", "actionType": "START_FLOW", "permission": "ai:businessAction:execute", "confirmText": "确认执行“提交审批”?", "actionConfig": {"steps": [{"stepCode": "start_purchase_flow", "stepName": "发起采购审批", "stepType": "START_FLOW", "stepConfig": {"title": "采购单审批", "fieldMapping": [{"sourceField": "record.main.id", "targetField": "documentId"}, {"sourceField": "record.main.purchaseNo", "targetField": "documentNo"}, {"sourceField": "record.main.projectName", "targetField": "projectName"}, {"sourceField": "record.main.purchaseAmountCent", "targetField": "amountCent"}, {"sourceField": "record.main.createBy", "targetField": "applicantId"}, {"sourceField": "record.main.orderStatus", "targetField": "documentStatus"}], "flowModelKey": "pw_purchase_approval", "staticValues": {"hr": "admin", "deptManager": "1", "approvalScene": "PURCHASE"}}, "rollbackOnFailure": true}], "params": [{"name": "", "value": "", "target": "", "clientKey": "param_1783146458399_0", "sourceType": "static", "sourceField": ""}], "clientKey": "submit_purchase_approval", "formSchema": [], "openTarget": "_self", "targetPath": "", "useMainFlow": true, "targetFormKey": "", "successBehavior": "refreshList"}, "actionPosition": "ROW", "failureMessage": "采购审批提交失败", "successMessage": "采购审批已提交", "confirmRequired": true}, {"status": 1, "visible": true, "clientKey": "inbound_purchase_stock", "sortOrder": 90, "actionCode": "inbound_purchase_stock", "actionName": "采购入库过账", "actionType": "OPEN_PAGE", "permission": "ai:businessAction:execute", "confirmText": "确认执行“采购入库过账”?", "actionConfig": {"steps": [{"stepCode": "foreach_purchase_items", "stepName": "逐行入库", "stepType": "FOREACH", "stepConfig": {"steps": [{"stepCode": "purchase_item_inbound", "stepName": "明细入库", "stepType": "DOMAIN_ACTION", "stepConfig": {"params": {"remark": "采购审批通过入库", "itemCode": "${item.materialId}", "quantity": "${item.quantity}", "accountCode": "${record.main.warehouseId}", "dimensionKey": "", "sourceDetailId": "${item.id}"}, "actionType": "QUANTITY", "operationType": "INBOUND", "itemCodeFallbackFields": ["item.materialId", "item.materialCode"]}, "rollbackOnFailure": true}], "itemAlias": "item", "indexAlias": "index", "collectionPath": "record.children.pw_purchase_order_item"}, "rollbackOnFailure": true}], "params": [], "clientKey": "inbound_purchase_stock", "formSchema": [], "openTarget": "_self", "targetPath": "", "targetFormKey": "", "successBehavior": "refreshList"}, "actionPosition": "DETAIL", "failureMessage": "采购入库过账失败", "successMessage": "采购入库已写入数量台账", "confirmRequired": true}, {"status": 1, "sortOrder": 500, "actionCode": "relation_quantity_pw_purchase_order_item", "actionName": "采购单包含明细采购明细审批后数量更新", "actionType": "COMMAND", "actionConfig": {"steps": [{"stepCode": "loop_pw_purchase_order_item", "stepName": "逐行处理采购单包含明细采购明细", "stepType": "FOREACH", "stepConfig": {"steps": [{"stepCode": "quantity_pw_purchase_order_item", "stepName": "更新数量", "stepType": "DOMAIN_ACTION", "stepConfig": {"params": {"remark": "", "itemCode": "${item.materialId}", "quantity": "${item.quantity}", "accountCode": "${record.main.warehouseId}", "sourceDetailId": "${item.id}"}, "actionType": "QUANTITY", "operationType": "INBOUND", "itemCodeFallbackFields": []}, "rollbackOnFailure": true}], "itemAlias": "item", "indexAlias": "index", "relationKey": "pw_purchase_order_item", "relationName": "采购单包含明细采购明细", "collectionPath": "record.children.pw_purchase_order_item", "targetObjectCode": "PW_PURCHASE_ORDER_ITEM"}, "rollbackOnFailure": true}], "managedBy": "RELATION_APPROVAL_QUANTITY", "relationKey": "pw_purchase_order_item", "triggerScene": "FLOW_APPROVED", "successBehavior": "refreshList", "targetObjectCode": "PW_PURCHASE_ORDER_ITEM"}, "actionPosition": "DETAIL"}], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "采购单号", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "purchaseNo", "formatter": null}, {"align": "left", "fixed": null, "label": "项目名称", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "projectName", "formatter": null}, {"align": "left", "fixed": null, "label": "目标仓库", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warehouseName", "formatter": null}, {"align": "left", "fixed": null, "label": "采购人", "order": 3, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "purchaserName", "formatter": null}, {"align": "center", "fixed": null, "label": "采购日期", "order": 4, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "purchaseDate", "formatter": null}, {"align": "left", "fixed": null, "label": "供应商", "order": 5, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "supplierName", "formatter": null}, {"align": "left", "fixed": null, "label": "采购金额(分)", "order": 6, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "purchaseAmountCent", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 7, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderStatus", "formatter": "dictTag"}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "采购单号", "order": 0, "visible": true, "readonly": true, "fieldCode": "purchaseNo", "formatter": null}, {"align": "left", "label": "项目名称", "order": 1, "visible": true, "readonly": true, "fieldCode": "projectName", "formatter": null}, {"align": "right", "label": "目标仓库", "order": 2, "visible": true, "readonly": true, "fieldCode": "warehouseId", "formatter": null}, {"align": "left", "label": "目标仓库", "order": 3, "visible": true, "readonly": true, "fieldCode": "warehouseName", "formatter": null}, {"align": "left", "label": "采购人", "order": 4, "visible": true, "readonly": true, "fieldCode": "purchaserName", "formatter": null}, {"align": "center", "label": "采购日期", "order": 5, "visible": true, "readonly": true, "fieldCode": "purchaseDate", "formatter": null}, {"align": "left", "label": "供应商", "order": 6, "visible": true, "readonly": true, "fieldCode": "supplierName", "formatter": null}, {"align": "right", "label": "采购金额(分)", "order": 7, "visible": true, "readonly": true, "fieldCode": "purchaseAmountCent", "formatter": null}, {"align": "left", "label": "状态", "order": 8, "visible": true, "readonly": true, "fieldCode": "orderStatus", "formatter": "dictTag"}, {"align": "left", "label": "备注", "order": 9, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "项目名称", "order": 0, "visible": true, "collapsed": false, "fieldCode": "projectName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "目标仓库", "order": 1, "visible": true, "collapsed": false, "fieldCode": "warehouseId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "目标仓库", "order": 2, "visible": true, "collapsed": false, "fieldCode": "warehouseName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "采购人", "order": 3, "visible": true, "collapsed": false, "fieldCode": "purchaserName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "采购日期", "order": 4, "visible": true, "collapsed": false, "fieldCode": "purchaseDate", "matchMode": "eq", "componentKey": "date", "defaultValue": null}, {"align": "left", "label": "供应商", "order": 5, "visible": true, "collapsed": false, "fieldCode": "supplierName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "采购金额(分)", "order": 6, "visible": true, "collapsed": false, "fieldCode": "purchaseAmountCent", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 7, "visible": true, "collapsed": false, "fieldCode": "orderStatus", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": "DRAFT"}, {"align": "left", "label": "备注", "order": 8, "visible": true, "collapsed": false, "fieldCode": "remark", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "master-detail-crud"}, "schemaVersion": "view-schema-v1"}, "defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": true, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "formStyle": {"maxWidth": "2000px", "minHeight": "320px"}, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "2000px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "min(1080px, 92vw)", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_purchase_order_default_form", "formName": "采购单表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_purchaseNo", "label": "采购单号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "document_daily_no", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入采购单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_projectName", "label": "项目名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入项目名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入项目名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "projectName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldObjectReference", "label": "目标仓库", "props": {"placeholder": "请填写", "referenceObjectCode": "PW_WAREHOUSE", "referenceValueField": "id", "referenceDisplayField": "warehouseName"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "objectReference", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "warehouseId", "columnName": "warehouse_id", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_warehouseName", "label": "目标仓库", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入目标仓库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaserName", "label": "采购人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入采购人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaserName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaseDate", "label": "采购日期", "props": {"clearable": true, "placeholder": "请选择采购日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_supplierName", "label": "供应商", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入供应商"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaseAmountCent", "label": "采购金额(分)", "props": {"clearable": true, "placeholder": "请输入采购金额(分)"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseAmountCent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderStatus", "label": "状态", "props": {"dictType": "pw_order_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderStatus", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_purchase_order_default_form", "formName": "采购单表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "formStyle": {"maxWidth": "2000px", "minHeight": "320px"}, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "2000px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "min(1080px, 92vw)", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_purchase_order_default_form", "formName": "采购单表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_purchaseNo", "label": "采购单号", "props": {"clearable": true, "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "document_daily_no", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入采购单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_projectName", "label": "项目名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入项目名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入项目名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "projectName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldObjectReference", "label": "目标仓库", "props": {"placeholder": "请填写", "referenceObjectCode": "PW_WAREHOUSE", "referenceValueField": "id", "referenceDisplayField": "warehouseName"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "objectReference", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "warehouseId", "columnName": "warehouse_id", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_warehouseName", "label": "目标仓库", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入目标仓库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaserName", "label": "采购人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入采购人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaserName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaseDate", "label": "采购日期", "props": {"clearable": true, "placeholder": "请选择采购日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_supplierName", "label": "供应商", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入供应商"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "supplierName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_purchaseAmountCent", "label": "采购金额(分)", "props": {"clearable": true, "placeholder": "请输入采购金额(分)"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseAmountCent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderStatus", "label": "状态", "props": {"dictType": "pw_order_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderStatus", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "maxlength": 500, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_purchase_order_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-22 15:38:52',0), (1910000000000000916,1,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER_ITEM','采购明细','DETAIL',1920000000000000906,'pw_purchase_order_item','materialName','ionicons5:ListOutline','采购物料明细',1,60,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED','pw_purchase_order_item','2026-07-04 15:03:49',2,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "物料编号", "order": 3, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialCode", "formatter": null}, {"align": "left", "fixed": null, "label": "物料名称", "order": 4, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialName", "formatter": null}, {"align": "left", "fixed": null, "label": "规格型号", "order": 5, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "specModel", "formatter": null}, {"align": "left", "fixed": null, "label": "单位", "order": 6, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "unit", "formatter": null}, {"align": "right", "fixed": null, "label": "数量", "order": 7, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "quantity", "formatter": null}, {"align": "right", "fixed": null, "label": "成交单价(分)", "order": 8, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "dealPriceCent", "formatter": null}, {"align": "right", "fixed": null, "label": "金额(分)", "order": 9, "width": "200", "visible": true, "minWidth": null, "sortable": false, "fieldCode": "amountCent", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "物料编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "materialCode", "formatter": null}, {"align": "left", "label": "物料名称", "order": 1, "visible": true, "readonly": true, "fieldCode": "materialName", "formatter": null}, {"align": "left", "label": "规格型号", "order": 2, "visible": true, "readonly": true, "fieldCode": "specModel", "formatter": null}, {"align": "left", "label": "单位", "order": 3, "visible": true, "readonly": true, "fieldCode": "unit", "formatter": null}, {"align": "left", "label": "数量", "order": 4, "visible": true, "readonly": true, "fieldCode": "quantity", "formatter": null}, {"align": "left", "label": "成交单价(分)", "order": 5, "visible": true, "readonly": true, "fieldCode": "dealPriceCent", "formatter": null}, {"align": "left", "label": "金额(分)", "order": 6, "visible": true, "readonly": true, "fieldCode": "amountCent", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "采购单ID", "order": 0, "visible": true, "collapsed": false, "fieldCode": "purchaseId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料ID", "order": 1, "visible": true, "collapsed": false, "fieldCode": "materialId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料编号", "order": 2, "visible": true, "collapsed": false, "fieldCode": "materialCode", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料名称", "order": 3, "visible": true, "collapsed": false, "fieldCode": "materialName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "规格型号", "order": 4, "visible": true, "collapsed": false, "fieldCode": "specModel", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "单位", "order": 5, "visible": true, "collapsed": false, "fieldCode": "unit", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "数量", "order": 6, "visible": true, "collapsed": false, "fieldCode": "quantity", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "成交单价(分)", "order": 7, "visible": true, "collapsed": false, "fieldCode": "dealPriceCent", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "金额(分)", "order": 8, "visible": true, "collapsed": false, "fieldCode": "amountCent", "matchMode": "eq", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": false, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_purchase_order_item_default_form", "formName": "采购明细表单", "settings": {"formAssets": [], "migratedFrom": "formCreateRule"}, "components": [{"id": "cmp_purchaseId", "label": "采购单ID", "props": {"clearable": true, "fieldCode": "purchaseId", "placeholder": "请输入采购单ID", "fieldBinding": {"fieldCode": "purchaseId"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入采购单ID", "trigger": ["blur", "change"], "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入采购单ID"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialId", "label": "物料ID", "props": {"clearable": true, "fieldCode": "materialId", "placeholder": "请输入物料ID", "fieldBinding": {"fieldCode": "materialId"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialCode", "label": "物料编号", "props": {"clearable": true, "fieldCode": "materialCode", "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "material_code", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入物料编号", "fieldBinding": {"fieldCode": "materialCode"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialName", "label": "物料名称", "props": {"clearable": true, "fieldCode": "materialName", "maxlength": 128, "placeholder": "请输入物料名称", "fieldBinding": {"fieldCode": "materialName"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_specModel", "label": "规格型号", "props": {"clearable": true, "fieldCode": "specModel", "maxlength": 128, "placeholder": "请输入规格型号", "fieldBinding": {"fieldCode": "specModel"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "specModel", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_unit", "label": "单位", "props": {"clearable": true, "fieldCode": "unit", "maxlength": 32, "placeholder": "请输入单位", "fieldBinding": {"fieldCode": "unit"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "unit", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_quantity", "label": "数量", "props": {"clearable": true, "fieldCode": "quantity", "maxlength": 18, "placeholder": "请输入数量", "fieldBinding": {"fieldCode": "quantity"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入数量", "trigger": ["blur", "change"], "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "quantity", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_dealPriceCent", "label": "成交单价(分)", "props": {"clearable": true, "fieldCode": "dealPriceCent", "placeholder": "请输入成交单价(分)", "fieldBinding": {"fieldCode": "dealPriceCent"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "dealPriceCent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_amountCent", "label": "金额(分)", "props": {"clearable": true, "fieldCode": "amountCent", "placeholder": "请输入金额(分)", "fieldBinding": {"fieldCode": "amountCent"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amountCent", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_purchase_order_item_default_form", "formName": "采购明细表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_purchase_order_item_default_form", "formName": "采购明细表单", "settings": {"formAssets": [], "migratedFrom": "formCreateRule"}, "components": [{"id": "cmp_purchaseId", "label": "采购单ID", "props": {"clearable": true, "fieldCode": "purchaseId", "placeholder": "请输入采购单ID", "fieldBinding": {"fieldCode": "purchaseId"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入采购单ID", "trigger": ["blur", "change"], "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入采购单ID"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "purchaseId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialId", "label": "物料ID", "props": {"clearable": true, "fieldCode": "materialId", "placeholder": "请输入物料ID", "fieldBinding": {"fieldCode": "materialId"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialCode", "label": "物料编号", "props": {"clearable": true, "fieldCode": "materialCode", "maxlength": 64, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "material_code", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请输入物料编号", "fieldBinding": {"fieldCode": "materialCode"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialName", "label": "物料名称", "props": {"clearable": true, "fieldCode": "materialName", "maxlength": 128, "placeholder": "请输入物料名称", "fieldBinding": {"fieldCode": "materialName"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_specModel", "label": "规格型号", "props": {"clearable": true, "fieldCode": "specModel", "maxlength": 128, "placeholder": "请输入规格型号", "fieldBinding": {"fieldCode": "specModel"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "specModel", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_unit", "label": "单位", "props": {"clearable": true, "fieldCode": "unit", "maxlength": 32, "placeholder": "请输入单位", "fieldBinding": {"fieldCode": "unit"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "unit", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_quantity", "label": "数量", "props": {"clearable": true, "fieldCode": "quantity", "maxlength": 18, "placeholder": "请输入数量", "fieldBinding": {"fieldCode": "quantity"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入数量", "trigger": ["blur", "change"], "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "quantity", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_dealPriceCent", "label": "成交单价(分)", "props": {"clearable": true, "fieldCode": "dealPriceCent", "placeholder": "请输入成交单价(分)", "fieldBinding": {"fieldCode": "dealPriceCent"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "dealPriceCent", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_amountCent", "label": "金额(分)", "props": {"clearable": true, "fieldCode": "amountCent", "placeholder": "请输入金额(分)", "fieldBinding": {"fieldCode": "amountCent"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "amountCent", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_purchase_order_item_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-04 15:03:50',0), (1910000000000000917,1,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER','出库单','TRANSACTION',1920000000000000907,'pw_outbound_order','outboundNo','ionicons5:ExitOutline','仓库出库申请单据',1,70,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED','pw_outbound_order','2026-07-03 14:25:24',1,'{"actions": [{"status": 1, "sortOrder": 10, "actionCode": "submit_outbound_approval", "actionName": "提交审批并锁定库存", "actionType": "COMMAND", "permission": "ai:businessAction:execute", "actionConfig": {"steps": [{"stepCode": "foreach_outbound_lock_items", "stepName": "逐行锁定出库数量", "stepType": "FOREACH", "stepConfig": {"steps": [{"stepCode": "outbound_item_lock", "stepName": "明细锁定", "stepType": "DOMAIN_ACTION", "stepConfig": {"params": {"remark": "出库提交审批锁定", "itemCode": "${item.materialId}", "lockCode": "${item.id}", "quantity": "${item.outboundQuantity}", "accountCode": "${record.main.warehouseId}", "dimensionKey": "", "sourceDetailId": "${item.id}"}, "actionType": "QUANTITY", "operationType": "LOCK"}, "rollbackOnFailure": true}], "itemAlias": "item", "indexAlias": "index", "collectionPath": "record.children.pw_outbound_order_item"}, "rollbackOnFailure": true}, {"stepCode": "start_outbound_flow", "stepName": "发起出库审批", "stepType": "START_FLOW", "stepConfig": {"title": "出库单审批", "fieldMapping": [{"sourceField": "record.main.id", "targetField": "documentId"}, {"sourceField": "record.main.outboundNo", "targetField": "documentNo"}, {"sourceField": "record.main.warehouseName", "targetField": "warehouseName"}, {"sourceField": "record.main.createBy", "targetField": "applicantId"}, {"sourceField": "record.main.orderStatus", "targetField": "documentStatus"}], "flowModelKey": "pw_outbound_approval", "staticValues": {"hr": "admin", "deptManager": "1", "approvalScene": "OUTBOUND"}}, "rollbackOnFailure": true}], "successBehavior": "refreshList"}, "actionPosition": "ROW", "failureMessage": "出库审批提交或库存锁定失败", "successMessage": "出库审批已提交,库存已锁定", "confirmRequired": true}, {"status": 1, "sortOrder": 90, "actionCode": "commit_outbound_stock", "actionName": "出库扣减过账", "actionType": "COMMAND", "permission": "ai:businessAction:execute", "actionConfig": {"steps": [{"stepCode": "foreach_outbound_commit_items", "stepName": "逐行扣减出库数量", "stepType": "FOREACH", "stepConfig": {"steps": [{"stepCode": "outbound_item_commit", "stepName": "明细扣减", "stepType": "DOMAIN_ACTION", "stepConfig": {"params": {"remark": "出库审批通过扣减", "itemCode": "${item.materialId}", "lockCode": "${item.id}", "quantity": "${item.outboundQuantity}", "accountCode": "${record.main.warehouseId}", "dimensionKey": "", "sourceDetailId": "${item.id}"}, "actionType": "QUANTITY", "operationType": "COMMIT"}, "rollbackOnFailure": true}], "itemAlias": "item", "indexAlias": "index", "collectionPath": "record.children.pw_outbound_order_item"}, "rollbackOnFailure": true}], "successBehavior": "refreshList"}, "actionPosition": "DETAIL", "failureMessage": "出库扣减过账失败", "successMessage": "出库扣减已写入数量台账", "confirmRequired": true}, {"status": 1, "sortOrder": 100, "actionCode": "release_outbound_stock", "actionName": "释放出库锁定", "actionType": "COMMAND", "permission": "ai:businessAction:execute", "actionConfig": {"steps": [{"stepCode": "foreach_outbound_release_items", "stepName": "逐行释放出库锁定", "stepType": "FOREACH", "stepConfig": {"steps": [{"stepCode": "outbound_item_release", "stepName": "明细释放", "stepType": "DOMAIN_ACTION", "stepConfig": {"params": {"remark": "出库审批驳回释放锁定", "itemCode": "${item.materialId}", "lockCode": "${item.id}", "quantity": "${item.outboundQuantity}", "accountCode": "${record.main.warehouseId}", "dimensionKey": "", "sourceDetailId": "${item.id}"}, "actionType": "QUANTITY", "operationType": "RELEASE"}, "rollbackOnFailure": false}], "itemAlias": "item", "indexAlias": "index", "collectionPath": "record.children.pw_outbound_order_item"}, "rollbackOnFailure": false}], "successBehavior": "refreshList"}, "actionPosition": "DETAIL", "failureMessage": "释放出库锁定失败", "successMessage": "出库锁定已释放", "confirmRequired": true}], "defaultPanel": "form", "documentManaged": true, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-03 20:57:38',0), (1910000000000000918,1,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER_ITEM','出库明细','DETAIL',1920000000000000908,'pw_outbound_order_item','materialName','ionicons5:ListOutline','出库物料明细',1,80,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED','pw_outbound_order_item','2026-07-03 22:33:43',1,'{"viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "物料编号", "order": 0, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialCode", "formatter": null}, {"align": "left", "fixed": null, "label": "物料名称", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialName", "formatter": null}, {"align": "right", "fixed": null, "label": "库存数量", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "stockQuantity", "formatter": null}, {"align": "right", "fixed": null, "label": "出库数量", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "outboundQuantity", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "right", "label": "出库单ID", "order": 0, "visible": true, "readonly": true, "fieldCode": "outboundId", "formatter": null}, {"align": "right", "label": "仓库ID", "order": 0, "visible": true, "readonly": true, "fieldCode": "warehouseId", "formatter": null}, {"align": "left", "label": "物料编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "materialCode", "formatter": null}, {"align": "left", "label": "物料名称", "order": 0, "visible": true, "readonly": true, "fieldCode": "materialName", "formatter": null}, {"align": "right", "label": "库存数量", "order": 0, "visible": true, "readonly": true, "fieldCode": "stockQuantity", "formatter": null}, {"align": "right", "label": "出库数量", "order": 0, "visible": true, "readonly": true, "fieldCode": "outboundQuantity", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "right", "label": "出库单ID", "order": 0, "visible": true, "collapsed": false, "fieldCode": "outboundId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料编号", "order": 0, "visible": true, "collapsed": false, "fieldCode": "materialCode", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料名称", "order": 0, "visible": true, "collapsed": false, "fieldCode": "materialName", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "defaultPanel": "form", "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "documentManaged": false, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_outbound_order_item_default_form", "formName": "出库明细表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_outboundId", "label": "出库单ID", "props": {"clearable": true, "placeholder": "请输入出库单ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入出库单ID"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "outboundId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warehouseId", "label": "仓库ID", "props": {"clearable": true, "placeholder": "请输入仓库ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialCode", "label": "物料编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入物料编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialName", "label": "物料名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入物料名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_stockQuantity", "label": "库存数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入库存数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "stockQuantity", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_outboundQuantity", "label": "出库数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入出库数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入出库数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "outboundQuantity", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_outbound_order_item_default_form", "formName": "出库明细表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_outbound_order_item_default_form", "formName": "出库明细表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_outboundId", "label": "出库单ID", "props": {"clearable": true, "placeholder": "请输入出库单ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入出库单ID"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "outboundId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_warehouseId", "label": "仓库ID", "props": {"clearable": true, "placeholder": "请输入仓库ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "warehouseId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialCode", "label": "物料编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入物料编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_materialName", "label": "物料名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入物料名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "materialName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_stockQuantity", "label": "库存数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入库存数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "stockQuantity", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_outboundQuantity", "label": "出库数量", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入出库数量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "请输入出库数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "outboundQuantity", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_outbound_order_item_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-03 22:33:44',0), (1910000000000000919,1,'PROCUREMENT_WAREHOUSE','PW_TRANSFER_ORDER','调拨单','TRANSACTION',1920000000000000909,'pw_transfer_order','transferNo','ionicons5:SwapHorizontalOutline','仓库间物料调拨单据',1,90,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','CHANGED','pw_transfer_order','2026-07-03 14:25:24',1,'{"actions": [{"status": 1, "sortOrder": 10, "actionCode": "submit_transfer_approval", "actionName": "提交审批", "actionType": "COMMAND", "permission": "ai:businessAction:execute", "actionConfig": {"steps": [{"stepCode": "start_transfer_flow", "stepName": "发起调拨审批", "stepType": "START_FLOW", "stepConfig": {"title": "调拨单审批", "fieldMapping": [{"sourceField": "record.main.id", "targetField": "documentId"}, {"sourceField": "record.main.transferNo", "targetField": "documentNo"}, {"sourceField": "record.main.fromWarehouseName", "targetField": "fromWarehouseName"}, {"sourceField": "record.main.toWarehouseName", "targetField": "toWarehouseName"}, {"sourceField": "record.main.createBy", "targetField": "applicantId"}, {"sourceField": "record.main.orderStatus", "targetField": "documentStatus"}], "flowModelKey": "pw_transfer_approval", "staticValues": {"hr": "admin", "deptManager": "1", "approvalScene": "TRANSFER"}}, "rollbackOnFailure": true}], "successBehavior": "refreshList"}, "actionPosition": "ROW", "failureMessage": "调拨审批提交失败", "successMessage": "调拨审批已提交", "confirmRequired": true}, {"status": 1, "sortOrder": 90, "actionCode": "transfer_stock", "actionName": "调拨转移过账", "actionType": "COMMAND", "permission": "ai:businessAction:execute", "actionConfig": {"steps": [{"stepCode": "foreach_transfer_items", "stepName": "逐行调拨转移", "stepType": "FOREACH", "stepConfig": {"steps": [{"stepCode": "transfer_item_move", "stepName": "明细转移", "stepType": "DOMAIN_ACTION", "stepConfig": {"params": {"remark": "调拨审批通过转移", "itemCode": "${item.materialId}", "quantity": "${item.transferQuantity}", "accountCode": "${record.main.fromWarehouseId}", "dimensionKey": "", "sourceDetailId": "${item.id}", "targetItemCode": "${item.materialId}", "targetAccountCode": "${record.main.toWarehouseId}", "targetDimensionKey": ""}, "actionType": "QUANTITY", "operationType": "TRANSFER"}, "rollbackOnFailure": true}], "itemAlias": "item", "indexAlias": "index", "collectionPath": "record.children.pw_transfer_order_item"}, "rollbackOnFailure": true}], "successBehavior": "refreshList"}, "actionPosition": "DETAIL", "failureMessage": "调拨转移过账失败", "successMessage": "调拨转移已写入数量台账", "confirmRequired": true}], "defaultPanel": "form", "documentManaged": true, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_transfer_order_default_form", "formName": "调拨单表单", "settings": {"formAssets": [], "governance": {"events": [{"id": "event_1783845163237", "hook": "beforeLoad", "action": "customScript", "handler": "", "resultMapping": ""}], "fieldRules": [{"id": "rule_1783845114513", "field": "transferReason", "hidden": false, "readonly": false, "required": true, "defaultValue": ""}]}, "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_transferNo", "label": "调拨单号", "props": {"clearable": true, "maxlength": 64, "generation": "{\\"mode\\": \\"CODE_RULE\\", \\"enabled\\": true, \\"trigger\\": \\"ON_CREATE\\", \\"ruleCode\\": \\"transfer_no\\", \\"fillPolicy\\": \\"EMPTY_ONLY\\"}", "placeholder": "请输入调拨单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入调拨单号"}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_transferPersonName", "label": "调拨人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入调拨人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferPersonName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_transferDate", "label": "调拨日期", "props": {"clearable": true, "placeholder": "请选择调拨日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_transferReason", "label": "调拨原因", "props": {"clearable": true, "maxlength": 255, "placeholder": "请输入调拨原因"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferReason", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderStatus", "label": "状态", "props": {"dictType": "pw_order_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderStatus", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_toWarehouseName", "label": "调入仓库", "props": {"clearable": true, "maxlength": 128, "placeholder": "请填写调入仓库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "toWarehouseName", "columnName": "to_warehouse_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fromWarehouseName", "label": "调出仓库", "props": {"clearable": true, "maxlength": 128, "placeholder": "请填写调出仓库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fromWarehouseName", "columnName": "from_warehouse_name", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "pw_transfer_order_default_form", "formName": "调拨单表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "pw_transfer_order_default_form", "formName": "调拨单表单", "settings": {"formAssets": [], "governance": {"events": [{"id": "event_1783845163237", "hook": "beforeLoad", "action": "customScript", "handler": "", "resultMapping": ""}], "fieldRules": [{"id": "rule_1783845114513", "field": "transferReason", "hidden": false, "readonly": false, "required": true, "defaultValue": ""}]}, "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_transferNo", "label": "调拨单号", "props": {"clearable": true, "maxlength": 64, "generation": "{\\"mode\\": \\"CODE_RULE\\", \\"enabled\\": true, \\"trigger\\": \\"ON_CREATE\\", \\"ruleCode\\": \\"transfer_no\\", \\"fillPolicy\\": \\"EMPTY_ONLY\\"}", "placeholder": "请输入调拨单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入调拨单号"}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_transferPersonName", "label": "调拨人", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入调拨人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferPersonName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_transferDate", "label": "调拨日期", "props": {"clearable": true, "placeholder": "请选择调拨日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_transferReason", "label": "调拨原因", "props": {"clearable": true, "maxlength": 255, "placeholder": "请输入调拨原因"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "transferReason", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderStatus", "label": "状态", "props": {"dictType": "pw_order_status", "clearable": true, "maxlength": 32, "placeholder": "请选择状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderStatus", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_toWarehouseName", "label": "调入仓库", "props": {"clearable": true, "maxlength": 128, "placeholder": "请填写调入仓库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "toWarehouseName", "columnName": "to_warehouse_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fromWarehouseName", "label": "调出仓库", "props": {"clearable": true, "maxlength": 128, "placeholder": "请填写调出仓库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fromWarehouseName", "columnName": "from_warehouse_name", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "pw_transfer_order_default_form"}, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-12 16:34:01',0), (1910000000000000920,1,'PROCUREMENT_WAREHOUSE','PW_TRANSFER_ORDER_ITEM','调拨明细','DETAIL',1920000000000000910,'pw_transfer_order_item','materialName','ionicons5:ListOutline','调拨物料明细',1,100,'{"domainCode": "PROCUREMENT_WAREHOUSE", "lowcodeApp": true}','PUBLISHED',NULL,'2026-07-03 14:25:24',1,'{"defaultPanel": "form", "documentManaged": false, "relationConfigVisible": true, "relationSummaryVisible": true}',1,'2026-07-03 14:25:24',1,1,'2026-07-03 20:57:38',0), (1910000000000005202,1,'HR','LEAVE_APPLICATION','离职申请','TRANSACTION',2061732892664422401,'hr_leave_application','employeeName','ionicons5:ExitOutline','员工离职申请单据,支持流程流转和状态回写',1,1,'{"stage": "phase7", "sample": true}','CHANGED','hr_leave_application','2026-06-14 14:25:06',33,'{"actions": [{"status": 1, "clientKey": "add", "sortOrder": 10, "actionCode": "add", "actionName": "新增", "actionType": "OPEN_PAGE", "permission": null, "actionConfig": {}, "actionPosition": "TOOLBAR", "failureMessage": "", "successMessage": "", "confirmRequired": false}, {"status": 1, "clientKey": "edit", "sortOrder": 20, "actionCode": "edit", "actionName": "编辑", "actionType": "OPEN_PAGE", "permission": null, "actionConfig": {}, "actionPosition": "ROW", "failureMessage": "", "successMessage": "", "confirmRequired": false}, {"status": 1, "clientKey": "delete", "sortOrder": 30, "actionCode": "delete", "actionName": "删除", "actionType": "OPEN_PAGE", "permission": null, "actionConfig": {}, "actionPosition": "ROW", "failureMessage": "", "successMessage": "", "confirmRequired": true}, {"status": 1, "clientKey": "start_flow_1780472477231", "sortOrder": 40, "actionCode": "start_flow_1780472477231", "actionName": "发起流程", "actionType": "START_FLOW", "permission": "ai:businessFlow:start", "actionConfig": {"useMainFlow": true}, "actionPosition": "ROW", "failureMessage": "流程发起失败", "successMessage": "流程已发起", "confirmRequired": true}], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "申请单号", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "applicationNo", "formatter": null}, {"align": "left", "fixed": null, "label": "岗位名称", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "positionName", "formatter": null}, {"align": "center", "fixed": null, "label": "最后工作日", "order": 3, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "lastWorkDate", "formatter": null}, {"align": "left", "fixed": null, "label": "备注", "order": 4, "width": 220, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "remark", "formatter": null}, {"align": "center", "fixed": null, "label": "单据状态", "order": 5, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "documentStatus", "formatter": "dictTag"}, {"align": "center", "fixed": null, "label": "员工", "order": 6, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "employeeId", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "申请单号", "order": 0, "visible": true, "readonly": true, "fieldCode": "applicationNo", "formatter": null}, {"align": "left", "label": "员工姓名", "order": 1, "visible": true, "readonly": true, "fieldCode": "employeeName", "formatter": null}, {"align": "left", "label": "岗位名称", "order": 2, "visible": true, "readonly": true, "fieldCode": "positionName", "formatter": null}, {"align": "left", "label": "最后工作日", "order": 3, "visible": true, "readonly": true, "fieldCode": "lastWorkDate", "formatter": null}, {"align": "left", "label": "单据状态", "order": 4, "visible": true, "readonly": true, "fieldCode": "documentStatus", "formatter": "dictTag"}, {"align": "left", "label": "备注", "order": 5, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "申请单号", "order": 0, "visible": true, "collapsed": false, "fieldCode": "applicationNo", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "员工", "order": 1, "visible": true, "collapsed": false, "fieldCode": "employeeId", "matchMode": "eq", "componentKey": "userSelect", "defaultValue": ""}, {"align": "left", "label": "部门", "order": 2, "visible": true, "collapsed": false, "fieldCode": "departmentId", "matchMode": "eq", "componentKey": "orgTreeSelect", "defaultValue": null}, {"align": "left", "label": "岗位名称", "order": 3, "visible": true, "collapsed": false, "fieldCode": "positionName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "离职原因", "order": 4, "visible": true, "collapsed": false, "fieldCode": "leaveReason", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "最后工作日", "order": 5, "visible": true, "collapsed": false, "fieldCode": "lastWorkDate", "matchMode": "eq", "componentKey": "date", "defaultValue": null}, {"align": "left", "label": "交接负责人", "order": 6, "visible": true, "collapsed": false, "fieldCode": "handoverOwnerId", "matchMode": "eq", "componentKey": "userSelect", "defaultValue": null}, {"align": "left", "label": "备注", "order": 7, "visible": true, "collapsed": false, "fieldCode": "remark", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "单据状态", "order": 8, "visible": true, "collapsed": false, "fieldCode": "documentStatus", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": "DRAFT"}, {"align": "left", "label": "员工姓名", "order": 9, "visible": true, "collapsed": false, "fieldCode": "employeeName", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "hr_leave_application_default_form", "formName": "离职申请表单", "settings": {"formAssets": [], "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "hr_leave_application_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_applicationNo", "label": "申请单号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入申请单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入申请单号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "applicationNo", "columnName": "application_no", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_employeeId", "label": "员工", "props": {"clearable": true, "placeholder": "请选择员工ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请选择员工"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "employeeId", "columnName": "employee_id", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_quantity", "label": "数量", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "quantity", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldInput4", "label": "测试1", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入测试1"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "dpe", "columnName": "field_input4", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_price", "label": "价格", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入价格"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "price", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_totalPrice", "label": "总价", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入总价"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "totalPrice", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_employeeName", "label": "员工姓名", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入员工姓名"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "employeeName", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_departmentId", "label": "部门", "props": {"data": [{"label": "组织示例", "value": 1, "children": [{"label": "下级组织示例", "value": 2}]}], "props": {"label": "label", "value": "value", "children": "children"}, "clearable": true, "placeholder": "请选择部门ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请选择部门"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "departmentId", "columnName": "department_id", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_positionName", "label": "岗位名称", "props": {"clearable": true, "maxlength": 100, "placeholder": "请输入岗位名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入岗位名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "positionName", "columnName": "position_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_leaveReason", "label": "离职原因", "props": {"rows": 3, "type": "textarea", "clearable": true, "maxlength": 500, "placeholder": "请输入离职原因", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入离职原因"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "leaveReason", "columnName": "leave_reason", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_lastWorkDate", "label": "最后工作日", "props": {"type": "date", "format": "YYYY-MM-DD", "clearable": true, "placeholder": "请选择最后工作日", "valueFormat": "YYYY-MM-DD"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请选择最后工作日", "trigger": "change", "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择最后工作日"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "lastWorkDate", "columnName": "last_work_date", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_handoverOwnerId", "label": "交接负责人", "props": {"clearable": true, "placeholder": "请选择交接负责人ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请选择交接负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "handoverOwnerId", "columnName": "handover_owner_id", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "maxlength": 500, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldTextarea", "label": "字段测试", "props": {"placeholder": "请填写"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "字段测试不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldTextarea", "columnName": "field_textarea", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_documentStatus", "label": "单据状态", "props": {"dictType": "business_document_status", "required": true, "clearable": true, "maxlength": 32, "exportable": null, "importable": null, "searchable": true, "formVisible": true, "listVisible": true, "placeholder": "请选择单据状态", "defaultValue": "DRAFT"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请选择单据状态", "trigger": "change", "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择单据状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "documentStatus", "columnName": "document_status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "输入框字段", "props": {"placeholder": "请填写输入框字段"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "csFfieldInput", "columnName": "cs_ffield_input", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "hr_leave_application_default_form", "formName": "离职申请表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "hr_leave_application_default_form", "formName": "离职申请表单", "settings": {"formAssets": [], "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "hr_leave_application_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_applicationNo", "label": "申请单号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入申请单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入申请单号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "applicationNo", "columnName": "application_no", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_employeeId", "label": "员工", "props": {"clearable": true, "placeholder": "请选择员工ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请选择员工"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "employeeId", "columnName": "employee_id", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_quantity", "label": "数量", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入数量"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "quantity", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldInput4", "label": "测试1", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入测试1"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "dpe", "columnName": "field_input4", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_price", "label": "价格", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入价格"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "price", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_totalPrice", "label": "总价", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入总价"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "totalPrice", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_employeeName", "label": "员工姓名", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入员工姓名"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "employeeName", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_departmentId", "label": "部门", "props": {"data": [{"label": "组织示例", "value": 1, "children": [{"label": "下级组织示例", "value": 2}]}], "props": {"label": "label", "value": "value", "children": "children"}, "clearable": true, "placeholder": "请选择部门ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请选择部门"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "departmentId", "columnName": "department_id", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_positionName", "label": "岗位名称", "props": {"clearable": true, "maxlength": 100, "placeholder": "请输入岗位名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入岗位名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "positionName", "columnName": "position_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_leaveReason", "label": "离职原因", "props": {"rows": 3, "type": "textarea", "clearable": true, "maxlength": 500, "placeholder": "请输入离职原因", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入离职原因"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "leaveReason", "columnName": "leave_reason", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_lastWorkDate", "label": "最后工作日", "props": {"type": "date", "format": "YYYY-MM-DD", "clearable": true, "placeholder": "请选择最后工作日", "valueFormat": "YYYY-MM-DD"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请选择最后工作日", "trigger": "change", "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择最后工作日"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "lastWorkDate", "columnName": "last_work_date", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_handoverOwnerId", "label": "交接负责人", "props": {"clearable": true, "placeholder": "请选择交接负责人ID"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请选择交接负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "handoverOwnerId", "columnName": "handover_owner_id", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"rows": 3, "type": "textarea", "clearable": true, "maxlength": 500, "placeholder": "请输入备注", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "columnName": "remark", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldTextarea", "label": "字段测试", "props": {"placeholder": "请填写"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "字段测试不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldTextarea", "columnName": "field_textarea", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_documentStatus", "label": "单据状态", "props": {"dictType": "business_document_status", "required": true, "clearable": true, "maxlength": 32, "exportable": null, "importable": null, "searchable": true, "formVisible": true, "listVisible": true, "placeholder": "请选择单据状态", "defaultValue": "DRAFT"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请选择单据状态", "trigger": "change", "required": true}], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请选择单据状态"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "documentStatus", "columnName": "document_status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "输入框字段", "props": {"placeholder": "请填写输入框字段"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "csFfieldInput", "columnName": "cs_ffield_input", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "hr_leave_application_default_form"}}',1,'2026-06-02 06:48:47',1,1,'2026-07-09 15:47:22',0); INSERT INTO ai_business_object (id,tenant_id,suite_code,object_code,object_name,object_type,model_id,model_code,display_field,icon,description,status,sort_order,`options`,design_status,config_key,last_publish_time,last_publish_version,designer_options,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000005203,1,'HR','LEAVE_HANDOVER','离职交接','TRANSACTION',NULL,'hr_leave_handover','handoverTitle','ionicons5:ClipboardOutline','离职申请通过后自动生成的交接记录',1,2,'{"stage": "phase7", "sample": true}','PUBLISHED','hr_leave_handover','2026-06-02 06:48:47',1,NULL,1,'2026-06-02 06:48:47',1,1,'2026-06-02 06:48:47',0), (1910000000000008302,1,'PURCHASE','sample_purchase_order','采购申请','TRANSACTION',NULL,'purchase_sample_purchase_order','title','ionicons5:CartOutline','代码实现的采购单审批测试业务,业务流程配置维护节点表单和字段权限',1,10,'{"sample": true, "codeApp": true, "businessType": "sample_purchase_order", "flowModelKey": "sample_purchase_order_approval"}','PUBLISHED',NULL,'2026-06-29 10:34:00',1,'{"codeApp": true, "defaultPanel": "flow-app", "documentManaged": false}',1,'2026-06-29 10:34:00',1,1,'2026-06-30 17:13:02',0), (2063783773240336385,1,'IN_OUT','in_out_history','InOutHistory','MASTER',2063913888033054722,'in_out_history',NULL,NULL,NULL,1,0,'{"createMode": "BLANK"}','CHANGED','in_out_history','2026-06-14 11:36:18',2,'{"viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "left", "fixed": null, "label": "多选框", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "checkbox", "formatter": null}, {"align": "left", "fixed": null, "label": "单选框", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "radio", "formatter": null}, {"align": "left", "fixed": null, "label": "多行输入框", "order": 3, "width": 220, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "input", "formatter": null}, {"align": "left", "fixed": null, "label": "输入框", "order": 4, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "input2", "formatter": null}, {"align": "left", "fixed": null, "label": "密码输入框", "order": 5, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "input3", "formatter": null}, {"align": "left", "fixed": null, "label": "多选框", "order": 6, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "checkbox2", "formatter": null}, {"align": "left", "fixed": null, "label": "单选框", "order": 7, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "radio2", "formatter": null}, {"align": "right", "fixed": null, "label": "计数器", "order": 8, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "fieldkxzkp", "formatter": null}, {"align": "left", "fixed": null, "label": "选择器", "order": 9, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "selector", "formatter": null}, {"align": "center", "fixed": null, "label": "开关", "order": 10, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "switch", "formatter": null}, {"align": "left", "fixed": null, "label": "时间", "order": 11, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "time", "formatter": null}, {"align": "left", "fixed": null, "label": "时间区间", "order": 12, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "time2", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 13, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 14, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "多选框", "order": 0, "visible": true, "collapsed": false, "fieldCode": "checkbox", "matchMode": "in", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "单选框", "order": 1, "visible": true, "collapsed": false, "fieldCode": "radio", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "多行输入框", "order": 2, "visible": true, "collapsed": false, "fieldCode": "input", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "输入框", "order": 3, "visible": true, "collapsed": false, "fieldCode": "input2", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "密码输入框", "order": 4, "visible": true, "collapsed": false, "fieldCode": "input3", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "多选框", "order": 5, "visible": true, "collapsed": false, "fieldCode": "checkbox2", "matchMode": "in", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "单选框", "order": 6, "visible": true, "collapsed": false, "fieldCode": "radio2", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "计数器", "order": 7, "visible": true, "collapsed": false, "fieldCode": "fieldkxzkp", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "选择器", "order": 8, "visible": true, "collapsed": false, "fieldCode": "selector", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "开关", "order": 9, "visible": true, "collapsed": false, "fieldCode": "switch", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "时间", "order": 10, "visible": true, "collapsed": false, "fieldCode": "time", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "时间区间", "order": 11, "visible": true, "collapsed": false, "fieldCode": "time2", "matchMode": "eq", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [], "layout": {"size": "medium", "rowGap": 16, "columnGap": 16, "labelAlign": "right", "labelWidth": 100, "gridColumns": 2, "showFeedback": true, "inlineFeedback": false, "labelPlacement": "left", "hideRequiredAsterisk": false}, "formKey": "in_out_history_default_form", "formName": "InOutHistory表单", "settings": {"formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "in_out_history_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 1, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_checkbox", "label": "多选框", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}]}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择多选框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "checkbox", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "checkbox", "columnName": "checkbox", "createIfMissing": false}}, {"id": "cmp_radio", "label": "单选框", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}]}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择单选框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "radio", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "radio", "columnName": "radio", "createIfMissing": false}}, {"id": "cmp_tabs_1781532413637", "label": "标签页", "props": {}, "layout": {"span": 2, "align": "left"}, "children": [{"id": "cmp_tabs_1781532413637_pane", "label": "标签一", "props": {"label": "标签一"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "tabPane", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "tabs", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_input", "label": "多行输入框", "props": {"rows": 3, "type": "textarea", "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入多行输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "input", "columnName": "input", "createIfMissing": true}}, {"id": "cmp_input2", "label": "输入框", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "input2", "columnName": "input2", "createIfMissing": true}}, {"id": "cmp_input3", "label": "密码输入框", "props": {"type": "password"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入密码输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "input3", "columnName": "input3", "createIfMissing": true}}, {"id": "cmp_checkbox2", "label": "多选框", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}]}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择多选框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "checkbox", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "checkbox2", "columnName": "checkbox2", "createIfMissing": true}}, {"id": "cmp_radio2", "label": "单选框", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}]}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择单选框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "radio", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "radio2", "columnName": "radio2", "createIfMissing": true}}, {"id": "cmp_fieldkxzkp", "label": "计数器", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入计数器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldkxzkp", "columnName": "fieldkxzkp", "createIfMissing": true}}, {"id": "cmp_selector", "label": "选择器", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}]}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择选择器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "selector", "columnName": "selector", "createIfMissing": true}}, {"id": "cmp_switch", "label": "开关", "props": {"activeValue": true, "inactiveValue": false}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入开关"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "switch", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "switch", "columnName": "switch", "createIfMissing": true}}, {"id": "cmp_rate_10", "label": "评分", "props": {"__fcType": "rate", "defaultValue": 0}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入评分"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "rate", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_time", "label": "时间", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择时间"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "time", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "time", "columnName": "time", "createIfMissing": true}}, {"id": "cmp_time2", "label": "时间区间", "props": {"isRange": true}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择时间区间"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "time", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "time2", "columnName": "time2", "createIfMissing": true}}, {"id": "cmp_slider_13", "label": "滑块", "props": {"__fcType": "slider"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入滑块"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "slider", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_elButton_14", "label": "布局", "props": {"__fcType": "elButton", "formCreateChild": "按钮"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入布局"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "elButton", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_space_15", "label": "布局", "props": {"__fc": {"style": {"width": "100%", "whiteSpace": "pre-line"}, "native": true}, "__fcType": "div", "formCreateChild": "文字"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入布局"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "space", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_elAlert_16", "label": "提示", "props": {"type": "success", "title": "提示", "effect": "dark", "__fcType": "elAlert", "showIcon": true, "description": "说明文字"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入提示"}, "visibility": {"hidden": true, "readonly": false}, "componentKey": "elAlert", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "schemaVersion": "form-first-v1", "defaultFormKey": null}}',1,'2026-06-08 08:42:49',2,1,'2026-06-22 12:43:21',0), (2064179274808860674,1,'TTT','tbill_code','T订单','TRANSACTION',2064180247488929793,'ttt_tbill_code','tname','ionicons5:Accessibility','一个订单对象',1,0,'{"createMode": "DB_IMPORT"}','CHANGED','ttt_tbill_code',NULL,NULL,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "left", "fixed": null, "label": "name", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "input", "formatter": null}, {"align": "left", "fixed": null, "label": "code", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "input2", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 3, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 4, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "name", "order": 0, "visible": true, "collapsed": false, "fieldCode": "input", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "code", "order": 1, "visible": true, "collapsed": false, "fieldCode": "input2", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [{"type": "remoteParam", "ruleId": "linkage_input_input2", "enabled": true, "condition": {}, "matchMode": "remoteParam", "orgConfig": {"paramName": "input"}, "dictConfig": {"linkedDictType": "", "sourceDictType": "", "targetDictType": "", "parentValueSource": "sourceValue"}, "sourceField": "input", "targetField": "input2", "objectConfig": {"displayField": "", "targetObjectCode": ""}, "remoteConfig": {"url": "", "method": "GET", "paramName": "input", "valuePath": "data", "labelField": "label", "valueField": "value"}, "emptyStrategy": "empty", "dataSourceType": "remote", "clearOnSourceChange": true}], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 3, "columnGap": 16, "modalType": "drawer", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 3, "showActions": true, "formOpenMode": "drawer", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "ttt_tbill_code_default_form", "formName": "T订单表单", "settings": {"formAssets": [], "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "ttt_tbill_code_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 3, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "input", "label": "name", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入name"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "input", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_input2", "label": "code", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入code"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "input2", "columnName": "input2", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_subTable_2", "label": "明细表", "props": {"__fcType": "input", "disabled": true, "placeholder": "明细表组件,发布时绑定子对象关系"}, "layout": {"span": 3, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入明细表"}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "subTable", "fieldBinding": {"mode": "virtual", "locked": true, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "ttt_tbill_code_default_form", "formName": "T订单表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 3, "columnGap": 16, "modalType": "drawer", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 3, "showActions": true, "formOpenMode": "drawer", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "ttt_tbill_code_default_form", "formName": "T订单表单", "settings": {"formAssets": [], "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "ttt_tbill_code_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 3, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "input", "label": "name", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入name"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "input", "columnName": "input", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_input2", "label": "code", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入code"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "input2", "columnName": "input2", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_subTable_2", "label": "明细表", "props": {"__fcType": "input", "disabled": true, "placeholder": "明细表组件,发布时绑定子对象关系"}, "layout": {"span": 3, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": "请输入明细表"}, "visibility": {"hidden": false, "readonly": true}, "componentKey": "subTable", "fieldBinding": {"mode": "virtual", "locked": true, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "ttt_tbill_code_default_form"}}',1,'2026-06-09 10:54:24',2,1,'2026-07-17 14:35:08',0), (2064330294801244161,1,'BUSINESS','business_object','dddddd','MASTER',2066166061806657537,'business_object',NULL,NULL,NULL,1,0,'{"createMode": "DB_IMPORT"}','CHANGED','business_object',NULL,NULL,'{"formDesignerSchema": {"layout": {"size": "medium", "rowGap": 16, "columnGap": 16, "labelAlign": "right", "labelWidth": 100, "gridColumns": 2, "showFeedback": true, "inlineFeedback": false, "labelPlacement": "left", "hideRequiredAsterisk": false}, "formKey": "business_object_default_form", "formName": "dddddd表单", "settings": {"formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "business_object_default_form", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_fieldkxzkp", "label": "计数器", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入计数器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldkxzkp", "columnName": "fieldkxzkp", "createIfMissing": false}}, {"id": "cmp_input", "label": "输入框", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "input", "columnName": "input", "createIfMissing": true}}, {"id": "cmp_input2", "label": "输入框", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "input2", "columnName": "input2", "createIfMissing": true}}, {"id": "cmp_fieldkxzkp2", "label": "计数器", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入计数器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldkxzkp2", "columnName": "fieldkxzkp2", "createIfMissing": true}}], "schemaVersion": "form-first-v1"}}',1,'2026-06-09 20:54:30',2,1,'2026-06-17 15:33:36',0), (2064534584246165506,1,'IN_OUT','crm_follow_record','测试','MASTER',2064534587421253634,'in_out_crm_follow_record','subject',NULL,NULL,1,0,'{"createMode": "DB_IMPORT", "sourceTable": {"tableName": "crm_follow_record", "datasourceId": 1, "tableComment": "CRM跟进记录表"}}','CHANGED','in_out_crm_follow_record','2026-06-20 21:56:42',36,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "主题", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "subject", "formatter": null}, {"align": "right", "fixed": null, "label": "关联客户", "order": 1, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "customerId", "formatter": null}, {"align": "right", "fixed": null, "label": "关联商机", "order": 2, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "opportunityId", "formatter": null}, {"align": "left", "fixed": null, "label": "跟进方式", "order": 3, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "type", "formatter": "dictTag"}, {"align": "left", "fixed": null, "label": "跟进内容", "order": 4, "width": 220, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "content", "formatter": null}, {"align": "center", "fixed": null, "label": "跟进时间", "order": 5, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "followTime", "formatter": null}, {"align": "left", "fixed": null, "label": "静态下拉", "order": 6, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "fieldMqi5rog5", "formatter": "dictTag"}, {"align": "right", "fixed": null, "label": "负责人", "order": 7, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "assigneeId", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "主题", "order": 0, "visible": true, "readonly": true, "fieldCode": "subject", "formatter": null}, {"align": "right", "label": "关联客户", "order": 1, "visible": true, "readonly": true, "fieldCode": "customerId", "formatter": null}, {"align": "right", "label": "关联商机", "order": 2, "visible": true, "readonly": true, "fieldCode": "opportunityId", "formatter": null}, {"align": "left", "label": "跟进方式", "order": 3, "visible": true, "readonly": true, "fieldCode": "type", "formatter": "dictTag"}, {"align": "left", "label": "跟进内容", "order": 4, "visible": true, "readonly": true, "fieldCode": "content", "formatter": null}, {"align": "center", "label": "跟进时间", "order": 5, "visible": true, "readonly": true, "fieldCode": "followTime", "formatter": null}, {"align": "right", "label": "负责人", "order": 6, "visible": true, "readonly": true, "fieldCode": "assigneeId", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "主题", "order": 0, "visible": true, "collapsed": false, "fieldCode": "subject", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "关联客户", "order": 1, "visible": true, "collapsed": false, "fieldCode": "customerId", "matchMode": "eq", "componentKey": "input", "defaultValue": ""}, {"align": "left", "label": "关联商机", "order": 2, "visible": true, "collapsed": false, "fieldCode": "opportunityId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "跟进方式", "order": 3, "visible": true, "collapsed": false, "fieldCode": "type", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "跟进内容", "order": 4, "visible": true, "collapsed": false, "fieldCode": "content", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "跟进时间", "order": 5, "visible": true, "collapsed": false, "fieldCode": "followTime", "matchMode": "eq", "componentKey": "datetime", "defaultValue": null}, {"align": "left", "label": "静态下拉", "order": 6, "visible": true, "collapsed": false, "fieldCode": "fieldMqi5rog5", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": null}, {"align": "left", "label": "负责人", "order": 7, "visible": true, "collapsed": false, "fieldCode": "assigneeId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 1, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 1, "showActions": true, "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708", "formName": "测试表单弹窗弹窗", "settings": {"formAssets": [], "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708", "columnGap": 16, "labelAlign": "right", "gridColumns": 1, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_subject", "label": "主题", "props": {"required": true, "clearable": true, "maxlength": 256, "exportable": true, "importable": true, "searchable": false, "formVisible": true, "listVisible": true, "placeholder": "请输入主题", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入主题", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入主题"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "subject", "columnName": "subject", "createIfMissing": false}}, {"id": "cmp_customerId", "label": "关联客户", "props": {"badge": "", "__events": [{"id": "evt_1781591987555", "action": "setValue", "trigger": "change", "targetId": "", "condition": ""}], "required": false, "clearable": true, "maxlength": 11, "exportable": true, "importable": true, "searchable": false, "formVisible": true, "listVisible": true, "placeholder": "请输入关联客户", "defaultValue": "", "__designerStyle": {"opacity": 1, "widthMode": "default", "heightMode": "default", "borderStyle": "solid"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入关联客户"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerId", "columnName": "customer_id", "createIfMissing": false}}, {"id": "cmp_opportunityId", "label": "关联商机", "props": {"required": false, "clearable": true, "maxlength": 11, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请输入关联商机", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入关联商机"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "opportunityId", "columnName": "opportunity_id", "createIfMissing": false}}, {"id": "type", "label": "跟进方式", "props": {"__fc": {"effect": {"fetch": ""}}, "badge": "", "__events": [], "dictType": "pm_contact_role", "description": "", "placeholder": "请选择", "showFeedback": true}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择跟进方式"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "type", "columnName": "type", "createIfMissing": false}}, {"id": "cmp_content", "label": "跟进内容", "props": {"rows": 3, "type": "textarea", "required": false, "clearable": true, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请输入跟进内容", "defaultValue": null, "showWordLimit": true}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入跟进内容"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "content", "columnName": "content", "createIfMissing": false}}, {"id": "cmp_title_1781621812782", "label": "分组标题333", "props": {"__fcType": "fcTitle", "description": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入分组标题"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "title", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_button_1781660545595", "label": "按钮", "props": {"size": "medium", "text": "按钮", "type": "primary", "block": false, "round": false, "dashed": false, "__events": [{"id": "evt_1781660554968", "action": "openModal", "trigger": "click", "targetId": "", "whenValue": "", "modalTitle": "业务弹窗", "modalFormKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708_form_1781598183804", "modalContentMode": "formAsset"}], "__fcType": "button", "disabled": false, "secondary": false}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入按钮"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "button", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_followTime", "label": "跟进时间", "props": {"type": "datetime", "format": "YYYY-MM-DD HH:mm:ss", "required": false, "clearable": true, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请选择跟进时间", "valueFormat": "YYYY-MM-DD HH:mm:ss", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择跟进时间"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "datetime", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "followTime", "columnName": "follow_time", "createIfMissing": false}}, {"id": "cmp_table_1782026880355", "label": "表格布局", "props": {"columns": 2, "__designerStyle": {"borderStyle": "none"}}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_table_1782026880355_cell_1", "label": "单元格 1", "props": {"span": 1, "__designerStyle": {"borderStyle": "none"}}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_field_mqngy5gn", "label": "行政区划", "props": {"placeholder": "请选择行政区划"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "regionTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "ceshi_field", "columnName": "ceshi_field", "createIfMissing": true}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "tableGrid", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_table_1782026880355_cell_2", "label": "单元格 2", "props": {"span": 1}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "tableGrid", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "table", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_assigneeId", "label": "负责人", "props": {"required": false, "clearable": true, "maxlength": 11, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请输入负责人", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "assigneeId", "columnName": "assignee_id", "createIfMissing": false}}, {"id": "cmp_fieldCheckbox8", "label": "多选框", "props": {"options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}], "dictType": "", "required": false, "clearable": true, "maxlength": 255, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请选择多选框", "defaultValue": null, "referenceObjectCode": "", "referenceDisplayField": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入多选框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldCheckbox8", "columnName": "field_checkbox8", "createIfMissing": false}}, {"id": "orgSelect", "label": "组织选择", "props": {"clearable": true, "filterable": true, "placeholder": "请选择组织"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择组织选择"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orgSelect", "columnName": "org_select", "createIfMissing": false}}, {"id": "cmp_row_1782026878494", "label": "4 列栅格", "props": {"gutter": 16, "columns": 24}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_row_1782026878494_col_1", "label": "第 1 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_row_1782026878494_col_2", "label": "第 2 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_row_1782026878494_col_3", "label": "第 3 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_row_1782026878494_col_4", "label": "第 4 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "row", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "schemaVersion": "form-first-v2"}, "formKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708", "formName": "测试表单弹窗弹窗"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 1, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 1, "showActions": true, "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708", "formName": "测试表单弹窗弹窗", "settings": {"formAssets": [], "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "right", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708", "columnGap": 16, "labelAlign": "right", "gridColumns": 1, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_subject", "label": "主题", "props": {"required": true, "clearable": true, "maxlength": 256, "exportable": true, "importable": true, "searchable": false, "formVisible": true, "listVisible": true, "placeholder": "请输入主题", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [{"message": "请输入主题", "trigger": ["blur", "change"], "required": true}], "required": true, "requiredMessage": "请输入主题"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "subject", "columnName": "subject", "createIfMissing": false}}, {"id": "cmp_customerId", "label": "关联客户", "props": {"badge": "", "__events": [{"id": "evt_1781591987555", "action": "setValue", "trigger": "change", "targetId": "", "condition": ""}], "required": false, "clearable": true, "maxlength": 11, "exportable": true, "importable": true, "searchable": false, "formVisible": true, "listVisible": true, "placeholder": "请输入关联客户", "defaultValue": "", "__designerStyle": {"opacity": 1, "widthMode": "default", "heightMode": "default", "borderStyle": "solid"}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入关联客户"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "customerId", "columnName": "customer_id", "createIfMissing": false}}, {"id": "cmp_opportunityId", "label": "关联商机", "props": {"required": false, "clearable": true, "maxlength": 11, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请输入关联商机", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入关联商机"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "opportunityId", "columnName": "opportunity_id", "createIfMissing": false}}, {"id": "type", "label": "跟进方式", "props": {"__fc": {"effect": {"fetch": ""}}, "badge": "", "__events": [], "dictType": "pm_contact_role", "description": "", "placeholder": "请选择", "showFeedback": true}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择跟进方式"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "type", "columnName": "type", "createIfMissing": false}}, {"id": "cmp_content", "label": "跟进内容", "props": {"rows": 3, "type": "textarea", "required": false, "clearable": true, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请输入跟进内容", "defaultValue": null, "showWordLimit": true}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入跟进内容"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "content", "columnName": "content", "createIfMissing": false}}, {"id": "cmp_title_1781621812782", "label": "分组标题333", "props": {"__fcType": "fcTitle", "description": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入分组标题"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "title", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_button_1781660545595", "label": "按钮", "props": {"size": "medium", "text": "按钮", "type": "primary", "block": false, "round": false, "dashed": false, "__events": [{"id": "evt_1781660554968", "action": "openModal", "trigger": "click", "targetId": "", "whenValue": "", "modalTitle": "业务弹窗", "modalFormKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708_form_1781598183804", "modalContentMode": "formAsset"}], "__fcType": "button", "disabled": false, "secondary": false}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入按钮"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "button", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_followTime", "label": "跟进时间", "props": {"type": "datetime", "format": "YYYY-MM-DD HH:mm:ss", "required": false, "clearable": true, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请选择跟进时间", "valueFormat": "YYYY-MM-DD HH:mm:ss", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择跟进时间"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "datetime", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "followTime", "columnName": "follow_time", "createIfMissing": false}}, {"id": "cmp_table_1782026880355", "label": "表格布局", "props": {"columns": 2, "__designerStyle": {"borderStyle": "none"}}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_table_1782026880355_cell_1", "label": "单元格 1", "props": {"span": 1, "__designerStyle": {"borderStyle": "none"}}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_field_mqngy5gn", "label": "行政区划", "props": {"placeholder": "请选择行政区划"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "regionTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "ceshi_field", "columnName": "ceshi_field", "createIfMissing": true}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "tableGrid", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_table_1782026880355_cell_2", "label": "单元格 2", "props": {"span": 1}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "tableGrid", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "table", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_assigneeId", "label": "负责人", "props": {"required": false, "clearable": true, "maxlength": 11, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请输入负责人", "defaultValue": null}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入负责人"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "assigneeId", "columnName": "assignee_id", "createIfMissing": false}}, {"id": "cmp_fieldCheckbox8", "label": "多选框", "props": {"options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}], "dictType": "", "required": false, "clearable": true, "maxlength": 255, "exportable": true, "importable": true, "searchable": false, "formVisible": false, "listVisible": true, "placeholder": "请选择多选框", "defaultValue": null, "referenceObjectCode": "", "referenceDisplayField": ""}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入多选框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fieldCheckbox8", "columnName": "field_checkbox8", "createIfMissing": false}}, {"id": "orgSelect", "label": "组织选择", "props": {"clearable": true, "filterable": true, "placeholder": "请选择组织"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择组织选择"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orgSelect", "columnName": "org_select", "createIfMissing": false}}, {"id": "cmp_row_1782026878494", "label": "4 列栅格", "props": {"gutter": 16, "columns": 24}, "layout": {"span": 1, "align": "left"}, "children": [{"id": "cmp_row_1782026878494_col_1", "label": "第 1 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_row_1782026878494_col_2", "label": "第 2 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_row_1782026878494_col_3", "label": "第 3 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}, {"id": "cmp_row_1782026878494_col_4", "label": "第 4 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "row", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}}], "schemaVersion": "form-first-v2", "defaultFormKey": "in_out_crm_follow_record_default_form_dialog_1781595487477_dialog_1781595669708"}}',1,'2026-06-10 10:26:17',2,1,'2026-06-21 15:32:55',0), (2068689221225574401,1,'TEST_DATASOURCE','order_management','订单管理','MASTER',2068689288594485250,'test_datasource_order_management',NULL,NULL,NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"dbType": "MySQL", "allowDdl": true, "readonly": false, "riskLevel": "LOW", "tableMode": "CREATE", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 4, "datasourceCode": "lowcode", "datasourceName": "低代码测试库"}, "runtimeDatasourceId": 4}','PUBLISHED','test_datasource_order_management','2026-06-26 07:37:31',3,'{"viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "姓名", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "nickName", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "姓名", "order": 0, "visible": true, "readonly": true, "fieldCode": "nickName", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "姓名", "order": 0, "visible": true, "collapsed": false, "fieldCode": "nickName", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "left", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "top", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "test_datasource_order_management_default_form_form_1782185077971", "formName": "表单 2", "settings": {"formAssets": [], "governance": {"events": []}, "formCreateOptions": {"form": {"size": "default", "inline": false, "labelWidth": "100px", "showMessage": true, "inlineMessage": false, "labelPosition": "top", "hideRequiredAsterisk": false}, "_forge": {"size": "medium", "rowGap": 16, "formKey": "test_datasource_order_management_default_form_form_1782185077971", "columnGap": 16, "labelAlign": "right", "gridColumns": 2, "showFeedback": true, "schemaVersion": "form-first-v1", "inlineFeedback": false, "hideRequiredAsterisk": false}, "resetBtn": {"show": false, "innerText": "重置"}, "submitBtn": {"show": false, "innerText": "提交"}}}, "components": [{"id": "cmp_nickName", "label": "姓名", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入姓名"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "nickName", "columnName": "nick_name", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_signaturePad_1", "label": "手写签名", "props": {"__fcType": "signaturePad"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入手写签名"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "signaturePad", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldTextarea2", "label": "多行输入框", "props": {"rows": 3, "type": "textarea", "__events": [{"id": "evt_1782430611133", "action": "openModal", "trigger": "click", "targetId": "cmp_nickName", "whenValue": "", "modalTitle": "业务弹窗", "modalFormKey": "current", "modalContentMode": "formAsset"}], "showWordLimit": true}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入多行输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldTextarea3", "columnName": "field_textarea2", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_row_1782266951109", "label": "4 列栅格", "props": {"gutter": 16, "columns": 24}, "layout": {"span": 2, "align": "left"}, "children": [{"id": "cmp_row_1782266951109_col_1", "label": "第 1 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [{"id": "cmp_fieldCascader5", "label": "级联选择器", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项201", "value": "1", "children": [{"label": "选项101", "value": "2", "children": [{"label": "选项01", "value": "3"}, {"label": "选项02", "value": "4"}, {"label": "选项03", "value": "5"}]}, {"label": "选项102", "value": "6", "children": [{"label": "选项01", "value": "7"}, {"label": "选项02", "value": "8"}, {"label": "选项03", "value": "9"}]}, {"label": "选项103", "value": "10", "children": [{"label": "选项01", "value": "11"}, {"label": "选项02", "value": "12"}, {"label": "选项03", "value": "13"}]}]}, {"label": "选项202", "value": "14", "children": [{"label": "选项101", "value": "15", "children": [{"label": "选项01", "value": "16"}, {"label": "选项02", "value": "17"}, {"label": "选项03", "value": "18"}]}, {"label": "选项102", "value": "19", "children": [{"label": "选项01", "value": "20"}, {"label": "选项02", "value": "21"}, {"label": "选项03", "value": "22"}]}, {"label": "选项103", "value": "23", "children": [{"label": "选项01", "value": "24"}, {"label": "选项02", "value": "25"}, {"label": "选项03", "value": "26"}]}]}, {"label": "选项203", "value": "27", "children": [{"label": "选项101", "value": "28", "children": [{"label": "选项01", "value": "29"}, {"label": "选项02", "value": "30"}, {"label": "选项03", "value": "31"}]}, {"label": "选项102", "value": "32", "children": [{"label": "选项01", "value": "33"}, {"label": "选项02", "value": "34"}, {"label": "选项03", "value": "35"}]}, {"label": "选项103", "value": "36", "children": [{"label": "选项01", "value": "37"}, {"label": "选项02", "value": "38"}, {"label": "选项03", "value": "39"}]}]}]}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择级联选择器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "cascader", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldCascader6", "columnName": "field_cascader5", "createIfMissing": true}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_row_1782266951109_col_2", "label": "第 2 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_row_1782266951109_col_3", "label": "第 3 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_row_1782266951109_col_4", "label": "第 4 列", "props": {"span": 6}, "layout": {"span": 6, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "col", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "row", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_elCard_4", "label": "标题", "props": {"__fc": {"style": {"width": "100%"}}, "header": "标题", "__fcType": "elCard"}, "layout": {"span": 2, "align": "left"}, "children": [{"id": "cmp_fieldSelect1", "label": "选择器", "props": {"__fc": {"effect": {"fetch": ""}}, "options": [{"label": "选项01", "value": "1"}, {"label": "选项02", "value": "2"}, {"label": "选项03", "value": "3"}], "_optionType": 1}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请选择选择器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "select", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldSelect1", "columnName": "field_select1", "createIfMissing": true}, "advancedProps": {}}], "validation": {"rules": [], "required": false, "requiredMessage": "请输入标题"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "elCard", "fieldBinding": {"mode": "virtual", "locked": false, "source": "designer", "fieldCode": "", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fieldInput3", "label": "密码输入框", "props": {"type": "password"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入密码输入框"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput8", "columnName": "field_input3", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber4", "label": "计数器", "props": {}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": "请输入计数器"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldNumber9", "columnName": "field_number4", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": null}}',1,'2026-06-21 21:35:19',2,1,'2026-06-26 07:37:32',0), (2070062408473559042,1,'ASSET_DEVICE_SYSTEM','asset_device_create','资产设备维护','MASTER',2070089204543832066,'asset_device_system_asset_device_create',NULL,'ionicons5:Build',NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"dbType": "MySQL", "allowDdl": true, "readonly": false, "riskLevel": "LOW", "tableMode": "CREATE", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 4, "datasourceCode": "lowcode", "datasourceName": "低代码测试库"}, "runtimeDatasourceId": 4}','CHANGED','asset_device_system_asset_device_create',NULL,NULL,'{"formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 3, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 3, "showActions": true, "formOpenMode": "tabWorkspace", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "asset_device_create_form", "formName": "资产设备维护表单", "settings": {"formAssets": [], "defaultFormKey": "asset_device_create_form"}, "components": [{"id": "cmp_fieldOrgTreeSelect", "label": "部门选择", "props": {"placeholder": "请选择部门选择"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldOrgTreeSelect", "columnName": "field_org_tree_select", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldUserSelect", "label": "人员选择", "props": {"placeholder": "请选择人员选择"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldUserSelect", "columnName": "field_user_select", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "输入框", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput", "columnName": "field_input", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput2", "label": "输入框", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput2", "columnName": "field_input2", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput3", "label": "输入框", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput3", "columnName": "field_input3", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "asset_device_create_form", "formName": "资产设备维护表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 3, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 3, "showActions": true, "formOpenMode": "tabWorkspace", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "asset_device_create_form", "formName": "资产设备维护表单", "settings": {"formAssets": [], "defaultFormKey": "asset_device_create_form"}, "components": [{"id": "cmp_fieldOrgTreeSelect", "label": "部门选择", "props": {"placeholder": "请选择部门选择"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "orgTreeSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldOrgTreeSelect", "columnName": "field_org_tree_select", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldUserSelect", "label": "人员选择", "props": {"placeholder": "请选择人员选择"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldUserSelect", "columnName": "field_user_select", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "输入框", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput", "columnName": "field_input", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput2", "label": "输入框", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput2", "columnName": "field_input2", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput3", "label": "输入框", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput3", "columnName": "field_input3", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "asset_device_create_form"}}',1,'2026-06-25 16:31:53',6,1,'2026-07-22 14:13:14',0), (2070306429540286465,1,'KHXS','customer','客户信息','MASTER',NULL,'khxs_customer',NULL,'ionicons5:Man',NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"dbType": "MySQL", "allowDdl": false, "readonly": false, "riskLevel": "MEDIUM", "tableMode": "CREATE", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 1, "datasourceCode": "default", "datasourceName": "默认数据源"}, "runtimeDatasourceId": 1}','DRAFT',NULL,NULL,NULL,NULL,1,'2026-06-26 08:41:32',6,1,'2026-06-26 08:41:32',0), (2071191121076465666,1,'LSJY','lsjy_desk','桌台','MASTER',2071509905024790529,'lsjy_desk','deskName',NULL,'店铺桌台管理',1,0,'{"createMode": "AI_GENERATE", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','CHANGED','lsjy_desk','2026-06-29 16:45:16',1,'{"actions": [{"status": 1, "visible": true, "clientKey": "custom_action_1783584860579_e58phv", "sortOrder": 10, "actionCode": "custom_action_1783584860579_e58phv", "actionName": "自定义按钮", "actionType": "OPEN_PAGE", "permission": "", "confirmText": "", "actionConfig": {"url": "", "method": "POST", "params": [], "apiCode": "", "apiName": "", "clientKey": "custom_action_1783584860579_e58phv", "openTarget": "_self", "targetPath": "", "apiConfigId": null, "targetFormKey": "", "capabilityCode": "", "successBehavior": "none"}, "actionPosition": "ROW", "failureMessage": "", "successMessage": "", "confirmRequired": false}], "viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "left", "fixed": null, "label": "类型", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "desktype", "formatter": null}, {"align": "left", "fixed": null, "label": "名称", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "deskname", "formatter": null}, {"align": "right", "fixed": null, "label": "容纳数", "order": 3, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "deskNum", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 4, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 5, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}, {"align": "left", "fixed": null, "label": "类型", "order": 6, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "deskType", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "类型", "order": 0, "visible": true, "readonly": true, "fieldCode": "desktype", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "类型", "order": 0, "visible": true, "collapsed": false, "fieldCode": "desktype", "matchMode": "like", "componentKey": "input", "defaultValue": "1"}, {"align": "left", "label": "名称", "order": 1, "visible": true, "collapsed": false, "fieldCode": "deskname", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "容纳数", "order": 2, "visible": true, "collapsed": false, "fieldCode": "deskNum", "matchMode": "eq", "componentKey": "input", "defaultValue": "2"}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "lsjy_desk_default_form", "formName": "桌台表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldRadio", "label": "类型", "props": {"options": [{"label": "大厅", "value": "1"}, {"label": "VIP", "value": "2"}], "placeholder": "请选择单选", "defaultValue": "1"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "类型不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "radio", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "deskType", "columnName": "desk_type", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "名称", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "名称不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "deskname", "columnName": "deskname", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "容纳数", "props": {"min": 2, "placeholder": "请输入数字", "defaultValue": "2"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "deskNum", "columnName": "desk_num", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "lsjy_desk_default_form", "formName": "桌台表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "lsjy_desk_default_form", "formName": "桌台表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldRadio", "label": "类型", "props": {"options": [{"label": "大厅", "value": "1"}, {"label": "VIP", "value": "2"}], "placeholder": "请选择单选", "defaultValue": "1"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "类型不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "radio", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "deskType", "columnName": "desk_type", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput", "label": "名称", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "名称不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "deskname", "columnName": "deskname", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "容纳数", "props": {"min": 2, "placeholder": "请输入数字", "defaultValue": "2"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "deskNum", "columnName": "desk_num", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "lsjy_desk_default_form"}}',1,'2026-06-28 19:16:59',6,1,'2026-07-09 16:18:24',0); INSERT INTO ai_business_object (id,tenant_id,suite_code,object_code,object_name,object_type,model_id,model_code,display_field,icon,description,status,sort_order,`options`,design_status,config_key,last_publish_time,last_publish_version,designer_options,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (2071759418675212290,1,'MANAGEMENT','customer','客户','MASTER',2071759716810534913,'management_customer',NULL,NULL,NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','CHANGED','management_customer',NULL,NULL,'{"viewSchema": {"list": {"columns": [{"align": "right", "fixed": null, "label": "ID", "order": 0, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 0, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "right", "label": "ID", "order": 0, "visible": true, "collapsed": false, "fieldCode": "id", "matchMode": "eq", "componentKey": "number", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "management_customer_default_form", "formName": "客户表单", "settings": {}, "components": [{"id": "cmp_fieldInput", "label": "客户名称", "props": {"placeholder": "请输入输入框", "__designerStyle": {}}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "输入框不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput", "columnName": "field_input", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput2", "label": "地址", "props": {"placeholder": "请输入输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput2", "columnName": "field_input2", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldUserSelect", "label": "业务员", "props": {"placeholder": "请选择人员选择"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "userSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldUserSelect", "columnName": "field_user_select", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v1", "defaultFormKey": null}}',1,'2026-06-30 08:55:11',6,1,'2026-06-30 08:56:53',0), (2072205568382087169,1,'PURCHASE','material','物料管理','MASTER',2072213251357159426,'purchase_material',NULL,NULL,NULL,0,0,'{"createMode": "BLANK", "runtimeDatasource": {"dbType": "MySQL", "allowDdl": false, "readonly": false, "riskLevel": "MEDIUM", "tableMode": "CREATE", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 1, "datasourceCode": "default", "datasourceName": "默认数据源"}, "runtimeDatasourceId": 1}','PUBLISHED','purchase_material','2026-07-02 17:06:09',8,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "物料编码", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "code", "formatter": null}, {"align": "left", "fixed": null, "label": "物料名称", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "name", "formatter": null}, {"align": "left", "fixed": null, "label": "规格型号", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "specModel", "formatter": null}, {"align": "left", "fixed": null, "label": "单位", "order": 3, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "unit", "formatter": null}, {"align": "right", "fixed": null, "label": "成交单价", "order": 4, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "amount", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 5, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": "dictTag"}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "物料编码", "order": 0, "visible": true, "collapsed": false, "fieldCode": "code", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "物料名称", "order": 1, "visible": true, "collapsed": false, "fieldCode": "name", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "规格型号", "order": 2, "visible": true, "collapsed": false, "fieldCode": "specModel", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "单位", "order": 3, "visible": true, "collapsed": false, "fieldCode": "unit", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "成交单价", "order": 4, "visible": true, "collapsed": false, "fieldCode": "amount", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 5, "visible": true, "collapsed": false, "fieldCode": "status", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": "1"}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "flat", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "purchase_material_default_form", "formName": "物料管理表单", "settings": {"formAssets": [], "governance": {"events": []}}, "components": [{"id": "cmp_fieldInput", "label": "物料编码", "props": {"disabled": false, "readonly": true, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "material_code", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请填写物料编码"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "code", "columnName": "code", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_2", "label": "物料名称", "props": {"placeholder": "请填写物料名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "物料名称不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "name", "columnName": "name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3", "label": "规格型号", "props": {"placeholder": "请输入规格型号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "规格型号不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "specModel", "columnName": "spec_model", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3_copy", "label": "单位", "props": {"placeholder": "请输入单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "unit", "columnName": "unit", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "成交单价", "props": {"placeholder": "请输入成交单价"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "成交单价不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "amount", "columnName": "amount", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldDictSelect", "label": "状态", "props": {"dictType": "marter_status", "placeholder": "请选择状态", "defaultValue": "1"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "状态不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "status", "columnName": "status", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "purchase_material_default_form", "formName": "物料管理表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "flat", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "purchase_material_default_form", "formName": "物料管理表单", "settings": {"formAssets": [], "governance": {"events": []}}, "components": [{"id": "cmp_fieldInput", "label": "物料编码", "props": {"disabled": false, "readonly": true, "generation": {"mode": "CODE_RULE", "type": "CODE_RULE", "enabled": true, "trigger": "ON_CREATE", "readonly": true, "ruleCode": "material_code", "fillPolicy": "EMPTY_ONLY"}, "placeholder": "请填写物料编码"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": true, "readonly": true}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "code", "columnName": "code", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_2", "label": "物料名称", "props": {"placeholder": "请填写物料名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "物料名称不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "name", "columnName": "name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3", "label": "规格型号", "props": {"placeholder": "请输入规格型号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "规格型号不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "specModel", "columnName": "spec_model", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3_copy", "label": "单位", "props": {"placeholder": "请输入单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "unit", "columnName": "unit", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "成交单价", "props": {"placeholder": "请输入成交单价"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "成交单价不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "amount", "columnName": "amount", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldDictSelect", "label": "状态", "props": {"dictType": "marter_status", "placeholder": "请选择状态", "defaultValue": "1"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "状态不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "status", "columnName": "status", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "purchase_material_default_form"}}',1,'2026-07-01 14:28:02',6,1,'2026-07-03 22:31:23',0), (2072243167373045761,1,'PURCHASE','warehouse_management','仓库管理','MASTER',2072244861049778178,'purchase_warehouse_management',NULL,NULL,NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','PUBLISHED','purchase_warehouse_management','2026-07-01 17:13:08',3,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "center", "fixed": null, "label": "仓库名称/位置", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warehouseName", "formatter": null}, {"align": "center", "fixed": null, "label": "类型", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "type", "formatter": "dictTag"}, {"align": "center", "fixed": null, "label": "物料种类", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialClass", "formatter": null}, {"align": "center", "fixed": null, "label": "库存总量", "order": 3, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "inventoryQuantity", "formatter": null}, {"align": "center", "fixed": null, "label": "预警物料", "order": 4, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "materialWarn", "formatter": null}, {"align": "center", "fixed": null, "label": "本月入库", "order": 5, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "inventoryEntry", "formatter": null}, {"align": "center", "fixed": null, "label": "本月出库", "order": 6, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "warehouseDispatch", "formatter": null}, {"align": "center", "fixed": null, "label": "关联项目", "order": 7, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "projectId", "formatter": null}, {"align": "right", "fixed": null, "label": "ID", "order": 8, "width": 100, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "id", "formatter": null}, {"align": "center", "fixed": null, "label": "创建时间", "order": 9, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "createTime", "formatter": null}, {"align": "center", "fixed": null, "label": "更新时间", "order": 10, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "updateTime", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "仓库名称/位置", "order": 0, "visible": true, "readonly": true, "fieldCode": "warehouseName", "formatter": null}, {"align": "left", "label": "类型", "order": 1, "visible": true, "readonly": true, "fieldCode": "type", "formatter": "dictTag"}, {"align": "right", "label": "物料种类", "order": 2, "visible": true, "readonly": true, "fieldCode": "materialClass", "formatter": null}, {"align": "left", "label": "库存总量", "order": 3, "visible": true, "readonly": true, "fieldCode": "inventoryQuantity", "formatter": null}, {"align": "left", "label": "预警物料", "order": 4, "visible": true, "readonly": true, "fieldCode": "materialWarn", "formatter": null}, {"align": "right", "label": "本月入库", "order": 5, "visible": true, "readonly": true, "fieldCode": "inventoryEntry", "formatter": null}, {"align": "left", "label": "本月出库", "order": 6, "visible": true, "readonly": true, "fieldCode": "warehouseDispatch", "formatter": null}, {"align": "left", "label": "关联项目", "order": 7, "visible": true, "readonly": true, "fieldCode": "projectId", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "仓库名称/位置", "order": 0, "visible": true, "collapsed": false, "fieldCode": "warehouseName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "类型", "order": 1, "visible": true, "collapsed": false, "fieldCode": "type", "matchMode": "eq", "componentKey": "dictSelect", "defaultValue": "1"}, {"align": "left", "label": "物料种类", "order": 2, "visible": true, "collapsed": false, "fieldCode": "materialClass", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "关联项目", "order": 3, "visible": true, "collapsed": false, "fieldCode": "projectId", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "purchase_warehouse_management_default_form", "formName": "仓库管理表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldInput", "label": "仓库名称/位置", "props": {"placeholder": "请填写仓库名称/位置"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "仓库名称/位置不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "warehouseName", "columnName": "warehouse_name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldDictSelect", "label": "类型", "props": {"dictType": "workhosue_type", "placeholder": "请选择类型", "defaultValue": "1"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "类型不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "type", "columnName": "type", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "物料种类", "props": {"placeholder": "请填写物料种类"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "materialClass", "columnName": "material_class", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_2", "label": "库存总量", "props": {"placeholder": "请填写库存总量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "inventoryQuantity", "columnName": "inventory_quantity", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3", "label": "预警物料", "props": {"placeholder": "请填写预警物料"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "materialWarn", "columnName": "material_warn", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber_2", "label": "本月入库", "props": {"placeholder": "请填写本月入库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "inventoryEntry", "columnName": "inventory_entry", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_4", "label": "本月出库", "props": {"placeholder": "请填写本月出库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "warehouseDispatch", "columnName": "warehouse_dispatch", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_5", "label": "关联项目", "props": {"placeholder": "请填写关联项目"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "projectId", "columnName": "project_id", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "purchase_warehouse_management_default_form", "formName": "仓库管理表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "purchase_warehouse_management_default_form", "formName": "仓库管理表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldInput", "label": "仓库名称/位置", "props": {"placeholder": "请填写仓库名称/位置"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "仓库名称/位置不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "warehouseName", "columnName": "warehouse_name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldDictSelect", "label": "类型", "props": {"dictType": "workhosue_type", "placeholder": "请选择类型", "defaultValue": "1"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "类型不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "dictSelect", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "type", "columnName": "type", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "物料种类", "props": {"placeholder": "请填写物料种类"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "materialClass", "columnName": "material_class", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_2", "label": "库存总量", "props": {"placeholder": "请填写库存总量"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "inventoryQuantity", "columnName": "inventory_quantity", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3", "label": "预警物料", "props": {"placeholder": "请填写预警物料"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "materialWarn", "columnName": "material_warn", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber_2", "label": "本月入库", "props": {"placeholder": "请填写本月入库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "inventoryEntry", "columnName": "inventory_entry", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_4", "label": "本月出库", "props": {"placeholder": "请填写本月出库"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "warehouseDispatch", "columnName": "warehouse_dispatch", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_5", "label": "关联项目", "props": {"placeholder": "请填写关联项目"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "projectId", "columnName": "project_id", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "purchase_warehouse_management_default_form"}}',1,'2026-07-01 16:57:26',6,1,'2026-07-01 17:13:08',0), (2072248915922530306,1,'PURCHASE','procurement','采购管理','MASTER',2072249547769262082,'purchase_procurement',NULL,NULL,NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','CHANGED','purchase_procurement','2026-07-14 11:08:11',1,'{"databaseSync": {"status": "IN_SYNC", "message": "数据库结构同步成功", "ddlCount": 1, "syncTime": "2026-07-14T11:06:43.704819", "designVersion": 2}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "purchase_procurement_default_form", "formName": "采购管理表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldInput", "label": "采购单号", "props": {"placeholder": "请填写采购单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "采购单号不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "orderNo", "columnName": "order_no", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_2", "label": "项目名称", "props": {"placeholder": "请填写项目名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "项目名称不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "projectName", "columnName": "project_name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3", "label": "供应商", "props": {"placeholder": "请填写供应商"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "供应商不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "supplierName", "columnName": "supplier_name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "采购金额", "props": {"placeholder": "请填写采购金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "采购金额不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "amount", "columnName": "amount", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_4", "label": "采购人", "props": {"placeholder": "请填写采购人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "采购人不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "purchaser", "columnName": "purchaser", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldDate", "label": "申请日期", "props": {"placeholder": "请选择申请日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "applyDate", "columnName": "apply_date", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "purchase_procurement_default_form", "formName": "采购管理表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "purchase_procurement_default_form", "formName": "采购管理表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldInput", "label": "采购单号", "props": {"placeholder": "请填写采购单号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "采购单号不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "orderNo", "columnName": "order_no", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_2", "label": "项目名称", "props": {"placeholder": "请填写项目名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "项目名称不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "projectName", "columnName": "project_name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_3", "label": "供应商", "props": {"placeholder": "请填写供应商"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "供应商不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "supplierName", "columnName": "supplier_name", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldNumber", "label": "采购金额", "props": {"placeholder": "请填写采购金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "采购金额不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "amount", "columnName": "amount", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldInput_4", "label": "采购人", "props": {"placeholder": "请填写采购人"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": true, "requiredMessage": "采购人不能为空"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "purchaser", "columnName": "purchaser", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldDate", "label": "申请日期", "props": {"placeholder": "请选择申请日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "applyDate", "columnName": "apply_date", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "purchase_procurement_default_form"}}',1,'2026-07-01 17:20:17',6,1,'2026-07-22 14:19:05',0), (2073076640056082434,1,'SHD','business_object','送货单','MASTER',NULL,'shd_business_object',NULL,NULL,NULL,1,0,'{"createMode": "AI_GENERATE", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','DRAFT',NULL,NULL,NULL,NULL,1,'2026-07-04 00:09:22',6,1,'2026-07-04 00:09:22',0), (2074032071544991746,1,'PROCUREMENT_WAREHOUSE','product','产品','MASTER',2074053276020830209,'procurement_warehouse_product',NULL,NULL,NULL,1,0,'{"createMode": "AI_GENERATE", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','CHANGED','procurement_warehouse_product','2026-07-20 10:52:30',3,'{"formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_product_default_form", "formName": "产品表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldInput", "label": "输入框", "props": {"placeholder": "请填写输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput", "columnName": "field_input", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldTextarea", "label": "多行文本", "props": {"placeholder": "请填写多行文本"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldTextarea", "columnName": "field_textarea", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "procurement_warehouse_product_default_form", "formName": "产品表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_product_default_form", "formName": "产品表单", "settings": {"formAssets": []}, "components": [{"id": "cmp_fieldInput", "label": "输入框", "props": {"placeholder": "请填写输入框"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldInput", "columnName": "field_input", "createIfMissing": true}, "advancedProps": {}}, {"id": "cmp_fieldTextarea", "label": "多行文本", "props": {"placeholder": "请填写多行文本"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "designer", "fieldCode": "fieldTextarea", "columnName": "field_textarea", "createIfMissing": true}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "procurement_warehouse_product_default_form"}}',1,'2026-07-06 15:25:54',6,1,'2026-07-20 10:53:04',0), (2076221038537256961,1,'SALES','sales_order','sales_order','MASTER',NULL,'sales_order',NULL,'ionicons5:Albums',NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','DRAFT',NULL,NULL,NULL,NULL,1,'2026-07-12 16:24:05',6,1,'2026-07-12 16:24:05',0), (2077005237708652545,1,'PROCUREMENT_WAREHOUSE','tt_ai_prompt_template','AI提示词模板库','MASTER',2077005241085067265,'procurement_warehouse_tt_ai_prompt_template','orderNo',NULL,NULL,1,0,'{"createMode": "DB_IMPORT", "sourceTable": {"tableName": "tf_f_order_sales_order", "datasourceId": 5, "tableComment": "销售订单"}, "runtimeDatasource": {"dbType": "MySQL", "allowDdl": true, "readonly": false, "riskLevel": "LOW", "tableMode": "EXISTING", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 5, "datasourceCode": "main", "datasourceName": "应用数据源"}, "runtimeDatasourceId": 5}','CHANGED','procurement_warehouse_tt_ai_prompt_template',NULL,NULL,'{}',1,'2026-07-14 20:20:12',6,1,'2026-07-14 20:20:13',0), (2077005408613957634,1,'PROCUREMENT_WAREHOUSE','tf_f_order','订单基本信息','MASTER',2077005410191015937,'procurement_warehouse_tf_f_order','orderCode',NULL,NULL,1,0,'{"createMode": "DB_IMPORT", "sourceTable": {"tableName": "tf_f_order", "datasourceId": 5, "tableComment": "订单基本信息"}, "runtimeDatasource": {"dbType": "MySQL", "allowDdl": true, "readonly": false, "riskLevel": "LOW", "tableMode": "EXISTING", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 5, "datasourceCode": "main", "datasourceName": "应用数据源"}, "runtimeDatasourceId": 5}','CHANGED','procurement_warehouse_tf_f_order','2026-07-20 10:03:15',6,'{"actions": [], "viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "订单编码", "order": 1, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderCode", "formatter": null}, {"align": "left", "fixed": null, "label": "订单名称", "order": 2, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderName", "formatter": null}, {"align": "center", "fixed": null, "label": "下单时间", "order": 3, "width": 180, "visible": true, "minWidth": null, "sortable": true, "fieldCode": "orderTime", "formatter": null}, {"align": "left", "fixed": null, "label": "订单状态", "order": 4, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderStatus", "formatter": null}, {"align": "left", "fixed": null, "label": "客户手机号", "order": 5, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "custPhone", "formatter": null}, {"align": "right", "fixed": null, "label": "订单分类", "order": 6, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderClass", "formatter": null}, {"align": "left", "fixed": null, "label": "文件", "order": 7, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "fileId", "formatter": null}, {"align": "left", "fixed": null, "label": "归属组织", "order": 8, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orgId", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "订单编码", "order": 0, "visible": true, "readonly": true, "fieldCode": "orderCode", "formatter": null}, {"align": "left", "label": "订单名称", "order": 1, "visible": true, "readonly": true, "fieldCode": "orderName", "formatter": null}, {"align": "center", "label": "下单时间", "order": 2, "visible": true, "readonly": true, "fieldCode": "orderTime", "formatter": null}, {"align": "left", "label": "订单状态", "order": 3, "visible": true, "readonly": true, "fieldCode": "orderStatus", "formatter": null}, {"align": "left", "label": "客户手机号", "order": 4, "visible": true, "readonly": true, "fieldCode": "custPhone", "formatter": null}, {"align": "right", "label": "订单分类", "order": 5, "visible": true, "readonly": true, "fieldCode": "orderClass", "formatter": null}, {"align": "left", "label": "文件", "order": 6, "visible": true, "readonly": true, "fieldCode": "fileId", "formatter": null}, {"align": "left", "label": "归属组织", "order": 7, "visible": true, "readonly": true, "fieldCode": "orgId", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "订单编码", "order": 0, "visible": true, "collapsed": false, "fieldCode": "orderCode", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "订单名称", "order": 1, "visible": true, "collapsed": false, "fieldCode": "orderName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "下单时间", "order": 2, "visible": true, "collapsed": false, "fieldCode": "orderTime", "matchMode": "eq", "componentKey": "datetime", "defaultValue": null}, {"align": "left", "label": "订单状态", "order": 3, "visible": true, "collapsed": false, "fieldCode": "orderStatus", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "客户手机号", "order": 4, "visible": true, "collapsed": false, "fieldCode": "custPhone", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "订单分类", "order": 5, "visible": true, "collapsed": false, "fieldCode": "orderClass", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "文件", "order": 6, "visible": true, "collapsed": false, "fieldCode": "fileId", "matchMode": "eq", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "归属组织", "order": 7, "visible": true, "collapsed": false, "fieldCode": "orgId", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_tf_f_order_default_form", "formName": "订单基本信息表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_orderCode", "label": "订单编码", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入订单编码"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单编码"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderName", "label": "订单名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入订单名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderTime", "label": "下单时间", "props": {"clearable": true, "placeholder": "请选择下单时间"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "datetime", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderTime", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderStatus", "label": "订单状态", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入订单状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderStatus", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_custPhone", "label": "客户手机号", "props": {"clearable": true, "maxlength": 20, "placeholder": "请输入客户手机号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "custPhone", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderClass", "label": "订单分类", "props": {"clearable": true, "placeholder": "请输入订单分类"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderClass", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fileId", "label": "文件", "props": {"clearable": true, "maxlength": 50, "placeholder": "请选择文件"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "fileUpload", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fileId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orgId", "label": "归属组织", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入归属组织"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orgId", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "procurement_warehouse_tf_f_order_default_form", "formName": "订单基本信息表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_tf_f_order_default_form", "formName": "订单基本信息表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_orderCode", "label": "订单编码", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入订单编码"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单编码"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderCode", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderName", "label": "订单名称", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入订单名称"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单名称"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderTime", "label": "下单时间", "props": {"clearable": true, "placeholder": "请选择下单时间"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "datetime", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderTime", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderStatus", "label": "订单状态", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入订单状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderStatus", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_custPhone", "label": "客户手机号", "props": {"clearable": true, "maxlength": 20, "placeholder": "请输入客户手机号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "custPhone", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderClass", "label": "订单分类", "props": {"clearable": true, "placeholder": "请输入订单分类"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderClass", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_fileId", "label": "文件", "props": {"clearable": true, "maxlength": 50, "placeholder": "请选择文件"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "fileUpload", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "fileId", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orgId", "label": "归属组织", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入归属组织"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orgId", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "procurement_warehouse_tf_f_order_default_form"}}',1,'2026-07-14 20:20:53',6,1,'2026-07-21 13:12:54',0), (2077021621574434818,1,'PROCUREMENT_WAREHOUSE','tf_f_order_purchase_order','采购订单','MASTER',2077021623126327297,'procurement_warehouse_tf_f_order_purchase_order','orderNo','ionicons5:AlbumsSharp','从数据表 tf_f_order_purchase_order 导入',1,0,'{"createMode": "DB_IMPORT", "sourceTable": {"tableName": "tf_f_order_purchase_order", "datasourceId": 5, "tableComment": "采购订单"}, "runtimeDatasource": {"dbType": "MySQL", "allowDdl": true, "readonly": false, "riskLevel": "LOW", "tableMode": "EXISTING", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 5, "datasourceCode": "main", "datasourceName": "应用数据源"}, "runtimeDatasourceId": 5}','CHANGED','procurement_warehouse_tf_f_order_purchase_order',NULL,NULL,'{"viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "订单编号", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderNo", "formatter": null}, {"align": "left", "fixed": null, "label": "往来单位", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "partnerName", "formatter": null}, {"align": "right", "fixed": null, "label": "订单金额", "order": 0, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "totalAmount", "formatter": null}, {"align": "center", "fixed": null, "label": "订单日期", "order": 0, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderDate", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": null}, {"align": "left", "fixed": null, "label": "备注", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "remark", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "订单编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "orderNo", "formatter": null}, {"align": "left", "label": "往来单位", "order": 0, "visible": true, "readonly": true, "fieldCode": "partnerName", "formatter": null}, {"align": "right", "label": "订单金额", "order": 0, "visible": true, "readonly": true, "fieldCode": "totalAmount", "formatter": null}, {"align": "center", "label": "订单日期", "order": 0, "visible": true, "readonly": true, "fieldCode": "orderDate", "formatter": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "readonly": true, "fieldCode": "status", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "往来单位", "order": 0, "visible": true, "collapsed": false, "fieldCode": "partnerName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "collapsed": false, "fieldCode": "status", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_tf_f_order_purchase_order_default_form", "formName": "采购订单表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_orderNo", "label": "订单编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入订单编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单编号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_partnerName", "label": "往来单位", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入往来单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "partnerName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_totalAmount", "label": "订单金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入订单金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "totalAmount", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderDate", "label": "订单日期", "props": {"clearable": true, "placeholder": "请选择订单日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "procurement_warehouse_tf_f_order_purchase_order_default_form", "formName": "采购订单表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_tf_f_order_purchase_order_default_form", "formName": "采购订单表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_orderNo", "label": "订单编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入订单编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单编号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_partnerName", "label": "往来单位", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入往来单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "partnerName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_totalAmount", "label": "订单金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入订单金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "number", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "totalAmount", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderDate", "label": "订单日期", "props": {"clearable": true, "placeholder": "请选择订单日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "procurement_warehouse_tf_f_order_purchase_order_default_form"}}',1,'2026-07-14 21:25:18',6,1,'2026-07-14 21:25:43',0); INSERT INTO ai_business_object (id,tenant_id,suite_code,object_code,object_name,object_type,model_id,model_code,display_field,icon,description,status,sort_order,`options`,design_status,config_key,last_publish_time,last_publish_version,designer_options,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (2077031255181991937,1,'PROCUREMENT_WAREHOUSE','tf_f_order_sales_order','销售订单','MASTER',2077031256914239490,'procurement_warehouse_tf_f_order_sales_order','orderNo','ionicons5:AlbumsOutline','从数据表 tf_f_order_sales_order 导入',1,0,'{"createMode": "DB_IMPORT", "sourceTable": {"tableName": "tf_f_order_sales_order", "datasourceId": 5, "tableComment": "销售订单"}, "runtimeDatasource": {"dbType": "MySQL", "allowDdl": true, "readonly": false, "riskLevel": "LOW", "tableMode": "EXISTING", "allowWrite": true, "usageScope": "BOTH", "datasourceId": 5, "datasourceCode": "main", "datasourceName": "应用数据源"}, "runtimeDatasourceId": 5}','PUBLISHED','procurement_warehouse_tf_f_order_sales_order','2026-07-20 10:03:17',3,'{"viewSchema": {"list": {"columns": [{"align": "left", "fixed": null, "label": "订单编号", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderNo", "formatter": null}, {"align": "left", "fixed": null, "label": "往来单位", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "partnerName", "formatter": null}, {"align": "right", "fixed": null, "label": "订单金额", "order": 0, "width": 120, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "totalAmount", "formatter": null}, {"align": "center", "fixed": null, "label": "订单日期", "order": 0, "width": 140, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "orderDate", "formatter": null}, {"align": "left", "fixed": null, "label": "状态", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "status", "formatter": null}, {"align": "left", "fixed": null, "label": "备注", "order": 0, "width": 160, "visible": true, "minWidth": null, "sortable": false, "fieldCode": "remark", "formatter": null}], "settings": {}}, "detail": {"sections": [{"order": 0, "title": "基础信息", "fields": [{"align": "left", "label": "订单编号", "order": 0, "visible": true, "readonly": true, "fieldCode": "orderNo", "formatter": null}, {"align": "left", "label": "往来单位", "order": 0, "visible": true, "readonly": true, "fieldCode": "partnerName", "formatter": null}, {"align": "right", "label": "订单金额", "order": 0, "visible": true, "readonly": true, "fieldCode": "totalAmount", "formatter": null}, {"align": "center", "label": "订单日期", "order": 0, "visible": true, "readonly": true, "fieldCode": "orderDate", "formatter": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "readonly": true, "fieldCode": "status", "formatter": null}, {"align": "left", "label": "备注", "order": 0, "visible": true, "readonly": true, "fieldCode": "remark", "formatter": null}], "visible": true, "sectionKey": "basic"}], "settings": {}}, "search": {"fields": [{"align": "left", "label": "往来单位", "order": 0, "visible": true, "collapsed": false, "fieldCode": "partnerName", "matchMode": "like", "componentKey": "input", "defaultValue": null}, {"align": "left", "label": "状态", "order": 0, "visible": true, "collapsed": false, "fieldCode": "status", "matchMode": "like", "componentKey": "input", "defaultValue": null}], "settings": {}}, "overrides": {"layoutType": "SINGLE"}, "schemaVersion": "view-schema-v1"}, "linkageSchema": {"rules": [], "settings": {}, "schemaVersion": "linkage-schema-v1"}, "formDesignerSchema": {"forms": [{"usage": ["create", "edit"], "schema": {"layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_tf_f_order_sales_order_default_form", "formName": "销售订单表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_orderNo", "label": "订单编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入订单编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单编号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_partnerName", "label": "往来单位", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入往来单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "partnerName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_totalAmount", "label": "订单金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入订单金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "money", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "totalAmount", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderDate", "label": "订单日期", "props": {"clearable": true, "placeholder": "请选择订单日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2"}, "formKey": "procurement_warehouse_tf_f_order_sales_order_default_form", "formName": "销售订单表单"}], "layout": {"size": "medium", "xGap": 16, "yGap": 16, "rowGap": 16, "gridCols": 2, "columnGap": 16, "modalType": "modal", "resetText": "重置", "showReset": true, "cancelText": "取消", "labelAlign": "right", "labelWidth": 100, "modalWidth": "800px", "showCancel": false, "showSubmit": true, "submitText": "提交", "gridColumns": 2, "showActions": true, "formOpenMode": "modal", "showFeedback": true, "enableCollapse": false, "inlineFeedback": false, "labelPlacement": "left", "drawerPlacement": "right", "detailModalWidth": "800px", "maxVisibleFields": 6, "hideRequiredAsterisk": false}, "formKey": "procurement_warehouse_tf_f_order_sales_order_default_form", "formName": "销售订单表单", "settings": {"formAssets": [], "migratedFrom": "pageSchema"}, "components": [{"id": "cmp_orderNo", "label": "订单编号", "props": {"clearable": true, "maxlength": 64, "placeholder": "请输入订单编号"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": true, "requiredMessage": "请输入订单编号"}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderNo", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_partnerName", "label": "往来单位", "props": {"clearable": true, "maxlength": 128, "placeholder": "请输入往来单位"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "partnerName", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_totalAmount", "label": "订单金额", "props": {"clearable": true, "maxlength": 18, "placeholder": "请输入订单金额"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "money", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "totalAmount", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_orderDate", "label": "订单日期", "props": {"clearable": true, "placeholder": "请选择订单日期"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "date", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "orderDate", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_status", "label": "状态", "props": {"clearable": true, "maxlength": 32, "placeholder": "请输入状态"}, "layout": {"span": 1, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "input", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "status", "createIfMissing": false}, "advancedProps": {}}, {"id": "cmp_remark", "label": "备注", "props": {"clearable": true, "placeholder": "请输入备注"}, "layout": {"span": 2, "align": "left"}, "children": [], "validation": {"rules": [], "preset": "", "message": "", "pattern": "", "required": false, "requiredMessage": ""}, "visibility": {"hidden": false, "readonly": false}, "componentKey": "textarea", "fieldBinding": {"mode": "field", "locked": false, "source": "field_asset", "fieldCode": "remark", "createIfMissing": false}, "advancedProps": {}}], "schemaVersion": "form-first-v2", "defaultFormKey": "procurement_warehouse_tf_f_order_sales_order_default_form"}}',1,'2026-07-14 22:03:35',6,1,'2026-07-20 10:03:17',0), (2078008782754271233,1,'AAA','aa','aa','MASTER',NULL,'aaa_aa',NULL,NULL,NULL,1,0,'{"createMode": "BLANK", "runtimeDatasource": {"tableMode": "CREATE", "datasourceId": null, "datasourceCode": "master", "datasourceName": "平台主库"}, "runtimeDatasourceId": null}','DRAFT',NULL,NULL,NULL,NULL,1,'2026-07-17 14:47:56',6,1,'2026-07-17 14:47:56',0); INSERT INTO ai_business_object_relation (id,tenant_id,suite_code,source_object_code,target_object_code,relation_type,relation_name,source_field_code,target_field_code,relation_config,description,status,sort_order,create_by,create_time,create_dept,update_by,update_time) VALUES (1910000000000000203,1,'CRM','OPPORTUNITY','CONTRACT','REFERENCE','商机关联合同','id','opportunityId','{"businessText": "合同可关联来源商机"}','合同可关联来源商机',1,3,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000204,1,'CRM','CONTRACT','CONTRACT_ITEM','DETAIL','合同明细','id','contractId','{"detailTab": "合同明细", "summaryField": "amount"}','合同明细依附合同并支持金额汇总',1,4,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000205,1,'CRM','CONTRACT','PAYMENT','CHILD_LIST','合同回款','id','contractId','{"detailTab": "回款", "businessText": "合同详情中展示回款计划或记录"}','合同详情中展示回款计划或回款记录',1,5,1,'2026-05-27 13:01:03',1,1,'2026-05-27 13:01:03'), (1910000000000000207,1,'CRM','OPPORTUNITY','FOLLOW_RECORD','CHILD_LIST','商机跟进记录','id','opportunityId','{"detailTab": "跟进记录", "businessText": "商机详情中展示推进记录"}','商机详情中展示推进记录',1,7,1,'2026-05-27 13:01:03',1,1,'2026-05-29 19:52:33'), (1910000000000009501,1,'PROCUREMENT_WAREHOUSE','PW_SUPPLIER','PW_SUPPLIER_MATERIAL','DETAIL','供应商报价','id','supplierId','{"saveMode": "merge", "showInDetail": true, "detailTabTitle": "供应商报价", "recordSelector": {"title": "选择物料", "suiteCode": "PROCUREMENT_WAREHOUSE", "buttonText": "选择物料", "objectCode": "PW_MATERIAL", "searchParams": {"status": "ENABLED"}, "displayFields": ["materialCode:物料编号", "materialName:物料名称", "specModel:规格型号", "unit:单位", "referencePriceCent:参考单价(分)"], "fieldMappings": [{"sourceField": "id", "targetField": "materialId"}, {"sourceField": "materialCode", "targetField": "materialCode"}, {"sourceField": "materialName", "targetField": "materialName"}, {"sourceField": "specModel", "targetField": "specModel"}, {"sourceField": "unit", "targetField": "unit"}, {"sourceField": "referencePriceCent", "targetField": "quotePriceCent"}], "keywordFields": ["materialCode", "materialName", "specModel"], "targetObjectCode": "PW_MATERIAL", "businessObjectCode": "PW_MATERIAL"}, "inlineEditEnabled": true, "inlineCreateEnabled": true}','供应商与报价明细的主子关系',1,10,1,'2026-07-03 21:39:01',1,1,'2026-07-03 21:39:01'), (1910000000000009502,1,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER','PW_PURCHASE_ORDER_ITEM','DETAIL','采购单包含明细采购明细','purchaseNo','purchaseId','{"saveMode": "merge", "displayField": "materialName", "showInDetail": true, "detailTabTitle": "采购明细", "recordSelector": {"title": "选择供应商报价", "suiteCode": "PROCUREMENT_WAREHOUSE", "buttonText": "选择报价", "objectCode": "PW_SUPPLIER_MATERIAL", "searchParams": {"supplierId": "${formData.supplierId}"}, "displayFields": ["supplierName:供应商", "materialCode:物料编号", "materialName:物料名称", "quotePriceCent:报价(分)", "effectiveDate:有效期"], "fieldMappings": [{"sourceField": "materialId", "targetField": "materialId"}, {"sourceField": "materialCode", "targetField": "materialCode"}, {"sourceField": "materialName", "targetField": "materialName"}, {"sourceField": "specModel", "targetField": "specModel"}, {"sourceField": "unit", "targetField": "unit"}, {"sourceField": "lastPriceCent", "targetField": "costPriceCent"}, {"sourceField": "quotePriceCent", "targetField": "dealPriceCent"}], "keywordFields": ["materialCode", "materialName", "supplierName"]}, "inlineEditEnabled": true, "inlineCreateEnabled": true}','采购单与采购明细的主子关系',1,20,1,'2026-07-03 21:39:01',1,1,'2026-07-13 18:25:27'), (1910000000000009503,1,'PROCUREMENT_WAREHOUSE','PW_OUTBOUND_ORDER','PW_OUTBOUND_ORDER_ITEM','DETAIL','出库明细','id','outboundId','{"saveMode": "merge", "showInDetail": true, "detailTabTitle": "出库明细", "recordSelector": {"title": "选择出库物料", "suiteCode": "PROCUREMENT_WAREHOUSE", "buttonText": "选择物料", "objectCode": "PW_MATERIAL", "searchParams": {"status": "ENABLED", "warehouseId": "${formData.warehouseId}"}, "displayFields": ["materialCode:物料编号", "materialName:物料名称", "specModel:规格型号", "unit:单位"], "fieldMappings": [{"sourceField": "id", "targetField": "materialId"}, {"sourceField": "materialCode", "targetField": "materialCode"}, {"sourceField": "materialName", "targetField": "materialName"}, {"sourceField": "specModel", "targetField": "specModel"}, {"sourceField": "unit", "targetField": "unit"}], "keywordFields": ["materialCode", "materialName", "specModel"], "targetObjectCode": "PW_MATERIAL", "businessObjectCode": "PW_MATERIAL"}, "inlineEditEnabled": true, "inlineCreateEnabled": true}','出库单与出库明细的主子关系',1,30,1,'2026-07-03 21:39:01',1,1,'2026-07-03 21:39:01'), (1910000000000009504,1,'PROCUREMENT_WAREHOUSE','PW_TRANSFER_ORDER','PW_TRANSFER_ORDER_ITEM','DETAIL','调拨明细','id','transferId','{"saveMode": "merge", "showInDetail": true, "detailTabTitle": "调拨明细", "recordSelector": {"title": "选择调拨物料", "suiteCode": "PROCUREMENT_WAREHOUSE", "buttonText": "选择物料", "objectCode": "PW_MATERIAL", "searchParams": {"status": "ENABLED", "fromWarehouseId": "${formData.fromWarehouseId}"}, "displayFields": ["materialCode:物料编号", "materialName:物料名称", "specModel:规格型号", "unit:单位"], "fieldMappings": [{"sourceField": "id", "targetField": "materialId"}, {"sourceField": "materialCode", "targetField": "materialCode"}, {"sourceField": "materialName", "targetField": "materialName"}, {"sourceField": "specModel", "targetField": "specModel"}, {"sourceField": "unit", "targetField": "unit"}], "keywordFields": ["materialCode", "materialName", "specModel"], "targetObjectCode": "PW_MATERIAL", "businessObjectCode": "PW_MATERIAL"}, "inlineEditEnabled": true, "inlineCreateEnabled": true}','调拨单与调拨明细的主子关系',1,40,1,'2026-07-03 21:39:01',1,1,'2026-07-03 21:39:01'), (2060918550364712961,1,'CRM','CONTACT','CUSTOMER','REFERENCE','联系人有多个客户','customerId','id','{"displayField": "customerName", "showInDetail": true, "detailTabTitle": "客户", "inlineEditEnabled": false, "inlineCreateEnabled": false}',NULL,1,10,1,'2026-05-31 10:57:27',2,1,'2026-05-31 11:18:31'), (2061046763531378690,1,'CRM','CUSTOMER','CONTACT','CHILD_LIST','客户有多个联系人','id','customerId','{"displayField": "contactName", "showInDetail": true, "detailTabTitle": "联系人", "inlineEditEnabled": true, "inlineCreateEnabled": true}',NULL,1,10,1,'2026-05-31 19:26:55',2,1,'2026-05-31 19:26:55'); INSERT INTO ai_business_object_relation (id,tenant_id,suite_code,source_object_code,target_object_code,relation_type,relation_name,source_field_code,target_field_code,relation_config,description,status,sort_order,create_by,create_time,create_dept,update_by,update_time) VALUES (2071022194354597889,1,'CRM','LEAD','CUSTOMER','CHILD_LIST','线索有多个客户','id','customerCode','{"displayField": "customerName", "showInDetail": true, "detailTabTitle": "客户", "inlineEditEnabled": true, "inlineCreateEnabled": true}',NULL,1,10,1,'2026-06-28 08:05:44',6,1,'2026-06-28 08:05:44'), (2077217540693602306,1,'PROCUREMENT_WAREHOUSE','tf_f_order','tf_f_order_sales_order','DETAIL','明细','orderCode','orderNo','{"saveMode": "replace", "showInDetail": true, "detailTabTitle": "明细", "inlineEditEnabled": true, "inlineCreateEnabled": true}',NULL,1,0,1,'2026-07-15 10:23:49',6,1,'2026-07-15 12:36:16'); INSERT INTO ai_business_quantity_balance (id,tenant_id,account_code,item_code,dimension_key,quantity,locked_quantity,status,remark,create_by,create_time,create_dept,update_by,update_time) VALUES (1950000000000009301,1,'1950000000000009221','1950000000000009201','',150,12,1,'主仓水泥演示余额',1,'2026-07-03 14:25:27',1,1,'2026-07-03 14:25:27'), (1950000000000009302,1,'1950000000000009221','1950000000000009202','',10,0,1,'主仓钢材演示余额',1,'2026-07-03 14:25:27',1,1,'2026-07-03 14:25:27'), (1950000000000009303,1,'1950000000000009221','1950000000000009203','',3000,0,1,'主仓电缆演示余额',1,'2026-07-03 14:25:27',1,1,'2026-07-03 14:25:27'), (1950000000000009304,1,'1950000000000009222','1950000000000009201','',38,0,1,'现场仓水泥演示余额',1,'2026-07-03 14:25:27',1,1,'2026-07-03 14:25:27'), (1950000000000009305,1,'1950000000000009222','1950000000000009203','',612,0,1,'现场仓电缆演示余额',1,'2026-07-03 14:25:27',1,1,'2026-07-04 18:12:36'); INSERT INTO ai_business_quantity_ledger (id,tenant_id,operation_type,account_code,item_code,dimension_key,quantity_delta,balance_quantity,locked_quantity,target_account_code,target_item_code,target_dimension_key,source_object_code,source_record_id,source_detail_id,lock_id,correlation_id,idempotency_key,remark,extra_data,create_by,create_time,create_dept,update_by,update_time) VALUES (1950000000000009311,1,'INBOUND','1950000000000009221','1950000000000009201','',20,150,0,NULL,NULL,NULL,'PW_PURCHASE_ORDER','1950000000000009241','1950000000000009251',NULL,'pw-demo-inbound-001','pw-demo-ledger-inbound-001','采购入库演示流水','{"demo": true}',1,'2026-06-30 14:25:27',1,1,'2026-06-30 14:25:27'), (1950000000000009312,1,'COMMIT','1950000000000009221','1950000000000009201','',-5,145,0,NULL,NULL,NULL,'PW_OUTBOUND_ORDER','1950000000000009261','1950000000000009271',NULL,'pw-demo-outbound-001','pw-demo-ledger-outbound-001','出库扣减演示流水','{"demo": true}',1,'2026-07-01 14:25:27',1,1,'2026-07-01 14:25:27'), (1950000000000009313,1,'TRANSFER','1950000000000009221','1950000000000009201','',-8,137,0,'1950000000000009222','1950000000000009201','','PW_TRANSFER_ORDER','1950000000000009281','1950000000000009291',NULL,'pw-demo-transfer-001','pw-demo-ledger-transfer-001','调拨转出演示流水','{"demo": true}',1,'2026-07-02 14:25:27',1,1,'2026-07-02 14:25:27'), (1950000000000009314,1,'LOCK','1950000000000009221','1950000000000009201','',12,150,12,NULL,NULL,NULL,'PW_OUTBOUND_ORDER','1950000000000009262','1950000000000009273',1950000000000009321,'pw-demo-lock-001','pw-demo-ledger-lock-001','出库审批中锁定演示流水','{"demo": true}',1,'2026-07-03 14:25:27',1,1,'2026-07-03 14:25:27'), (2073349249311055874,1,'INBOUND','1950000000000009222','1950000000000009203','',12,612,0,NULL,NULL,NULL,'PW_PURCHASE_ORDER','1950000000000009249','1950000000000009261',NULL,'203d4f4c2b8c4d2ab1a7c94fd2d67585','flowCallback:cd8b249c-7790-11f1-86f2-3627dbd776e1:APPROVED:inbound_purchase_stock:quantity:purchase_item_inbound:inbound','采购审批通过入库',NULL,1,'2026-07-04 18:12:37',6,1,'2026-07-04 18:12:37'); INSERT INTO ai_business_quantity_lock (id,tenant_id,lock_code,account_code,item_code,dimension_key,lock_quantity,released_quantity,committed_quantity,lock_status,source_object_code,source_record_id,source_detail_id,correlation_id,idempotency_key,remark,create_by,create_time,create_dept,update_by,update_time) VALUES (1950000000000009321,1,'1950000000000009273','1950000000000009221','1950000000000009201','',12,0,0,'LOCKED','PW_OUTBOUND_ORDER','1950000000000009262','1950000000000009273','pw-demo-lock-001','pw-demo-lock-001','出库审批中锁定演示数据',1,'2026-07-03 14:25:27',1,1,'2026-07-03 14:25:27'); INSERT INTO ai_business_suite (id,tenant_id,parent_id,suite_code,suite_name,icon,description,status,sort_order,`options`,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000000001,1,NULL,'CRM','CRM','ionicons5:PeopleOutline','围绕客户、联系人、线索、商机、合同、回款和销售任务组织的客户关系管理业务套件',1,2,'{"stage": "phase1", "sample": true, "adminMenu": {"sort": 1, "syncEnabled": true, "menuResourceId": "9392"}}',1,'2026-05-27 13:01:03',1,1,'2026-07-05 07:04:56',0), (1910000000000000901,1,NULL,'PROCUREMENT_WAREHOUSE','采购仓储','ionicons5:CubeOutline','完全低代码方式搭建的采购、仓储、供应商和物料管理业务套件',1,0,'{"adminMenu": {"sort": 0, "syncEnabled": true, "menuResourceId": "9550"}}',1,'2026-07-03 14:25:24',1,1,'2026-07-21 13:12:54',0), (1910000000000005201,1,NULL,'HR','HR人事','ionicons5:PeopleCircleOutline','人事管理样板套件,包含离职申请和离职交接闭环示例',1,20,'{"stage": "phase7", "sample": true}',1,'2026-06-02 06:48:47',1,1,'2026-06-02 06:48:47',0), (1910000000000008301,1,NULL,'PURCHASE','仓储管理','ionicons5:CartOutline','采购申请、采购审批和供应商协同测试业务域',0,0,'{"sample": true, "codeApp": true, "scenario": "sample_purchase_order_flow", "adminMenu": {"sort": 0, "syncEnabled": true, "menuResourceId": "9425"}}',1,'2026-06-29 10:34:00',1,1,'2026-07-05 07:04:17',0), (2063774559931506689,1,NULL,'IN_OUT','出入管理','ionicons5:Accessibility',NULL,1,0,NULL,1,'2026-06-08 08:06:13',2,1,'2026-06-08 08:06:13',0), (2064178773069438978,1,NULL,'TTT','演示系统','ionicons5:ArrowUp',NULL,1,0,'{"adminMenu": {"sort": 0, "syncEnabled": true, "menuResourceId": "9549"}}',1,'2026-06-09 10:52:25',2,1,'2026-07-17 14:35:08',0), (2064330294008520706,1,NULL,'BUSINESS','ddd','ionicons5:AirplaneSharp','dddd',1,0,'{"adminMenu": {"sort": 0, "parentId": "9292", "syncEnabled": true, "menuResourceId": "9294"}}',1,'2026-06-09 20:54:30',2,1,'2026-06-09 20:54:30',0), (2068682732826091521,1,NULL,'TEST_DATASOURCE','测试数据源',NULL,NULL,1,0,'{"adminMenu": {"sort": 0, "syncEnabled": true, "actualParentId": "9403", "menuResourceId": "9401"}}',1,'2026-06-21 21:09:32',2,1,'2026-06-27 14:47:45',0), (2070061935267987457,1,NULL,'ASSET_DEVICE_SYSTEM','资产设备系统','ionicons5:Desktop',NULL,1,0,'{"adminMenu": {"sort": 0, "syncEnabled": true, "menuResourceId": "9551"}}',1,'2026-06-25 16:30:00',6,1,'2026-07-22 14:13:14',0), (2070306029592428546,1,NULL,'KHXS','客户销售管理','ionicons5:CartSharp',NULL,1,66,NULL,1,'2026-06-26 08:39:57',6,1,'2026-06-26 08:39:57',0); INSERT INTO ai_business_suite (id,tenant_id,parent_id,suite_code,suite_name,icon,description,status,sort_order,`options`,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (2070308856927363073,1,2068682732826091521,'TEST11','测试1',NULL,NULL,1,0,NULL,1,'2026-06-26 08:51:11',6,1,'2026-06-26 08:51:11',0), (2071080028874256385,1,2068682732826091521,'FSDF','人','ionicons5:AccessibilityOutline',NULL,1,0,NULL,1,'2026-06-28 11:55:32',6,1,'2026-06-28 11:55:32',0), (2071190030997827586,1,NULL,'LSJY','连锁经营','ionicons5:FlowerSharp',NULL,1,0,'{"adminMenu": {"sort": 0, "syncEnabled": true, "menuResourceId": "9419"}}',1,'2026-06-28 19:12:39',6,1,'2026-07-09 16:18:24',0), (2071759418046066690,1,NULL,'MANAGEMENT','工单管理','ionicons5:AccessibilitySharp',NULL,1,111,'{"adminMenu": {"sort": 0, "syncEnabled": true, "menuResourceId": "9423"}}',1,'2026-06-30 08:55:11',6,1,'2026-07-07 16:43:11',0), (2072634806968299521,1,NULL,'V123','123',NULL,NULL,1,0,NULL,1,'2026-07-02 18:53:40',6,1,'2026-07-23 09:06:33',2072634806968299521), (2073076146562662401,1,NULL,'SHD','送货单','ionicons5:CarSharp',NULL,1,0,NULL,1,'2026-07-04 00:07:24',6,1,'2026-07-04 00:07:24',0), (2076220816222367745,1,NULL,'SALES','销售','ionicons5:AddCircleOutline',NULL,1,0,NULL,1,'2026-07-12 16:23:12',6,1,'2026-07-12 16:23:12',0), (2078008494894993409,1,1910000000000000901,'AAA','aaa',NULL,NULL,1,0,NULL,1,'2026-07-17 14:46:47',6,1,'2026-07-17 14:47:00',0); INSERT INTO ai_business_trigger (id,tenant_id,suite_code,object_code,trigger_name,trigger_desc,trigger_type,scenario_type,blocking_mode,developer_mode,event_type,event_condition,action_type,action_config,status,sort_order,execute_count,last_execute_time,create_by,create_time,create_dept,update_by,update_time,del_flag) VALUES (1910000000000005104,1,'CRM','OPPORTUNITY','高金额商机自动发起流程','新增商机且预计金额大于 50000 元时自动发起已配置流程','EVENT','RECORD_CREATED_START_FLOW','ASYNC',0,'RECORD_CREATED','{"and": [{"op": "gt", "field": "amountCent", "value": 5000000}, {"op": "neq", "field": "documentStatus", "value": "IN_PROCESS"}]}','START_FLOW','{"flowModelKey": "leave_multi", "titleTemplate": "{opportunityName}-商机审批", "variableMapping": [{"label": "商机名称", "formField": "opportunityName", "flowVariable": "opportunityName"}, {"label": "客户ID", "formField": "customerId", "flowVariable": "customerId"}, {"label": "预计金额分", "formField": "amountCent", "flowVariable": "amountCent"}, {"label": "商机阶段", "formField": "stage", "flowVariable": "stage"}, {"label": "负责人", "formField": "ownerId", "flowVariable": "ownerId"}, {"label": "部门经理", "formField": "createBy", "flowVariable": "deptManager"}]}',1,1,0,NULL,1,'2026-06-02 06:48:46',1,1,'2026-06-02 07:54:42','0'), (1910000000000005106,1,'CRM','OPPORTUNITY','商机流程通过后通知发起人','商机审批通过后发送站内信给发起人','EVENT','FLOW_APPROVED_SEND_MESSAGE','ASYNC',0,'FLOW_APPROVED',NULL,'SEND_MESSAGE','{"channelCode": "internal_websocket", "receiverRule": "STARTER", "templateCode": "business_opportunity_flow_result"}',1,2,0,NULL,1,'2026-06-02 06:48:46',1,1,'2026-06-02 06:48:46','0'), (1910000000000005107,1,'CRM','OPPORTUNITY','商机流程驳回后通知发起人','商机审批驳回后发送站内信给发起人','EVENT','FLOW_REJECTED_SEND_MESSAGE','ASYNC',0,'FLOW_REJECTED',NULL,'SEND_MESSAGE','{"channelCode": "internal_websocket", "receiverRule": "STARTER", "templateCode": "business_opportunity_flow_result"}',1,3,0,NULL,1,'2026-06-02 06:48:46',1,1,'2026-06-02 06:48:46','0'), (1910000000000005211,1,'HR','LEAVE_APPLICATION','离职申请到期自动发起流程','新增离职申请且最后工作日小于等于 2026-12-31 时自动发起离职审批流程','EVENT','RECORD_CREATED_START_FLOW','ASYNC',0,'RECORD_CREATED','{"and": [{"op": "lte", "field": "lastWorkDate", "value": "2026-12-31"}, {"op": "neq", "field": "documentStatus", "value": "IN_PROCESS"}]}','START_FLOW','{"flowModelKey": "leave_multi", "titleTemplate": "{employeeName}-离职申请", "variableMapping": [{"label": "员工姓名", "formField": "employeeName", "flowVariable": "employeeName"}, {"label": "部门", "formField": "departmentName", "flowVariable": "departmentName"}, {"label": "最后工作日", "formField": "lastWorkDate", "flowVariable": "lastWorkDate"}, {"label": "离职原因", "formField": "leaveReason", "flowVariable": "reason"}, {"label": "部门主管", "formField": "handoverOwnerId", "flowVariable": "deptManager"}]}',1,1,0,NULL,1,'2026-06-02 06:48:47',1,1,'2026-07-14 21:48:54','0'), (1910000000000005212,1,'HR','LEAVE_APPLICATION','离职审批通过后创建交接记录','离职申请流程通过后自动生成离职交接记录','EVENT','FLOW_APPROVED_CREATE_RECORD','ASYNC',0,'FLOW_APPROVED',NULL,'CREATE_RECORD','{"fieldMapping": [{"sourceField": "id", "targetField": "leaveApplicationId"}, {"sourceField": "employeeName", "targetField": "employeeName"}, {"sourceField": "departmentName", "targetField": "departmentName"}, {"sourceField": "positionName", "targetField": "positionName"}, {"sourceField": "lastWorkDate", "targetField": "lastWorkDate"}, {"sourceField": "handoverOwnerId", "targetField": "handoverOwnerId"}, {"sourceField": "handoverOwnerName", "targetField": "handoverOwnerName"}], "staticValues": {"remark": "由离职流程通过事件自动生成", "handoverTitle": "离职交接待办", "handoverStatus": "PENDING"}, "targetConfigKey": "hr_leave_handover"}',1,2,0,NULL,1,'2026-06-02 06:48:47',1,1,'2026-06-02 06:48:47','0'), (2078509023953690626,1,'PROCUREMENT_WAREHOUSE','PW_PURCHASE_ORDER','测试','记录创建后按条件自动发起主流程','EVENT','RECORD_CREATED_START_FLOW','ASYNC',0,'RECORD_CREATED','{"logic": "AND", "rules": [{"field": "purchaseNo", "value": "", "operator": "eq"}]}','BUSINESS_ACTION','{"actionCode": "inbound_purchase_stock"}',1,0,0,NULL,1,'2026-07-18 23:55:43',6,1,'2026-07-18 23:55:43','0'); INSERT INTO ai_chat_record (id,tenant_id,user_id,agent_code,session_id,`role`,content,token_usage,create_time) VALUES (2075828259172691970,1,1,'dashboard_generator','71a03265-b33c-4f9c-a216-fbbdb05baf5c','user','启动',NULL,'2026-07-11 14:23:19'), (2075828544725102593,1,1,'dashboard_generator','71a03265-b33c-4f9c-a216-fbbdb05baf5c','user','启动',NULL,'2026-07-11 14:24:27'), (2075828544792211457,1,1,'dashboard_generator','71a03265-b33c-4f9c-a216-fbbdb05baf5c','assistant','【思考过程】 我们被要求基于具体上下文生成一个大屏JSON。但输入中没有给出具体画布尺寸、背景色、风格、业务上下文、用户需求等。可能这部分是隐藏的,或者用户没有提供。因此我只能假设一些默认值,或者给出一个示例。 注意:系统提示要求必须只输出合法JSON对象,不能有任何markdown或解释。且要包含所有必要字段。我需要创建一个符合规范的输出。 由于缺少具体上下文,我会基于通用的智能工厂/安全生产场景生成一个大屏布局。假设画布:1920x1080,背景色:#040d21(深色),风格:科技/互联网,使用主题色 #a78bfa(紫)。主题:智慧工厂安全生产监控。标题用ScreenTitle05(两侧装饰框)。顶部KPI用KpiGroup展示6个指标。中心区域放置一个大尺寸的EChart(比如柱状图或地图?但地图可能需要地理坐标,我假设用柱状图)。周围放置PanelFrame包裹的各种图表:饼图、雷达图、趋势图、滚动表格等。还添加GlowBackdrop、SectionHeader、StatusBadgeList、TimelineList等。布局采用中心主图环绕式。 我将构建一个JSON,包含尽可能多的组件,遵循不重叠、尺寸约束等。自检输出。 组件key列表参考可用组件,但实际可用组件在上下文中列出,但我没有,所以我会使用通用的常用key,如:ScreenTitle05, PanelFrame, GlowBackdrop, SectionHeader, KpiGroup, StatusBadgeList, DividerLine, MiniTrendCard, EChart (或 BarChart?), TableScrollBoard, PieCommon, Radar, TimelineList, Border02等。必须确保每个组件有key, x, y, w, h, option等。有些组件不需要option。 因为缺少数据集上下文,我将全部使用静态数据,不绑定request.datasetId,而是提供option.dataset或静态数据。 输出如: { "title": "智慧工厂安全生产监控大屏", "canvasConfig": { "width":1920, "height":1080, "background": "#040d21" }, "components": [ ... ] } 我需要计算坐标,保证不超出边界,不重叠。遵循布局:标题在顶部居中,KPI组在其下方居左?等等。 由于是示例,我将构造一个合理的布局。开始。 【回复内容】 { "title": "智慧工厂安全生产监控大屏", "canvasConfig": { "width":1920, "height":1080, "background": "#040d21" }, "components": [ { "key": "GlowBackdrop", "x":0, "y":0, "w":1920, "h":1080, "option": { "variant": "reactor", "accentColor": "#a78bfa", "secondColor": "#38bdf8", "thirdColor": "#ffcf5a", "opacity":0.4 } }, { "key": "ScreenTitle05", "x":420, "y":20, "w":1080, "h":100, "title": "智慧工厂安全生产监控大屏", "option": { "dataset": "智慧工厂安全生产监控大屏", "subtitle": "SMART FACTORY SAFETY MONITORING SYSTEM", "fontSize":46, "accentColor": "#a78bfa", "showBorder": true, "showBackground": true, "showDecorations": true } }, { "key": "KpiGroup", "x":80, "y":130, "w":1760, "h":120, "option": { "dataset": [ {"title": "今日产量", "value":12453, "unit": "件", "trend": "+8.2%"}, {"title": "设备OEE", "value":87.5, "unit": "%", "trend": "+2.1%"}, {"title": "能耗总量", "value":4328.6, "unit": "kWh", "trend": "-5.3%"}, {"title": "质量合格率", "value":99.2, "unit": "%", "trend": "+0.3%"}, {"title": "安全运行天数", "value":268, "unit": "天", "trend": ""}, {"title": "未处理报警", "value":3, "unit": "条", "trend": "-1"} ], "columns":6, "accentColor": "#a78bfa" } }, { "key": "DividerLine", "x":80, "y":260, "w":1760, "h":4, "option": { "direction": "horizontal", "thickness":2, "accentColor": "#a78bfa", "secondColor": "#38bdf8" } }, { "key": "PanelFrame", "x":60, "y":280, "w":680, "h":400, "title": "车间产量趋势", "option": { "title": "车间产量趋势", "unit": "件", "accentColor": "#a78bfa", "borderColor": "#5b21b6" } }, { "key": "BarChart", "x":80, "y":320, "w":660, "h":360, "option": { "dataset": { "dimensions": ["时间", "A线", "B线", "C线"], "source": [ {"时间": "06:00", "A线":540, "B线":420, "C线":380}, {"时间": "08:00", "A线":620, "B线":480, "C线":450}, {"时间": "10:00", "A线":580, "B线":510, "C线":490}, {"时间": "12:00", "A线":660, "B线":530, "C线":520}, {"时间": "14:00", "A线":700, "B线":550, "C线":540}, {"时间": "16:00", "A线":680, "B线":560, "C线":530}, {"时间": "18:00", "A线":640, "B线":540, "C线":500} ] } } }, { "key": "PanelFrame", "x":760, "y":280, "w":520, "h":400, "title": "生产班组排名", "option": { "title": "生产班组排名", "unit": "件", "accentColor": "#a78bfa", "borderColor": "#5b21b6" } }, { "key": "RankProgressList", "x":780, "y":320, "w":500, "h":360, "option": { "dataset": [ {"name": "甲班", "value":1280}, {"name": "乙班", "value":1190}, {"name": "丙班", "value":1030}, {"name": "丁班", "value":870}, {"name": "戊班", "value":760} ], "unit": "件", "max":1500 } }, { "key": "PanelFrame", "x":1300, "y":280, "w":560, "h":400, "title": "能耗与排放监控", "option": { "title": "能耗与排放监控", "unit": "", "accentColor": "#a78bfa", "borderColor": "#5b21b6" } }, { "key": "Radar", "x":1320, "y":320, "w":520, "h":360, "option": { "dataset": { "radarIndicator": [ {"name": "电耗", "max":100}, {"name": "水耗", "max":100}, {"name": "气耗", "max":100}, {"name": "CO2排放", "max":100}, {"name": "废料", "max":100} ], "seriesData": [ {"name": "今日", "value": [78,65,82,55,48]}, {"name": "昨日", "value": [82,68,80,58,50]} ] } } }, { "key": "PanelFrame", "x":60, "y":700, "w":680, "h":340, "title": "质量分布分析", "option": { "title": "质量分布分析", "unit": "", "accentColor": "#a78bfa", "borderColor": "#5b21b6" } }, { "key": "PieCommon", "x":80, "y":740, "w":660, "h":300, "option": { "dataset": { "dimensions": ["缺陷类型", "数量"], "source": [ {"缺陷类型": "尺寸偏差", "数量":32}, {"缺陷类型": "表面划痕", "数量":20}, {"缺陷类型": "装配不良", "数量":15}, {"缺陷类型": "电气故障", "数量":8}, {"缺陷类型": "其他", "数量":5} ] } } }, { "key": "PanelFrame", "x":760, "y":700, "w":520, "h":340, "title": "实时报警列表", "option": { "title": "实时报警列表", "unit": "", "accentColor": "#a78bfa", "borderColor": "#5b21b6" } }, { "key": "TimelineList", "x":780, "y":740, "w":500, "h":300, "option": { "dataset": [ {"time": "10:28:35", "title": "CNC-11主轴温度过高", "level": "高", "status": "danger"}, {"time": "10:25:12", "title": "AGV-03路径阻塞", "level": "中", "status": "warning"}, {"time": "10:22:45", "title": "冲压机P2压力异常", "level": "高", "status": "danger"}, {"time": "10:18:03", "title": "涂装线风速低", "level": "中", "status": "warning"}, {"time": "10:15:28", "title": "装配线检漏失败", "level": "低", "status": "info"} ] } }, { "key": "PanelFrame", "x":1300, "y":700, "w":560, "h":340, "title": "设备综合状态", "option": { "title": "设备综合状态", "unit": "台", "accentColor": "#a78bfa", "borderColor": "#5b21b6" } }, { "key": "StatusBadgeList", "x":1320, "y":740, "w":520, "h":120, "option": { "dataset": [ {"label": "运行", "value":146, "color": "#47ffb2"}, {"label": "待机", "value":32, "color": "#f59e0b"}, {"label": "停机", "value":11, "color": "#ef4444"}, {"label": "维修", "value":4, "color": "#8b5cf6"} ], "columns":4, "unit": "台" } }, { "key": "SectionHeader", "x":1320, "y":870, "w":520, "h":50, "option": { "title": "关键设备运行时长", "subtitle": "KEY DEVICE UPTIME", "accentColor": "#a78bfa" } }, { "key": "DataPairList", "x":1320, "y":920, "w":520, "h":120, "option": { "dataset": [ {"label": "CNC-1", "value": "128h34m"}, {"label": "冲压线", "value": "96h12m"}, {"label": "涂装线", "value": "112h47m"}, {"label": "总装线", "value": "87h55m"} ], "columns":2 } } ] }',NULL,'2026-07-11 14:24:27'), (2076085804667817985,1,1,'flow_bpmn_builder','flow_1783812398722_rve9iubw','user','生成一个发票报销审批,1000内,财务审批,1000以上,直属领导审批后财务审批',NULL,'2026-07-12 07:26:42'), (2076458250994503681,1,1,'flow_bpmn_builder','flow_1783901203338_ckmbd4vn','user','工装审批',NULL,'2026-07-13 08:06:40'), (2076461291038691330,1,1,'d001','99afa5cc-756c-42f0-a19d-e0673498eb7a','user','https://api.deepseek.com',NULL,'2026-07-13 08:18:45'), (2076519517138481153,1,1,'dashboard_generator','ai-session-1783915762944-71f44392e98ee','user','工厂生产数据监控大屏',NULL,'2026-07-13 12:10:07'), (2076612418531086337,1,1,'d001','bd85e4d8-cd77-45c1-bf0c-f3a9f733c616','user','能连接吗',NULL,'2026-07-13 18:19:17'), (2076846773413113857,1,1,'dashboard_generator','ai-session-1783993821484-ea7468f9d7c29','user','基于所选业务定义生成经营监控大屏',NULL,'2026-07-14 09:50:31'), (2076952485598449665,1,1,'test','dbe6ace5-6013-477a-b84e-c902eadf3229','user','ce',NULL,'2026-07-14 16:50:35'); INSERT INTO ai_chat_record (id,tenant_id,user_id,agent_code,session_id,`role`,content,token_usage,create_time) VALUES (2077239270811398145,1,1,'dashboard_generator','ai-session-1784087397492-621cd62ba95e9','user','财务数据分析大屏',NULL,'2026-07-15 11:50:10'), (2077664311936077826,1,1,'flow_bpmn_builder','flow_1784188746944_1iobs8u0','user','生成一个请假审批流程:3天以内直属上级审批,超过3天先直属上级再HR审批。',NULL,'2026-07-16 15:59:08'), (2077669374150602754,1,1,'dashboard_generator','ai-session-1784189878097-ff4d28052e5','user','财务数据分析大屏',NULL,'2026-07-16 16:19:15'), (2077669657563918338,1,1,'dashboard_generator','ai-session-1784189974308-58cbd438f2f3a','user','财务数据分析大屏',NULL,'2026-07-16 16:20:22'), (2078048628340215810,1,1,'flow_bpmn_builder','flow_1784280374933_v7cfa3c9','user','生成一个请假审批流程:3天以内直属上级审批,超过3天先直属上级再HR审批。',NULL,'2026-07-17 17:26:16'), (2079013016731676673,1,1,'dashboard_generator','ai-session-1784510220509-c0dee27fd7b3f8','user','基于所选业务定义生成经营监控大屏',NULL,'2026-07-20 09:18:24'), (2079013016794591234,1,1,'dashboard_generator','ai-session-1784510220509-c0dee27fd7b3f8','assistant','【思考过程】 我们被要求输出一个JSON,基于经营监控大屏,深色主题。已有内容是一个柱状图在(638,271,500,300)。需要在此基础上增量修改,保持该柱状图并添加其他组件,形成一个经营监控大屏。 业务定义:经营监控,可能涉及财务、销售、运营等。用户说“基于所选业务定义生成经营监控大屏”,但没有提供具体业务数据。根据上下文,可能是通用经营监控。我们要智能决策布局。 深色主题,颜色选择金融商务→#ff9f43金橙?经营监控可以归为金融商务,accentColor=#ff9f43。或者政务管理?经营监控通常用金橙或蓝色。我选择橙黄,但也可以深蓝。根据颜色统一要求:金融商务→#ff9f43金橙。所以主题色设为#ff9f43。 布局:1920x1080。已有柱状图在(638,271,500,300)。我们需要用PanelFrame或边框包裹它。规则:模块优先用PanelFrame包裹其后一个图表、地图或表格组件。PanelFrame必须放在被包裹组件前面。因此对于已有的柱状图,我们需要在前面添加一个PanelFrame,其x,y,w,h与柱状图一致(638,271,500,300),但PanelFrame本身尺寸可能略大?PanelFrame的w和h一般要比内部组件稍大,给边框留空间,但这里写的是500x300,我们可以让PanelFrame为506x306(标准)然后内部图表放在边框内?但组件矩形不能重叠,如果PanelFrame与图表重叠,则违反了规则(除模块框与其紧随的被包裹组件外,其他组件矩形禁止重叠)。所以PanelFrame应该与图表完全相同的坐标和尺寸?或者PanelFrame的x,y减去几像素,w,h加几像素?通常PanelFrame是包裹在外面的,可以做大一点。但为了避免重叠,可以将PanelFrame的x,y设为图表左上角,w,h等于图表尺寸,但那样就会重叠。实际上规定“除模块框/边框与其紧随其后的被包裹组件外,其他组件矩形禁止重叠”意味着模块框和被包裹组件允许重叠。所以我们可以让PanelFrame的x,y,w,h与图表相同,图表放在PanelFrame后面,它们重叠。但是否需要让PanelFrame稍大一点以显示边框?我们可以让PanelFrame的尺寸比图表稍大,例如PanelFrame506x306,图表500x300,PanelFrame的x=图表x-3, y=图表y-3。这样它们重叠,但总面积覆盖图表区域加边框。这应该可以。 更简单的做法:使用Border边框,Border可以被用来包裹图表,Border01-13都是500x300。我们可以不用PanelFrame。但规则说“模块优先用PanelFrame包裹其后一个图表、地图或表格组件;如果不用PanelFrame才使用Border01-Border13。”所以我们应优先用PanelFrame。 现有柱状图坐标(638,271),可以给它加一个PanelFrame。但需要注意PanelFrame有标题,需要设置option.title。给经营监控大屏的模块框起名,比如“月度销售额”之类的。 然后需要设计整个大屏的布局。大屏标题用ScreenTitle。顶部标题居中,然后KPI指标区,然后中心区域放置主要视图,周围放置辅助图表。考虑到已经有一个500x300的柱状图在中间偏右位置(x=638,y=271,从左边638开始,右边距820,所以它在右侧位置),我们可以把这个柱状图作为右侧的一部分。需要补充左侧、上方、下方等组件。 1920宽度:左边x=0到638是638px空白,右边从638+500=1138到1920是782px空白。下方从571到1080还有509px高度。上方从0到271有271px高度。所以可以布局为: -顶部:标题和KPI组。 -左侧区域:放置一些辅助图表,比如排名、指标卡、雷达等。 -中间上部:可能放置主图,比如折线图或地图。但已有柱状图占据了右侧中间位置,所以中间可能可以放一个大地图或趋势图。那我们就在左侧放一些东西,中间下部放一些东西,右侧上部放一些指标等。 考虑使用中心主图环绕式:一个大图在中心,但已有柱状图会干扰。可以移动柱状图?但要求保持现有布局和组件语义一致,意思是这个柱状图要保留在其位置,我们可以基于它来增加组件。所以不能移动。这样中心区域可能被柱状图占据,没有超大主图。那我们可以采用左宽右窄的布局,柱状图放在右侧中上位置,左侧放一个较大的折线图或地图,下方放其他组件。 实际坐标:柱状图(638,271,500,300),它的下边界是571,右边界是1138。我们可以让左侧放一些组件,下方放一些组件。建议布局: -顶部:标题ScreenTitle,x居中,y=10左右。 -顶部下方:KpiGroup或KpiCard,用于概览指标,y=100左右。 -左侧区域:从x=20到610左右,可以放一个较大的趋势图(折线图),宽度约600,高度约350,位于y约250。下方放一些排行或表格。 -右侧区域:维持柱状图位置(638,271),上方可以放一个指标卡或迷你趋势卡等,下方放另一个图表,如饼图或漏斗图。 -下部:在y=571到1080之间,可以放一些进度条、词云、滚动列表等。 确保组件不越界,且不重叠(除模块框与被包裹组件)。我们需要严格规划每个组件的坐标。 大屏尺寸1920x1080,背景深色,使用GlowBackdrop作为发光背景,放在较低层,不被PanelFrame包裹。 首先确定主题色:accentColor = "#ff9f43",用于标题、模块框等。 标题选择:ScreenTitle03?星环标题,适合经营监控。或者用ScreenTitle,哪个都行,我们选ScreenTitle03,x=480, y=20, w=960, h=90。标题内容:经营监控大屏,subtitle: "Business Intelligence"。 KPI指标区:使用KpiGroup,4个指标:营业收入、净利润、毛利率、现金流。KpiGroup尺寸900x112,放在标题下方y=120,x=510 (居中)。或者直接放4个KpiCard?规则:4-6个概览指标优先用KpiGroup。所以我们用KpiGroup。option.dataset: [{title:"营业收入",value:15680.5,unit:"万元",trend:"+12.3%"},...] 。columns:4, accentColor:"#ff9f43"。 然后左侧:放置一个大折线图(LineGradients双折线渐变面积图)展示收入与成本趋势,需配PanelFrame。尺寸可以500x300,但考虑左侧空间,我们可以稍微大点,比如500x300也可以。x=20, y=250,PanelFrame包裹。PanelFrame title:"收入与成本趋势",大小506x306,坐标为(18,248)?然后图表(20,250,500,300)。这样重叠,可以。或者用PanelFrame w=506,h=306, x=17,y=247 (留3px边框)。但为了简单,让PanelFrame x=18, y=248, w=500, h=300,与图表相同坐标,图表也x=18,y=248,w=500,h=300;但PanelFrame尺寸要是506x306才有边框,如果PanelFrame w=500,h=300,那么边框将占去内部空间。标准PanelFrame w=506,h=306,所以我们让PanelFrame x=17, y=247, w=506, h=306,内部图表x=20, y=250, w=500, h=300。这样它们重叠,但规则允许。 同样,在柱状图下方,可以放置一个饼图环形图,展示产品占比。已经有柱状图在右侧,下方可以放一个饼图。x=638, y=600, w=500, h=300,用PanelFrame包裹,PanelFrame x=635, y=597, w=506, h=306。饼图标题:"产品销售额占比"。 右侧上部:在柱状图上方,可以放置两个KpiCard或MiniTrendCard。但KpiCard320x96,两个并排放不下,因为x从638到1138宽500,可以放一个。或者放置一个MetricCompareCard360x150,可以放在x=708, y=120,y=120在标题下方,KpiGroup下方,正好在柱状图上方。但y=120 KpiGroup在中间,占用到y=232,KpiGroup高度112,y=120到232。柱状图y=271,所以之间还有空间。可以放一个MiniTrendCard在x=720, y=240?不重叠,距离柱状图太近。可以放一个KpiCard在x=738,y=135?但会与KpiGroup重叠。KpiGroup居中x=510到1410宽度900,右侧边界1410,而柱状图右边界1138,KpiGroup覆盖它。所以KpiGroup放在中间,不会和右侧柱状图区域冲突,因为柱状图在y=271,KpiGroup在y=120,它们垂直不重叠。上面KpiGroup可以占据整个宽度,没问题。柱状图右侧空白区域(1138到1920)可以放一个Clock或装饰,但也可以放一个小图表,比如水球图。 左侧空白区域(0到638)从上到下可以放:在y=250的折线图下面,可以放一个RankProgressList排行进度,x=20, y=580, w=420, h=280。或者放在折线图下方。确保不越界:折线图下边界y=250+300=550,下方可放RankProgressList y=570,高280,下边界850,在1080内。可以。 在折线图右侧与柱状图之间,可以有空白,可以放一个装饰或小模块,但间距较小。柱状图x=638,折线图x=20,w=500,右边界520,所以之间还有118px空白,可以放一个纵向分割线或一个小数字翻牌。但为了不拥挤,保持留白。 右侧柱状图旁边,x=1138到1920宽度782,可以放一个TableScrollBoard轮播列表,展示最新订单或交易。x=1150, y=400, w=550, h=300。或者放在更下方。 底部中间:在柱状图和折线图下方、中间区域,可以放一个VChartWordCloud词云或桑基图。但空间有限。我们可以在y=900左右放一些装饰条。 整体考虑:添加GlowBackdrop发光背景,放在最底层,zIndex设低,不与其他组件重叠,可以放在画面中心或底部,比如x=600,y=400, w=720, h=420。这个不影响其他组件,因为没有交互重叠。 还需添加一些装饰组件:可以在左右上角放Decorates装饰。 现在,需要将原有柱状图转为被PanelFrame包裹。原柱状图key="BarCommon",我们要在前面插入一个PanelFrame。并且为柱状图设置option,绑定数据集。因为没有具体数据集,我们提供静态数据。柱状图适合月度销售额,dataset: dimensions: ["月份","销售额"], source: [{"月份":"1月","销售额":1523},...]。使用PanelFrame包裹,title: "月度销售额"。 同样,折线图使用LineGradients,展示收入与成本,需要option.dataset,dimensions: ["月份","收入","成本"], source: ...。饼图PieCircle,产品销售额占比。 KpiGroup的指标:营业收入、净利润、毛利率、现金流。 再添加一个SectionHeader在模块框内?可能不需要。 还要添加一些小组件满足视觉丰富度:如StatusBadgeList展示各部门状态、TimelineList展示最新事件、FlipperNumber用于某个关键数字。但空间需合理。 考虑到左侧下方RankProgressList,排行进度,适合部门业绩排行。 右侧下方可以放一个TimelineList,显示经营事件,y=600, x=1150, w=440, h=280。但之前想放TableScrollBoard,可以替换为TimelineList。或者底部中间放一个StepFlow展示业务流程。 在左侧折线图下方,放RankProgressList,x=20,y=570。右侧下方放TimelineList,x=1150,y=600。中间区域在柱状图下方y=600左右,可以放一个水球图WaterPolo表示目标完成率,x=640, y=600, w=400, h=300,但柱状图已经下方有饼图,饼图y=600,重叠。所以需要错开。饼图放在柱状图下方正对位置,那么中间区域剩下有限。柱状图下边界571,下方到1080有509高度,可以放一个高300的饼图,y=600,那么下边界900,之后还有180px可以放其他,如TextCommon。但柱状图右侧空白区域可放多个。 重新规划: -顶部标题 (960x90) y=10- KpiGroup (900x112) y=110-左侧:折线图PanelFrame包裹LineGradients,x=17,y=247, w=506,h=306,内部图表(20,250,500,300)。标题"收入成本趋势" -左侧下方:RankProgressList,x=20, y=570, w=420, h=280,标题"部门业绩排行" -右侧:保留柱状图,并用PanelFrame包裹,x=635,y=247,w=506,h=306,内部图表(638,250,500,300)但原柱状图y=271,这里调成250与左侧对齐?保持原有y=271不变?为了对齐美观,可以让柱状图y=250,与左侧折线图齐平。但要求保持现有布局和组件语义一致,应该尽量保持原有位置,不过稍微调整y坐标整体美观,可能可以。约定:可小幅度移动,但保持大致区域。我将柱状图y从271调整到250,并重新计算。 -右侧下方:饼图,x=635, y=600, w=506, h=306,内部PieCircle(638,603,500,300)标题"产品销售额占比" -右侧再右边:在x=1150, y=250,可以放一个FlipperNumber显示总订单数,w=300,h=100。然后下方放一个TimelineList,x=1150, y=380, w=440, h=280。但高度可能不够,因为1150到1920宽770,可以放440宽没问题,y=380到660,下方还有空间。可以再加一个装饰或数据。 -底部中央:在x=20,y=870可以放一个StatusBadgeList,显示各部门状态,x=20, y=870, w=520, h=78。 -在柱状图饼图下方,y=920可以放一个DividerLine发光分割线,x=0, y=900, w=1920, h=26,作为底部装饰,但y=900已经在StatusBadgeList下方,StatusBadgeList下边界948,所以DividerLine放在y=950。 -可以放一个Carousel轮播图?不需要。 -在右上角放一个Clock时钟,x=1720, y=20, w=200, h=100,或者TimeCommon时间,但Clock更好。 -左侧顶部,KpiGroup左侧空白,可以放一个装饰Decorates03,x=20,y=110,w=400,h=70,但重叠。 优先使用GlowBackdrop,放在中间偏上,x=500, y=200, w=720, h=420,不影响其他组件,因为它是背景。 现在,考虑panelFrame的标题和颜色,统一accentColor=#ff9f43,borderColor=#cc7a2d(深变)。 具体给每个组件写option。 由于没有数据集ID,我们将提供静态option和dataset。 输出JSON,必须包含所有的组件列表,并且按照z-index顺序:先GlowBackdrop,然后Decorates,然后ScreenTitle,然后KpiGroup,然后每个PanelFrame跟随其包裹的图表,以及独立的组件如FlipperNumber、TimelineList、RankProgressList等。注意PanelFrame必须直接放在被包裹组件前面。 确保所有组件不越界,x+w<=1920, y+h<=1080。 具体计算: - ScreenTitle03: x=480, y=20, w=960, h=90。 - KpiGroup: x=510, y=120, w=900, h=112。 (960居中?1920/2=960,宽度900,x=960-450=510) - GlowBackdrop: x=600, y=250, w=720, h=420,不影响。 -左侧折线图PanelFrame: PanelFrame w=506,h=306, x=17,y=247;内部LineGradients: x=20,y=250,w=500,h=300。 -右侧柱状图PanelFrame: PanelFrame x=635,y=247,w=506,h=306;内部BarCommon: x=638,y=250,w=500,h=300。 -右侧饼图PanelFrame: PanelFrame x=635,y=600,w=506,h=306;内部PieCircle: x=638,y=603,w=500,h=300。 - RankProgressList: x=20,y=570,w=420,h=280,放在左侧折线图下方,y=570下边界850,安全。 - TimelineList: x=1150,y=380,w=440,h=280,下边界660,右侧空白。 - FlipperNumber: x=1150,y=250,w=300,h=100,显示总订单数,放在右侧空白上方。 - StatusBadgeList: x=1150,y=690,w=520,h=78,下边界768,安全。 - DividerLine: x=20,y=870,w=1880,h=26,放在底部。 - Clock: x=1700,y=20,w=180,h=80,右上角时间。 - Decorates03:作为顶部装饰条,x=0,y=0,w=1920,h=70,但会覆盖标题?标题y=20,这样重叠不行。可以放在标题上方或下方,但标题上边距小。可以不用。 -再加一个水球图WaterPolo放在中间底部?没有空间了。柱状图饼图下方还有y=906,可以放一个小东西,比如TextCommon显示标语。 确保KpiGroup与下面的图不重叠:KpiGroup下边界y=232,折线图y=250,有18px间距,可以。标题y=20,h=90下边界110,KpiGroup y=120,间距10。 右侧FlipperNumber在x=1150,y=250,下边界350,TimelineList y=380,间距30。 左侧RankProgressList y=570,与折线图下边界550有20间距。 饼图 y=600,内部PieCircle y=603, h=300下边界903。 这样布局紧凑合理。 关于PanelFrame与图表尺寸:我们设定PanelFrame x=chart.x-3, y=chart.y-3, w=chart.w+6, h=chart.h+6。这样边框外移3像素。比如折线图(20,250,500,300),PanelFrame (17,247,506,306)正确。柱状图(638,250,500,300),PanelFrame (635,247,506,306)。饼图(638,603,500,300),PanelFrame (635,600,506,306)。饼图y=603,内部图表起始y=603,PanelFrame y=600,高306,下边界906。 然后给BarCommon绑定option:dataset: dimensions: ["月份","销售额"], source:12个月数据。因为经营监控,月度数据。 LineGradients:收入与成本双线。 PieCircle:产品类别销售额占比。 KpiGroup:指标。 RankProgressList:部门业绩排行,百分比。 TimelineList:经营事件。 FlipperNumber:总订单数。 DividerLine: horizontal,accentColor=#ff9f43,secondColor=#ff9f43深变。 Clock不需要option。 ScreenTitle03: option: { "dataset": "经营监控大屏", "subtitle": "BUSINESS MONITORING CENTER", "fontSize":46, "accentColor": "#ff9f43", "showBorder": true, "showBackground": true, "showDecorations": true }。 PanelFrame: option: { "title": "xxx", "unit": "万元", "accentColor": "#ff9f43", "borderColor": "#cc7a2d" }。 注意:PanelFrame的option只包含title,unit,accentColor,borderColor,不要有dataset。 输出JSON。 最后检查避免重复key,因为柱状图已存在,需包含在components列表里,且前面是PanelFrame。所以components中,先PanelFrame,后BarCommon。 同样其他模块。 GlowBackdrop放在所有组件之前(背景层)。 另外需要考虑z-index?不需要在JSON里体现,按顺序渲染即可。 现在生成JSON。 【回复内容】 { "title": "经营监控大屏", "canvasConfig": { "width":1920, "height":1080, "background": "#1e1e2e" }, "components": [ { "key": "GlowBackdrop", "x":600, "y":250, "w":720, "h":420, "title": "", "option": { "variant": "reactor", "accentColor": "#ff9f43", "secondColor": "#ff9f43", "thirdColor": "#ff7f24", "opacity":0.9 } }, { "key": "ScreenTitle03", "x":480, "y":20, "w":960, "h":90, "title": "", "option": { "dataset": "经营监控大屏", "subtitle": "BUSINESS MONITORING CENTER", "fontSize":46, "accentColor": "#ff9f43", "showBorder": true, "showBackground": true, "showDecorations": true } }, { "key": "KpiGroup", "x":510, "y":120, "w":900, "h":112, "title": "", "option": { "dataset": [ { "title": "营业收入", "value":15680.5, "unit": "万元", "trend": "+12.3%" }, { "title": "净利润", "value":4230.8, "unit": "万元", "trend": "+8.6%" }, { "title": "毛利率", "value":37.2, "unit": "%", "trend": "+2.1%" }, { "title": "现金流", "value":3520.3, "unit": "万元", "trend": "-5.4%" } ], "columns":4, "accentColor": "#ff9f43" } }, { "key": "PanelFrame", "x":17, "y":247, "w":506, "h":306, "title": "", "option": { "title": "收入成本趋势", "unit": "万元", "accentColor": "#ff9f43", "borderColor": "#cc7a2d" } }, { "key": "LineGradients", "x":20, "y":250, "w":500, "h":300, "title": "收入成本趋势", "option": { "dataset": { "dimensions": ["月份", "收入", "成本"], "source": [ { "月份": "1月", "收入":2400, "成本":1800 }, { "月份": "2月", "收入":2800, "成本":2100 }, { "月份": "3月", "收入":3100, "成本":2300 }, { "月份": "4月", "收入":3600, "成本":2700 }, { "月份": "5月", "收入":4200, "成本":3100 }, { "月份": "6月", "收入":4800, "成本":3600 }, { "月份": "7月", "收入":5100, "成本":3800 }, { "月份": "8月", "收入":5700, "成本":4300 }, { "月份": "9月", "收入":6200, "成本":4600 }, { "月份": "10月", "收入":6600, "成本":4900 }, { "月份": "11月", "收入":7200, "成本":5400 }, { "月份": "12月", "收入":7800, "成本":5800 } ] } } }, { "key": "PanelFrame", "x":635, "y":247, "w":506, "h":306, "title": "", "option": { "title": "月度销售额", "unit": "万元", "accentColor": "#ff9f43", "borderColor": "#cc7a2d" } }, { "key": "BarCommon", "x":638, "y":250, "w":500, "h":300, "title": "月度销售额", "option": { "dataset": { "dimensions": ["月份", "销售额"], "source": [ { "月份": "1月", "销售额":1523 }, { "月份": "2月", "销售额":1780 }, { "月份": "3月", "销售额":2035 }, { "月份": "4月", "销售额":2310 }, { "月份": "5月", "销售额":2680 }, { "月份": "6月", "销售额":2970 }, { "月份": "7月", "销售额":3250 }, { "月份": "8月", "销售额":3540 }, { "月份": "9月", "销售额":3890 }, { "月份": "10月", "销售额":4120 }, { "月份": "11月", "销售额":4500 }, { "月份": "12月", "销售额":4820 } ] } } }, { "key": "PanelFrame", "x":635, "y":600, "w":506, "h":306, "title": "", "option": { "title": "产品销售额占比", "unit": "%", "accentColor": "#ff9f43", "borderColor": "#cc7a2d" } }, { "key": "PieCircle", "x":638, "y":603, "w":500, "h":300, "title": "产品销售额占比", "option": { "dataset": { "dimensions": ["产品", "占比"], "source": [ { "产品": "产品A", "占比":42 }, { "产品": "产品B", "占比":28 }, { "产品": "产品C", "占比":18 }, { "产品": "产品D", "占比":8 }, { "产品": "产品E", "占比":4 } ] } } }, { "key": "RankProgressList", "x":20, "y":570, "w":420, "h":280, "title": "部门业绩排行", "option": { "dataset": [ { "name": "华东区", "value":96.8 }, { "name": "华南区", "value":91.2 }, { "name": "华北区", "value":88.5 }, { "name": "华中区", "value":82.3 }, { "name": "西南区", "value":77.4 }, { "name": "东北区", "value":71.6 }, { "name": "西北区", "value":65.9 } ], "unit": "%", "max":100 } }, { "key": "FlipperNumber", "x":1150, "y":250, "w":300, "h":100, "title": "总订单数", "option": { "dataset":28490, "unit": "单" } }, { "key": "TimelineList", "x":1150, "y":380, "w":440, "h":280, "title": "经营事件", "option": { "dataset": [ { "time": "10:23", "title": "华东区新签大额订单", "level": "高", "status": "success" }, { "time": "10:05", "title": "华南区库存预警触发", "level": "中", "status": "warning" }, { "time": "09:47", "title": "产品质量抽检异常", "level": "高", "status": "danger" }, { "time": "09:30", "title": "新门店正式开业", "level": "低", "status": "info" }, { "time": "09:12", "title": "月度财务报表生成", "level": "低", "status": "info" }, { "time": "08:55", "title": "线上广告投放上线", "level": "中", "status": "warning" } ] } }, { "key": "StatusBadgeList", "x":1150, "y":690, "w":520, "h":78, "title": "业务板块状态", "option": { "dataset": [ { "label": "零售", "value":128, "color": "#47ffb2" }, { "label": "批发", "value":46, "color": "#ffcf5a" }, { "label": "电商", "value":89, "color": "#38bdf8" }, { "label": "海外", "value":15, "color": "#a78bfa" } ], "columns":4, "unit": "单" } }, { "key": "DividerLine", "x":20, "y":870, "w":1880, "h":26, "title": "", "option": { "direction": "horizontal", "thickness":2, "accentColor": "#ff9f43", "secondColor": "#cc7a2d" } }, { "key": "Clock", "x":1720, "y":20, "w":180, "h":80, "title": "", "option": {} } ] }',NULL,'2026-07-20 09:18:24'), (2079024921684746242,1,1,'test','aa266343-ed15-4e83-8a21-ef71b4d80a33','user','你的前后端技术架构 是什么',NULL,'2026-07-20 10:05:42'), (2079024921735077890,1,1,'test','aa266343-ed15-4e83-8a21-ef71b4d80a33','assistant','【思考过程】 我们被要求回答自己的前后端技术架构。作为企业级智能体,需要基于已配置的上下文和工具能力回答。我没有上下文信息,需要说明限制。可以给出通用架构,但必须说明不确定的。所以我应该说明:我作为AI智能体,没有固定的前后端架构,取决于部署平台。可以提供一个通用参考架构,并说明限制。 【回复内容】 我本身是一个基于大语言模型的智能体,并非一个传统意义上的前后端分离应用,因此没有一个固定的“我的前后端技术架构”。我的能力取决于部署平台和集成方式。 不过,如果你是在问“一个典型的企业级智能体应用参考架构”,我可以提供一个通用的分层模型供参考: ##通用企业智能体技术架构(参考) ``` ┌─────────────────────────────────────┐│前端层 (Web/移动端/桌面) ││ - React / Vue / Angular ││ -流式聊天组件、Markdown渲染、附件上传 ││ -通过 HTTP/WS与后端通信 │└─────────────────────────────────────┘ ↕┌─────────────────────────────────────┐│接入层 (API网关) ││ -身份认证 (JWT/OAuth) ││ -限流、路由、请求/响应转换 │└─────────────────────────────────────┘ ↕┌─────────────────────────────────────┐│智能体编排层 (Agent) ││ -会话管理、上下文组装 ││ -工具调用 (函数/API) ││ -规划、反思、执行链 ││ -与 LLM基础模型交互 │└─────────────────────────────────────┘ ↕┌─────────────────────────────────────┐│能力层 (Tools) ││ -检索增强生成 (RAG) ││ -数据库/API查询 ││ -代码执行、逻辑推理 ││ -多模态处理 (图像、语音等) │└─────────────────────────────────────┘``` ###重点说明- **前端**:负责对话界面、输入输出展示,常通过 Server-Sent Events (SSE)或 WebSocket实现流式响应。 - **后端核心**:智能体编排层是大脑,使用 LangChain、Semantic Kernel等框架,负责决策链和工具调用。 - **我的运行模式**:作为智能体,我被调用时由后台提供上下文和工具列表,然后我推理生成回答或调用工具。我不直接管理前端或持久化存储。 **注意**:以上是通用参考,并非我当前实例的具体实现。如果你有特定平台或框架要求,我可以进一步给出定制化建议。',NULL,'2026-07-20 10:05:42'), (2079025094171303938,1,1,'test','aa266343-ed15-4e83-8a21-ef71b4d80a33','user','我是说这个软件 的前后端架构',NULL,'2026-07-20 10:06:24'); INSERT INTO ai_chat_record (id,tenant_id,user_id,agent_code,session_id,`role`,content,token_usage,create_time) VALUES (2079025094221635586,1,1,'test','aa266343-ed15-4e83-8a21-ef71b4d80a33','assistant','【思考过程】 我们需要理解用户问题。“你的前后端技术架构是什么”然后用户补充“我是说这个软件的前后端架构”。结合之前我的回答,我说了我是基于大模型的智能体,没有固定架构。现在用户澄清“这个软件”,可能是指我正在运行的对话界面,比如这个聊天窗口本身?或者是整个智能体平台?由于我在Web端或客户端,可能用户是在问这个聊天应用(比如Web界面)的前后端架构。需要判断:我作为一个智能体,被集成在一个聊天软件中,用户可能想知道这个聊天软件的技术栈。但是我没有具体上下文,只能根据常见情况推测。从对话看,之前用户问“你是一个企业级智能体。请根据用户问题给出准确、清晰、可执行的回答。”然后我问了“你的前后端技术架构”,然后我回答了通用参考。用户又追问“我是说这个软件的前后端架构”。可能是指这个聊天机器人软件(网页)的前后端。但是我没有权限知道部署细节,只能推测。 我需要遵守要求:优先基于已配置的上下文和工具能力回答。目前没有上下文配置。不确定的信息要说明限制。所以我可以这样回答:作为AI,我无法直接访问我所运行环境的具体技术栈,但根据常见的企业级智能助手实现,可以推测架构。并提供一般性的描述。同时指出限制。这样既给出了可能架构,也说明了不确定性。比如:前端可能是React/Vue,后端可能有API网关、大模型接口,以及RAG等。但是我不知道确切的。我可以描述从用户角度可能感知到的:网页聊天界面,可能采用流式传输。技术栈可能是通用的。我需要确保不编造,只能说“常见实现”。然后给出建议,如果用户需要准确信息,可以联系开发团队。这样回答。 还需要注意语气,作为智能体,我应当友好解释。所以我将这样构建回答。 【回复内容】 作为对话中的 AI,我无法直接查看我所运行的聊天软件的内部代码和部署配置。不过,基于常见的企业智能助手产品形态,我可以对你当前正在使用的**这个聊天界面(软件)**的前后端架构做一个合理的推测说明,并注明不确定之处。 --- ###常见架构推测(以 Web聊天应用为例) |层级 |可能技术实现 |说明 | |------|--------------|------| | **前端**(你看到的聊天窗口) | React / Vue / Next.js等 |负责渲染对话气泡、输入框、流式打字效果、附件上传等。通常通过 WebSocket或 SSE(Server-Sent Events)从后端接收大模型生成的流式回答。 | | **接入层 / BFF** | Node.js / Nginx / Kong网关 |处理用户登录态(JWT)、请求路由、限流、前端页面的服务端渲染(如 Next.js的 SSR)等。 | | **智能体服务** | Python(FastAPI / Flask)或 Node.js |接收你的问题,加载上下文、策略配置、工具列表,然后调用大模型(如 GPT-4)生成回复或触发工具调用。这里就是我的“大脑”运行的地方。 | | **大模型 API** | OpenAI / Azure OpenAI /私有化模型 |提供基础语言生成能力,智能体服务通过 API调用。 | | **工具 /数据层** | RAG检索(Elasticsearch /向量数据库)、数据库、API网关 |当我需要查询知识库或调用外部接口(如天气、数据库)时,智能体服务会执行工具逻辑。 | --- ### 📌明确的不确定性- **我不是开发者**,无法确切知道这个软件是用 React还是 Vue写的,也不知道后端具体框架。 -是否使用了 **缓存、消息队列、微服务**等中间件,我无法感知。 -如果你指的是**手机 App(如微信小程序、iOS/Android)内的聊天**,那么前端可能是原生或跨平台框架(Flutter/React Native),但这类信息我同样无法确认。 --- ### 🔧如何获取准确信息? 1. **查看网页源码/网络请求**:通过浏览器开发者工具(F12)查看网络面板,可以看到前端请求的 API格式、是否使用了 SSE等。 2. **联系软件提供方**:向开发团队或产品文档寻求技术架构说明。 3. **如你有权访问后台**:查看项目代码仓库(如 Git)或 CI/CD配置即可直接了解。 希望这个推测对你有帮助!如果你能提供更多线索(比如这是网页端还是 App、观察到什么技术特征),我可以进一步缩小范围。',NULL,'2026-07-20 10:06:24'), (2079025637707010049,1,1,'flow_bpmn_builder','flow_1784513258077_mavm1g2l','user','生成一个请假审批流程:3天以内直属上级审批,超过3天先直属上级再HR审批。',NULL,'2026-07-20 10:08:33'), (2079025637778313217,1,1,'flow_bpmn_builder','flow_1784513258077_mavm1g2l','assistant','【思考过程】 我们需要根据用户需求生成一个请假审批流程:3天以内直属上级审批,超过3天先直属上级再HR审批。 用户需求: -请假审批流程。 -条件:请假天数 <=3天 =>直属上级审批。 -请假天数 >3天 =>先直属上级审批,再HR审批。 平台上下文: -有请假表单:formKey="leave_form"。 - SPEL模板:${initiatorLeader}、${flowSpelService.getInitiatorLeader(execution)}等。 -审批人类型:leader:发起人上级,可使用 ${flowSpelService.getInitiatorLeader(execution)}。HR可能是角色?根据角色查找用户: ${flowSpelService.findUsersByRole(execution.getVariable("roleKey"))}或直接 ${flowSpelService.findUsersByRole("hr")}。但roleKey变量未定义,更可能是直接指定角色名 "hr"。所以HR审批人可以使用 flowable:candidateGroups="hr"或者表达式 ${flowSpelService.findUsersByRole("hr")}。推荐使用 flowable:candidateGroups="hr"简单。 -当前BPMN XML是一个简单的start -> task -> end,需要替换为条件流程。我们要基于当前XML修改,还是完全覆盖?题目说"如果用户要求修改当前流程,必须基于当前 BPMN XML增量修改,保留未被要求改变的节点、条件和审批人配置。"但当前XML里没有请假天数条件,且modelKey是1111,当前process id="approve",可能modelKey是1111?上下文说modelKey:"1111",当前process id="approve",这不匹配。应该使用modelKey="1111"。当前XML里definitions可能也需要调整process id。需求是生成请假审批流程,可能完全替换。 当前流程模型:modelKey:"1111",但当前BPMN中process id="approve"。可能是用户提供的现有流程模型不是请假流程,需要生成新的。我们根据用户需求生成一个新流程,modelKey使用"1111",modelName可以改为"请假审批流程"或"请假申请流程"。根据上下文,formType可能是dynamic,并且使用请假表单 leave_form。formJson可以为空字符串(如果需要动态表单,但这里不要求)。我们生成的BPMN XML要使用modelKey作为process id。所以process id="1111"。 流程设计: -开始事件。 -一个用户任务:发起人填写请假申请?我们可以设计一个发起人申请节点,但用户需求主要是审批,可能从发起人直接开始到条件判断。可以设计:startEvent -> userTask(发起人提交)?但当前原XML只有start -> task -> end,但那是简单审批。这里我们可以设计:startEvent(发起人填写请假表单) ->排他网关判断天数 <=3?实际上通常发起人是提交申请,然后条件路由。我们需要一个申请节点吗?流程通常:发起人填写请假单,然后提交,然后根据天数判断审批。但BPMN中startEvent不会执行用户任务,可以有一个用户任务“填写请假申请”,由发起人完成。然后网关判断请假天数变量。然后根据条件流向直属上级审批或先直属上级审批再HR审批。 因此,设计: - StartEvent. - UserTask "填写请假申请",指派给${initiator}(发起人),表单使用 leave_form。 -排他网关,判断请假天数。需要变量名,例如 ${day <=3}或者 ${leaveDays <=3}。使用leaveDays。 - <=3 days:流向直属上级审批(UserTask "直属上级审批",审批人表达式 ${flowSpelService.getInitiatorLeader(execution)})。 - >3 days:流向直属上级审批(与前面同一个节点或不同?需求:超过3天先直属上级再HR审批。所以是直属上级审批后传给HR审批。所以两个任务串联:直属上级审批 -> HR审批。不能共用同一个节点,因为需要顺序执行。所以可以为 >3分支:先直属上级审批任务,然后HR审批任务。 -直属上级审批后,如果<=3天,直接结束;如果>3天,流向HR审批。这需要网关来区分?或者用两条流。可以设计:在直属上级审批节点后,用一个排他网关判断是否>3天,如果是>3天,流向HR审批,否则结束。但这样需要重复条件。或者直接在 >3的分支上,直属上级审批任务后流向HR审批,而<=3分支的直属上级审批任务后直接结束。但是这样相当于有两个“直属上级审批”任务节点,是可以的,但它们是不同的节点id,但名称可以相同。或者尝试共享同一个直属上级审批节点,但在其后根据条件分叉。如果共享节点,那么两个分支都指向同一个直属上级审批Node,然后审批后需要判断天数来决定是否去HR审批。但此时天数条件可能仍然可用,因为变量leaveDays在流程中都保持。可以在直属上级审批后放一个排他网关,判断${leaveDays >3}去HR审批,否则结束。这样只要一个直属上级审批节点。设计更清晰。 所以: - StartEvent -> UserTask "填写请假申请" (initiator) - -> ExclusiveGateway "判断天数" -条件1: ${leaveDays <=3} -> UserTask "直属上级审批" -条件2: ${leaveDays >3} -> UserTask "直属上级审批"(同一个节点)或者直接指向同一节点。但在BPMN中,两个顺序流可以指向同一个节点。我们可以把两个分支都指向同一个“直属上级审批”节点。比如从网关引出两条线,一个condition ${leaveDays <=3},一个condition ${leaveDays >3},都指向同一个直属上级审批节点。那是可以的。然后从直属上级审批节点出来,再通过一个排他网关判断是否>3天去HR审批。 -或者更简单:网关判断后,如果 <=3,就去直属上级审批;如果 >3,先去直属上级审批,然后再HR审批。可以这样:网关 ->条件${leaveDays <=3} ->直属上级审批Task -> EndEvent;网关 ->条件${leaveDays >3} ->直属上级审批Task(另一个id)-> HR审批Task -> EndEvent。这样用了两个直属上级审批节点,有点重复但逻辑清晰。为了避免重复审批人配置,用两个节点也可以。更好的设计是共享节点,但需要再多一个网关。我选择共享节点:网关两个分支都指向同一个直属上级审批节点,然后从该节点出来接一个排他网关,判断${leaveDays >3},如果是去HR审批,否则结束。这样简洁。 因此,流程: - StartEvent (id: start) -> UserTask (id: apply_task, name: "提交请假申请", assignee: ${initiator}, formKey: "leave_form") - apply_task -> ExclusiveGateway (id: gateway_days, name: "请假天数") - sequenceFlow1: condition ${leaveDays <=3}, target: leader_approval - sequenceFlow2: condition ${leaveDays >3}, target: leader_approval- UserTask (id: leader_approval, name: "直属上级审批", assignee: ${flowSpelService.getInitiatorLeader(execution)}, formKey: "approval_form"或 leave_form?审批也可以用approval_form,或者leave_form。用 leave_form也可以,或者通用审批表单。使用 "approval_form"合理。 - leader_approval -> ExclusiveGateway (id: gateway_after_leader, name: "判断是否需要HR") - sequenceFlow: condition ${leaveDays >3}, target: hr_approval - sequenceFlow: default (否则) target: end- UserTask (id: hr_approval, name: "HR审批", candidateGroups: "hr", formKey: "approval_form") - hr_approval -> EndEvent- else条件流直接到 EndEvent (id: end) 注意:网关需要指定一个默认流,以防没有条件匹配。对于gateway_days,我们可以设置两个条件覆盖所有情况,但也可以设一个default。同样gateway_after_leader,设一个default流去结束。在BPMN中,可以在sequenceFlow上不写条件,它会被当作默认流,但需要网关没有其他分支匹配。更规范:给一条流不设置conditionExpression,作为默认。或者给条件 ${leaveDays <=3}和互补 ${leaveDays >3},不需要默认。在gateway_after_leader,设置条件 ${leaveDays >3}和不设条件的默认流。这样较好。 审批人配置:直属上级使用 SPEL: ${flowSpelService.getInitiatorLeader(execution)}。HR审批使用候选组 flowable:candidateGroups="hr"。 表单:申请任务使用 leave_form,审批任务可以使用 approval_form或 leave_form。使用 approval_form。 图形坐标:从左到右布局,避免重叠。坐标需要定义所有节点的BPMNShape,以及序列流的BPMNEdge。基于原XML,可以调整坐标。原XML坐标:StartEvent (200,40),节点 (200,170),结束 (200,300)。需要扩展为多个节点。我们可以设计从左到右,列排布。使用: - start: x=100, y=100- apply_task: x=250, y=100- gateway_days: x=400, y=100- leader_approval: x=550, y=100 (放置在中线),但因为之后有判断网关,也可以放在 x=700, y=100,但后面还有hr审批,可能垂直移动不太够。可做Y轴分叉。例如:网关在 x=400, y=100,然后 leader_approval放在 x=550, y=100作为共用节点,然后后续网关放在 x=700, y=100,然后 hr_approval放在 x=850, y=100,end放在 x=1000, y=100。这样水平线。但是需要将两条分支线都画上去,会导致线条重叠,但可以接受。简单布局:start (150,100), apply_task (300,100), gateway_days (450,100), leader_approval (600,100), gateway_after_leader (750,100), hr_approval (900,100), end (1050,100)。分支线从gateway_days到leader_approval的两条流需要画出来,但BPMN Edge只画一条线,但是可以有两个不同的edge id,使用相同的坐标点?因为都有相同的源和目标,可以用不同的waypoint。这有点困难,但可以在图形上表示。我们可以在bpmndi中为两条序列流创建不同的edge,但路径相同,都从 (450+宽度/2)到 (600+宽度/2)的中间点。宽度假设节点宽度100。则源中心点 (500,100)到目标中心点 (650,100),两个流都是这个路径,可能重叠。但可以接受。也可以错开Y轴。方便起见,水平布局。 节点大小:我们指定 dc:Bounds width="100" height="80"类似。 生成完整XML。需要替换原process id为"1111",并且modelKey="1111"。modelName可以设为"请假审批流程"。formType使用dynamic,formJson为空字符串。summary说明。 最后,输出JSON:包含modelKey, modelName, description, category, flowType, formType, formJson, summary, bpmnXml。 注意:bpmnXml必须是合法字符串,换行转义。我们将XML作为字符串放入JSON。 生成。 【回复内容】 { "modelKey": "1111", "modelName": "请假审批流程", "description": "员工请假审批流程,3天以内直属上级审批,超过3天直属上级和HR审批", "category": "dc4a3f22ca9bf8fe75945634fdfcf7c0", "flowType": "111", "formType": "dynamic", "formJson": "", "summary": "生成请假审批流程:包含提交申请、直属上级审批节点,通过排他网关按请假天数路由,3天内仅直属上级审批,超过3天增加HR审批", "bpmnXml": "\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n ${leaveDays <=3}\\n \\n 3\\">\\n ${leaveDays >3}\\n \\n \\n \\n ${leaveDays >3}\\n \\n \\n ${leaveDays <=3}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n" }',NULL,'2026-07-20 10:08:33'), (2079105443731611649,1,1,'bpmn1','7bc63ebe-a7ed-4dfc-a2b7-987cf72012ee','user','你是谁',NULL,'2026-07-20 15:25:40'), (2079105443828080641,1,1,'bpmn1','7bc63ebe-a7ed-4dfc-a2b7-987cf72012ee','assistant','【思考过程】 我们被要求给出准确、清晰、可执行的回答。用户问“你是谁”。我需要说明我是一个企业级智能体,并根据要求说明我的能力和限制。 【回复内容】 我是您的企业级智能助手,旨在提供准确、清晰且可执行的回答。我的能力基于已配置的上下文和工具,若遇到不确定的信息,我会明确说明限制,避免编造。如有具体问题,请随时告诉我。',NULL,'2026-07-20 15:25:40'), (2079105496013611010,1,1,'bpmn1','7bc63ebe-a7ed-4dfc-a2b7-987cf72012ee','user','你能为我做什么',NULL,'2026-07-20 15:25:53'), (2079105496068136961,1,1,'bpmn1','7bc63ebe-a7ed-4dfc-a2b7-987cf72012ee','assistant','【思考过程】 我们被要求给出准确、清晰、可执行的回答。用户问“你是谁你能为我做什么”。需要说明身份和能力。 【回复内容】 我是您的企业级智能助手,专为高效、准确地解决问题而设计。基于当前配置,我可以帮您: - **回答企业级问题**:例如流程咨询、技术方案、故障排查、管理策略等。- **提供结构化输出**:分步骤、清单、对比表格等形式,便于直接执行。- **说明已知限制**:若信息超出我的知识范围或需要实时数据,我会明确告知,不虚构。如果您有具体任务或场景,直接告诉我,我将立刻生成可操作的回复。',NULL,'2026-07-20 15:25:53'), (2079105921097932802,1,1,'bpmn1','7bc63ebe-a7ed-4dfc-a2b7-987cf72012ee','user','你使用的模型是什么模型',NULL,'2026-07-20 15:27:34'), (2079105921148264450,1,1,'bpmn1','7bc63ebe-a7ed-4dfc-a2b7-987cf72012ee','assistant','【思考过程】 我们被问到“你能为我做什么”,以及“你使用的模型是什么模型”。需要根据要求回答,说明我的能力,并说明模型信息。由于我可能不知道具体模型,需要诚实说明限制。我可以说我是一个企业级智能体,但模型信息可能未公开或未配置,可以说明不确定。 【回复内容】 我是您的企业级智能助手,设计目标是提供准确、清晰、可执行的回答。基于当前的能力配置,我可以为您完成以下任务: --- ### **我能为您做什么** 1. **企业级问题解答** -流程设计、制度咨询、技术方案选型、故障排查、管理策略等。 -示例:“如何设计一个工单流转系统?”、“防火墙端口不通怎么排障?” 2. **结构化内容生成** -自动生成分步骤操作指南、清单、对比表格、执行计划等,可直接落地。 -示例:“帮我列一个服务器巡检清单”、“将这段需求梳理成执行步骤”。 3. **信息梳理与总结** -从提供的上下文或文本中提取关键信息,归纳要点。 -示例:“总结这份会议纪要中的待办事项”。 4. **明确说明限制** -遇到超出知识范围、不确定或需要实时数据的问题,我会直接告知,**绝不虚构**。 --- ### **关于我使用的模型** 当前对话中我的底层由大语言模型驱动,但具体的模型名称和参数属于平台配置信息,我无法直接得知。如果您需要了解确切模型版本,建议您查看所用系统的设置界面或联系管理员。 有任何具体问题或任务,随时告诉我,我会立即给出可执行的回答。',NULL,'2026-07-20 15:27:34'), (2079203456613359617,1,1,'test','9b92f5bc-9ba5-419e-8e10-3758b50051dd','user','nihao',NULL,'2026-07-20 21:55:08'); INSERT INTO ai_chat_record (id,tenant_id,user_id,agent_code,session_id,`role`,content,token_usage,create_time) VALUES (2079203456663691266,1,1,'test','9b92f5bc-9ba5-419e-8e10-3758b50051dd','assistant','【思考过程】 我们被要求用中文回答。问题只是“nihao”,我们需要回应。 【回复内容】 你好!请问有什么可以帮您?',NULL,'2026-07-20 21:55:08'), (2079380670315286529,1,1,'flow_bpmn_builder','flow_1784597942178_ywpt0255','user','给当前流程增加驳回路径,审批不通过时回到发起人修改。',NULL,'2026-07-21 09:39:19'), (2079380670428532738,1,1,'flow_bpmn_builder','flow_1784597942178_ywpt0255','assistant','【思考过程】 我们被要求增加驳回路径,审批不通过时回到发起人修改。所以要在当前基础上增加一个网关和一个驳回路径。思路:在用户任务审批后,进行判断是否通过,用exclusiveGateway,条件分支:如果通过->结束,如果不通过->回到发起人(另一个userTask,或者直接回到原发起人节点?注意:流程中发起人是startEvent,不能直接回到startEvent,应该加一个修改节点。用户的描述:“审批不通过时回到发起人修改”,表示需要回退到发起人修改的地方,通常是对表单重新填写。因此我们在流程中加入一个userTask代表发起人的修改节点,回到一个名为“修改申请”的userTask,然后重新提交到审批人。但用户描述简单,只需要在审批不通过时回到发起人修改。可以设计为:startEvent -> userTask(审批) -> exclusiveGateway ->条件通过->endEvent;条件驳回->userTask(发起人修改) -> userTask(审批)或者直接回到审批节点?如果直接回到审批节点,那么修改节点就没有意义。通常是:驳回修改节点,分配给发起人,修改后重新提交,重新进入审批节点。这形成一个循环:审批节点->网关驳回路径到修改节点->修改节点回到审批节点。这需要在审批人任务后判断。同时为修改节点设置assignee="${initiator}",使用flowable:initiator变量。 实现:保持现有三个节点:StartEvent_1, Node_1 (审批节点), EndEvent_1。添加一个exclusiveGateway(id=Gateway_1),添加一个userTask(id=Node_2,名称“修改申请”,assignee="${initiator}")。调整连线: - Node_1 -> Gateway_1 (Flow_3),网关条件: -通过条件(比如审批结果为approved?)-> EndEvent_1 (Flow_4),条件表达式:${approvalResult == ''approved''}或类似变量。但用户需求未指定审批变量,我们可以用常见的变量如`${action == ''approved''}`或`${approved == true}`。简单起见,使用`${approved}`布尔值。但为了保持通用,可以用字符串`${approvalResult == ''approve''}`。也可用`${pass == true}`。我们参考类似场景,用`${approved}`。 -驳回条件 -> Node_2 (Flow_5),条件表达式:`${!approved}`。 - Node_2 -> Node_1 (Flow_6),即修改后重新进入审批。 此外,new网关和新增节点的图形坐标需要调整,从左到右布局,避免重叠。现有节点坐标:StartEvent (200,40), Node_1 (200,170), EndEvent (200,300)。增加Node_2和Gateway_1,可以放在Node_1右侧?原流程是竖直一排,x=200。若增加网关和驳回路径,可以考虑在Node_1右边放置网关,再往下或往右放置修改节点,然后连线回到审批节点。但要避免重叠和混乱。使用原有x=200竖直布局:StartEvent(200,40)->Node_1(200,170)->Gateway_1(200,260)->通过到EndEvent(200,350);驳回到Node_2(400,260),然后Node_2向上连线到Node_1右侧入口。这样坐标:Node_2_di x=400,y=260,w=180,h=70。网关需要形状,一个菱形,dc:Bounds表现为x=200,y=260,w=50,h=50。连线调整。 计算: - Flow_3 (Node_1->Gateway_1): waypoint: Node_1底部(290,240)到网关顶部(225,260?)网关中心(225,285?)需要计算。网关中心大概在(225,285) (假设x=200宽50,x中=225, y=260高50,y中=285)。Node_1底部是(290,240),连线到网关顶部中心(225,260)。所以di:waypoint:(290,240) (225,260)。 - Flow_4 (Gateway_1->EndEvent_1):网关底部(225,310)到EndEvent顶部(290,350)。 waypoints: (225,310) ( 【回复内容】 ',NULL,'2026-07-21 09:39:19'), (2079390364945641473,1,1,'dashboard_generator','ai-session-1784600147912-eb71e40850eb6','user','重新生成',NULL,'2026-07-21 10:17:51'), (2079390365071470594,1,1,'dashboard_generator','ai-session-1784600147912-eb71e40850eb6','assistant','【思考过程】 我们被要求重新生成一个大屏JSON,需要基于已有的组件布局(三个现有组件:BarCommon, BarCrossrange, ScatterCommon),增量修改。业务上下文没有提供实际的数据集,因此我们将使用静态数据。 根据用户管理业务,分析目标:监控核心业务链路稳定,发现流量、订单、服务、告警等异常。我们需要设计一个指挥舱大屏。主题色:用户管理属于“科技/互联网”类别,主题色#a78bfa紫。但我们也可以根据用户管理偏向运营监控,可以使用紫色。 现有组件: - BarCommon:柱状图,x:108, y:99, w:700, h:831 —非常大,占据了左边大部分。 - BarCrossrange:横向柱状图,x:1036, y:284, w:500, h:300 —右边上。 - ScatterCommon:散点图,x:792, y:616, w:1032, h:441 —中等偏右,横跨很大。 现有布局比较零散,需要整合成一个指挥舱大屏。我们将在不改变现有组件位置的情况下,通过添加标题、KPI指标、边框、装饰、其他图表、表格等来充实,同时确保不重叠。目标是形成一个主次分明、非对称错落的布局。 整体设计: -左上角有大的BarCommon(700宽),可以作为主视图,我们可以将其包装在PanelFrame中,并可能展示核心趋势。 -右上角的BarCrossrange可以作为横向柱状图(排名)。 -中间偏下的ScatterCommon可以展示分布/相关性。 -我们需要添加顶部标题(使用ScreenTitle系列,紫色主题)。 -顶部KPI指标:业务关注访问量、办理量、完成率等,可以使用KpiGroup(4-6个指标)放在标题下方,占据顶部区域。 -左侧已经有大柱状图,我们可以在其上方添加一个模块框PanelFrame包裹BarCommon,并给它一个标题如“月度业务量趋势”。 -右侧已有BarCrossrange,可以再添加一些小组件,比如告警列表、实时监控等,使用PanelFrame包裹。右侧下方有散点图部分空间。 -我们还需要确保不重叠。检查现有组件: - BarCommon: x:108, y:99, w:700, h:831 =>右边界808,下边界930。 - BarCrossrange: x:1036, y:284, w:500, h:300 =>右边界1536,下边界584。 - ScatterCommon: x:792, y:616, w:1032, h:441 =>右边界1824,下边界1057。这个散点图很大,横跨右边和部分中下,与BarCrossrange在x方向重叠?BarCrossrange x:1036-1536,ScatterCommon x:792-1824,所以ScatterCommon在x792-1036与BarCrossrange不重叠?BarCrossrange是1036-1536,ScatterCommon从792开始,重叠区域是1036-1536,且y:616-1057,而BarCrossrange y:284-584,没有重叠(616>584),所以OK。 -我们需要避免在BarCommon(108-808,99-930)区域添加组件,除非是PanelFrame包裹它本身。PanelFrame可以放在BarCommon相同位置,会重叠但只包裹其后的一个组件,符合规则。我们会将PanelFrame放在BarCommon前面,尺寸略大于BarCommon以包含边框标题。比如PanelFrame w=720, h=851, x=98, y=89,使BarCommon在里面,但BarCommon是x108,y99,w700,h831,所以PanelFrame x:98, y:89, w:720, h:851(与BarCommon重叠但规则允许,因为PanelFrame包裹紧随其后的BarCommon)。类似地,我们可以为BarCrossrange和ScatterCommon也添加PanelFrame,但需要确保尺寸匹配且不与其他组件重叠。ScatterCommon的尺寸较大,可以使用大的PanelFrame。 -另外我们可以添加GlowBackdrop作为背景,放在最底层(组件顺序先放GlowBackdrop,然后标题,然后其他)。GlowBackdrop不会与任何东西重叠,因为是背景。 - KPI指标使用KpiGroup放在标题下方,居中。标题使用ScreenTitle08(中枢标题)配合紫色主题。位置大约x:460, y:10, w:1000, h:92(ScreenTitle08默认1000x92)。KpiGroup放在y:110, x:60, w:1800, h:112(画布宽1920,左右留60)。 -左侧主图用PanelFrame包裹BarCommon,可以在PanelFrame上方添加标题“月度业务办理量趋势”,实际PanelFrame title设置,option.accentColor紫色。 -右侧上部(x:1040, y:240,区域)已经有BarCrossrange的x:1036,y:284,我们可以用PanelFrame包裹它,标题“业务类型排名”。PanelFrame尺寸约520x320, x:1026, y:274。 -右侧中部(BarCrossrange下方直到散点图上方)可以放置一个告警或事件时间线组件,比如TimelineList,放在x:1040, y:600, w:440, h:280,但散点图从y:616开始,可能重叠。我们需要在散点图上方区域放置,散点图x:792-1824, y:616-1057,所以右边从1036到1824,在y小于616的区域除了BarCrossrange占用的y284-584外,还有空间:y584-616很小,不太够。我们可以在散点图右侧上方?散点图占据792-1824,右侧到1824,右边距96px。所以右边可以放一些小组件,比如在散点图右侧放置一个垂直的钟表或数字翻牌。但散点图已经占了大部分右边区域,我们可以考虑在散点图内部使用PanelFrame包裹,但散点图尺寸大且长,可能不需要再放其他组件。我们可以在左侧下方(BarCommon右界808左界108,y930以下)区域添加组件,但y930到1080有150px高,可以放置底部信息条或状态标签组。 -考虑底部:y从930到1080,高度150。我们可以在底部添加一个DividerLine分割,然后放一行小模块,如StatusBadgeList(状态标签组)和DataPairList,或时钟。但需要与上面的BarCommon不重叠,BarCommon下界930,底部区域可放置。 具体设计: 1.背景:GlowBackdrop,variant: "stargate",accentColor: "#a78bfa",位置x:0, y:0, w:1920, h:1080,作为第一个组件。 2.标题:ScreenTitle08,x:460, y:10, w:1000, h:92,option: { "dataset": "用户管理运营指挥中心", "subtitle": "YONG HU GUAN LI YUN YING ZHI HUI ZHONG XIN", "accentColor": "#a78bfa" } 3. KPI指标:KpiGroup,x:60, y:120, w:1800, h:112,option: { "dataset": [{"title": "实时访问量", "value":12856, "unit": "次", "trend": "+8.3%"}, {"title": "业务办理量", "value":4321, "unit": "件", "trend": "+12.5%"}, {"title": "完成率", "value":96.8, "unit": "%", "trend": "-0.5%"}, {"title": "超时率", "value":2.3, "unit": "%", "trend": "+0.2%"}, {"title": "待处理工单", "value":128, "unit": "个", "trend": "-5.6%"}, {"title": "资源利用率", "value":87.2, "unit": "%", "trend": "+4.1%"}], "columns":6, "accentColor": "#a78bfa" } (6个指标) 4.左侧主图:PanelFrame包裹BarCommon,PanelFrame尺寸:为了有标题空间,w=720, h=851,x=98, y=210(BarCommon y=99+一些?调整一下)。看BarCommon y=99,我们需要让PanelFrame包含标题和BarCommon,所以PanelFrame y应该稍微小于99,比如89,高度=BarCommon高度+标题高度(约40),所以h=871。w=720。x=98(BarCommon x=108,向左偏移10)。PanelFrame放在BarCommon前面,其位置x:98, y:89, w:720, h:871。BarCommon仍然在108,99,700,831,被包含。PanelFrame option: { "title": "月度业务办理量趋势", "accentColor": "#a78bfa", "borderColor": "#8b5cf6" } 5.右上图表:PanelFrame包裹BarCrossrange,PanelFrame w=520, h=320, x=1026, y=274 (BarCrossrange x:1036, y:284, w:500, h:300)。PanelFrame option: { "title": "业务类型排名", "accentColor": "#a78bfa", "borderColor": "#8b5cf6" } 6.右中:TimelineList,用于告警事件,位置x:1040, y:620, w:440, h:280。需要确保不与ScatterCommon重叠,ScatterCommon y:616-1057, x:792-1824。所以TimelineList在x:1040-1480, y:620-900,与ScatterCommon重叠x:1040-1480? ScatterCommon从792开始,所以重叠区域是1040-1480确实在ScatterCommon内,且y从620开始,ScatterCommon y616开始,几乎全部重叠。所以不允许,除非用PanelFrame包裹ScatterCommon,这样ScatterCommon被当作一个整体,但规则说PanelFrame或边框必须放在被包裹组件前面,且只能包裹紧随其后的一个组件。如果ScatterCommon被PanelFrame包裹,那么PanelFrame和ScatterCommon可以重叠,但其他组件不能与ScatterCommon重叠。所以不能在这个区域放其他组件,除非我们用PanelFrame将ScatterCommon包裹起来,然后ScatterCommon的PanelFrame区域可以重叠其他PanelFrame?但规则说除“模块框/边框与其紧随其后的被包裹组件”外,其他组件矩形禁止重叠。因此ScatterCommon作为被包裹组件,其矩形(x:792, y:616, w:1032, h:441)不能再与其他组件重叠。TimelineList会重叠,不行。 因此我们需要重新规划右下区域。ScatterCommon占据了大片右下,所以右边不能再放其他图表,除非放在ScatterCommon之上,但会重叠。可以考虑将ScatterCommon上移一点,但它是已有组件,我们不能改变它的位置。所以我们只能利用其他空白区域。左侧下方(x:108-808, y:930-1080)有150px高,可以放置底部信息栏。另外,顶部标题下方KPI占据y120-y232,然后左侧PanelFrame从y89开始,会有重叠吗?PanelFrame y:89, h:871,下界960。KpiGroup y:120, h:112 => y232,与PanelFrame在y89-232重叠?PanelFrame x:98-818, KpiGroup x:60-1860。重叠区域x:98-818, y:120-232。这是两个不同组件(KpiGroup和PanelFrame),PanelFrame是模块框,包裹BarCommon,但是规则说“除模块框/边框与其紧随其后的被包裹组件外,其他组件矩形禁止重叠。” PanelFrame和KpiGroup是不同组件,且PanelFrame不是包裹KpiGroup,所以它们不能重叠。因此不能这样放。我们需要调整位置,使PanelFrame不与其他组件重叠。 我们必须确保所有非包裹关系的组件不重叠。所以左侧的PanelFrame需要避让KpiGroup。我们可以将KpiGroup放在更上方,紧接标题下方。标题ScreenTitle08 y:10, h:92 =>102。KpiGroup可以放在y:110, h:112 =>222。左侧PanelFrame可以放在y:240左右,BarCommon同样下移?但BarCommon现有的y是99,我们如果移动BarCommon会改变已有组件的位置,但用户要求“尽量保持现有布局和组件语义一致”,但我们可以移动吗?指示:“当前画布已有内容(请在此基础上增量修改,尽量保持现有布局和组件语义一致)”,所以可以稍微调整位置,但最好保留原坐标。可是如果保留原坐标,PanelFrame在y89就会与KpiGroup重叠(如果KpiGroup y:110)。那我们可以不包裹BarCommon,只保留BarCommon原样,或者将KpiGroup放到顶部右侧?但标题居中,KPI指标一般在标题下方横向一排,所以我们可以将KPI组放在标题下方但避开左侧PanelFrame。可以将KpiGroup的x设置为从808开始,右边排列,但指标有6个,需要宽度约1800,所以不能只放在右侧,因为右侧已有BarCrossrange等。或者我们缩小KpiGroup尺寸,使用4列,放在右侧上半部?不行。 另一个方案:标题居中,KpiGroup放置在标题的正下方,但y位置可以高一点,使得PanelFrame的y在KpiGroup之下,确保不重叠。比如PanelFrame y调整为250,BarCommon也调整y到260?但修改了原有BarCommon的y值。这可以接受,因为是增量修改,可以调整位置以优化布局。我们可以在输出时改变BarCommon的坐标,只要没有冲突即可。既然是要重新生成整个布局,我们可以调整现有组件的坐标,只要语义保持,可以移动。所以我们可以重新设计所有组件位置,不一定要严格保留原坐标值,只需保留三个组件类型和大致意图。我们将生成一个全新的布局,包含这三个图表的优化位置。 所以我们重新规划整体布局。 主题色:紫色 #a78bfa。 设计一个非对称错落布局,深色背景,动态装饰。 方案: -顶部:大标题通栏,ScreenTitle08(x:460, y:10, w:1000, h:92) - KPI指标:KpiGroup,放在标题下方居中,x:60, y:110, w:1800, h:112(6个指标) -背景:GlowBackdrop,accentColor紫色,x:0, y:0, w:1920, h:1080。 -左侧主区域:放置一个大的PanelFrame包裹BarCommon,展示月度趋势。x:30, y:240, w:750, h:600(PanelFrame),BarCommon x:40, y:280, w:730, h:540。这样左边区域。 -右侧上部:放置PanelFrame包裹BarCrossrange(横向排名),x:1240, y:240, w:650, h:300,BarCrossrange x:1250, y:280, w:630, h:260。 -右侧中部下方:放置TimelineList(告警时间线),x:1240, y:560, w:650, h:240。 -中下部:放置ScatterCommon(散点图),可以放在中部偏下,x:30, y:860, w:1180, h:200?太小。我们希望散点图能成为重要视图,可以放在中间下部大区域,但要避免与左右冲突。左侧有柱状图(宽750),右侧有排名和时间线(宽650),中间留下区域宽度为1920-750-650-间距=约400。不够放散点图(原w1032)。所以我们需要调整位置,将散点图放在左下或跨区域。我们可以将散点图放在底部通栏,从左侧到右侧,占据整个下部。但左侧柱状图可能延伸到y840(PanelFrame y240+600=840),所以底部可从y860开始,放置散点图,宽1880(留边20),高220,这样散点图可以做成宽条状。但ScatterCommon默认w500,h300,我们可以调整尺寸。采用散点图作为宽图占满底部,w=1880, h=220。这样会与右侧的TimelineList(y560-800)不重叠,因为底部从860开始。另需要在其上方加PanelFrame。 具体布局: -标题:ScreenTitle08, x:460, y:10, w:1000, h:92- KpiGroup, x:60, y:115, w:1800, h:112-左侧柱状图:PanelFrame06 (重角模块框,符合工业监控),x:30, y:250, w:780, h:560 => BarCommon, x:40, y:300, w:760, h:500 (为了好看,调整BarCommon尺寸) -右侧排名:PanelFrame04 (网格模块框),x:1260, y:250, w:620, h:280 => BarCrossrange, x:1270, y:300, w:600, h:220-右侧告警:PanelFrame08 (卡片模块框),x:1260, y:550, w:620, h:280 => TimelineList, x:1280, y:600, w:580, h:220-底部散点图:PanelFrame02 (棱角模块框),x:30, y:830, w:1860, h:220 => ScatterCommon, x:40, y:860, w:1840, h:180-左侧底部信息:可以在柱状图下方再放一个组件,但y=810 (250+560),到830有20px间距,底部散点图从830开始,所以不能放了。底部已经占满。 -添加一些装饰:例如在顶部标题两侧添加DividerLine发光分割线?或者添加SectionHeader。可以在KpiGroup上方放置SectionHeader作为说明,但可能重叠。可以添加一个时钟在右上角,比如x:1760, y:10, w:130, h:80,但ScreenTitle08宽度1000,从460到1460,所以右侧x:1460-1920有460px宽,可以放一个时钟Clock,x:1500, y:10, w:130, h:90?Clock默认350x250,过大。可以缩小?Clock不支持改变尺寸。我们可以放一个小的时间TextCommon。但ScreenTitle08本身包含时间?没有。我们可以添加一个TimeCommon组件,x:1500, y:15, w:300, h:50,显示当前时间。 -还可以在KpiGroup下方、左侧柱状图上方添加一个装饰分割线 DividerLine,水平方向,x:30, y:240, w:1860, h:10,但y250的PanelFrame会与分割线重叠?我们可以将它放在y240,刚好在PanelFrame上方,作为分割。 -还可以添加StatusBadgeList状态标签组在底部散点图上方?不必要。 检查重叠: - KpiGroup: x60-1860, y115-227-左侧PanelFrame: x30-810, y250-810 => BarCommon: x40-800, y300-800-右侧PanelFrame排名: x1260-1880, y250-530 => BarCrossrange: x1270-1870, y300-520-右侧PanelFrame告警: x1260-1880, y550-830 => TimelineList: x1280-1860, y600-820-底部PanelFrame散点: x30-1890, y830-1050 => ScatterCommon: x40-1880, y860-1040-标题: x460-1460, y10-102-时钟TimeCommon: x1500, y15, w300, h50 -> x1500-1800, y15-65,与标题不重叠。 - DividerLine:例如在KpiGroup下方,x30, y235, w1860, h10,与左侧PanelFrame y250不重叠。 这样布局没有重叠,且非对称错落,左侧大柱状图,右侧上下两块,底部散点宽图,有标题和KPI,有科技感。 需要添加GlowBackdrop作为背景,第一个组件,variant: "stargate",accentColor: "#a78bfa"。 还需要提供各个图表的数据集静态option。由于没有真实数据集,我们需生成符合业务含义的静态数据。BarCommon:展示月度业务办理量趋势,option.dataset: dimensions: ["月份", "办理量", "目标量"],数据从1月到12月。BarCrossrange:展示业务类型排名,dimensions: ["类型", "数量"]。ScatterCommon:展示相关性,比如办理量与响应时间的关系,dimensions: ["办理量", "响应时间"]。TimelineList:告警事件,dataset: [{time,title,level,status}]。 PanelFrame各自需要option.title, accentColor等。 所有组件option需按要求填写。为简单,我们尽量给每个图表提供option.dataset,不需要request因为没有数据集。 现在生成JSON。注意组件顺序:先GlowBackdrop背景,然后是ScreenTitle08,TimeCommon,DividerLine,KpiGroup,然后各个PanelFrame和它们的图表(PanelFrame必须紧跟被包裹的组件)。还要确保每个组件的w/h符合要求。例如ScatterCommon默认500x300,我们调整到了w1840, h180,可行。 输出JSON,只一个合法对象。 【回复内容】 { "title": "用户管理运营指挥中心", "canvasConfig": { "width":1920, "height":1080, "background": "#0f172a" }, "components": [ { "key": "GlowBackdrop", "x":0, "y":0, "w":1920, "h":1080, "option": { "variant": "stargate", "accentColor": "#a78bfa", "secondColor": "#38bdf8", "thirdColor": "#47ffb2", "opacity":0.85 } }, { "key": "ScreenTitle08", "x":460, "y":10, "w":1000, "h":92, "title": "用户管理运营指挥中心", "option": { "dataset": "用户管理运营指挥中心", "subtitle": "YONG HU GUAN LI YUN YING ZHI HUI ZHONG XIN", "accentColor": "#a78bfa", "showBorder": true, "showBackground": true, "showDecorations": true } }, { "key": "TimeCommon", "x":1520, "y":20, "w":300, "h":50, "title": "当前时间" }, { "key": "DividerLine", "x":30, "y":235, "w":1860, "h":10, "option": { "direction": "horizontal", "thickness":2, "accentColor": "#a78bfa", "secondColor": "#38bdf8" } }, { "key": "KpiGroup", "x":60, "y":110, "w":1800, "h":112, "title": "核心指标", "option": { "dataset": [ {"title": "实时访问量", "value":12856, "unit": "次", "trend": "+8.3%"}, {"title": "业务办理量", "value":4321, "unit": "件", "trend": "+12.5%"}, {"title": "完成率", "value":96.8, "unit": "%", "trend": "-0.5%"}, {"title": "超时率", "value":2.3, "unit": "%", "trend": "+0.2%"}, {"title": "待处理工单", "value":128, "unit": "个", "trend": "-5.6%"}, {"title": "资源利用率", "value":87.2, "unit": "%", "trend": "+4.1%"} ], "columns":6, "accentColor": "#a78bfa" } }, { "key": "PanelFrame06", "x":30, "y":250, "w":780, "h":560, "option": { "title": "月度业务办理量趋势", "accentColor": "#a78bfa", "borderColor": "#8b5cf6" } }, { "key": "BarCommon", "x":40, "y":300, "w":760, "h":500, "title": "月度业务办理量", "option": { "dataset": { "dimensions": ["月份", "办理量", "目标量"], "source": [ {"月份": "1月", "办理量":3100, "目标量":3500}, {"月份": "2月", "办理量":2800, "目标量":3200}, {"月份": "3月", "办理量":4200, "目标量":4000}, {"月份": "4月", "办理量":3900, "目标量":3800}, {"月份": "5月", "办理量":4500, "目标量":4200}, {"月份": "6月", "办理量":5100, "目标量":4800}, {"月份": "7月", "办理量":4900, "目标量":5000}, {"月份": "8月", "办理量":5300, "目标量":5100}, {"月份": "9月", "办理量":4800, "目标量":5000}, {"月份": "10月", "办理量":5200, "目标量":5400}, {"月份": "11月", "办理量":6100, "目标量":5800}, {"月份": "12月", "办理量":6500, "目标量":6000} ] } } }, { "key": "PanelFrame04", "x":1260, "y":250, "w":620, "h":280, "option": { "title": "业务类型排名", "accentColor": "#a78bfa", "borderColor": "#8b5cf6" } }, { "key": "BarCrossrange", "x":1270, "y":300, "w":600, "h":220, "title": "业务类型排名", "option": { "dataset": { "dimensions": ["类型", "数量"], "source": [ {"类型": "账号开通", "数量":1285}, {"类型": "权限变更", "数量":962}, {"类型": "密码重置", "数量":843}, {"类型": "信息修改", "数量":721}, {"类型": "角色分配", "数量":658}, {"类型": "销户处理", "数量":512}, {"类型": "审计查询", "数量":389}, {"类型": "其他", "数量":276} ] } } }, { "key": "PanelFrame08", "x":1260, "y":550, "w":620, "h":280, "option": { "title": "实时告警与事件", "accentColor": "#a78bfa", "borderColor": "#8b5cf6" } }, { "key": "TimelineList", "x":1280, "y":600, "w":580, "h":220, "title": "告警时间线", "option": { "dataset": [ {"time": "10:23:15", "title": "权限异常申请 -张某某", "level": "高", "status": "danger"}, {"time": "10:18:42", "title": "批量账号注销请求", "level": "中", "status": "warning"}, {"time": "10:12:07", "title": "登录失败次数超限 IP:192.168.1.105", "level": "高", "status": "danger"}, {"time": "10:05:33", "title": "用户信息修改审批超时", "level": "低", "status": "info"}, {"time": "09:58:21", "title": "数据库连接池告警", "level": "中", "status": "warning"}, {"time": "09:50:11", "title": "新用户注册激增", "level": "低", "status": "info"} ] } }, { "key": "PanelFrame02", "x":30, "y":830, "w":1860, "h":220, "option": { "title": "办理量与响应时间相关性分析", "accentColor": "#a78bfa", "borderColor": "#8b5cf6" } }, { "key": "ScatterCommon", "x":40, "y":860, "w":1840, "h":180, "title": "散点相关性", "option": { "dataset": { "dimensions": ["办理量", "响应时间(ms)"], "source": [ {"办理量":120, "响应时间(ms)":85}, {"办理量":340, "响应时间(ms)":120}, {"办理量":560, "响应时间(ms)":175}, {"办理量":780, "响应时间(ms)":210}, {"办理量":910, "响应时间(ms)":260}, {"办理量":1050, "响应时间(ms)":320}, {"办理量":1230, "响应时间(ms)":380}, {"办理量":1450, "响应时间(ms)":450}, {"办理量":1620, "响应时间(ms)":530}, {"办理量":1800, "响应时间(ms)":600} ] } } } ] }',NULL,'2026-07-21 10:17:51'), (2079447466728759298,1,1,'bpmn1','03c92e01-67be-4464-b121-b3fff92870dc','user','我想开发一个项目登记的模块,你能否帮我开发?',NULL,'2026-07-21 14:04:45'), (2079447466787479553,1,1,'bpmn1','03c92e01-67be-4464-b121-b3fff92870dc','assistant','【思考过程】 我们被要求开发一个项目登记模块。用户说“我想开发一个项目登记的模块,你能否帮我开发?”。需要给出准确、清晰、可执行的回答,优先基于已配置的上下文和工具能力。由于没有提供上下文或工具,可能只是一个简单的需求。作为企业级智能体,我需要帮助规划开发。我应该询问更多细节,比如技术栈、功能需求等,然后给出开发步骤或方案。因为不能直接编写代码,但可以给出指导。最终回答要结构化。 【回复内容】 我可以协助你规划并设计一个项目登记模块,但为了给出更精确的方案,需要先了解一些关键信息。下面我先提供一个通用设计思路,你可以对照调整,或补充细节后我再细化。 ##1.明确需求范围典型的项目登记模块通常包括: - **项目基本信息录入**:项目名称、编号、类型、负责人、起止日期、预算、优先级等。 - **多级分类/标签**:如部门、行业、资金来源等。 - **附件上传**:可行性报告、合同等。 - **状态流转**:草稿 →待审核 →已立项/驳回。 - **列表查询与筛选**:支持多条件检索、分页、导出。 - **权限控制**:登记人、审批人、查看人不同权限。 请确认你需要覆盖哪些功能?或者你已有详细的需求文档/原型? ##2.技术栈确认你需要明确前后端技术选型,例如: - **前端**:React / Vue / Angular,是否用 Ant Design / Element等组件库? - **后端**:Java (Spring Boot) / Python (FastAPI) / Node.js? - **数据库**:MySQL / PostgreSQL,是否要用ORM? - **部署环境**:私有服务器、云服务? ##3.推荐开发步骤(以 Spring Boot + Vue + MySQL为例) ###3.1数据库设计创建一个 `project`表,字段示例: ```sqlCREATE TABLE project ( id BIGINT AUTO_INCREMENT PRIMARY KEY, proj_code VARCHAR(50) UNIQUE NOT NULL COMMENT ''项目编号'', proj_name VARCHAR(200) NOT NULL COMMENT ''项目名称'', category VARCHAR(50) COMMENT ''项目分类'', department VARCHAR(100) COMMENT ''所属部门'', manager VARCHAR(50) COMMENT ''负责人'', start_date DATE, end_date DATE, budget DECIMAL(15,2), priority TINYINT COMMENT ''优先级'', status ENUM(''DRAFT'',''SUBMITTED'',''APPROVED'',''REJECTED'') DEFAULT ''DRAFT'', description TEXT, create_time DATETIME DEFAULT CURRENT_TIMESTAMP, update_time DATETIME ON UPDATE CURRENT_TIMESTAMP, created_by BIGINT, attachment_url VARCHAR(500) ); ``` ###3.2后端接口提供 RESTful API,例如: - `POST /api/projects` –创建项目(登记) - `GET /api/projects` –列表查询(支持分页、筛选) - `GET /api/projects/{id}` –详情- `PUT /api/projects/{id}` –更新项目- `PATCH /api/projects/{id}/submit` –提交审核- `PATCH /api/projects/{id}/approve` / `reject` 需要加入数据校验、异常处理、日志等。 ###3.3前端页面- **列表页**:表格展示,上方筛选区(编号、名称、状态等),分页,每行操作按钮(编辑、提交、删除等)。 - **登记/编辑表单页**:表单字段对应数据库字段,下拉框、日期选择、金额输入、文本域等,保存草稿/提交按钮。 - **详情页**:只读展示,流程审批按钮(有权限时显示)。 ##4.我能直接提供的帮助-生成数据库 DDL脚本(根据你最终确定的字段) -给出完整的后端实体类、控制器、服务层示例代码(Java或 Python) -设计前端页面布局和组件结构-梳理权限模型和流程配置##5.下一步请告诉我: 1.你的功能清单(比如是否需要附件上传、流程审批)。 2.偏好的技术栈。 3.现有系统架构(是否需要集成?有无统一认证?)。 我就能为你提供更贴近实际开发的代码片段、表结构和实现思路。',NULL,'2026-07-21 14:04:45'), (2079451892675780610,1,1,'bpmn1','03c92e01-67be-4464-b121-b3fff92870dc','user','就按照你上边的样式 先给我设计一下',NULL,'2026-07-21 14:22:20'), (2079451892789026818,1,1,'bpmn1','03c92e01-67be-4464-b121-b3fff92870dc','assistant','【思考过程】 我们需要理解用户的要求:“就按照你上边的样式先给我设计一下”。回顾上一轮我的回复,我给出了一个通用设计思路,包括需求范围、技术栈确认、开发步骤等,最后问了一些问题。用户现在的意思是:不要问那么多,就按照我上面给出的样式(即我之前提到的结构)直接设计出来。可能是指我提到的数据库表、后端接口、前端页面等,先给一个具体的设计。用户可能希望我直接给出一个完整的模块设计,包括数据库设计、接口定义等,而不需要再询问细节。 我需要基于之前回复的“通用设计思路”中的具体内容,比如我给出了一个project表的DDL,以及一系列接口,还有前端页面描述。用户说“就按照你上边的样式先给我设计一下”,可能是要求我生成更详细的设计,比如完整的数据库脚本、接口文档、页面结构等,并且可能不需要再确认技术栈,默认使用我之前建议的Spring Boot + Vue + MySQL。但之前我写的是示例,并没有完整的设计。现在需要生成一个更具体的设计文档。 我需要理解“设计一下”可能是指给出设计方案,包括数据库、API、前端组件的设计细节。而且用户强调“先给我设计一下”,意味着可能以后会继续开发,但我作为智能体无法直接写代码,可以给出详细设计规范。 我的回复需要准确、清晰、可执行,优先基于上下文。上下文有我的上一条回复,其中已经给出了初步的DDL、接口列表、页面描述。我可以在这个基础上充实细节,生成一个更完整的设计方案,包括完整的表结构(含索引、注释)、详细的API接口规范(请求响应示例)、前端组件树和路由设计,以及可能的数据字典、状态流转图等。 为了保证可执行,我应该提供可以直接使用的DDL、接口定义,甚至伪代码。由于是设计,我还可以提供实体关系图描述,流程等。 我将输出: 1.功能范围定义(明确登记模块包含的功能,如:项目创建、编辑、列表、详情、删除、提交审批、附件上传等) 2.数据库设计(完整的DDL,包括可能的辅助表如附件表、审批记录表) 3.后端API设计(以RESTful风格,给出每个接口的URL、方法、请求参数、响应结构) 4.前端设计(页面路由、主要组件结构、关键交互说明) 5.状态流转设计(项目状态变更规则) 6.权限建议并且采用结构化的输出。注意要提到之前建议的技术栈(Spring Boot + Vue + MySQL)作为默认,但如果用户想换可以调整。不需要再问用户确认,直接设计。 注意:只做设计,不是真的开发,但可以作为开发的基础。我会说这是一个基于Spring Boot + Vue + MySQL的完整设计方案,可直接用于编码。 输出前,检查是否有遗漏。我可以在回复中注明“由于未明确具体技术细节,本设计基于常见企业级技术栈,你可以根据实际情况调整。” 然后生成一个完成的设计文档。避免过于冗长,但要清晰。 准备最终回答。 【回复内容】 基于你之前的要求,我先按照**Spring Boot + Vue3 + MySQL**的常见搭配,为你设计一个完整的**项目登记模块**,涵盖数据库、接口、前端页面和关键流程。你可以直接将其作为开发依据或原型文档。 --- ##1.模块功能范围- **项目登记**:填写项目信息,保存草稿- **项目编辑**:修改草稿状态的项目- **提交审批**:将草稿变为“待审核” - **项目列表**:多条件筛选、分页、排序- **项目详情**:只读查看- **附件上传**:每个项目支持多附件- **审批操作**:审批人通过/驳回- **权限控制**:登记人只能改自己的草稿,审批人才能审批--- ##2.数据库设计(MySQL) ###2.1项目主表 `project` ```sqlCREATE TABLE project ( id BIGINT PRIMARY KEY AUTO_INCREMENT, proj_code VARCHAR(50) NOT NULL UNIQUE COMMENT ''项目编号'', proj_name VARCHAR(200) NOT NULL COMMENT ''项目名称'', category VARCHAR(50) COMMENT ''项目分类'', department VARCHAR(100) COMMENT ''所属部门'', manager_name VARCHAR(50) COMMENT ''负责人'', start_date DATE COMMENT ''开始日期'', end_date DATE COMMENT ''结束日期'', budget DECIMAL(15,2) COMMENT ''预算金额'', priority TINYINT DEFAULT0 COMMENT ''优先级(0普通,1重要,2紧急)'', status VARCHAR(20) NOT NULL DEFAULT ''DRAFT'' COMMENT ''状态: DRAFT-草稿, PENDING-待审核, APPROVED-已通过, REJECTED-已驳回'', description TEXT COMMENT ''项目描述'', created_by BIGINT NOT NULL COMMENT ''登记人ID'', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME ON UPDATE CURRENT_TIMESTAMP, submitted_at DATETIME COMMENT ''提交审核时间'', reviewed_by BIGINT COMMENT ''审批人ID'', reviewed_at DATETIME COMMENT ''审批时间'', reject_reason VARCHAR(500) COMMENT ''驳回原因'', INDEX idx_status (status), INDEX idx_department (department), INDEX idx_created_by (created_by), INDEX idx_submitted_at (submitted_at) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT=''项目登记表''; ``` ###2.2附件表(一对多) ```sqlCREATE TABLE project_attachment ( id BIGINT PRIMARY KEY AUTO_INCREMENT, project_id BIGINT NOT NULL COMMENT ''关联项目'', file_name VARCHAR(200) NOT NULL COMMENT ''原始文件名'', file_url VARCHAR(500) NOT NULL COMMENT ''存储路径'', file_size BIGINT COMMENT ''文件大小(字节)'', uploaded_by BIGINT NOT NULL COMMENT ''上传人'', uploaded_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE) COMMENT=''项目附件表''; ``` ###2.3审批记录表(用于追踪) ```sqlCREATE TABLE project_approval_log ( id BIGINT PRIMARY KEY AUTO_INCREMENT, project_id BIGINT NOT NULL, action VARCHAR(20) NOT NULL COMMENT ''APPROVE/REJECT'', comment VARCHAR(500), operator_id BIGINT NOT NULL, operated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE) COMMENT=''审批记录表''; ``` --- ##3.后端 API设计(RESTful) 统一前缀:`/api/v1/projects`所有需要鉴权的接口在 Header中携带 `Authorization: Bearer ` ###3.1创建项目(登记) - **URL**:`POST /api/v1/projects` - **请求体**: ```json{ "projName": "某AI平台建设", "category": "研发", "department": "技术中心", "managerName": "张三", "startDate": "2025-07-01", "endDate": "2025-12-31", "budget":1500000.00, "priority":1, "description": "项目概述...", "attachments": [ { "fileName": "可行性报告.pdf", "fileUrl": "/uploads/abc.pdf", "fileSize":204800 } ] } ``` - **响应**:201 Created,返回项目完整信息(含自动生成的 `projCode`和初始状态 `DRAFT`) ###3.2更新项目(仅限 DRAFT状态且为自己创建) - **URL**:`PUT /api/v1/projects/{id}` - **请求体**:同创建,可部分更新- **响应**:200 OK###3.3提交审核(变更状态为 PENDING) - **URL**:`PATCH /api/v1/projects/{id}/submit` - **响应**:200,状态变为 PENDING,`submittedAt`记录时间###3.4审批操作(需要审批权限) - **URL**:`PATCH /api/v1/projects/{id}/review` - **请求体**: ```json{ "action": "APPROVE", "comment": "预算合理,通过" } ``` - **响应**:200,状态变为 APPROVED/REJECTED,记录审批人和时间,同时写入 `approval_log` ###3.5删除项目(仅草稿可删) - **URL**:`DELETE /api/v1/projects/{id}` - **响应**:204###3.6查询列表- **URL**:`GET /api/v1/projects` - **参数**:`keyword`(项目名/编号模糊)、`status`、`department`、`priority`、`page`、`size`、`sort`(如 `createdAt,desc`) - **响应**: ```json{ "content": [ { "id":1, "projCode": "PRJ202507001", "projName": "某AI平台建设", "department": "技术中心", "managerName": "张三", "budget":1500000, "status": "DRAFT", "createdAt": "2025-07-07T10:00:00" } ], "totalElements":100, "totalPages":10, "number":0} ``` ###3.7项目详情- **URL**:`GET /api/v1/projects/{id}` - **响应**:完整项目字段 + `attachments`列表 + `approvalLogs`列表###3.8附件单独上传(可选,支持分片) - **URL**:`POST /api/v1/projects/{id}/attachments` - **响应**:附件信息--- ##4.前端页面设计(Vue3 + Element Plus) ###4.1路由规划|路径 |页面组件 |说明 | |------------------------|----------------------|--------------| | /projects/list | ProjectList.vue |项目列表(含筛选) | | /projects/create | ProjectForm.vue |新建项目(登记) | | /projects/edit/:id | ProjectForm.vue |编辑草稿 | | /projects/detail/:id | ProjectDetail.vue |项目详情(含审批)| ###4.2核心页面组件结构**ProjectList.vue** -顶部搜索栏:文本输入(名称/编号)、状态下拉、部门下拉、优先级下拉、日期范围选择、[查询][重置]按钮-表格区域:分页表格,列:项目编号、名称、部门、负责人、预算、状态、创建时间、操作(编辑/删除/提交/查看) -状态显示带标签颜色: - DRAFT:灰色 - PENDING:蓝色 - APPROVED:绿色 - REJECTED:红色-只有草稿状态且是本人才显示编辑/删除按钮;任何状态都可见“详情” **ProjectForm.vue**(新建/编辑共用) -表单项:项目名称(必填)、编号(自动生成只读)、分类(下拉)、部门、负责人、开始/结束日期、预算(数字输入)、优先级(单选)、描述(文本域) -附件上传:使用 Element Plus的 Upload组件,支持多文件,即时上传并显示文件列表-底部按钮: - “保存草稿” →调用创建/更新接口 - “提交审批” →先保存(若有修改)再调用提交接口-编辑时需校验项目状态,若不是 DRAFT则重定向到详情页**ProjectDetail.vue** -只读展示所有项目字段-附件下载列表-审批记录时间线(Timeline组件展示 APPROVE/REJECT及意见) -审批操作区:仅当状态为 PENDING且当前用户有审批权限时,显示“通过”“驳回”按钮及文本框填写意见-状态为已审批时显示通过/驳回信息###4.3交互约束-所有操作给出 toast提示-删除前二次确认-表格支持排序:创建时间、预算等-数据加载需带 loading动画--- ##5.状态流转规则``` 创建 → DRAFT在 DRAFT下可编辑、删除、提交 →提交 → PENDINGPENDING下,审批人可通过/驳回通过 → APPROVED(终态,不可再编辑) 驳回 → REJECTED(可重新提交?按需求:被驳回后可由创建人直接在原项目上编辑并再次提交,或必须新建?) ``` **推荐做法**:REJECTED后,项目状态变回 DRAFT,允许编辑修改后重新提交,但需清空审批记录并重新计数。这样更灵活,可在 `project`表增加 `submit_count`字段。 --- ##6.权限设计建议- **项目登记员**:可以创建项目、编辑/删除/提交自己的草稿、查看所有项目(受限字段) - **部门负责人**:可查看本部门所有项目,审批本部门的项目- **超级管理员**:全量数据操作,可强行修改状态等-后端通过 Spring Security拦截接口,根据角色和用户ID判断权限--- 以上就是一个可直接落地执行的项目登记模块完整设计。如果你确认技术选型不变,下一步我可以为你生成具体的 **后端代码(实体、Service、Controller)**或 **前端组件模板代码**。需要我继续输出代码,还是你有其他调整?',NULL,'2026-07-21 14:22:20'), (2079452487017046017,1,1,'bpmn1','03c92e01-67be-4464-b121-b3fff92870dc','user','你能否直接帮我进行生成代码,直接生成页面呢?',NULL,'2026-07-21 14:24:42'); INSERT INTO ai_chat_record (id,tenant_id,user_id,agent_code,session_id,`role`,content,token_usage,create_time) VALUES (2079452487067377666,1,1,'bpmn1','03c92e01-67be-4464-b121-b3fff92870dc','assistant','【思考过程】 我们被要求“就按照你上边的样式先给我设计一下”以及“你能否直接帮我进行生成代码,直接生成页面呢?”用户似乎希望我直接生成完整的代码和页面,而不是仅仅设计。 作为企业级智能体,我需要提供准确、清晰、可执行的回答。但是,生成完整的可运行代码涉及大量细节,而且用户没有明确技术栈(虽然我之前假设了Spring Boot + Vue3 + Element Plus)。我可以基于这个假设,提供核心代码片段,例如数据库DDL、后端关键代码和前端Vue页面的代码,但无法生成整个项目。我需要解释这一点,但仍然尽力提供可用的代码模板。 因此,我的回答应该: 1.确认技术栈(基于之前的建议)。 2.提供可以直接使用的核心代码:DDL、后端实体、控制器、服务代码片段(或简化版)、前端完整页面代码(ProjectList.vue, ProjectForm.vue, ProjectDetail.vue)。 3.说明这些代码只是核心部分,需要整合到项目中,并给出整合步骤。 4.给出一些注意事项。 但是,生成完整的前端页面代码可能会非常长。我可以选择生成一个代表性的页面代码,比如ProjectList.vue的完整示例,其他页面提供结构描述和关键部分,避免回复过于庞大。 用户说“直接帮我进行生成代码,直接生成页面”,所以我应该尽量提供可直接使用的代码。考虑到输出限制,我可以分部分提供。 我打算这样回复: -先说明我会提供基于Spring Boot + Vue3 + Element Plus的代码。 -给出数据库DDL(之前已有)。 -给后端关键代码:实体类,Repository接口,Service,Controller的简化代码。 -给前端核心页面:ProjectList.vue,ProjectForm.vue,ProjectDetail.vue的完整代码(以文字形式)。由于太长,我可以压缩但确保完整可用。 -最后说明如何运行这些代码,并提醒需要配置环境。 我需要确保代码正确、可运行。我会尽量写清楚。 注意事项:前端项目需要用Vite创建,安装Element Plus等。后端需要Spring Boot项目。我会在代码中体现。 现在,组织回答。分部分提供代码,确保清晰。 由于字数限制,我将提供最核心的代码,并注明完整项目在附件等,但作为文本输出,我会直接贴出。 我决定: 1.数据库DDL(稍作优化)。 2.后端核心代码:实体Project,ProjectRepository,ProjectService,ProjectController(简化但完整)。 3.前端:使用Vue3 Composition API,给出ProjectList.vue和ProjectForm.vue的完整代码,ProjectDetail.vue的框架。 4.最后说明运行和集成。 我将这样回复。 【回复内容】 基于你之前的“样式”要求,我将直接为你生成一套**可运行的核心代码**,技术栈沿用 **Spring Boot + Vue3 + Element Plus + MySQL**。以下代码覆盖了**数据库、后端接口、前端三个页面**,你可以直接复制到项目中,经过少量配置即可跑通。 --- ##一、数据库(MySQL8.x) 执行以下 DDL创建表: ```sqlCREATE DATABASE IF NOT EXISTS proj_db DEFAULT CHARSET utf8mb4; USE proj_db; --项目主表CREATE TABLE project ( id BIGINT AUTO_INCREMENT PRIMARY KEY, proj_code VARCHAR(50) NOT NULL UNIQUE COMMENT ''项目编号'', proj_name VARCHAR(200) NOT NULL COMMENT ''项目名称'', category VARCHAR(50) COMMENT ''项目分类'', department VARCHAR(100) COMMENT ''所属部门'', manager_name VARCHAR(50) COMMENT ''负责人'', start_date DATE COMMENT ''开始日期'', end_date DATE COMMENT ''结束日期'', budget DECIMAL(15,2) COMMENT ''预算'', priority TINYINT DEFAULT0 COMMENT ''优先级0普通1重要2紧急'', status VARCHAR(20) NOT NULL DEFAULT ''DRAFT'' COMMENT ''DRAFT/PENDING/APPROVED/REJECTED'', description TEXT COMMENT ''描述'', created_by BIGINT NOT NULL COMMENT ''登记人ID'', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME ON UPDATE CURRENT_TIMESTAMP, submitted_at DATETIME COMMENT ''提交时间'', reviewed_by BIGINT COMMENT ''审批人ID'', reviewed_at DATETIME COMMENT ''审批时间'', reject_reason VARCHAR(500) COMMENT ''驳回原因'', submit_count INT DEFAULT0 COMMENT ''提交次数'', INDEX idx_status (status), INDEX idx_department (department), INDEX idx_created_by (created_by) ) ENGINE=InnoDB COMMENT=''项目登记表''; --附件表CREATE TABLE project_attachment ( id BIGINT AUTO_INCREMENT PRIMARY KEY, project_id BIGINT NOT NULL, file_name VARCHAR(200) NOT NULL, file_url VARCHAR(500) NOT NULL, file_size BIGINT, uploaded_by BIGINT NOT NULL, uploaded_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE) COMMENT=''项目附件表''; --审批记录表CREATE TABLE project_approval_log ( id BIGINT AUTO_INCREMENT PRIMARY KEY, project_id BIGINT NOT NULL, action VARCHAR(20) NOT NULL COMMENT ''APPROVE / REJECT'', comment VARCHAR(500), operator_id BIGINT NOT NULL, operated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE) COMMENT=''审批记录表''; ``` --- ##二、后端核心代码(Spring Boot) ###2.1实体类 `Project.java` ```javapackage com.example.project.entity; import jakarta.persistence.*; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; @Entity@Table(name = "project") public class Project { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(nullable = false, unique = true) private String projCode; @Column(nullable = false) private String projName; private String category; private String department; private String managerName; private LocalDate startDate; private LocalDate endDate; private BigDecimal budget; private Integer priority =0; @Column(nullable = false) private String status = "DRAFT"; @Column(columnDefinition = "TEXT") private String description; private Long createdBy; private LocalDateTime createdAt; private LocalDateTime updatedAt; private LocalDateTime submittedAt; private Long reviewedBy; private LocalDateTime reviewedAt; private String rejectReason; private Integer submitCount =0; @OneToMany(mappedBy = "project", cascade = CascadeType.ALL, orphanRemoval = true) private List attachments = new ArrayList<>(); @OneToMany(mappedBy = "project", cascade = CascadeType.ALL, orphanRemoval = true) private List approvalLogs = new ArrayList<>(); // Getters and Setters (省略,请用IDE生成) } ``` `ProjectAttachment.java`和 `ProjectApprovalLog.java`类似,只需映射基本字段,其中 `ProjectAttachment`有 `@ManyToOne`引用 `Project`,`ProjectApprovalLog`同理。 ###2.2 Repository接口```javapackage com.example.project.repository; import com.example.project.entity.Project; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; public interface ProjectRepository extends JpaRepository, JpaSpecificationExecutor { } ``` ###2.3核心 Service代码片段```java@Service@Transactionalpublic class ProjectService { @Autowired private ProjectRepository projectRepo; @Autowired private ProjectAttachmentRepository attRepo; @Autowired private ProjectApprovalLogRepository logRepo; //创建(含附件) public Project create(ProjectCreateRequest request, Long userId) { Project p = new Project(); //生成项目编号:PRJ + yyyyMMdd +自增序列(实际可用序列号服务) p.setProjCode(generateCode()); p.setProjName(request.getProjName()); p.setCategory(request.getCategory()); p.setDepartment(request.getDepartment()); // ...其他字段赋值 p.setStatus("DRAFT"); p.setCreatedBy(userId); p.setCreatedAt(LocalDateTime.now()); projectRepo.save(p); //保存附件 if (request.getAttachments() != null) { for (AttachmentDTO dto : request.getAttachments()) { ProjectAttachment att = new ProjectAttachment(); att.setProject(p); att.setFileName(dto.getFileName()); att.setFileUrl(dto.getFileUrl()); att.setFileSize(dto.getFileSize()); att.setUploadedBy(userId); attRepo.save(att); } } return p; } //提交审核 public Project submit(Long id, Long userId) { Project p = getByIdAndCheckOwner(id, userId); if (!"DRAFT".equals(p.getStatus()) && !"REJECTED".equals(p.getStatus())) { throw new BusinessException("只有草稿或被驳回的项目才能提交"); } p.setStatus("PENDING"); p.setSubmittedAt(LocalDateTime.now()); p.setSubmitCount(p.getSubmitCount() +1); return projectRepo.save(p); } //审批 public Project review(Long id, ReviewRequest req, Long reviewerId) { Project p = projectRepo.findById(id).orElseThrow(() -> new BusinessException("项目不存在")); if (!"PENDING".equals(p.getStatus())) { throw new BusinessException("只能审批待审核的项目"); } p.setStatus(req.getAction()); // APPROVED / REJECTED p.setReviewedBy(reviewerId); p.setReviewedAt(LocalDateTime.now()); if ("REJECTED".equals(req.getAction())) { p.setRejectReason(req.getComment()); } //保存审批记录 ProjectApprovalLog log = new ProjectApprovalLog(); log.setProject(p); log.setAction(req.getAction()); log.setComment(req.getComment()); log.setOperatorId(reviewerId); logRepo.save(log); return projectRepo.save(p); } //列表查询(支持规范模式) public Page list(String keyword, String status, String department, int page, int size) { Specification spec = (root, query, cb) -> { List preds = new ArrayList<>(); if (StringUtils.hasText(keyword)) { preds.add(cb.or( cb.like(root.get("projCode"), "%" + keyword + "%"), cb.like(root.get("projName"), "%" + keyword + "%") )); } if (StringUtils.hasText(status)) { preds.add(cb.equal(root.get("status"), status)); } if (StringUtils.hasText(department)) { preds.add(cb.equal(root.get("department"), department)); } return cb.and(preds.toArray(new Predicate[0])); }; Pageable pageable = PageRequest.of(page, size, Sort.by("createdAt").descending()); return projectRepo.findAll(spec, pageable); } //其他辅助方法省略... } ``` ###2.4 Controller核心代码```java@RestController@RequestMapping("/api/v1/projects") public class ProjectController { @Autowired private ProjectService projectService; @PostMapping public ResponseEntity create(@RequestBody @Valid ProjectCreateRequest req, @AuthenticationPrincipal User user) { Project p = projectService.create(req, user.getId()); return ResponseEntity.status(HttpStatus.CREATED).body(p); } @PutMapping("/{id}") public ResponseEntity update(@PathVariable Long id, @RequestBody @Valid ProjectUpdateRequest req, @AuthenticationPrincipal User user) { Project p = projectService.update(id, req, user.getId()); return ResponseEntity.ok(p); } @PatchMapping("/{id}/submit") public ResponseEntity submit(@PathVariable Long id, @AuthenticationPrincipal User user) { return ResponseEntity.ok(projectService.submit(id, user.getId())); } @PatchMapping("/{id}/review") public ResponseEntity review(@PathVariable Long id, @RequestBody @Valid ReviewRequest req, @AuthenticationPrincipal User user) { return ResponseEntity.ok(projectService.review(id, req, user.getId())); } @GetMapping public ResponseEntity> list( @RequestParam(required = false) String keyword, @RequestParam(required = false) String status, @RequestParam(required = false) String department, @RequestParam(defaultValue = "0") int page, @RequestParam(defaultValue = "10") int size) { return ResponseEntity.ok(projectService.list(keyword, status, department, page, size)); } @GetMapping("/{id}") public ResponseEntity detail(@PathVariable Long id) { return ResponseEntity.ok(projectService.detail(id)); } } ``` (实际项目需补充异常处理、用户鉴权细节) --- ##三、前端核心页面(Vue3 + Element Plus) ###3.1项目列表页 `ProjectList.vue` ```vue 查询 重置 新建项目 {{ statusLabel(row.status) }} 详情 编辑 提交 删除 { query.size = val; fetchData(); }" @current-change="(val) => { query.page = val; fetchData(); }" />