南骏 池
2025-08-30 9344dcd4f7febe85870a023090271d9e90ad46be
Controllers/Wom/WomdaaController.cs
@@ -1,5 +1,6 @@
using System.Dynamic;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.entity;
using NewPdaSqlServer.service.@base;
@@ -10,8 +11,9 @@
[ApiController]
[Route("api/[controller]")]
public class WomdaaController : ControllerBase
public class WomdaaController : BaseController
{
    private readonly WomdaaManager m = new();
    private readonly MesPrintMangeer _mCf = new();
@@ -28,7 +30,7 @@
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetProductionPickDaa001(query);
            resultInfos.tbBillList = m.GetProductionPickDaa001(query, OrgId);
            return new ResponseResult
            {
                status = 0,
@@ -50,10 +52,13 @@
    [HttpPost("GetItemsByDaa001")]
    public ResponseResult GetItemsByDaa001(WarehouseQuery query)
    {
        // 从 HttpContext.Items 获取 orgId
        var orgId = HttpContext.Request.Headers["OrgId"].ToString();
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetItemsByDaa001(query);
            resultInfos.tbBillList = m.GetItemsByDaa001(query, OrgId);
            return new ResponseResult
            {
                status = 0,
@@ -121,6 +126,31 @@
        }
    }
    /// <summary>
    ///     生产领料点击物料明细获取相关条码信息
    /// </summary>
    /// <returns></returns>
    [HttpPost("GetBarKwByItem")]
    public ResponseResult GetBarKwByItem(dynamic unity)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetBarKwByItem(unity);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     获取所有
    /// </summary>