From 71af12d1d4abf46e4d4ba89a8e64c8a8dc190362 Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期四, 27 三月 2025 18:56:15 +0800 Subject: [PATCH] 1.来料检list页面添加下拉框,可精准选择要筛选的项目 2.新建实验室送检接口 --- StandardPda/MESApplication/Controllers/BasicData/MesItemsController.cs | 29 ++++------------------------- 1 files changed, 4 insertions(+), 25 deletions(-) diff --git a/StandardPda/MESApplication/Controllers/BasicData/MesItemsController.cs b/StandardPda/MESApplication/Controllers/BasicData/MesItemsController.cs index 9fce676..2a5ca0a 100644 --- a/StandardPda/MESApplication/Controllers/BasicData/MesItemsController.cs +++ b/StandardPda/MESApplication/Controllers/BasicData/MesItemsController.cs @@ -1,5 +1,4 @@ -锘縰sing System.Dynamic; -using MES.Service.Dto.service; +锘縰sing Masuit.Tools; using MES.Service.Dto.webApi; using MES.Service.Modes; using MES.Service.service; @@ -7,6 +6,7 @@ using MES.Service.util; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; +using System.Dynamic; namespace MESApplication.Controllers.BasicData; @@ -23,29 +23,6 @@ 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) { @@ -56,6 +33,7 @@ entity.Data = JsonConvert.SerializeObject(unit); entity.Status = 1; entity.CreateBy = "PL017"; + entity.Route = unit.FNumber; try { @@ -100,6 +78,7 @@ entity.Data = JsonConvert.SerializeObject(units); entity.Status = 1; entity.CreateBy = "PL017"; + entity.Route = units.Select(it => it.FNumber).Join(","); try { dynamic resultInfos = new ExpandoObject(); -- Gitblit v1.9.3