| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- {
- "template_code": "spare_parts",
- "name": "备品备件/物料主数据",
- "description": "P2-WP00 默认第二业务域的可导入领域模板;企业真实样本和人员在复制验收前绑定。",
- "lifecycle_status": "active",
- "object_types": [
- {
- "type_code": "material",
- "name": "物料主数据",
- "stable_uid_prefix": "MAT",
- "source_identity_fields": ["source_system", "material_code"],
- "fields": [
- {"code": "material_code", "name": "物料编码", "type": "string", "required": true},
- {"code": "name", "name": "物料名称", "type": "string", "required": true},
- {"code": "specification", "name": "规格", "type": "string", "required": false},
- {"code": "uom_code", "name": "计量单位", "type": "string", "required": true},
- {"code": "category_code", "name": "分类编码", "type": "string", "required": true},
- {"code": "status", "name": "生命周期状态", "type": "string", "required": true}
- ]
- },
- {
- "type_code": "material_category",
- "name": "物料分类",
- "stable_uid_prefix": "MCT",
- "source_identity_fields": ["source_system", "category_code"],
- "fields": [
- {"code": "category_code", "name": "分类编码", "type": "string", "required": true},
- {"code": "name", "name": "分类名称", "type": "string", "required": true},
- {"code": "parent_code", "name": "上级分类编码", "type": "string", "required": false}
- ]
- },
- {
- "type_code": "storage_location",
- "name": "仓库与库位",
- "stable_uid_prefix": "LOC",
- "source_identity_fields": ["source_system", "warehouse_code", "location_code"],
- "fields": [
- {"code": "warehouse_code", "name": "仓库编码", "type": "string", "required": true},
- {"code": "location_code", "name": "库位编码", "type": "string", "required": true},
- {"code": "name", "name": "库位名称", "type": "string", "required": true}
- ]
- },
- {
- "type_code": "inventory_balance",
- "name": "库存余额",
- "stable_uid_prefix": "INV",
- "source_identity_fields": ["source_system", "material_code", "warehouse_code", "location_code", "snapshot_at"],
- "fields": [
- {"code": "material_code", "name": "物料编码", "type": "string", "required": true},
- {"code": "warehouse_code", "name": "仓库编码", "type": "string", "required": true},
- {"code": "location_code", "name": "库位编码", "type": "string", "required": true},
- {"code": "quantity", "name": "库存数量", "type": "number", "required": true},
- {"code": "snapshot_at", "name": "快照时间", "type": "datetime", "required": true}
- ]
- },
- {
- "type_code": "supplier_material_mapping",
- "name": "供应商物料映射",
- "stable_uid_prefix": "SUM",
- "source_identity_fields": ["source_system", "supplier_code", "supplier_material_code"],
- "fields": [
- {"code": "supplier_code", "name": "供应商编码", "type": "string", "required": true},
- {"code": "supplier_material_code", "name": "供应商物料编码", "type": "string", "required": true},
- {"code": "material_code", "name": "平台物料编码", "type": "string", "required": true}
- ]
- },
- {
- "type_code": "equipment_compatibility",
- "name": "设备备件适配关系",
- "stable_uid_prefix": "ECP",
- "source_identity_fields": ["source_system", "material_code", "equipment_type"],
- "fields": [
- {"code": "material_code", "name": "物料编码", "type": "string", "required": true},
- {"code": "equipment_type", "name": "设备类型", "type": "string", "required": true},
- {"code": "evidence_ref", "name": "适配证据引用", "type": "string", "required": true}
- ]
- }
- ],
- "responsibility_roles": [
- {"code": "material_domain_owner", "name": "物料域负责人", "raci_role": "accountable"},
- {"code": "material_data_steward", "name": "物料数据管理员", "raci_role": "responsible"},
- {"code": "phase2_acceptance_owner", "name": "第二阶段验收负责人", "raci_role": "consulted"}
- ],
- "rules": [
- {"code": "QR-MAT-001", "name": "物料编码必填", "dimension": "COMPLETENESS", "target_object": "material"},
- {"code": "QR-MAT-002", "name": "物料编码全局唯一", "dimension": "UNIQUENESS", "target_object": "material"},
- {"code": "QR-MAT-003", "name": "物料名称与规格完整", "dimension": "COMPLETENESS", "target_object": "material"},
- {"code": "QR-MAT-004", "name": "计量单位符合代码集", "dimension": "VALIDITY", "target_object": "material"},
- {"code": "QR-MAT-005", "name": "物料分类引用有效", "dimension": "REFERENTIAL_INTEGRITY", "target_object": "material"},
- {"code": "QR-MAT-006", "name": "库存快照新鲜度", "dimension": "FRESHNESS", "target_object": "inventory_balance"},
- {"code": "QR-MAT-007", "name": "库存数量非负", "dimension": "VALIDITY", "target_object": "inventory_balance"},
- {"code": "QR-MAT-008", "name": "设备备件适配关系可追溯", "dimension": "TRACEABILITY", "target_object": "equipment_compatibility"}
- ],
- "metrics": [
- {"code": "material_completeness", "name": "物料主数据完整率", "unit": "%"},
- {"code": "inventory_freshness", "name": "库存快照新鲜率", "unit": "%"},
- {"code": "responsibility_coverage", "name": "责任覆盖率", "unit": "%"}
- ],
- "seed_data": [
- {
- "kind": "source_contract",
- "records": [
- {"id": "SRC-MATERIAL-POSTGRES", "type": "PostgreSQL", "binding_status": "ENTERPRISE_SAMPLE_REQUIRED"},
- {"id": "SRC-INVENTORY-MYSQL", "type": "MySQL", "binding_status": "ENTERPRISE_SAMPLE_REQUIRED"},
- {"id": "SRC-SUPPLIER-FILE", "type": "controlled_file", "binding_status": "ENTERPRISE_SAMPLE_REQUIRED"}
- ]
- },
- {
- "kind": "term_and_code_set",
- "records": [
- {"id": "TERM-MATERIAL-CATEGORY", "name": "物料分类术语与代码集"},
- {"id": "CODE-UOM", "name": "计量单位代码集"},
- {"id": "CODE-MATERIAL-STATUS", "name": "物料生命周期状态代码集"},
- {"id": "TERM-SPARE-PART-CRITICALITY", "name": "备件关键度术语"}
- ]
- },
- {
- "kind": "workflow_contract",
- "records": [
- {"id": "WF-MAT-001", "name": "物料主数据纠错审批"},
- {"id": "WF-MAT-002", "name": "物料质量问题整改"},
- {"id": "WF-MAT-003", "name": "术语与代码集变更"}
- ]
- }
- ]
- }
|