{
  "format": "localaps-backup",
  "version": 1,
  "exportedAt": "2026-10-10T00:35:00.000Z",
  "data": {
    "resources": [
      {
        "id": "CNC-01",
        "code": "CNC-01",
        "name": "CNC 立式加工中心 #1（EMS EQ-CNC01／MES WC-CNC1）",
        "active": true,
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "start": "08:00",
        "end": "17:00",
        "breakStart": "12:00",
        "breakEnd": "13:00",
        "outages": []
      },
      {
        "id": "CNC-02",
        "code": "CNC-02",
        "name": "CNC 立式加工中心 #2（EMS EQ-CNC02／MES WC-CNC2）",
        "active": true,
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "start": "08:00",
        "end": "17:00",
        "breakStart": "12:00",
        "breakEnd": "13:00",
        "outages": [
          {
            "start": "2026-10-12T08:00",
            "end": "2026-10-12T12:00",
            "reason": "EMS PM-CNC02-Q 主軸軸承更換（6205ZZ × 2）"
          }
        ]
      },
      {
        "id": "DEB-01",
        "code": "DEB-01",
        "name": "自動去毛邊（EMS EQ-DEB01／MES WC-DEB）",
        "active": true,
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "start": "08:00",
        "end": "17:00",
        "breakStart": "12:00",
        "breakEnd": "13:00",
        "outages": []
      },
      {
        "id": "INS-01",
        "code": "INS-01",
        "name": "最終檢驗 CMM（EMS EQ-CMM01／MES WC-INS）",
        "active": true,
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "start": "08:00",
        "end": "17:00",
        "breakStart": "12:00",
        "breakEnd": "13:00",
        "outages": []
      }
    ],
    "jobs": [
      {
        "id": "J-022",
        "number": "WO-2610-022",
        "product": "P-1001",
        "revision": "A",
        "quantity": 80,
        "status": "Active",
        "priority": 1,
        "release": "2026-10-12T08:00",
        "due": "2026-10-12T15:00",
        "materialReady": "2026-10-12T08:00",
        "materialReviewed": true,
        "materialEvidence": "WMS AL-2610-A 可用 240 kg（需 64 kg）；倉管 張小姐確認",
        "notes": "東昇機械急單 SO-2610-018：客戶當天 15:00 派車取貨（CRM INT-004）",
        "operations": [
          {
            "id": "J-022-CNC",
            "name": "CNC 加工",
            "setup": 30,
            "run": 120,
            "resources": [
              "CNC-01",
              "CNC-02"
            ]
          },
          {
            "id": "J-022-DEB",
            "name": "去毛邊",
            "setup": 10,
            "run": 27,
            "resources": [
              "DEB-01"
            ]
          },
          {
            "id": "J-022-INS",
            "name": "最終檢驗",
            "setup": 10,
            "run": 40,
            "resources": [
              "INS-01"
            ]
          }
        ]
      },
      {
        "id": "J-023",
        "number": "WO-2610-023",
        "product": "P-1001",
        "revision": "A",
        "quantity": 120,
        "status": "Active",
        "priority": 3,
        "release": "2026-10-12T08:00",
        "due": "2026-10-13T09:00",
        "materialReady": "2026-10-12T08:00",
        "materialReviewed": true,
        "materialEvidence": "WMS AL-2610-A 可用（需 96 kg）；倉管 張小姐確認",
        "notes": "宏達精密試製訂單 SO-2610-020（客戶要求隔日 09:00 前交樣）",
        "operations": [
          {
            "id": "J-023-CNC",
            "name": "CNC 加工",
            "setup": 30,
            "run": 180,
            "resources": [
              "CNC-01",
              "CNC-02"
            ]
          },
          {
            "id": "J-023-DEB",
            "name": "去毛邊",
            "setup": 10,
            "run": 40,
            "resources": [
              "DEB-01"
            ]
          },
          {
            "id": "J-023-INS",
            "name": "最終檢驗",
            "setup": 10,
            "run": 60,
            "resources": [
              "INS-01"
            ]
          }
        ]
      }
    ],
    "references": [
      {
        "id": "ref-ems",
        "source": "EMS",
        "name": "4_EMS_backup.json",
        "fingerprint": "26e2f61ba9101829759e1d26a29dbdcfc640b5b75082d23da525703a72e6d082",
        "importedAt": "2026-10-10T00:40:00.000Z",
        "snapshot": {
          "format": "localems-backup",
          "version": 3,
          "app": "Local EMS 2.3",
          "exportedAt": "2026-10-10T00:15:00.000Z",
          "data": {
            "equipments": [
              {
                "id": "EQ-CNC01",
                "name": "CNC 立式加工中心 #1",
                "model": "VMC-850",
                "serialNumber": "SN-VMC-2021-018",
                "status": "Normal",
                "location": "A棟 1F 機加區",
                "installDate": "2021-03-15",
                "notes": "MES 工作中心 WC-CNC1；APS 資源 CNC-01。",
                "fileLinks": []
              },
              {
                "id": "EQ-CNC02",
                "name": "CNC 立式加工中心 #2",
                "model": "VMC-850",
                "serialNumber": "SN-VMC-2022-031",
                "status": "Warning",
                "location": "A棟 1F 機加區",
                "installDate": "2022-05-20",
                "notes": "主軸運轉聲音偏大，已排 PM-CNC02-Q（主軸軸承更換）。MES WC-CNC2；APS 資源 CNC-02。",
                "fileLinks": []
              },
              {
                "id": "EQ-DEB01",
                "name": "自動去毛邊機",
                "model": "DB-300",
                "serialNumber": "SN-DB-2020-007",
                "status": "Normal",
                "location": "A棟 1F 機加區",
                "installDate": "2020-08-02",
                "notes": "MES WC-DEB。",
                "fileLinks": []
              },
              {
                "id": "EQ-CMM01",
                "name": "三次元量測儀 CMM",
                "model": "CMM-7106",
                "serialNumber": "SN-CMM-2019-002",
                "status": "Normal",
                "location": "品保室（恆溫 20 °C）",
                "installDate": "2019-11-30",
                "notes": "最終檢驗內孔量測；QMS 檢驗計畫 PLAN-1001 指定量具。",
                "fileLinks": []
              },
              {
                "id": "EQ-AC01",
                "name": "螺旋式空壓機 37kW",
                "model": "AC-37",
                "serialNumber": "SN-AC-2020-033",
                "status": "Normal",
                "location": "公用機房",
                "installDate": "2020-05-20",
                "notes": "供應 CNC 夾治具氣壓。",
                "fileLinks": []
              }
            ],
            "maintenanceLogs": [
              {
                "id": "LOG-001",
                "equipmentId": "EQ-AC01",
                "date": "2026-08-21",
                "type": "Preventive",
                "description": "更換油濾、空濾",
                "technician": "保養 李技師",
                "cost": 2400,
                "partsReplaced": [],
                "partUsages": [],
                "scheduleId": "PM-AC01-Q"
              },
              {
                "id": "LOG-002",
                "equipmentId": "EQ-CNC01",
                "date": "2026-09-25",
                "type": "Preventive",
                "description": "主軸潤滑與導軌清潔",
                "technician": "保養 李技師",
                "cost": 800,
                "partsReplaced": [],
                "partUsages": [
                  {
                    "partId": "SP-OIL",
                    "quantity": 1,
                    "partName": "主軸潤滑油 1L",
                    "partNumber": "OIL-SP-1L"
                  }
                ],
                "scheduleId": "PM-CNC01-M"
              },
              {
                "id": "LOG-003",
                "equipmentId": "EQ-CMM01",
                "date": "2026-09-30",
                "type": "Inspection",
                "description": "年度外校：探頭與空間精度合格（校正報告 CAL-2610-01）",
                "technician": "外校 精測儀器",
                "cost": 18000,
                "partsReplaced": [],
                "partUsages": [],
                "scheduleId": "PM-CMM01-A"
              },
              {
                "id": "LOG-004",
                "equipmentId": "EQ-CNC02",
                "date": "2026-10-06",
                "type": "Inspection",
                "description": "主軸振動量測 2.8 mm/s（警戒 2.5），排定軸承更換",
                "technician": "保養 李技師",
                "cost": 0,
                "partsReplaced": [],
                "partUsages": []
              }
            ],
            "preventiveSchedules": [
              {
                "id": "PM-CNC01-M",
                "equipmentId": "EQ-CNC01",
                "frequency": "Monthly",
                "nextDueDate": "2026-10-25",
                "lastMaintenanceDate": "2026-09-25",
                "description": "主軸潤滑與導軌清潔",
                "status": "Active"
              },
              {
                "id": "PM-CNC02-Q",
                "equipmentId": "EQ-CNC02",
                "frequency": "Quarterly",
                "nextDueDate": "2026-10-12",
                "lastMaintenanceDate": "2026-07-13",
                "description": "主軸軸承更換（6205ZZ × 2）與精度確認",
                "status": "Active"
              },
              {
                "id": "PM-CMM01-A",
                "equipmentId": "EQ-CMM01",
                "frequency": "Annual",
                "nextDueDate": "2027-09-30",
                "lastMaintenanceDate": "2026-09-30",
                "description": "年度校正（外校，附校正報告）",
                "status": "Active"
              },
              {
                "id": "PM-AC01-Q",
                "equipmentId": "EQ-AC01",
                "frequency": "Quarterly",
                "nextDueDate": "2026-11-19",
                "lastMaintenanceDate": "2026-08-21",
                "description": "更換油濾、空濾",
                "status": "Active"
              }
            ],
            "parts": [
              {
                "id": "SP-BRG",
                "name": "深溝滾珠軸承 6205ZZ",
                "partNumber": "BRG-6205ZZ",
                "quantity": 4,
                "minQuantity": 2,
                "location": "備品室 A-01",
                "compatibleEquipments": [
                  "EQ-CNC01",
                  "EQ-CNC02"
                ]
              },
              {
                "id": "SP-OIL",
                "name": "主軸潤滑油 1L",
                "partNumber": "OIL-SP-1L",
                "quantity": 5,
                "minQuantity": 2,
                "location": "油品櫃 B-02",
                "compatibleEquipments": [
                  "EQ-CNC01",
                  "EQ-CNC02"
                ]
              }
            ],
            "stockMovements": [
              {
                "id": "MV-0001",
                "partId": "SP-BRG",
                "partName": "深溝滾珠軸承 6205ZZ",
                "partNumber": "BRG-6205ZZ",
                "date": "2026-08-11",
                "recordedAt": "2026-08-11T01:01:00.000Z",
                "delta": 2,
                "before": 0,
                "after": 2,
                "reason": "期初盤點",
                "operator": "倉管 張小姐",
                "source": "Opening",
                "logId": "",
                "equipmentId": "",
                "equipmentName": ""
              },
              {
                "id": "MV-0002",
                "partId": "SP-OIL",
                "partName": "主軸潤滑油 1L",
                "partNumber": "OIL-SP-1L",
                "date": "2026-08-11",
                "recordedAt": "2026-08-11T01:02:00.000Z",
                "delta": 6,
                "before": 0,
                "after": 6,
                "reason": "期初盤點",
                "operator": "倉管 張小姐",
                "source": "Opening",
                "logId": "",
                "equipmentId": "",
                "equipmentName": ""
              },
              {
                "id": "MV-0003",
                "partId": "SP-OIL",
                "partName": "主軸潤滑油 1L",
                "partNumber": "OIL-SP-1L",
                "date": "2026-09-25",
                "recordedAt": "2026-09-25T01:03:00.000Z",
                "delta": -1,
                "before": 6,
                "after": 5,
                "reason": "主軸潤滑與導軌清潔",
                "operator": "保養 李技師",
                "source": "MaintenanceUse",
                "logId": "LOG-002",
                "equipmentId": "EQ-CNC01",
                "equipmentName": "CNC 立式加工中心 #1"
              },
              {
                "id": "MV-0004",
                "partId": "SP-BRG",
                "partName": "深溝滾珠軸承 6205ZZ",
                "partNumber": "BRG-6205ZZ",
                "date": "2026-10-05",
                "recordedAt": "2026-10-05T01:04:00.000Z",
                "delta": 2,
                "before": 2,
                "after": 4,
                "reason": "採購入庫 PO-2610-034（ERP 採購、EMS 管理備品）",
                "operator": "倉管 張小姐",
                "source": "Manual",
                "logId": "",
                "equipmentId": "",
                "equipmentName": ""
              }
            ]
          }
        }
      },
      {
        "id": "ref-mes",
        "source": "MES",
        "name": "5_MES_backup.json",
        "fingerprint": "6a03e306d429ecf02267d9bfb60599fa550e7c414eb0a4969bdea8e74cb0373a",
        "importedAt": "2026-10-10T00:41:00.000Z",
        "snapshot": {
          "format": "localmes-backup",
          "version": 1,
          "app": "Local MES 1.1",
          "exportedAt": "2026-10-10T00:20:00.000Z",
          "data": {
            "products": [
              {
                "id": "prd-1001",
                "code": "P-1001",
                "name": "鋁合金軸承座",
                "unit": "pcs",
                "notes": "PLM P-1001 A 版（DWG-1001 A、WI-1001 A）；BOM：AL6061 0.8 kg／件",
                "routing": [
                  {
                    "id": "op-1001-10",
                    "name": "CNC 加工",
                    "workCenterId": "wc-cnc1",
                    "idealCycleSeconds": 90
                  },
                  {
                    "id": "op-1001-20",
                    "name": "去毛邊",
                    "workCenterId": "wc-deb",
                    "idealCycleSeconds": 20
                  },
                  {
                    "id": "op-1001-30",
                    "name": "最終檢驗",
                    "workCenterId": "wc-ins",
                    "idealCycleSeconds": 30
                  }
                ]
              }
            ],
            "workCenters": [
              {
                "id": "wc-cnc1",
                "code": "WC-CNC1",
                "name": "CNC 立式加工中心 #1",
                "location": "A棟 1F",
                "status": "Available",
                "notes": "EMS EQ-CNC01；APS 資源 CNC-01",
                "equipmentId": "EQ-CNC01",
                "shiftMinutes": 480
              },
              {
                "id": "wc-cnc2",
                "code": "WC-CNC2",
                "name": "CNC 立式加工中心 #2",
                "location": "A棟 1F",
                "status": "Available",
                "notes": "EMS EQ-CNC02（PM-CNC02-Q 主軸軸承更換）；APS 資源 CNC-02",
                "equipmentId": "EQ-CNC02",
                "shiftMinutes": 480
              },
              {
                "id": "wc-deb",
                "code": "WC-DEB",
                "name": "自動去毛邊",
                "location": "A棟 1F",
                "status": "Available",
                "notes": "EMS EQ-DEB01；APS 資源 DEB-01",
                "equipmentId": "EQ-DEB01",
                "shiftMinutes": 480
              },
              {
                "id": "wc-ins",
                "code": "WC-INS",
                "name": "最終檢驗（CMM）",
                "location": "品保室",
                "status": "Available",
                "notes": "EMS EQ-CMM01；QMS PLAN-1001 A",
                "equipmentId": "EQ-CMM01",
                "shiftMinutes": 480
              }
            ],
            "materials": [
              {
                "id": "mat-al",
                "code": "RM-AL6061",
                "name": "AL6061 鋁棒 Ø60",
                "lotNumber": "AL-2610-A",
                "unit": "kg",
                "quantity": 0,
                "minQuantity": 0,
                "notes": "倉庫由 WMS 管理；此處只記現場收料與耗用"
              }
            ],
            "orders": [
              {
                "id": "wo-021",
                "number": "WO-2610-021",
                "productId": "prd-1001",
                "productName": "鋁合金軸承座",
                "productCode": "P-1001",
                "unit": "pcs",
                "lotNumber": "FG-1001-2610C",
                "targetQuantity": 200,
                "startDate": "2026-10-07",
                "dueDate": "2026-10-11",
                "priority": "High",
                "status": "InProgress",
                "notes": "東昇機械 SO-2610-015（150 件）；PLM P-1001 @ A；投入 200 件含篩選餘量",
                "operations": [
                  {
                    "id": "op-1001-10",
                    "name": "CNC 加工",
                    "workCenterId": "wc-cnc1",
                    "idealCycleSeconds": 90
                  },
                  {
                    "id": "op-1001-20",
                    "name": "去毛邊",
                    "workCenterId": "wc-deb",
                    "idealCycleSeconds": 20
                  },
                  {
                    "id": "op-1001-30",
                    "name": "最終檢驗",
                    "workCenterId": "wc-ins",
                    "idealCycleSeconds": 30
                  }
                ],
                "releasedAt": "2026-10-06T01:00:00.000Z",
                "releasedBy": "生管 陳課長"
              },
              {
                "id": "wo-022",
                "number": "WO-2610-022",
                "productId": "prd-1001",
                "productName": "鋁合金軸承座",
                "productCode": "P-1001",
                "unit": "pcs",
                "lotNumber": "FG-1001-2610D",
                "targetQuantity": 80,
                "startDate": "2026-10-12",
                "dueDate": "2026-10-12",
                "priority": "Urgent",
                "status": "Draft",
                "notes": "東昇機械急單 SO-2610-018；待 APS 方案核准後放行（CNC-02 保養停機）",
                "operations": [
                  {
                    "id": "op-1001-10",
                    "name": "CNC 加工",
                    "workCenterId": "wc-cnc1",
                    "idealCycleSeconds": 90
                  },
                  {
                    "id": "op-1001-20",
                    "name": "去毛邊",
                    "workCenterId": "wc-deb",
                    "idealCycleSeconds": 20
                  },
                  {
                    "id": "op-1001-30",
                    "name": "最終檢驗",
                    "workCenterId": "wc-ins",
                    "idealCycleSeconds": 30
                  }
                ]
              }
            ],
            "productionLogs": [
              {
                "id": "log-001",
                "orderId": "wo-021",
                "operationId": "op-1001-10",
                "workCenterId": "wc-cnc1",
                "idealCycleSeconds": 90,
                "date": "2026-10-07",
                "shift": "Day",
                "operator": "王小明",
                "goodQty": 99,
                "scrapQty": 1,
                "plannedMinutes": 240,
                "downtimeMinutes": 15,
                "downtimeReason": "Setup",
                "materialUsages": [
                  {
                    "materialId": "mat-al",
                    "quantity": 80
                  }
                ],
                "notes": "換治具後首件確認；尺寸超差 1 件",
                "voided": false,
                "createdAt": "2026-10-07T02:30:00.000Z"
              },
              {
                "id": "log-002",
                "orderId": "wo-021",
                "operationId": "op-1001-10",
                "workCenterId": "wc-cnc1",
                "idealCycleSeconds": 90,
                "date": "2026-10-08",
                "shift": "Day",
                "operator": "王小明",
                "goodQty": 99,
                "scrapQty": 1,
                "plannedMinutes": 240,
                "downtimeMinutes": 0,
                "downtimeReason": "None",
                "materialUsages": [
                  {
                    "materialId": "mat-al",
                    "quantity": 80
                  }
                ],
                "notes": "刀具崩刃 1 件",
                "voided": false,
                "createdAt": "2026-10-08T03:30:00.000Z"
              },
              {
                "id": "log-003",
                "orderId": "wo-021",
                "operationId": "op-1001-20",
                "workCenterId": "wc-deb",
                "idealCycleSeconds": 20,
                "date": "2026-10-08",
                "shift": "Evening",
                "operator": "李美華",
                "goodQty": 198,
                "scrapQty": 0,
                "plannedMinutes": 120,
                "downtimeMinutes": 0,
                "downtimeReason": "None",
                "materialUsages": [],
                "notes": "",
                "voided": false,
                "createdAt": "2026-10-08T04:30:00.000Z"
              },
              {
                "id": "log-004",
                "orderId": "wo-021",
                "operationId": "op-1001-30",
                "workCenterId": "wc-ins",
                "idealCycleSeconds": 30,
                "date": "2026-10-09",
                "shift": "Day",
                "operator": "李美華",
                "goodQty": 198,
                "scrapQty": 0,
                "plannedMinutes": 120,
                "downtimeMinutes": 0,
                "downtimeReason": "None",
                "materialUsages": [],
                "notes": "198 件移交 WMS 成品收貨（保留）",
                "voided": false,
                "createdAt": "2026-10-09T05:30:00.000Z"
              }
            ],
            "qualityChecks": [
              {
                "id": "qc-1",
                "orderId": "wo-021",
                "operationId": "op-1001-30",
                "date": "2026-10-09",
                "inspector": "品保 林組長",
                "sampleQty": 5,
                "rejectedQty": 1,
                "defect": "內孔 Ø35.026 mm 超規（上限 35.020）",
                "result": "Fail",
                "disposition": "Open",
                "notes": "QMS INSP-0002／NC-0001；整批 198 件於 WMS 隔離區保留，待篩選"
              }
            ],
            "stockMovements": [
              {
                "id": "4d4d075e-9302-4417-aa40-b3cadd25a161",
                "materialId": "mat-al",
                "materialCode": "RM-AL6061",
                "materialName": "AL6061 鋁棒 Ø60",
                "lotNumber": "AL-2610-A",
                "unit": "kg",
                "date": "2026-09-10",
                "recordedAt": "2026-10-10T08:37:19.761Z",
                "delta": 0,
                "before": 0,
                "after": 0,
                "reason": "期初：現場無存料",
                "operator": "倉管 張小姐",
                "source": "Opening",
                "logId": "",
                "orderId": ""
              },
              {
                "id": "14ac3585-19e5-4236-b0ad-5b5ca9dad3d3",
                "materialId": "mat-al",
                "materialCode": "RM-AL6061",
                "materialName": "AL6061 鋁棒 Ø60",
                "lotNumber": "AL-2610-A",
                "unit": "kg",
                "date": "2026-10-06",
                "recordedAt": "2026-10-10T08:37:19.761Z",
                "delta": 160,
                "before": 0,
                "after": 160,
                "reason": "WMS 發料 PK-0001 → WO-2610-021（160 kg = 200 件 × 0.8）",
                "operator": "倉管 張小姐",
                "source": "Manual",
                "logId": "",
                "orderId": ""
              },
              {
                "id": "81ac34ad-2397-46b7-bb73-36866211dece",
                "materialId": "mat-al",
                "materialCode": "RM-AL6061",
                "materialName": "AL6061 鋁棒 Ø60",
                "lotNumber": "AL-2610-A",
                "unit": "kg",
                "date": "2026-10-07",
                "recordedAt": "2026-10-10T08:37:19.761Z",
                "delta": -80,
                "before": 160,
                "after": 80,
                "reason": "WO-2610-021 · CNC 加工",
                "operator": "王小明",
                "source": "Consumption",
                "logId": "log-001",
                "orderId": "wo-021"
              },
              {
                "id": "736144af-4bac-46a6-8205-ad9429fc39c3",
                "materialId": "mat-al",
                "materialCode": "RM-AL6061",
                "materialName": "AL6061 鋁棒 Ø60",
                "lotNumber": "AL-2610-A",
                "unit": "kg",
                "date": "2026-10-08",
                "recordedAt": "2026-10-10T08:37:19.761Z",
                "delta": -80,
                "before": 80,
                "after": 0,
                "reason": "WO-2610-021 · CNC 加工",
                "operator": "王小明",
                "source": "Consumption",
                "logId": "log-002",
                "orderId": "wo-021"
              }
            ],
            "auditEvents": [
              {
                "id": "ev-release-WO-2610-021",
                "recordedAt": "2026-10-06T02:00:00.000Z",
                "action": "release",
                "entity": "WO-2610-021",
                "operator": "生管 陳課長",
                "reason": "WMS PK-0001 備料完成"
              }
            ]
          }
        }
      },
      {
        "id": "ref-wms",
        "source": "WMS",
        "name": "7_WMS_backup.json",
        "fingerprint": "a6a1d9c7f207b7d583ae4601357af8a1e7c1d61fac976aec4284d39c6baf6f92",
        "importedAt": "2026-10-10T00:42:00.000Z",
        "snapshot": {
          "format": "localwms-backup",
          "version": 1,
          "exportedAt": "2026-10-10T00:30:00.000Z",
          "data": {
            "items": [
              {
                "id": "item-al",
                "code": "RM-AL6061",
                "name": "AL6061 鋁棒 Ø60",
                "unit": "kg",
                "minQuantity": 200,
                "status": "Active",
                "notes": "PLM RM-AL6061 A；ERP 採購（未連結品項）"
              },
              {
                "id": "item-p1001",
                "code": "P-1001",
                "name": "鋁合金軸承座",
                "unit": "pcs",
                "minQuantity": 0,
                "status": "Active",
                "notes": "PLM P-1001 A；客戶 東昇機械"
              }
            ],
            "locations": [
              {
                "id": "loc-rcv",
                "code": "WH1-RCV",
                "name": "收貨暫存區",
                "warehouse": "WH1",
                "zone": "R",
                "type": "Receiving",
                "status": "Active",
                "notes": ""
              },
              {
                "id": "loc-a01",
                "code": "WH1-A01",
                "name": "原料架 A01",
                "warehouse": "WH1",
                "zone": "A",
                "type": "Storage",
                "status": "Active",
                "notes": ""
              },
              {
                "id": "loc-b01",
                "code": "WH1-B01",
                "name": "成品區 B01",
                "warehouse": "WH1",
                "zone": "B",
                "type": "Storage",
                "status": "Active",
                "notes": ""
              },
              {
                "id": "loc-q01",
                "code": "WH1-Q01",
                "name": "隔離區 Q01",
                "warehouse": "WH1",
                "zone": "Q",
                "type": "Quarantine",
                "status": "Active",
                "notes": ""
              },
              {
                "id": "loc-shp",
                "code": "WH1-SHP",
                "name": "出貨備貨區",
                "warehouse": "WH1",
                "zone": "S",
                "type": "Shipping",
                "status": "Active",
                "notes": ""
              }
            ],
            "lots": [
              {
                "id": "lot-al",
                "itemId": "item-al",
                "itemNumber": "RM-AL6061",
                "itemName": "AL6061 鋁棒 Ø60",
                "unit": "kg",
                "lotNumber": "AL-2610-A",
                "receivedDate": "2026-10-02",
                "expiryDate": "",
                "sourceRefId": "ref-qms-insp0001",
                "notes": "ERP PO-2610-031 400 kg；QMS INSP-0001 進料合格"
              },
              {
                "id": "lot-fg",
                "itemId": "item-p1001",
                "itemNumber": "P-1001",
                "itemName": "鋁合金軸承座",
                "unit": "pcs",
                "lotNumber": "FG-1001-2610C",
                "receivedDate": "2026-10-09",
                "expiryDate": "",
                "sourceRefId": "ref-mes-wo021",
                "notes": "MES WO-2610-021 完工移交 198 件；QMS NC-0001 隔離中"
              }
            ],
            "movements": [
              {
                "id": "6d185f9b-1e3a-442d-8c67-0640467fb7c5",
                "number": "MV-20261010-001",
                "type": "Receive",
                "date": "2026-10-02",
                "lotId": "lot-al",
                "quantity": 400,
                "fromLocationId": "",
                "toLocationId": "loc-rcv",
                "fromBucket": "",
                "toBucket": "Hold",
                "actor": "倉管 張小姐",
                "reason": "收貨（待 IQC）",
                "reference": "PO-2610-031",
                "authorization": "",
                "qualityRefId": "",
                "sourceKind": "Manual",
                "sourceId": "",
                "reversalOf": "",
                "postedAt": "2026-10-10T08:37:19.783Z",
                "entries": [
                  {
                    "lotId": "lot-al",
                    "locationId": "loc-rcv",
                    "bucket": "Hold",
                    "delta": 400
                  }
                ]
              },
              {
                "id": "20225b3d-426d-4c8a-b1bc-2bbc914ac8f0",
                "number": "MV-20261010-002",
                "type": "Transfer",
                "date": "2026-10-02",
                "lotId": "lot-al",
                "quantity": 400,
                "fromLocationId": "loc-rcv",
                "toLocationId": "loc-a01",
                "fromBucket": "Hold",
                "toBucket": "Hold",
                "actor": "倉管 張小姐",
                "reason": "上架（保留）",
                "reference": "PO-2610-031",
                "authorization": "",
                "qualityRefId": "",
                "sourceKind": "Manual",
                "sourceId": "",
                "reversalOf": "",
                "postedAt": "2026-10-10T08:37:19.784Z",
                "entries": [
                  {
                    "lotId": "lot-al",
                    "locationId": "loc-rcv",
                    "bucket": "Hold",
                    "delta": -400
                  },
                  {
                    "lotId": "lot-al",
                    "locationId": "loc-a01",
                    "bucket": "Hold",
                    "delta": 400
                  }
                ]
              },
              {
                "id": "3b45fc1e-2ce3-4950-85cf-d62c5bcc804e",
                "number": "MV-20261010-003",
                "type": "StatusChange",
                "date": "2026-10-03",
                "lotId": "lot-al",
                "quantity": 400,
                "fromLocationId": "loc-a01",
                "toLocationId": "loc-a01",
                "fromBucket": "Hold",
                "toBucket": "Available",
                "actor": "IQC 王主任",
                "reason": "進料檢驗合格放行",
                "reference": "INSP-0001",
                "authorization": "IQC 王主任核准（QMS INSP-0001 合格）",
                "qualityRefId": "ref-qms-insp0001",
                "sourceKind": "Manual",
                "sourceId": "",
                "reversalOf": "",
                "postedAt": "2026-10-10T08:37:19.785Z",
                "entries": [
                  {
                    "lotId": "lot-al",
                    "locationId": "loc-a01",
                    "bucket": "Hold",
                    "delta": -400
                  },
                  {
                    "lotId": "lot-al",
                    "locationId": "loc-a01",
                    "bucket": "Available",
                    "delta": 400
                  }
                ]
              },
              {
                "id": "944b5661-4b08-4ad6-a157-bd4a530a243b",
                "number": "MV-20261010-004",
                "type": "Issue",
                "date": "2026-10-06",
                "lotId": "lot-al",
                "quantity": 160,
                "fromLocationId": "loc-a01",
                "toLocationId": "",
                "fromBucket": "Available",
                "toBucket": "",
                "actor": "倉管 張小姐",
                "reason": "發料至 CNC 線（MES 現場收料）",
                "reference": "WO-2610-021",
                "authorization": "",
                "qualityRefId": "",
                "sourceKind": "Pick",
                "sourceId": "pick-kit-021",
                "reversalOf": "",
                "postedAt": "2026-10-10T08:37:19.786Z",
                "entries": [
                  {
                    "lotId": "lot-al",
                    "locationId": "loc-a01",
                    "bucket": "Available",
                    "delta": -160
                  }
                ]
              },
              {
                "id": "492366f6-54d8-4bd5-8a3a-f79efff82e93",
                "number": "MV-20261010-005",
                "type": "Receive",
                "date": "2026-10-09",
                "lotId": "lot-fg",
                "quantity": 198,
                "fromLocationId": "",
                "toLocationId": "loc-rcv",
                "fromBucket": "",
                "toBucket": "Hold",
                "actor": "倉管 張小姐",
                "reason": "MES 完工移交（待品質放行）",
                "reference": "WO-2610-021",
                "authorization": "",
                "qualityRefId": "",
                "sourceKind": "Manual",
                "sourceId": "",
                "reversalOf": "",
                "postedAt": "2026-10-10T08:37:19.787Z",
                "entries": [
                  {
                    "lotId": "lot-fg",
                    "locationId": "loc-rcv",
                    "bucket": "Hold",
                    "delta": 198
                  }
                ]
              },
              {
                "id": "6420b104-d916-4c12-bea3-ab1591c9d821",
                "number": "MV-20261010-006",
                "type": "Transfer",
                "date": "2026-10-09",
                "lotId": "lot-fg",
                "quantity": 198,
                "fromLocationId": "loc-rcv",
                "toLocationId": "loc-q01",
                "fromBucket": "Hold",
                "toBucket": "Hold",
                "actor": "品保 林組長",
                "reason": "QMS NC-0001 整批隔離",
                "reference": "NC-0001",
                "authorization": "",
                "qualityRefId": "",
                "sourceKind": "Manual",
                "sourceId": "",
                "reversalOf": "",
                "postedAt": "2026-10-10T08:37:19.787Z",
                "entries": [
                  {
                    "lotId": "lot-fg",
                    "locationId": "loc-rcv",
                    "bucket": "Hold",
                    "delta": -198
                  },
                  {
                    "lotId": "lot-fg",
                    "locationId": "loc-q01",
                    "bucket": "Hold",
                    "delta": 198
                  }
                ]
              }
            ],
            "picks": [
              {
                "id": "pick-kit-021",
                "number": "PK-0001",
                "type": "Production",
                "reference": "WO-2610-021",
                "party": "製造課 CNC 線",
                "date": "2026-10-05",
                "dueDate": "2026-10-06",
                "owner": "倉管 張小姐",
                "status": "Posted",
                "sourceRefId": "",
                "notes": "BOM 0.8 kg × 200 件 = 160 kg；MES 現場收料同步記錄 +160 kg",
                "lines": [
                  {
                    "id": "pk1-l1",
                    "itemId": "item-al",
                    "quantity": 160,
                    "allocations": [
                      {
                        "lotId": "lot-al",
                        "locationId": "loc-a01",
                        "quantity": 160
                      }
                    ]
                  }
                ],
                "postedMovementIds": [
                  "944b5661-4b08-4ad6-a157-bd4a530a243b"
                ],
                "allocatedBy": "倉管 張小姐",
                "allocatedAt": "2026-10-10T08:37:19.786Z",
                "postedBy": "倉管 張小姐",
                "postedAt": "2026-10-10T08:37:19.786Z"
              },
              {
                "id": "pick-ship-015",
                "number": "PK-0002",
                "type": "Shipment",
                "reference": "SO-2610-015",
                "party": "東昇機械股份有限公司",
                "date": "2026-10-10",
                "dueDate": "2026-10-12",
                "owner": "倉管 張小姐",
                "status": "Draft",
                "sourceRefId": "",
                "notes": "待 FG-1001-2610C 品質放行後分配出貨",
                "lines": [
                  {
                    "id": "pk2-l1",
                    "itemId": "item-p1001",
                    "quantity": 150,
                    "allocations": []
                  }
                ],
                "postedMovementIds": []
              }
            ],
            "counts": [],
            "references": [
              {
                "id": "ref-qms-insp0001",
                "sourceKind": "QMS",
                "externalId": "insp-1",
                "sourceNumber": "INSP-0001",
                "itemNumber": "RM-AL6061",
                "lotNumber": "AL-2610-A",
                "productRevision": "A",
                "party": "",
                "fileHash": "33ebd67f2c97e1382ab6c9218d7f71083a12e766eb61bf013694106f044db115",
                "importedAt": "2026-10-02T08:00:00.000Z",
                "context": {
                  "result": "Pass",
                  "date": "2026-10-02",
                  "inspector": "IQC 王主任",
                  "sampleSize": 3,
                  "rejectedParts": 0,
                  "recordedAt": "2026-10-02T07:00:00.000Z"
                }
              },
              {
                "id": "ref-mes-wo021",
                "sourceKind": "MES",
                "externalId": "wo-021",
                "sourceNumber": "WO-2610-021",
                "itemNumber": "P-1001",
                "lotNumber": "FG-1001-2610C",
                "productRevision": "",
                "party": "",
                "fileHash": "6a03e306d429ecf02267d9bfb60599fa550e7c414eb0a4969bdea8e74cb0373a",
                "importedAt": "2026-10-09T03:00:00.000Z",
                "context": {
                  "name": "鋁合金軸承座",
                  "unit": "pcs",
                  "status": "InProgress",
                  "targetQuantity": 200,
                  "startDate": "2026-10-07",
                  "dueDate": "2026-10-11"
                }
              },
              {
                "id": "ref-qms-insp0002",
                "sourceKind": "QMS",
                "externalId": "insp-2",
                "sourceNumber": "INSP-0002",
                "itemNumber": "P-1001",
                "lotNumber": "FG-1001-2610C",
                "productRevision": "A",
                "party": "",
                "fileHash": "33ebd67f2c97e1382ab6c9218d7f71083a12e766eb61bf013694106f044db115",
                "importedAt": "2026-10-09T08:00:00.000Z",
                "context": {
                  "result": "Fail",
                  "date": "2026-10-09",
                  "inspector": "品保 林組長",
                  "sampleSize": 5,
                  "rejectedParts": 1,
                  "recordedAt": "2026-10-09T07:00:00.000Z"
                }
              }
            ],
            "events": [
              {
                "id": "479718ca-7419-43ab-9a0d-d328f7725b04",
                "recordedAt": "2026-10-10T08:37:19.784Z",
                "action": "Receive",
                "entity": "MV-20261010-001",
                "actor": "倉管 張小姐",
                "reason": "收貨（待 IQC）"
              },
              {
                "id": "b8bfd9d7-072b-46fa-869f-2e003e597051",
                "recordedAt": "2026-10-10T08:37:19.785Z",
                "action": "Transfer",
                "entity": "MV-20261010-002",
                "actor": "倉管 張小姐",
                "reason": "上架（保留）"
              },
              {
                "id": "4663c495-1669-40aa-b793-5a54ab9c68ef",
                "recordedAt": "2026-10-10T08:37:19.785Z",
                "action": "StatusChange",
                "entity": "MV-20261010-003",
                "actor": "IQC 王主任",
                "reason": "進料檢驗合格放行"
              },
              {
                "id": "6aa7760f-d566-40fd-ae10-0bb97a468219",
                "recordedAt": "2026-10-10T08:37:19.786Z",
                "action": "allocate",
                "entity": "PK-0001",
                "actor": "倉管 張小姐",
                "reason": "FEFO 預留"
              },
              {
                "id": "542b2781-a638-428d-b0d1-fbab78501fcd",
                "recordedAt": "2026-10-10T08:37:19.787Z",
                "action": "post",
                "entity": "PK-0001",
                "actor": "倉管 張小姐",
                "reason": "發料至 CNC 線（MES 現場收料）"
              },
              {
                "id": "12f3abb4-a0bf-4aef-afb3-7c48a4d42c43",
                "recordedAt": "2026-10-10T08:37:19.787Z",
                "action": "Receive",
                "entity": "MV-20261010-005",
                "actor": "倉管 張小姐",
                "reason": "MES 完工移交（待品質放行）"
              },
              {
                "id": "c378d367-7219-4742-953f-d1fa4d7fbe58",
                "recordedAt": "2026-10-10T08:37:19.787Z",
                "action": "Transfer",
                "entity": "MV-20261010-006",
                "actor": "品保 林組長",
                "reason": "QMS NC-0001 整批隔離"
              },
              {
                "id": "cc902b16-e93e-44a6-b14d-86029d4fee05",
                "recordedAt": "2026-10-10T08:37:19.787Z",
                "action": "import",
                "entity": "MES_backup.json / QMS_backup.json",
                "actor": "品保 林組長",
                "reason": "唯讀參考 3 筆"
              }
            ]
          }
        }
      },
      {
        "id": "ref-plm",
        "source": "PLM",
        "name": "PLM_release_P-1001_A.json",
        "fingerprint": "25a84451c7852920c174ac28defa2d8262b232a38d344d59635fbc0c20d3392c",
        "importedAt": "2026-10-10T00:43:00.000Z",
        "snapshot": {
          "format": "localplm-release",
          "version": 2,
          "app": "Local PLM 1.1",
          "exportedAt": "2026-09-20T00:30:00.000Z",
          "notice": "Engineering release package for human review and MES/ERP setup. It is not a MES/ERP backup and does not synchronize or replace operational data.",
          "rootRevisionId": "rev-P-1001-A",
          "rootStatus": "Current effective revision",
          "effectivity": [
            {
              "kind": "revision",
              "id": "rev-RM-AL6061-A",
              "number": "RM-AL6061",
              "revision": "A",
              "effectiveDate": "2026-08-31",
              "supersededBy": ""
            },
            {
              "kind": "revision",
              "id": "rev-P-1001-A",
              "number": "P-1001",
              "revision": "A",
              "effectiveDate": "2026-08-31",
              "supersededBy": ""
            },
            {
              "kind": "document",
              "id": "doc-DWG-1001-A",
              "number": "DWG-1001",
              "revision": "A",
              "effectiveDate": "2026-08-31",
              "supersededBy": ""
            },
            {
              "kind": "document",
              "id": "doc-WI-1001-A",
              "number": "WI-1001",
              "revision": "A",
              "effectiveDate": "2026-08-31",
              "supersededBy": ""
            },
            {
              "kind": "document",
              "id": "doc-FIX-1001-A",
              "number": "FIX-1001",
              "revision": "A",
              "effectiveDate": "2026-08-31",
              "supersededBy": ""
            },
            {
              "kind": "document",
              "id": "doc-TR-1001-A",
              "number": "TR-1001",
              "revision": "A",
              "effectiveDate": "2026-08-29",
              "supersededBy": ""
            }
          ],
          "warnings": [],
          "items": [
            {
              "id": "item-P-1001",
              "number": "P-1001",
              "name": "鋁合金軸承座",
              "type": "Assembly",
              "unit": "pcs",
              "owner": "研發 林工程師",
              "status": "Active",
              "description": "東昇機械 CNC 主軸用軸承座；AL6061-T6 一體切削。"
            },
            {
              "id": "item-RM-AL6061",
              "number": "RM-AL6061",
              "name": "AL6061 鋁棒 Ø60",
              "type": "Material",
              "unit": "kg",
              "owner": "研發 林工程師",
              "status": "Active",
              "description": "T6 狀態，附材質證明。"
            }
          ],
          "revisions": [
            {
              "id": "rev-RM-AL6061-A",
              "itemId": "item-RM-AL6061",
              "itemNumber": "RM-AL6061",
              "name": "AL6061 鋁棒 Ø60",
              "type": "Material",
              "unit": "kg",
              "owner": "研發 林工程師",
              "revision": "A",
              "description": "",
              "status": "Released",
              "createdDate": "2026-08-11",
              "effectiveDate": "2026-08-31",
              "basedOnId": "",
              "changeId": "",
              "bom": [],
              "documentIds": [],
              "requirementIds": [],
              "releasedBy": "品保 林組長",
              "releasedAt": "2026-08-30T01:00:00.000Z",
              "releaseReason": "設計審查與首件檢驗通過",
              "reviewedBy": "研發 林工程師",
              "reviewedAt": "2026-08-29T07:00:00.000Z",
              "baseline": "{\"itemId\":\"item-RM-AL6061\",\"itemNumber\":\"RM-AL6061\",\"name\":\"AL6061 鋁棒 Ø60\",\"type\":\"Material\",\"unit\":\"kg\",\"revision\":\"A\",\"basedOnId\":\"\",\"description\":\"\",\"bom\":[],\"documentIds\":[],\"requirementIds\":[],\"effectiveDate\":\"2026-08-31\"}",
              "verificationSnapshot": []
            },
            {
              "id": "rev-P-1001-A",
              "itemId": "item-P-1001",
              "itemNumber": "P-1001",
              "name": "鋁合金軸承座",
              "type": "Assembly",
              "unit": "pcs",
              "owner": "研發 林工程師",
              "revision": "A",
              "description": "量產版；每件耗用 AL6061 0.8 kg。",
              "status": "Released",
              "createdDate": "2026-08-11",
              "effectiveDate": "2026-08-31",
              "basedOnId": "",
              "changeId": "",
              "bom": [
                {
                  "id": "rev-P-1001-A-L1",
                  "childRevisionId": "rev-RM-AL6061-A",
                  "quantity": 0.8,
                  "referenceDesignators": "",
                  "notes": "含切削損耗"
                }
              ],
              "documentIds": [
                "doc-DWG-1001-A",
                "doc-WI-1001-A",
                "doc-FIX-1001-A",
                "doc-TR-1001-A"
              ],
              "requirementIds": [
                "req-REQ-1001-01",
                "req-REQ-1001-02"
              ],
              "releasedBy": "品保 林組長",
              "releasedAt": "2026-08-30T01:00:00.000Z",
              "releaseReason": "設計審查與首件檢驗通過",
              "reviewedBy": "研發 林工程師",
              "reviewedAt": "2026-08-29T07:00:00.000Z",
              "baseline": "{\"itemId\":\"item-P-1001\",\"itemNumber\":\"P-1001\",\"name\":\"鋁合金軸承座\",\"type\":\"Assembly\",\"unit\":\"pcs\",\"revision\":\"A\",\"basedOnId\":\"\",\"description\":\"量產版；每件耗用 AL6061 0.8 kg。\",\"bom\":[{\"id\":\"rev-P-1001-A-L1\",\"childRevisionId\":\"rev-RM-AL6061-A\",\"quantity\":0.8,\"referenceDesignators\":\"\",\"notes\":\"含切削損耗\"}],\"documentIds\":[\"doc-DWG-1001-A\",\"doc-WI-1001-A\",\"doc-FIX-1001-A\",\"doc-TR-1001-A\"],\"requirementIds\":[\"req-REQ-1001-01\",\"req-REQ-1001-02\"],\"effectiveDate\":\"2026-08-31\"}",
              "verificationSnapshot": [
                {
                  "id": "req-REQ-1001-01",
                  "record": {
                    "id": "req-REQ-1001-01",
                    "number": "REQ-1001-01",
                    "itemId": "item-P-1001",
                    "title": "內孔 Ø35.000 ±0.020 mm（軸承 6207 配合）",
                    "owner": "品保 林組長",
                    "priority": "High",
                    "status": "Verified",
                    "method": "CMM 三次元量測",
                    "evidence": "TR-1001 A · 首件 5/5 合格",
                    "description": "東昇機械 RFQ-2608-07 客戶需求"
                  }
                },
                {
                  "id": "req-REQ-1001-02",
                  "record": {
                    "id": "req-REQ-1001-02",
                    "number": "REQ-1001-02",
                    "itemId": "item-P-1001",
                    "title": "外觀不可有毛邊、刮傷",
                    "owner": "品保 林組長",
                    "priority": "Normal",
                    "status": "Verified",
                    "method": "目視（10 倍放大鏡）",
                    "evidence": "TR-1001 A · 首件 5/5 合格",
                    "description": "東昇機械 RFQ-2608-07 客戶需求"
                  }
                }
              ]
            }
          ],
          "documents": [
            {
              "id": "doc-DWG-1001-A",
              "number": "DWG-1001",
              "revision": "A",
              "title": "軸承座零件圖（內孔 Ø35.000 ±0.020）",
              "kind": "Drawing",
              "owner": "研發 林工程師",
              "reference": "\\\\fileserver\\PLM\\DWG-1001-A.pdf",
              "description": "",
              "status": "Released",
              "effectiveDate": "2026-08-31",
              "createdDate": "2026-08-11",
              "basedOnId": "",
              "changeId": "",
              "releasedBy": "品保 林組長",
              "releasedAt": "2026-08-30T01:00:00.000Z",
              "releaseReason": "設計審查與首件檢驗通過",
              "reviewedBy": "研發 林工程師",
              "reviewedAt": "2026-08-29T07:00:00.000Z",
              "baseline": "{\"number\":\"DWG-1001\",\"revision\":\"A\",\"title\":\"軸承座零件圖（內孔 Ø35.000 ±0.020）\",\"kind\":\"Drawing\",\"reference\":\"\\\\\\\\fileserver\\\\PLM\\\\DWG-1001-A.pdf\",\"description\":\"\",\"basedOnId\":\"\",\"effectiveDate\":\"2026-08-31\"}"
            },
            {
              "id": "doc-WI-1001-A",
              "number": "WI-1001",
              "revision": "A",
              "title": "軸承座 CNC 加工作業指導書",
              "kind": "WorkInstruction",
              "owner": "研發 林工程師",
              "reference": "\\\\fileserver\\PLM\\WI-1001-A.pdf",
              "description": "",
              "status": "Released",
              "effectiveDate": "2026-08-31",
              "createdDate": "2026-08-16",
              "basedOnId": "",
              "changeId": "",
              "releasedBy": "品保 林組長",
              "releasedAt": "2026-08-30T01:00:00.000Z",
              "releaseReason": "設計審查與首件檢驗通過",
              "reviewedBy": "研發 林工程師",
              "reviewedAt": "2026-08-29T07:00:00.000Z",
              "baseline": "{\"number\":\"WI-1001\",\"revision\":\"A\",\"title\":\"軸承座 CNC 加工作業指導書\",\"kind\":\"WorkInstruction\",\"reference\":\"\\\\\\\\fileserver\\\\PLM\\\\WI-1001-A.pdf\",\"description\":\"\",\"basedOnId\":\"\",\"effectiveDate\":\"2026-08-31\"}"
            },
            {
              "id": "doc-FIX-1001-A",
              "number": "FIX-1001",
              "revision": "A",
              "title": "CNC 夾治具圖（定位銷 S45C）",
              "kind": "Drawing",
              "owner": "研發 林工程師",
              "reference": "\\\\fileserver\\PLM\\FIX-1001-A.pdf",
              "description": "",
              "status": "Released",
              "effectiveDate": "2026-08-31",
              "createdDate": "2026-08-16",
              "basedOnId": "",
              "changeId": "",
              "releasedBy": "品保 林組長",
              "releasedAt": "2026-08-30T01:00:00.000Z",
              "releaseReason": "設計審查與首件檢驗通過",
              "reviewedBy": "研發 林工程師",
              "reviewedAt": "2026-08-29T07:00:00.000Z",
              "baseline": "{\"number\":\"FIX-1001\",\"revision\":\"A\",\"title\":\"CNC 夾治具圖（定位銷 S45C）\",\"kind\":\"Drawing\",\"reference\":\"\\\\\\\\fileserver\\\\PLM\\\\FIX-1001-A.pdf\",\"description\":\"\",\"basedOnId\":\"\",\"effectiveDate\":\"2026-08-31\"}"
            },
            {
              "id": "doc-TR-1001-A",
              "number": "TR-1001",
              "revision": "A",
              "title": "首件檢驗報告（CMM 量測）",
              "kind": "TestReport",
              "owner": "研發 林工程師",
              "reference": "\\\\fileserver\\PLM\\TR-1001-A.pdf",
              "description": "",
              "status": "Released",
              "effectiveDate": "2026-08-29",
              "createdDate": "2026-08-26",
              "basedOnId": "",
              "changeId": "",
              "releasedBy": "品保 林組長",
              "releasedAt": "2026-08-30T01:00:00.000Z",
              "releaseReason": "設計審查與首件檢驗通過",
              "reviewedBy": "研發 林工程師",
              "reviewedAt": "2026-08-29T07:00:00.000Z",
              "baseline": "{\"number\":\"TR-1001\",\"revision\":\"A\",\"title\":\"首件檢驗報告（CMM 量測）\",\"kind\":\"TestReport\",\"reference\":\"\\\\\\\\fileserver\\\\PLM\\\\TR-1001-A.pdf\",\"description\":\"\",\"basedOnId\":\"\",\"effectiveDate\":\"2026-08-29\"}"
            }
          ],
          "requirements": [
            {
              "id": "req-REQ-1001-01",
              "number": "REQ-1001-01",
              "itemId": "item-P-1001",
              "title": "內孔 Ø35.000 ±0.020 mm（軸承 6207 配合）",
              "owner": "品保 林組長",
              "priority": "High",
              "status": "Verified",
              "method": "CMM 三次元量測",
              "evidence": "TR-1001 A · 首件 5/5 合格",
              "description": "東昇機械 RFQ-2608-07 客戶需求"
            },
            {
              "id": "req-REQ-1001-02",
              "number": "REQ-1001-02",
              "itemId": "item-P-1001",
              "title": "外觀不可有毛邊、刮傷",
              "owner": "品保 林組長",
              "priority": "Normal",
              "status": "Verified",
              "method": "目視（10 倍放大鏡）",
              "evidence": "TR-1001 A · 首件 5/5 合格",
              "description": "東昇機械 RFQ-2608-07 客戶需求"
            }
          ],
          "changes": [],
          "explodedBom": [
            {
              "id": "rev-P-1001-A-L1",
              "parentRevisionId": "rev-P-1001-A",
              "childRevisionId": "rev-RM-AL6061-A",
              "level": 1,
              "itemNumber": "RM-AL6061",
              "revision": "A",
              "name": "AL6061 鋁棒 Ø60",
              "unit": "kg",
              "status": "Released",
              "quantity": 0.8,
              "extendedQuantity": 0.8,
              "referenceDesignators": "",
              "path": "P-1001@A",
              "leaf": true
            }
          ]
        }
      }
    ],
    "scenarios": [
      {
        "id": "S-W0",
        "name": "PLAN-W0 WO-2610-021",
        "createdAt": "2026-10-06T08:00:00.000Z",
        "status": "Published",
        "snapshot": {
          "resources": [
            {
              "id": "CNC-01",
              "code": "CNC-01",
              "name": "CNC 立式加工中心 #1（EMS EQ-CNC01／MES WC-CNC1）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "CNC-02",
              "code": "CNC-02",
              "name": "CNC 立式加工中心 #2（EMS EQ-CNC02／MES WC-CNC2）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "DEB-01",
              "code": "DEB-01",
              "name": "自動去毛邊（EMS EQ-DEB01／MES WC-DEB）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "INS-01",
              "code": "INS-01",
              "name": "最終檢驗 CMM（EMS EQ-CMM01／MES WC-INS）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            }
          ],
          "jobs": [
            {
              "id": "J-021",
              "number": "WO-2610-021",
              "product": "P-1001",
              "revision": "A",
              "quantity": 200,
              "status": "Active",
              "priority": 2,
              "release": "2026-10-07T08:00",
              "due": "2026-10-10T17:00",
              "materialReady": "2026-10-07T08:00",
              "materialReviewed": true,
              "materialEvidence": "WMS PK-0001 發料 160 kg",
              "notes": "東昇機械 SO-2610-015；PLM P-1001 @ A",
              "operations": [
                {
                  "id": "J-021-CNC-A",
                  "name": "CNC 加工（第 1 批 100 件）",
                  "setup": 30,
                  "run": 150,
                  "resources": [
                    "CNC-01"
                  ]
                },
                {
                  "id": "J-021-CNC-B",
                  "name": "CNC 加工（第 2 批 100 件）",
                  "setup": 0,
                  "run": 150,
                  "resources": [
                    "CNC-01"
                  ]
                },
                {
                  "id": "J-021-DEB",
                  "name": "去毛邊",
                  "setup": 10,
                  "run": 66,
                  "resources": [
                    "DEB-01"
                  ]
                },
                {
                  "id": "J-021-INS",
                  "name": "最終檢驗",
                  "setup": 10,
                  "run": 100,
                  "resources": [
                    "INS-01"
                  ]
                }
              ]
            }
          ]
        },
        "options": {
          "policy": "EDD",
          "start": "2026-10-07T08:00",
          "days": 5
        },
        "result": {
          "entries": [
            {
              "jobId": "J-021",
              "number": "WO-2610-021",
              "operationId": "J-021-CNC-A",
              "operation": "CNC 加工（第 1 批 100 件）",
              "resourceId": "CNC-01",
              "start": 29856000,
              "end": 29856180,
              "duration": 180
            },
            {
              "jobId": "J-021",
              "number": "WO-2610-021",
              "operationId": "J-021-CNC-B",
              "operation": "CNC 加工（第 2 批 100 件）",
              "resourceId": "CNC-01",
              "start": 29856300,
              "end": 29856450,
              "duration": 150
            },
            {
              "jobId": "J-021",
              "number": "WO-2610-021",
              "operationId": "J-021-DEB",
              "operation": "去毛邊",
              "resourceId": "DEB-01",
              "start": 29856450,
              "end": 29856526,
              "duration": 76
            },
            {
              "jobId": "J-021",
              "number": "WO-2610-021",
              "operationId": "J-021-INS",
              "operation": "最終檢驗",
              "resourceId": "INS-01",
              "start": 29857440,
              "end": 29857550,
              "duration": 110
            }
          ],
          "unscheduled": [],
          "jobResults": [
            {
              "jobId": "J-021",
              "number": "WO-2610-021",
              "finish": 29857550,
              "due": 29860860,
              "late": 0
            }
          ],
          "usage": [
            {
              "resourceId": "CNC-01",
              "available": 1440,
              "used": 330
            },
            {
              "resourceId": "CNC-02",
              "available": 1440,
              "used": 0
            },
            {
              "resourceId": "DEB-01",
              "available": 1440,
              "used": 76
            },
            {
              "resourceId": "INS-01",
              "available": 1440,
              "used": 110
            }
          ],
          "metrics": {
            "orders": 1,
            "scheduled": 1,
            "unscheduled": 0,
            "late": 0,
            "totalLate": 0
          }
        },
        "approval": {
          "owner": "生管 陳課長",
          "evidence": "已與 MES 確認 CNC-01 兩批加工；物料 WMS PK-0001 備妥。",
          "date": "2026-10-06T09:00:00.000Z"
        }
      },
      {
        "id": "S-W1",
        "name": "PLAN-W1 急單＋CNC-02 保養",
        "createdAt": "2026-10-10T00:50:00.000Z",
        "status": "Draft",
        "snapshot": {
          "resources": [
            {
              "id": "CNC-01",
              "code": "CNC-01",
              "name": "CNC 立式加工中心 #1（EMS EQ-CNC01／MES WC-CNC1）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "CNC-02",
              "code": "CNC-02",
              "name": "CNC 立式加工中心 #2（EMS EQ-CNC02／MES WC-CNC2）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": [
                {
                  "start": "2026-10-12T08:00",
                  "end": "2026-10-12T12:00",
                  "reason": "EMS PM-CNC02-Q 主軸軸承更換（6205ZZ × 2）"
                }
              ]
            },
            {
              "id": "DEB-01",
              "code": "DEB-01",
              "name": "自動去毛邊（EMS EQ-DEB01／MES WC-DEB）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "INS-01",
              "code": "INS-01",
              "name": "最終檢驗 CMM（EMS EQ-CMM01／MES WC-INS）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            }
          ],
          "jobs": [
            {
              "id": "J-022",
              "number": "WO-2610-022",
              "product": "P-1001",
              "revision": "A",
              "quantity": 80,
              "status": "Active",
              "priority": 1,
              "release": "2026-10-12T08:00",
              "due": "2026-10-12T15:00",
              "materialReady": "2026-10-12T08:00",
              "materialReviewed": true,
              "materialEvidence": "WMS AL-2610-A 可用 240 kg（需 64 kg）；倉管 張小姐確認",
              "notes": "東昇機械急單 SO-2610-018：客戶當天 15:00 派車取貨（CRM INT-004）",
              "operations": [
                {
                  "id": "J-022-CNC",
                  "name": "CNC 加工",
                  "setup": 30,
                  "run": 120,
                  "resources": [
                    "CNC-01",
                    "CNC-02"
                  ]
                },
                {
                  "id": "J-022-DEB",
                  "name": "去毛邊",
                  "setup": 10,
                  "run": 27,
                  "resources": [
                    "DEB-01"
                  ]
                },
                {
                  "id": "J-022-INS",
                  "name": "最終檢驗",
                  "setup": 10,
                  "run": 40,
                  "resources": [
                    "INS-01"
                  ]
                }
              ]
            },
            {
              "id": "J-023",
              "number": "WO-2610-023",
              "product": "P-1001",
              "revision": "A",
              "quantity": 120,
              "status": "Active",
              "priority": 3,
              "release": "2026-10-12T08:00",
              "due": "2026-10-13T09:00",
              "materialReady": "2026-10-12T08:00",
              "materialReviewed": true,
              "materialEvidence": "WMS AL-2610-A 可用（需 96 kg）；倉管 張小姐確認",
              "notes": "宏達精密試製訂單 SO-2610-020（客戶要求隔日 09:00 前交樣）",
              "operations": [
                {
                  "id": "J-023-CNC",
                  "name": "CNC 加工",
                  "setup": 30,
                  "run": 180,
                  "resources": [
                    "CNC-01",
                    "CNC-02"
                  ]
                },
                {
                  "id": "J-023-DEB",
                  "name": "去毛邊",
                  "setup": 10,
                  "run": 40,
                  "resources": [
                    "DEB-01"
                  ]
                },
                {
                  "id": "J-023-INS",
                  "name": "最終檢驗",
                  "setup": 10,
                  "run": 60,
                  "resources": [
                    "INS-01"
                  ]
                }
              ]
            }
          ]
        },
        "options": {
          "policy": "EDD",
          "start": "2026-10-12T08:00",
          "days": 3
        },
        "result": {
          "entries": [
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "operationId": "J-022-CNC",
              "operation": "CNC 加工",
              "resourceId": "CNC-01",
              "start": 29863200,
              "end": 29863350,
              "duration": 150
            },
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "operationId": "J-022-DEB",
              "operation": "去毛邊",
              "resourceId": "DEB-01",
              "start": 29863350,
              "end": 29863387,
              "duration": 37
            },
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "operationId": "J-022-INS",
              "operation": "最終檢驗",
              "resourceId": "INS-01",
              "start": 29863387,
              "end": 29863437,
              "duration": 50
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "operationId": "J-023-CNC",
              "operation": "CNC 加工",
              "resourceId": "CNC-01",
              "start": 29863500,
              "end": 29863710,
              "duration": 210
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "operationId": "J-023-DEB",
              "operation": "去毛邊",
              "resourceId": "DEB-01",
              "start": 29864640,
              "end": 29864690,
              "duration": 50
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "operationId": "J-023-INS",
              "operation": "最終檢驗",
              "resourceId": "INS-01",
              "start": 29864690,
              "end": 29864760,
              "duration": 70
            }
          ],
          "unscheduled": [],
          "jobResults": [
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "finish": 29863437,
              "due": 29863620,
              "late": 0
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "finish": 29864760,
              "due": 29864700,
              "late": 60
            }
          ],
          "usage": [
            {
              "resourceId": "CNC-01",
              "available": 1440,
              "used": 360
            },
            {
              "resourceId": "CNC-02",
              "available": 1200,
              "used": 0
            },
            {
              "resourceId": "DEB-01",
              "available": 1440,
              "used": 87
            },
            {
              "resourceId": "INS-01",
              "available": 1440,
              "used": 120
            }
          ],
          "metrics": {
            "orders": 2,
            "scheduled": 2,
            "unscheduled": 0,
            "late": 1,
            "totalLate": 60
          }
        }
      },
      {
        "id": "S-W1B",
        "name": "PLAN-W1B 比較：保養延後",
        "createdAt": "2026-10-10T00:55:00.000Z",
        "status": "Draft",
        "snapshot": {
          "resources": [
            {
              "id": "CNC-01",
              "code": "CNC-01",
              "name": "CNC 立式加工中心 #1（EMS EQ-CNC01／MES WC-CNC1）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "CNC-02",
              "code": "CNC-02",
              "name": "CNC 立式加工中心 #2（EMS EQ-CNC02／MES WC-CNC2）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "DEB-01",
              "code": "DEB-01",
              "name": "自動去毛邊（EMS EQ-DEB01／MES WC-DEB）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            },
            {
              "id": "INS-01",
              "code": "INS-01",
              "name": "最終檢驗 CMM（EMS EQ-CMM01／MES WC-INS）",
              "active": true,
              "days": [
                1,
                2,
                3,
                4,
                5
              ],
              "start": "08:00",
              "end": "17:00",
              "breakStart": "12:00",
              "breakEnd": "13:00",
              "outages": []
            }
          ],
          "jobs": [
            {
              "id": "J-022",
              "number": "WO-2610-022",
              "product": "P-1001",
              "revision": "A",
              "quantity": 80,
              "status": "Active",
              "priority": 1,
              "release": "2026-10-12T08:00",
              "due": "2026-10-12T15:00",
              "materialReady": "2026-10-12T08:00",
              "materialReviewed": true,
              "materialEvidence": "WMS AL-2610-A 可用 240 kg（需 64 kg）；倉管 張小姐確認",
              "notes": "東昇機械急單 SO-2610-018：客戶當天 15:00 派車取貨（CRM INT-004）",
              "operations": [
                {
                  "id": "J-022-CNC",
                  "name": "CNC 加工",
                  "setup": 30,
                  "run": 120,
                  "resources": [
                    "CNC-01",
                    "CNC-02"
                  ]
                },
                {
                  "id": "J-022-DEB",
                  "name": "去毛邊",
                  "setup": 10,
                  "run": 27,
                  "resources": [
                    "DEB-01"
                  ]
                },
                {
                  "id": "J-022-INS",
                  "name": "最終檢驗",
                  "setup": 10,
                  "run": 40,
                  "resources": [
                    "INS-01"
                  ]
                }
              ]
            },
            {
              "id": "J-023",
              "number": "WO-2610-023",
              "product": "P-1001",
              "revision": "A",
              "quantity": 120,
              "status": "Active",
              "priority": 3,
              "release": "2026-10-12T08:00",
              "due": "2026-10-13T09:00",
              "materialReady": "2026-10-12T08:00",
              "materialReviewed": true,
              "materialEvidence": "WMS AL-2610-A 可用（需 96 kg）；倉管 張小姐確認",
              "notes": "宏達精密試製訂單 SO-2610-020（客戶要求隔日 09:00 前交樣）",
              "operations": [
                {
                  "id": "J-023-CNC",
                  "name": "CNC 加工",
                  "setup": 30,
                  "run": 180,
                  "resources": [
                    "CNC-01",
                    "CNC-02"
                  ]
                },
                {
                  "id": "J-023-DEB",
                  "name": "去毛邊",
                  "setup": 10,
                  "run": 40,
                  "resources": [
                    "DEB-01"
                  ]
                },
                {
                  "id": "J-023-INS",
                  "name": "最終檢驗",
                  "setup": 10,
                  "run": 60,
                  "resources": [
                    "INS-01"
                  ]
                }
              ]
            }
          ]
        },
        "options": {
          "policy": "EDD",
          "start": "2026-10-12T08:00",
          "days": 3
        },
        "result": {
          "entries": [
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "operationId": "J-022-CNC",
              "operation": "CNC 加工",
              "resourceId": "CNC-01",
              "start": 29863200,
              "end": 29863350,
              "duration": 150
            },
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "operationId": "J-022-DEB",
              "operation": "去毛邊",
              "resourceId": "DEB-01",
              "start": 29863350,
              "end": 29863387,
              "duration": 37
            },
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "operationId": "J-022-INS",
              "operation": "最終檢驗",
              "resourceId": "INS-01",
              "start": 29863387,
              "end": 29863437,
              "duration": 50
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "operationId": "J-023-CNC",
              "operation": "CNC 加工",
              "resourceId": "CNC-02",
              "start": 29863200,
              "end": 29863410,
              "duration": 210
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "operationId": "J-023-DEB",
              "operation": "去毛邊",
              "resourceId": "DEB-01",
              "start": 29863500,
              "end": 29863550,
              "duration": 50
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "operationId": "J-023-INS",
              "operation": "最終檢驗",
              "resourceId": "INS-01",
              "start": 29863550,
              "end": 29863620,
              "duration": 70
            }
          ],
          "unscheduled": [],
          "jobResults": [
            {
              "jobId": "J-022",
              "number": "WO-2610-022",
              "finish": 29863437,
              "due": 29863620,
              "late": 0
            },
            {
              "jobId": "J-023",
              "number": "WO-2610-023",
              "finish": 29863620,
              "due": 29864700,
              "late": 0
            }
          ],
          "usage": [
            {
              "resourceId": "CNC-01",
              "available": 1440,
              "used": 150
            },
            {
              "resourceId": "CNC-02",
              "available": 1440,
              "used": 210
            },
            {
              "resourceId": "DEB-01",
              "available": 1440,
              "used": 87
            },
            {
              "resourceId": "INS-01",
              "available": 1440,
              "used": 120
            }
          ],
          "metrics": {
            "orders": 2,
            "scheduled": 2,
            "unscheduled": 0,
            "late": 0,
            "totalLate": 0
          }
        }
      }
    ],
    "events": [
      {
        "id": "evt-1",
        "date": "2026-10-06T09:00:00.000Z",
        "action": "Approve",
        "detail": "PLAN-W0 WO-2610-021"
      },
      {
        "id": "evt-2",
        "date": "2026-10-10T00:45:00.000Z",
        "action": "Reference",
        "detail": "EMS／MES／WMS 備份與 PLM 發行套件（唯讀）"
      },
      {
        "id": "evt-3",
        "date": "2026-10-10T00:50:00.000Z",
        "action": "Generate",
        "detail": "PLAN-W1 急單＋CNC-02 保養"
      },
      {
        "id": "evt-4",
        "date": "2026-10-10T00:55:00.000Z",
        "action": "Generate",
        "detail": "PLAN-W1B 比較：保養延後"
      }
    ]
  }
}