<template>
  <ProcessWorkspace
    eyebrow="生产执行"
    title="生产台账与小程序报工"
    description="原材料库生产出库后形成生产台账，按材料库存批次号和产品追踪仓库外生产流转。"
    panel-tag="生产主流程"
    stage-code="05"
    :sections="sections"
  />
</template>

<script setup>
import ProcessWorkspace from "../components/ProcessWorkspace.vue";
import ProductionLedgerView from "./ProductionLedgerView.vue";
import OperationReportView from "./OperationReportView.vue";

const sections = [
  {
    key: "production-ledger",
    step: "05-1",
    label: "生产台账",
    desc: "按材料库存批次号和产品追踪领料、入库、余料归还、废料入库和该批材料结单状态。",
    permission: "MENU_WORK_ORDER",
    component: ProductionLedgerView
  },
  {
    key: "operation-reports",
    step: "05-2",
    label: "工序报工",
    desc: "员工逐工序报工，系统识别异常损耗。",
    permission: "MENU_OPERATION_REPORT",
    component: OperationReportView
  }
];
</script>
