111
tjx
5 天以前 f34f0751ef0c6305c94ff342ca7fbe24aa09844e
StandardPda/MESApplication/Controllers/QC/LljController.cs
@@ -1,12 +1,12 @@
using MES.Service.Dto.service;
using System.Data;
using System.Dynamic;
using MES.Service.Dto.service;
using MES.Service.Modes;
using MES.Service.service.QC;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Data;
using System.Dynamic;
namespace MESApplication.Controllers.QC;
@@ -36,7 +36,7 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     获取不良描述信息
    /// </summary>
@@ -448,6 +448,7 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     获取一致性核对项目
    /// </summary>
@@ -488,14 +489,12 @@
        try
        {
            if (!dt.Columns.Contains("id"))
            {
                return new ResponseResult
                {
                    status = 1,
                    message = "请先选择数据再保存!",
                    data = "请先选择数据再保存!"
                };
            }
            new LljService().saveYzxBDlist(id, dt);
            var msg = new LljService().YzxImgVerify(id);
@@ -511,4 +510,31 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     获取检验单所有不良描述
    /// </summary>
    /// <param name="data"></param>
    /// <returns></returns>
    [HttpPost("getJYBlmsItem")]
    public ResponseResult getJYBlmsItem([FromBody] JObject data)
    {
        var id = data["id"]?.ToString();
        try
        {
            var tbBillList = new LljService().getBlmsItem(id);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = tbBillList
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}