From a376d24964db749ed38a5873d2e6aaa1b82b2e83 Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期四, 13 二月 2025 18:04:41 +0800
Subject: [PATCH] 调取plm接口 返回文件流给前端

---
 MESApplication/Controllers/BasicData/MesItemsController.cs |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/MESApplication/Controllers/BasicData/MesItemsController.cs b/MESApplication/Controllers/BasicData/MesItemsController.cs
index c44fe56..9fce676 100644
--- a/MESApplication/Controllers/BasicData/MesItemsController.cs
+++ b/MESApplication/Controllers/BasicData/MesItemsController.cs
@@ -1,4 +1,5 @@
 锘縰sing System.Dynamic;
+using MES.Service.Dto.service;
 using MES.Service.Dto.webApi;
 using MES.Service.Modes;
 using MES.Service.service;
@@ -22,6 +23,29 @@
 
     private readonly string URL = "http://localhost:10054/api/MesItems/";
 
+    //GetItemQcPrint
+    [HttpPost("GetItemQcPrint")]
+    public ResponseResult GetItemQcPrint(WarehouseQuery query)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var save = m.GetItemQcPrint(query);
+            resultInfos.tbBillList = save;
+
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
     [HttpPost("Save")]
     public ResponseResult Save(ErpItems unit)
     {
@@ -32,6 +56,7 @@
         entity.Data = JsonConvert.SerializeObject(unit);
         entity.Status = 1;
         entity.CreateBy = "PL017";
+
         try
         {
             dynamic resultInfos = new ExpandoObject();

--
Gitblit v1.9.3