Переглянути джерело

feat(s5): add production receipt mdp readonly pipeline

- 新增生产入库单标准层 mdp_std_production_receipt(1.0.214.sql,扁平:一行=一条 NbrDetail 明细)
- 新增 ProductionReceiptMdpSyncService(只读 NbrMaster/NbrDetail Type='WOI' → mdp_std,幂等 upsert,run-log;LocationMaster 按 tenant_id+location join)
- 新增 s5-production-receipt-mdp refresh 刷新入口
- 新增 api/S5ProductionReceipt list/detail 只读 API(租户过滤 + 过滤/排序白名单),规避 S7 同名风险
- 新增生产入库单只读列表页面 + API 封装
- 菜单 FUNC-S5-007 重指真实页面 /aidop/s5/warehouse/productionReceiptList
- 空态先行(当前 WOI=0);不做写入/入库确认/库存事务/状态流转/导出/S2/S7/S3/S4/T8

版本:Web 2.4.209 / server 1.0.214
YY968XX 1 тиждень тому
батько
коміт
98a39e0ee4

+ 1 - 1
Web/package.json

@@ -1,7 +1,7 @@
 {
   "name": "admin.net",
   "type": "module",
-  "version": "2.4.208",
+  "version": "2.4.209",
   "packageManager": "pnpm@10.32.1",
   "lastBuildTime": "2026.03.15",
   "description": "Admin.NET 站在巨人肩膀上的 .NET 通用权限开发框架",

+ 67 - 0
Web/src/views/aidop/s5/api/productionReceipt.ts

@@ -0,0 +1,67 @@
+import service from '/@/utils/request';
+import { withAidopTenantParams } from '../../api/aidopTenant';
+
+export interface Paged<T> {
+	total: number;
+	page: number;
+	pageSize: number;
+	list: T[];
+}
+
+// ── S5 生产入库单(只读,数据中台标准层 mdp_std_production_receipt,扁平:一行=一条明细)──
+// 后端 Route 用 api/S5ProductionReceipt(规避 S7 未来同名 ProductionReceipt 服务撞名)。
+export interface ProductionReceiptRow {
+	id?: number;
+	/** 入库单号 nbr */
+	nbr?: string;
+	/** 项次 line */
+	line?: number;
+	/** 入库日期 receipt_date */
+	receiptDate?: string;
+	/** 状态原值 status */
+	status?: string;
+	/** 状态中文 status_desc(本批暂=raw) */
+	statusDesc?: string;
+	/** 入库类型/备注 remark */
+	remark?: string;
+	/** 生产线 prod_line */
+	prodLine?: string;
+	/** 工单号 work_ord */
+	workOrd?: string;
+	/** 部门 department + department_desc */
+	departmentDesc?: string;
+	/** ERP工单号 erp_work_ord */
+	erpWorkOrd?: string;
+	/** 物料编码 item_num */
+	itemNum?: string;
+	/** 物料名称 item_name */
+	itemName?: string;
+	/** 规格型号 item_spec */
+	itemSpec?: string;
+	/** 入库库位 location_to */
+	locationTo?: string;
+	/** 入库库位名 location_to_desc */
+	locationToDesc?: string;
+	/** 批序号 lot_serial */
+	lotSerial?: string;
+	/** 数量 qty_rec */
+	qtyRec?: number;
+	/** 单位 um */
+	um?: string;
+	/** 相关单号 ord_nbr */
+	ordNbr?: string;
+	/** 申请人 applicant_name(默认隐藏) */
+	applicantName?: string;
+}
+
+export function fetchProductionReceiptList(params: any) {
+	return service
+		.get<Paged<ProductionReceiptRow>>('/api/S5ProductionReceipt/list', { params: withAidopTenantParams(params) })
+		.then((r) => r.data);
+}
+
+export function fetchProductionReceiptDetail(nbr: string) {
+	return service
+		.get<ProductionReceiptRow[]>('/api/S5ProductionReceipt/detail', { params: withAidopTenantParams({ nbr }) })
+		.then((r) => r.data);
+}

+ 186 - 0
Web/src/views/aidop/s5/warehouse/productionReceiptList.vue

@@ -0,0 +1,186 @@
+<template>
+	<AidopDemoShell :title="pageTitle" subtitle="FUNC-S5-007 · 只读列表">
+		<!--
+			S5 生产入库单 · 只读页(S5-PRODUCTION-RECEIPT-MDP-PIPELINE-1)。
+			数据源:DOP 数据中台标准层 mdp_std_production_receipt(扁平,一行=一条 NbrDetail 明细;
+			由 NbrMaster/NbrDetail Type='WOI' 同步标准化)。后端 Route api/S5ProductionReceipt。
+			只读:无新增/编辑/保存/入库确认/库存事务/状态流转/导出。上游未产 WOI 单据时为真实接口空态,无 mock。
+		-->
+		<el-form :inline="true" :model="query" class="mb12" @submit.prevent>
+			<el-form-item label="入库单号">
+				<el-input v-model="query.nbr" clearable style="width: 170px" />
+			</el-form-item>
+			<el-form-item label="工单号">
+				<el-input v-model="query.workOrd" clearable style="width: 160px" />
+			</el-form-item>
+			<el-form-item label="ERP工单号">
+				<el-input v-model="query.erpWorkOrd" clearable style="width: 160px" />
+			</el-form-item>
+			<el-form-item label="批次">
+				<el-input v-model="query.lotSerial" clearable style="width: 150px" />
+			</el-form-item>
+			<el-form-item label="入库日期">
+				<el-date-picker
+					v-model="dateRange"
+					type="daterange"
+					value-format="YYYY-MM-DD"
+					range-separator="-"
+					start-placeholder="开始日期"
+					end-placeholder="结束日期"
+					unlink-panels
+					style="width: 260px"
+				/>
+			</el-form-item>
+			<el-form-item>
+				<el-button type="primary" @click="doSearch">查询</el-button>
+				<el-button @click="resetQuery">重置</el-button>
+			</el-form-item>
+		</el-form>
+
+		<el-table :data="rows" row-key="id" v-loading="loading" border stripe @sort-change="onSortChange">
+			<el-table-column type="index" label="#" width="60" align="center" />
+			<el-table-column prop="nbr" label="入库单号" min-width="160" sortable="custom" show-overflow-tooltip resizable />
+			<el-table-column prop="line" label="项次" width="70" align="center" resizable />
+			<el-table-column prop="receiptDate" label="入库日期" width="130" sortable="custom" resizable>
+				<template #default="{ row }">{{ fmtDate(row.receiptDate) }}</template>
+			</el-table-column>
+			<el-table-column prop="status" label="状态" width="90" sortable="custom" resizable />
+			<el-table-column prop="remark" label="入库类型" min-width="120" show-overflow-tooltip resizable />
+			<el-table-column prop="prodLine" label="生产线" width="110" resizable />
+			<el-table-column prop="workOrd" label="工单号" min-width="150" sortable="custom" show-overflow-tooltip resizable />
+			<el-table-column prop="departmentDesc" label="部门" min-width="130" show-overflow-tooltip resizable />
+			<el-table-column prop="erpWorkOrd" label="ERP工单号" min-width="140" sortable="custom" show-overflow-tooltip resizable />
+			<el-table-column prop="itemNum" label="物料编码" min-width="130" sortable="custom" show-overflow-tooltip resizable />
+			<el-table-column prop="itemName" label="物料名称" min-width="150" show-overflow-tooltip resizable />
+			<el-table-column prop="itemSpec" label="规格型号" min-width="120" show-overflow-tooltip resizable />
+			<el-table-column prop="locationTo" label="入库库位" min-width="120" show-overflow-tooltip resizable>
+				<template #default="{ row }">{{ fmtLocation(row.locationTo, row.locationToDesc) }}</template>
+			</el-table-column>
+			<el-table-column prop="lotSerial" label="批序号" min-width="130" sortable="custom" show-overflow-tooltip resizable />
+			<el-table-column prop="qtyRec" label="数量" width="110" align="right" resizable />
+			<el-table-column prop="um" label="单位" width="80" resizable />
+			<el-table-column prop="ordNbr" label="相关单号" min-width="140" show-overflow-tooltip resizable />
+			<template #empty>
+				<el-empty description="暂无数据" />
+			</template>
+		</el-table>
+
+		<div class="pager">
+			<el-pagination
+				v-model:current-page="query.page"
+				v-model:page-size="query.pageSize"
+				:total="total"
+				:page-sizes="[10, 20, 50]"
+				layout="total, sizes, prev, pager, next"
+				@current-change="loadList"
+				@size-change="loadList"
+			/>
+		</div>
+	</AidopDemoShell>
+</template>
+
+<script setup lang="ts" name="aidopS5WarehouseProductionReceipt">
+import { computed, onActivated, onMounted, reactive, ref } from 'vue';
+import { useRoute } from 'vue-router';
+import { ElMessage } from 'element-plus';
+import AidopDemoShell from '/@/views/aidop/components/AidopDemoShell.vue';
+import { fetchProductionReceiptList, type ProductionReceiptRow } from '../api/productionReceipt';
+
+const route = useRoute();
+const pageTitle = computed(() => (route.meta?.title as string) || '生产入库单');
+
+const query = reactive({
+	nbr: '',
+	workOrd: '',
+	erpWorkOrd: '',
+	lotSerial: '',
+	dateFrom: '',
+	dateTo: '',
+	page: 1,
+	pageSize: 10,
+	orderBy: '',
+	orderDir: '',
+});
+const dateRange = ref<[string, string] | null>(null);
+
+const loading = ref(false);
+const rows = ref<ProductionReceiptRow[]>([]);
+const total = ref(0);
+
+function fmtDate(v?: string | null) {
+	if (!v) return '';
+	return String(v).slice(0, 10);
+}
+function fmtLocation(code?: string | null, desc?: string | null) {
+	const c = code ? String(code) : '';
+	const d = desc ? String(desc) : '';
+	return `${c} ${d}`.trim();
+}
+
+function onSortChange({ prop, order }: { prop: string; order: string | null }) {
+	query.orderBy = prop || '';
+	query.orderDir = order === 'ascending' ? 'asc' : order === 'descending' ? 'desc' : '';
+	loadList();
+}
+
+async function loadList() {
+	loading.value = true;
+	try {
+		query.dateFrom = dateRange.value?.[0] || '';
+		query.dateTo = dateRange.value?.[1] || '';
+		const data = await fetchProductionReceiptList({
+			nbr: query.nbr,
+			workOrd: query.workOrd,
+			erpWorkOrd: query.erpWorkOrd,
+			lotSerial: query.lotSerial,
+			dateFrom: query.dateFrom,
+			dateTo: query.dateTo,
+			page: query.page,
+			pageSize: query.pageSize,
+			orderBy: query.orderBy,
+			orderDir: query.orderDir,
+		});
+		rows.value = data.list || [];
+		total.value = data.total || 0;
+	} catch (e: any) {
+		rows.value = [];
+		total.value = 0;
+		ElMessage.error(e?.message || '加载生产入库单列表失败');
+	} finally {
+		loading.value = false;
+	}
+}
+
+function doSearch() {
+	query.page = 1;
+	loadList();
+}
+
+function resetQuery() {
+	query.nbr = '';
+	query.workOrd = '';
+	query.erpWorkOrd = '';
+	query.lotSerial = '';
+	dateRange.value = null;
+	query.dateFrom = '';
+	query.dateTo = '';
+	query.page = 1;
+	query.orderBy = '';
+	query.orderDir = '';
+	loadList();
+}
+
+onMounted(() => loadList());
+onActivated(() => loadList());
+</script>
+
+<style scoped lang="scss">
+.mb12 {
+	margin-bottom: 12px;
+}
+.pager {
+	margin-top: 12px;
+	display: flex;
+	justify-content: flex-end;
+}
+</style>

+ 6 - 3
server/Admin.NET.Web.Entry/Admin.NET.Web.Entry.csproj

@@ -11,9 +11,9 @@
     <GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>
     <Copyright>Admin.NET</Copyright>
     <Description>Admin.NET ͨ��Ȩ�޿���ƽ̨</Description>
-    <AssemblyVersion>1.0.213</AssemblyVersion>
-    <FileVersion>1.0.213</FileVersion>
-    <Version>1.0.213</Version>
+    <AssemblyVersion>1.0.214</AssemblyVersion>
+    <FileVersion>1.0.214</FileVersion>
+    <Version>1.0.214</Version>
   </PropertyGroup>
 
   <ItemGroup>
@@ -199,6 +199,9 @@
     <None Update="UpdateScripts\1.0.213.sql">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
+    <None Update="UpdateScripts\1.0.214.sql">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
   </ItemGroup>
 
   <ItemGroup>

+ 70 - 0
server/Admin.NET.Web.Entry/UpdateScripts/1.0.214.sql

@@ -0,0 +1,70 @@
+-- ============================================================
+-- 1.0.214.sql
+-- S5-PRODUCTION-RECEIPT-MDP-PIPELINE-1
+--
+-- 业务目标:
+--   1) 新建 S5 生产入库单标准层 mdp_std_production_receipt(只读数据中台,DOP 内部,扁平单表:
+--      一行 = 一条 NbrDetail 明细)。源 NbrMaster(Type='WOI',IsActive=1) + NbrDetail(Domain+Nbr join)
+--      + DepartmentMaster / ItemMaster / LocationMaster。不建 stg、不建 dwd;不读/不改 S2/S3/S4;不写源表。
+--   2) 将「生产入库单」菜单(Id=1329015020005,仓储管理目录下)的 Component
+--      由 placeholder 重指到真实页面 /aidop/s5/warehouse/productionReceiptList。
+--
+-- 安全保证:
+--   - DDL 仅 CREATE TABLE IF NOT EXISTS,幂等;不 DROP / TRUNCATE。
+--   - 菜单仅 UPDATE 该单条 Component / Remark / UpdateTime;不改 Path/Name/Pid/Title/Type/OrderNo;
+--     不 INSERT/DELETE;不动 SysTenantMenu / SysRoleMenu;不动其它菜单;不碰 S7 菜单。
+--   - 不动源单据表(NbrMaster/NbrDetail 等),不碰 S2 写路径,不碰退料/委外/采购收货资产。
+-- ============================================================
+
+CREATE TABLE IF NOT EXISTS mdp_std_production_receipt (
+    id BIGINT AUTO_INCREMENT PRIMARY KEY,
+    tenant_id BIGINT NOT NULL DEFAULT 0,
+    factory_id BIGINT NULL DEFAULT 1,
+    source_system VARCHAR(50) NOT NULL DEFAULT 'AIDOP',
+    domain VARCHAR(80) NOT NULL COMMENT '工厂/域 NbrMaster.Domain',
+    master_rec_id INT NULL COMMENT '源头主键 NbrMaster.RecID',
+    detail_rec_id INT NOT NULL COMMENT '源明细主键 NbrDetail.RecID(扁平粒度唯一)',
+    nbr VARCHAR(24) NULL COMMENT '入库单号 NbrMaster.Nbr',
+    line SMALLINT NOT NULL DEFAULT 0 COMMENT '项次 NbrDetail.Line',
+    receipt_date DATETIME NULL COMMENT '入库日期 NbrMaster.Date',
+    status VARCHAR(8) NULL COMMENT '状态原值 NbrMaster.Status',
+    status_desc VARCHAR(20) NULL COMMENT '状态中文(本批暂=raw)',
+    remark VARCHAR(200) NULL COMMENT '备注 NbrMaster.Remark(列表显示名“入库类型”,待确认)',
+    prod_line VARCHAR(8) NULL COMMENT '生产线 NbrDetail.ProdLine',
+    work_ord VARCHAR(64) NULL COMMENT '工单号 NbrDetail.WorkOrd',
+    erp_work_ord VARCHAR(60) NULL COMMENT 'ERP工单号 NbrDetail.Address',
+    department VARCHAR(8) NULL COMMENT '部门编码 NbrMaster.Department',
+    department_desc VARCHAR(255) NULL COMMENT '部门(编码+DepartmentMaster.Descr)',
+    applicant_name VARCHAR(12) NULL COMMENT '申请人 NbrMaster.Name',
+    item_num VARCHAR(24) NULL COMMENT '物料编码 NbrDetail.ItemNum',
+    item_name VARCHAR(200) NULL COMMENT '物料名称 ItemMaster.Descr',
+    item_spec VARCHAR(200) NULL COMMENT '物料型号/规格 ItemMaster.Descr1',
+    um VARCHAR(8) NULL COMMENT '单位 ItemMaster.UM',
+    location_to VARCHAR(8) NULL COMMENT '入库库位 NbrDetail.LocationTo',
+    location_to_desc VARCHAR(255) NULL COMMENT '入库库位名 LocationMaster.descr',
+    lot_serial VARCHAR(120) NULL COMMENT '批序号 NbrDetail.LotSerial',
+    qty_rec DECIMAL(18,5) NULL DEFAULT 0 COMMENT '数量 NbrDetail.QtyRec(列表展示)',
+    qty_to DECIMAL(18,5) NULL DEFAULT 0 COMMENT '入库数量候选 NbrDetail.QtyTo(保留,本批不展示)',
+    location_from VARCHAR(8) NULL COMMENT '转出库位 NbrDetail.LocationFrom(保留,不展示)',
+    location_from_desc VARCHAR(255) NULL COMMENT '转出库位名 LocationMaster.descr(保留,不展示)',
+    ord_nbr VARCHAR(48) NULL COMMENT '相关单号 NbrDetail.OrdNbr',
+    source_biz_key VARCHAR(200) NULL COMMENT 'domain:detail_rec_id',
+    sync_batch_id VARCHAR(100) NOT NULL,
+    sync_time DATETIME NOT NULL,
+    create_time DATETIME DEFAULT CURRENT_TIMESTAMP,
+    update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+    UNIQUE KEY uk_mdp_std_prod_receipt (tenant_id, domain, detail_rec_id),
+    KEY idx_mdp_std_prod_rcpt_nbr (tenant_id, nbr),
+    KEY idx_mdp_std_prod_rcpt_date (tenant_id, receipt_date),
+    KEY idx_mdp_std_prod_rcpt_workord (tenant_id, work_ord),
+    KEY idx_mdp_std_prod_rcpt_erp (tenant_id, erp_work_ord),
+    KEY idx_mdp_std_prod_rcpt_lot (tenant_id, lot_serial),
+    KEY idx_mdp_std_prod_rcpt_item (tenant_id, item_num),
+    KEY idx_mdp_std_prod_rcpt_locto (tenant_id, location_to)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='S5生产入库单标准层(扁平,一行=一条明细)';
+
+UPDATE SysMenu
+SET Component  = '/aidop/s5/warehouse/productionReceiptList',
+    Remark     = 'S5 生产入库单(只读扁平,数据中台标准层 mdp_std_production_receipt)',
+    UpdateTime = NOW()
+WHERE Id = 1329015020005;

+ 20 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Controllers/AidopKanbanController.cs

@@ -31,6 +31,7 @@ public partial class AidopKanbanController : ControllerBase
     private readonly OutsourceIssueMdpSyncService _outsourceIssueMdpSyncService;
     private readonly PurchaseReceiptMdpSyncService _purchaseReceiptMdpSyncService;
     private readonly ProductionReturnMdpSyncService _productionReturnMdpSyncService;
+    private readonly ProductionReceiptMdpSyncService _productionReceiptMdpSyncService;
 
     public AidopKanbanController(
         ISqlSugarClient db,
@@ -44,7 +45,8 @@ public partial class AidopKanbanController : ControllerBase
         SmartOpsKpiAtomicQueryService atomicQuery,
         OutsourceIssueMdpSyncService outsourceIssueMdpSyncService,
         PurchaseReceiptMdpSyncService purchaseReceiptMdpSyncService,
-        ProductionReturnMdpSyncService productionReturnMdpSyncService)
+        ProductionReturnMdpSyncService productionReturnMdpSyncService,
+        ProductionReceiptMdpSyncService productionReceiptMdpSyncService)
     {
         _db = db;
         _s1MdpSyncTransformService = s1MdpSyncTransformService;
@@ -58,6 +60,7 @@ public partial class AidopKanbanController : ControllerBase
         _outsourceIssueMdpSyncService = outsourceIssueMdpSyncService;
         _purchaseReceiptMdpSyncService = purchaseReceiptMdpSyncService;
         _productionReturnMdpSyncService = productionReturnMdpSyncService;
+        _productionReceiptMdpSyncService = productionReceiptMdpSyncService;
     }
 
     [HttpGet("home-l1")]
@@ -491,6 +494,22 @@ LIMIT 60
         });
     }
 
+    /// <summary>
+    /// S5 生产入库单 数据中台只读链路手动刷新(DOP 内部扁平:NbrMaster/NbrDetail Type='WOI' → mdp_std_production_receipt)。
+    /// 独立于 s5-mdp/refresh 的 KPI 管线;只读源、只写 mdp_std 表;不建 stg/dwd;不碰 S2 写路径、S7、S3/S4、T8;WOI 为 0 行时成功、处理数 0。
+    /// </summary>
+    [HttpPost("s5-production-receipt-mdp/refresh")]
+    public async Task<IActionResult> RefreshS5ProductionReceiptMdp(CancellationToken cancellationToken)
+    {
+        var result = await _productionReceiptMdpSyncService.RunFullAsync(cancellationToken, "MANUAL");
+        return Ok(new
+        {
+            ok = true,
+            batchId = result.BatchId,
+            rows = result.Rows
+        });
+    }
+
     /// <summary>
     /// S6 生产执行 KPI 手动刷新(T8 SQL Server 跨库读 → DOP DWD/KPI)。
     /// 路径 A:方老师 v5.4 KPI #22/#23 原 SQL 直发 T8。

+ 109 - 0
server/Plugins/Admin.NET.Plugin.AiDOP/MaterialWarehouse/Dto/ProductionReceiptDto.cs

@@ -0,0 +1,109 @@
+namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto;
+
+/// <summary>
+/// 生产入库单列表 查询入参(只读)。读 mdp_std_production_receipt(扁平,一行=一条明细)。
+/// </summary>
+public class ProductionReceiptListInput
+{
+    /// <summary>页码(从 1 开始)</summary>
+    public int Page { get; set; } = 1;
+
+    /// <summary>每页条数</summary>
+    public int PageSize { get; set; } = 10;
+
+    /// <summary>入库单号(nbr,模糊匹配)</summary>
+    public string? Nbr { get; set; }
+
+    /// <summary>工单号(work_ord,模糊匹配)</summary>
+    public string? WorkOrd { get; set; }
+
+    /// <summary>ERP工单号(erp_work_ord,模糊匹配)</summary>
+    public string? ErpWorkOrd { get; set; }
+
+    /// <summary>批序号(lot_serial,模糊匹配)</summary>
+    public string? LotSerial { get; set; }
+
+    /// <summary>入库日期起(receipt_date,含当日,yyyy-MM-dd)</summary>
+    public string? DateFrom { get; set; }
+
+    /// <summary>入库日期止(receipt_date,含当日,yyyy-MM-dd)</summary>
+    public string? DateTo { get; set; }
+
+    /// <summary>排序字段(前端列 prop:nbr / receiptDate / status / workOrd / erpWorkOrd / lotSerial / itemNum / createTime)</summary>
+    public string? OrderBy { get; set; }
+
+    /// <summary>排序方向(asc / desc)</summary>
+    public string? OrderDir { get; set; }
+
+    /// <summary>租户 ID(前端 withAidopTenantParams 注入;为空则不按租户过滤)</summary>
+    public long? TenantId { get; set; }
+}
+
+/// <summary>
+/// 生产入库单列表 行(只读,扁平:一行=一条 NbrDetail 明细)。字段对齐前端列 prop(camelCase)。
+/// </summary>
+public class ProductionReceiptListRow
+{
+    /// <summary>主键 id(mdp_std_production_receipt.id)</summary>
+    public long Id { get; set; }
+
+    /// <summary>入库单号(nbr)</summary>
+    public string? Nbr { get; set; }
+
+    /// <summary>项次(line)</summary>
+    public short Line { get; set; }
+
+    /// <summary>入库日期(receipt_date)</summary>
+    public DateTime? ReceiptDate { get; set; }
+
+    /// <summary>状态原值(status;本批 raw 展示)</summary>
+    public string? Status { get; set; }
+
+    /// <summary>状态中文(status_desc;本批暂=raw)</summary>
+    public string? StatusDesc { get; set; }
+
+    /// <summary>入库类型/备注(remark)</summary>
+    public string? Remark { get; set; }
+
+    /// <summary>生产线(prod_line)</summary>
+    public string? ProdLine { get; set; }
+
+    /// <summary>工单号(work_ord)</summary>
+    public string? WorkOrd { get; set; }
+
+    /// <summary>部门(department + department_desc)</summary>
+    public string? DepartmentDesc { get; set; }
+
+    /// <summary>ERP工单号(erp_work_ord)</summary>
+    public string? ErpWorkOrd { get; set; }
+
+    /// <summary>物料编码(item_num)</summary>
+    public string? ItemNum { get; set; }
+
+    /// <summary>物料名称(item_name)</summary>
+    public string? ItemName { get; set; }
+
+    /// <summary>规格型号(item_spec)</summary>
+    public string? ItemSpec { get; set; }
+
+    /// <summary>入库库位(location_to)</summary>
+    public string? LocationTo { get; set; }
+
+    /// <summary>入库库位名(location_to_desc)</summary>
+    public string? LocationToDesc { get; set; }
+
+    /// <summary>批序号(lot_serial)</summary>
+    public string? LotSerial { get; set; }
+
+    /// <summary>数量(qty_rec)</summary>
+    public decimal? QtyRec { get; set; }
+
+    /// <summary>单位(um)</summary>
+    public string? Um { get; set; }
+
+    /// <summary>相关单号(ord_nbr)</summary>
+    public string? OrdNbr { get; set; }
+
+    /// <summary>申请人(applicant_name;默认隐藏,DTO 保留)</summary>
+    public string? ApplicantName { get; set; }
+}

+ 223 - 0
server/Plugins/Admin.NET.Plugin.AiDOP/MaterialWarehouse/ProductionReceiptMdpSyncService.cs

@@ -0,0 +1,223 @@
+namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse;
+
+/// <summary>
+/// S5 生产入库单 数据中台只读同步转换服务(DOP 内部,扁平单表,独立于 S5MdpSyncTransformService 的 KPI 管线)。
+///
+/// 源:aidopdev NbrMaster(n) + NbrDetail(d),业务类型 Type='WOI'(生产入库);
+///     扁平 LIST join:n.Domain=d.Domain AND n.Nbr=d.Nbr(一行=一条 NbrDetail 明细)。
+///     维表 DepartmentMaster(p) / ItemMaster(i) / LocationMaster(lt,lf) 全 LEFT JOIN。
+///     LocationMaster 无 Domain 列(DOP 重建:domain_code/location/descr),按 tenant_id+location join。
+/// 链路:NbrMaster/NbrDetail(WOI) 只读 → mdp_std_production_receipt(typed 扁平)。
+///     不经 stg、不建 dwd;不采用生产退料单 head-detail 双表逻辑;不碰 S2 写路径(S2 不写 WOI)。
+///
+/// 约束:
+///   - 只读源表,仅写 mdp_std_production_receipt;绝不 INSERT/UPDATE/DELETE NbrMaster/NbrDetail。
+///   - 过滤 n.Type='WOI' AND n.IsActive=1。
+///   - status_desc 本批暂 = raw status(UPPER);remark=NbrMaster.Remark(列表显示名“入库类型”待确认)。
+///   - qty_rec=NbrDetail.QtyRec(列表用);qty_to/location_from 保留落库、本批不展示。
+///   - WOI 为 0 行时转换成功完成、处理数为 0,不报错。
+/// </summary>
+public class ProductionReceiptMdpSyncService : ITransient
+{
+    private const string JobCode = "S5_PRODUCTION_RECEIPT_MDP_SYNC";
+
+    private readonly ISqlSugarClient _db;
+
+    public ProductionReceiptMdpSyncService(ISqlSugarClient db)
+    {
+        _db = db;
+    }
+
+    /// <summary>全量同步转换:源(WOI 扁平) → mdp_std_production_receipt。</summary>
+    public async Task<ProductionReceiptMdpSyncResult> RunFullAsync(CancellationToken cancellationToken = default, string triggerType = "AUTO")
+    {
+        cancellationToken.ThrowIfCancellationRequested();
+        await EnsureTablesAsync();
+
+        var now = DateTime.Now;
+        var batchId = $"S5_PROD_RCPT_FULL_{now:yyyyMMddHHmmss}";
+        var runLogId = await InsertRunLogAsync(batchId, now, triggerType);
+        var result = new ProductionReceiptMdpSyncResult { BatchId = batchId, RunLogId = runLogId };
+
+        try
+        {
+            result.Rows = await TransformStandardAsync(batchId, now);
+            await MarkRunSuccessAsync(runLogId, now, result);
+            return result;
+        }
+        catch (Exception ex)
+        {
+            await MarkRunFailedAsync(runLogId, now, ex.Message);
+            throw;
+        }
+    }
+
+    /// <summary>防御式建表(与 UpdateScripts/1.0.214.sql 同构,幂等)。</summary>
+    private async Task EnsureTablesAsync()
+    {
+        await _db.Ado.ExecuteCommandAsync(
+            """
+            CREATE TABLE IF NOT EXISTS mdp_std_production_receipt (
+                id BIGINT AUTO_INCREMENT PRIMARY KEY,
+                tenant_id BIGINT NOT NULL DEFAULT 0,
+                factory_id BIGINT NULL DEFAULT 1,
+                source_system VARCHAR(50) NOT NULL DEFAULT 'AIDOP',
+                domain VARCHAR(80) NOT NULL,
+                master_rec_id INT NULL,
+                detail_rec_id INT NOT NULL,
+                nbr VARCHAR(24) NULL,
+                line SMALLINT NOT NULL DEFAULT 0,
+                receipt_date DATETIME NULL,
+                status VARCHAR(8) NULL,
+                status_desc VARCHAR(20) NULL,
+                remark VARCHAR(200) NULL,
+                prod_line VARCHAR(8) NULL,
+                work_ord VARCHAR(64) NULL,
+                erp_work_ord VARCHAR(60) NULL,
+                department VARCHAR(8) NULL,
+                department_desc VARCHAR(255) NULL,
+                applicant_name VARCHAR(12) NULL,
+                item_num VARCHAR(24) NULL,
+                item_name VARCHAR(200) NULL,
+                item_spec VARCHAR(200) NULL,
+                um VARCHAR(8) NULL,
+                location_to VARCHAR(8) NULL,
+                location_to_desc VARCHAR(255) NULL,
+                lot_serial VARCHAR(120) NULL,
+                qty_rec DECIMAL(18,5) NULL DEFAULT 0,
+                qty_to DECIMAL(18,5) NULL DEFAULT 0,
+                location_from VARCHAR(8) NULL,
+                location_from_desc VARCHAR(255) NULL,
+                ord_nbr VARCHAR(48) NULL,
+                source_biz_key VARCHAR(200) NULL,
+                sync_batch_id VARCHAR(100) NOT NULL,
+                sync_time DATETIME NOT NULL,
+                create_time DATETIME DEFAULT CURRENT_TIMESTAMP,
+                update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+                UNIQUE KEY uk_mdp_std_prod_receipt (tenant_id, domain, detail_rec_id),
+                KEY idx_mdp_std_prod_rcpt_nbr (tenant_id, nbr),
+                KEY idx_mdp_std_prod_rcpt_date (tenant_id, receipt_date),
+                KEY idx_mdp_std_prod_rcpt_workord (tenant_id, work_ord),
+                KEY idx_mdp_std_prod_rcpt_erp (tenant_id, erp_work_ord),
+                KEY idx_mdp_std_prod_rcpt_lot (tenant_id, lot_serial),
+                KEY idx_mdp_std_prod_rcpt_item (tenant_id, item_num),
+                KEY idx_mdp_std_prod_rcpt_locto (tenant_id, location_to)
+            ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='S5生产入库单标准层(扁平,一行=一条明细)'
+            """);
+    }
+
+    /// <summary>
+    /// 标准化:NbrMaster(WOI) + NbrDetail + 维表 -> mdp_std_production_receipt(扁平,一行=一条明细)。返回处理行数。
+    /// SQL 由旧系统扁平 LIST SQL 翻译(SQL Server -&gt; MySQL):with(nolock) 去除、IsNull-&gt;IFNULL、
+    /// rtrim(a+' '+b)-&gt;TRIM(CONCAT(...))、row_number() 不落库(分页在读 API 侧)。
+    /// LocationMaster 无 Domain 列,按 tenant_id+location join(生产退料单 1R 教训)。
+    /// </summary>
+    private async Task<int> TransformStandardAsync(string batchId, DateTime now)
+    {
+        var rows = await _db.Ado.GetIntAsync(
+            """
+            SELECT COUNT(1)
+            FROM NbrMaster n
+            LEFT JOIN NbrDetail d ON n.Domain = d.Domain AND n.Nbr = d.Nbr
+            WHERE n.Type='WOI' AND n.IsActive=1 AND d.RecID IS NOT NULL
+            """);
+        await _db.Ado.ExecuteCommandAsync(
+            """
+            INSERT INTO mdp_std_production_receipt
+            (tenant_id, factory_id, source_system, domain, master_rec_id, detail_rec_id, nbr, line,
+             receipt_date, status, status_desc, remark, prod_line, work_ord, erp_work_ord,
+             department, department_desc, applicant_name, item_num, item_name, item_spec, um,
+             location_to, location_to_desc, lot_serial, qty_rec, qty_to, location_from, location_from_desc,
+             ord_nbr, source_biz_key, sync_batch_id, sync_time)
+            SELECT
+                IFNULL(n.tenant_id, 0), 1, 'AIDOP', n.Domain, n.RecID, d.RecID, n.Nbr, d.Line,
+                n.Date, UPPER(IFNULL(n.Status, '')), UPPER(IFNULL(n.Status, '')), n.Remark,
+                d.ProdLine, d.WorkOrd, d.Address,
+                n.Department, TRIM(CONCAT(n.Department, ' ', IFNULL(p.Descr, ''))), n.Name,
+                d.ItemNum, i.Descr, i.Descr1, i.UM,
+                d.LocationTo, lt.descr, CAST(d.LotSerial AS CHAR), d.QtyRec, d.QtyTo,
+                d.LocationFrom, lf.descr, d.OrdNbr,
+                CONCAT(n.Domain, ':', d.RecID), @BatchId, @Now
+            FROM NbrMaster n
+            LEFT JOIN NbrDetail d ON n.Domain = d.Domain AND n.Nbr = d.Nbr
+            LEFT JOIN DepartmentMaster p ON p.Domain = n.Domain AND p.Department = n.Department
+            LEFT JOIN ItemMaster i ON i.Domain = d.Domain AND i.ItemNum = d.ItemNum
+            LEFT JOIN LocationMaster lt ON lt.tenant_id = IFNULL(d.tenant_id, 0) AND lt.location = d.LocationTo
+            LEFT JOIN LocationMaster lf ON lf.tenant_id = IFNULL(d.tenant_id, 0) AND lf.location = d.LocationFrom
+            WHERE n.Type='WOI' AND n.IsActive=1 AND d.RecID IS NOT NULL
+            ON DUPLICATE KEY UPDATE
+                factory_id=VALUES(factory_id), master_rec_id=VALUES(master_rec_id), nbr=VALUES(nbr), line=VALUES(line),
+                receipt_date=VALUES(receipt_date), status=VALUES(status), status_desc=VALUES(status_desc), remark=VALUES(remark),
+                prod_line=VALUES(prod_line), work_ord=VALUES(work_ord), erp_work_ord=VALUES(erp_work_ord),
+                department=VALUES(department), department_desc=VALUES(department_desc), applicant_name=VALUES(applicant_name),
+                item_num=VALUES(item_num), item_name=VALUES(item_name), item_spec=VALUES(item_spec), um=VALUES(um),
+                location_to=VALUES(location_to), location_to_desc=VALUES(location_to_desc), lot_serial=VALUES(lot_serial),
+                qty_rec=VALUES(qty_rec), qty_to=VALUES(qty_to), location_from=VALUES(location_from),
+                location_from_desc=VALUES(location_from_desc), ord_nbr=VALUES(ord_nbr),
+                sync_batch_id=VALUES(sync_batch_id), sync_time=VALUES(sync_time), update_time=CURRENT_TIMESTAMP
+            """,
+            new SugarParameter("@BatchId", batchId),
+            new SugarParameter("@Now", now));
+        return rows;
+    }
+
+    private async Task<long> InsertRunLogAsync(string batchId, DateTime startedAt, string triggerType)
+    {
+        await _db.Ado.ExecuteCommandAsync(
+            """
+            INSERT INTO mdp_transform_run_log
+            (tenant_id, job_code, job_name, trigger_type, batch_id, status, start_time)
+            VALUES (0, @JobCode, 'S5生产入库单MDP同步与标准化转换', @TriggerType, @BatchId, 'RUNNING', @StartTime)
+            """,
+            new SugarParameter("@JobCode", JobCode),
+            new SugarParameter("@TriggerType", NormalizeTriggerType(triggerType)),
+            new SugarParameter("@BatchId", batchId),
+            new SugarParameter("@StartTime", startedAt));
+        return await _db.Ado.GetLongAsync(
+            "SELECT id FROM mdp_transform_run_log WHERE batch_id=@BatchId ORDER BY id DESC LIMIT 1",
+            new List<SugarParameter> { new("@BatchId", batchId) });
+    }
+
+    private async Task MarkRunSuccessAsync(long runLogId, DateTime startedAt, ProductionReceiptMdpSyncResult result)
+    {
+        var finishedAt = DateTime.Now;
+        await _db.Ado.ExecuteCommandAsync(
+            """
+            UPDATE mdp_transform_run_log
+            SET status='SUCCESS', end_time=@EndTime, duration_ms=@DurationMs,
+                stage_rows=0, standard_rows=@StandardRows, dwd_rows=0, update_time=CURRENT_TIMESTAMP
+            WHERE id=@Id
+            """,
+            new SugarParameter("@EndTime", finishedAt),
+            new SugarParameter("@DurationMs", (int)(finishedAt - startedAt).TotalMilliseconds),
+            new SugarParameter("@StandardRows", result.Rows),
+            new SugarParameter("@Id", runLogId));
+    }
+
+    private async Task MarkRunFailedAsync(long runLogId, DateTime startedAt, string message)
+    {
+        var finishedAt = DateTime.Now;
+        await _db.Ado.ExecuteCommandAsync(
+            """
+            UPDATE mdp_transform_run_log
+            SET status='FAILED', end_time=@EndTime, duration_ms=@DurationMs,
+                error_message=@ErrorMessage, update_time=CURRENT_TIMESTAMP
+            WHERE id=@Id
+            """,
+            new SugarParameter("@EndTime", finishedAt),
+            new SugarParameter("@DurationMs", (int)(finishedAt - startedAt).TotalMilliseconds),
+            new SugarParameter("@ErrorMessage", message.Length > 2000 ? message[..2000] : message),
+            new SugarParameter("@Id", runLogId));
+    }
+
+    private static string NormalizeTriggerType(string? triggerType)
+        => string.IsNullOrWhiteSpace(triggerType) ? "AUTO" : triggerType.Trim().ToUpperInvariant();
+}
+
+/// <summary>生产入库单 MDP 同步转换结果。</summary>
+public sealed class ProductionReceiptMdpSyncResult
+{
+    public long RunLogId { get; set; }
+    public string BatchId { get; set; } = string.Empty;
+    public int Rows { get; set; }
+}

+ 170 - 0
server/Plugins/Admin.NET.Plugin.AiDOP/MaterialWarehouse/ProductionReceiptService.cs

@@ -0,0 +1,170 @@
+using Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto;
+
+namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse;
+
+/// <summary>
+/// S5 生产入库单 只读 list/detail 服务。
+///
+/// 数据源:DOP 数据中台标准层 mdp_std_production_receipt(扁平,一行=一条 NbrDetail 明细)。
+/// 由 ProductionReceiptMdpSyncService 从 aidopdev.NbrMaster/NbrDetail Type='WOI' 同步标准化而来。
+///
+/// Route 用 api/S5ProductionReceipt(S5 前缀),规避 S7 成品仓储未来同名 ProductionReceipt 服务撞名。
+/// 本服务仅 SELECT:无新增/编辑/删除/入库确认/库存事务/状态流转。
+/// 当前上游未产 WOI 单据,标准层为空,list 返回空数组、detail 返回空数组(前端空态)。
+/// </summary>
+[ApiDescriptionSettings(Order = 307, Description = "生产入库单")]
+[Route("api/S5ProductionReceipt")]
+[AllowAnonymous]
+[NonUnify]
+public class ProductionReceiptService : IDynamicApiController, ITransient
+{
+    private readonly ISqlSugarClient _db;
+
+    public ProductionReceiptService(ISqlSugarClient db)
+    {
+        _db = db;
+    }
+
+    /// <summary>
+    /// 生产入库单列表(只读分页查询,扁平:一行=一条明细)。
+    /// </summary>
+    [DisplayName("生产入库单列表")]
+    [HttpGet("list")]
+    public async Task<object> GetList([FromQuery] ProductionReceiptListInput input)
+    {
+        var page = input.Page <= 0 ? 1 : input.Page;
+        var pageSize = input.PageSize <= 0 ? 10 : input.PageSize;
+        var offset = (page - 1) * pageSize;
+
+        var where = new List<string> { "1=1" };
+        var pars = new List<SugarParameter>();
+
+        if (input.TenantId is > 0)
+        {
+            where.Add("m.tenant_id = @TenantId");
+            pars.Add(new SugarParameter("@TenantId", input.TenantId));
+        }
+        if (!string.IsNullOrWhiteSpace(input.Nbr))
+        {
+            where.Add("m.nbr LIKE @Nbr");
+            pars.Add(new SugarParameter("@Nbr", $"%{input.Nbr.Trim()}%"));
+        }
+        if (!string.IsNullOrWhiteSpace(input.WorkOrd))
+        {
+            where.Add("m.work_ord LIKE @WorkOrd");
+            pars.Add(new SugarParameter("@WorkOrd", $"%{input.WorkOrd.Trim()}%"));
+        }
+        if (!string.IsNullOrWhiteSpace(input.ErpWorkOrd))
+        {
+            where.Add("m.erp_work_ord LIKE @ErpWorkOrd");
+            pars.Add(new SugarParameter("@ErpWorkOrd", $"%{input.ErpWorkOrd.Trim()}%"));
+        }
+        if (!string.IsNullOrWhiteSpace(input.LotSerial))
+        {
+            where.Add("m.lot_serial LIKE @LotSerial");
+            pars.Add(new SugarParameter("@LotSerial", $"%{input.LotSerial.Trim()}%"));
+        }
+        if (!string.IsNullOrWhiteSpace(input.DateFrom))
+        {
+            where.Add("m.receipt_date >= @DateFrom");
+            pars.Add(new SugarParameter("@DateFrom", $"{input.DateFrom.Trim()} 00:00:00"));
+        }
+        if (!string.IsNullOrWhiteSpace(input.DateTo))
+        {
+            where.Add("m.receipt_date <= @DateTo");
+            pars.Add(new SugarParameter("@DateTo", $"{input.DateTo.Trim()} 23:59:59"));
+        }
+
+        var whereSql = string.Join(" AND ", where);
+
+        var total = await _db.Ado.GetIntAsync(
+            $"SELECT COUNT(1) FROM mdp_std_production_receipt m WHERE {whereSql}", pars);
+
+        var list = await _db.Ado.SqlQueryAsync<ProductionReceiptListRow>(
+            $"""
+            {SelectColumns()}
+            FROM mdp_std_production_receipt m
+            WHERE {whereSql}
+            ORDER BY {BuildOrderBy(input.OrderBy, input.OrderDir)}
+            LIMIT {pageSize} OFFSET {offset}
+            """,
+            pars);
+
+        return new { total, page, pageSize, list };
+    }
+
+    /// <summary>
+    /// 生产入库单详情(只读:同一入库单号的扁平明细行,按 line 排序)。查不到返回空数组。
+    /// </summary>
+    [DisplayName("生产入库单详情")]
+    [HttpGet("detail")]
+    public async Task<List<ProductionReceiptListRow>> GetDetail([FromQuery] string nbr, [FromQuery] long? tenantId)
+    {
+        if (string.IsNullOrWhiteSpace(nbr)) return new List<ProductionReceiptListRow>();
+
+        var pars = new List<SugarParameter> { new("@Nbr", nbr.Trim()) };
+        var where = "m.nbr = @Nbr";
+        if (tenantId is > 0)
+        {
+            where += " AND m.tenant_id = @TenantId";
+            pars.Add(new SugarParameter("@TenantId", tenantId));
+        }
+
+        return await _db.Ado.SqlQueryAsync<ProductionReceiptListRow>(
+            $"""
+            {SelectColumns()}
+            FROM mdp_std_production_receipt m
+            WHERE {where}
+            ORDER BY m.line ASC, m.id ASC
+            """,
+            pars);
+    }
+
+    /// <summary>统一 SELECT 列(list/detail 共用;扁平行)。</summary>
+    private static string SelectColumns()
+        => """
+        SELECT
+            m.id               AS Id,
+            m.nbr              AS Nbr,
+            m.line             AS Line,
+            m.receipt_date     AS ReceiptDate,
+            m.status           AS Status,
+            m.status_desc      AS StatusDesc,
+            m.remark           AS Remark,
+            m.prod_line        AS ProdLine,
+            m.work_ord         AS WorkOrd,
+            m.department_desc  AS DepartmentDesc,
+            m.erp_work_ord     AS ErpWorkOrd,
+            m.item_num         AS ItemNum,
+            m.item_name        AS ItemName,
+            m.item_spec        AS ItemSpec,
+            m.location_to      AS LocationTo,
+            m.location_to_desc AS LocationToDesc,
+            m.lot_serial       AS LotSerial,
+            m.qty_rec          AS QtyRec,
+            m.um               AS Um,
+            m.ord_nbr          AS OrdNbr,
+            m.applicant_name   AS ApplicantName
+        """;
+
+    /// <summary>
+    /// 排序白名单:仅允许按已展示列排序,杜绝 SQL 注入;非法字段回落默认。
+    /// </summary>
+    private static string BuildOrderBy(string? orderBy, string? orderDir)
+    {
+        var column = orderBy switch
+        {
+            "nbr" => "m.nbr",
+            "receiptDate" => "m.receipt_date",
+            "status" => "m.status",
+            "workOrd" => "m.work_ord",
+            "erpWorkOrd" => "m.erp_work_ord",
+            "lotSerial" => "m.lot_serial",
+            "itemNum" => "m.item_num",
+            "createTime" => "m.create_time",
+            _ => "m.receipt_date",
+        };
+        var direction = string.Equals(orderDir, "asc", StringComparison.OrdinalIgnoreCase) ? "ASC" : "DESC";
+        return $"{column} {direction}, m.id DESC";
+    }
+}

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/SeedData/SysMenuSeedData.cs

@@ -544,7 +544,7 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData<SysMenu>
         yield return new SysMenu { Id = warehouseBase + 2, Pid = warehouseDirId, Title = "采购收货单", Path = "/aidop/s5/warehouse/purchase-receipt", Name = "aidopS5WarehousePurchaseReceipt", Component = "/aidop/s5/warehouse/purchaseReceiptList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S5 采购收货单(只读列表,数据中台标准层 mdp_std_purchase_receipt)" };
         yield return new SysMenu { Id = warehouseBase + 3, Pid = warehouseDirId, Title = "生产领料单", Path = "/aidop/s5/warehouse/production-issue", Name = "aidopS5WarehouseProductionIssue", Component = placeholderComponent, Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 30, Remark = "S5 生产领料单(真实页面待交付)" };
         yield return new SysMenu { Id = warehouseBase + 4, Pid = warehouseDirId, Title = "生产退料单", Path = "/aidop/s5/warehouse/production-return", Name = "aidopS5WarehouseProductionReturn", Component = "/aidop/s5/warehouse/productionReturnList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 40, Remark = "S5 生产退料单(只读 head-detail,数据中台标准层 mdp_std_production_return)" };
-        yield return new SysMenu { Id = warehouseBase + 5, Pid = warehouseDirId, Title = "生产入库单", Path = "/aidop/s5/warehouse/production-receipt", Name = "aidopS5WarehouseProductionReceipt", Component = placeholderComponent, Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 50, Remark = "S5 生产入库单(真实页面待交付)" };
+        yield return new SysMenu { Id = warehouseBase + 5, Pid = warehouseDirId, Title = "生产入库单", Path = "/aidop/s5/warehouse/production-receipt", Name = "aidopS5WarehouseProductionReceipt", Component = "/aidop/s5/warehouse/productionReceiptList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 50, Remark = "S5 生产入库单(只读扁平,数据中台标准层 mdp_std_production_receipt)" };
 
         // 库存数据 (1322000000017) 下 6 个三级
         const long inventoryDirId = 1322000000017L;