1.生产领料优化
2.生产通用参数类,新增参数
3.来料检验显示调整,区分为已提交和未提交
4.来料检验,计算不良率
5.生产领料模块优化返回参数信息。
已添加1个文件
已修改4个文件
37 ■■■■■ 文件已修改
.config/dotnet-tools.json 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Controllers/Wom/WomdaaController.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Dto/service/ProductionPickDto.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/QC/LljService.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/Wom/WomdaaManager.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.config/dotnet-tools.json
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,13 @@
{
  "version": 1,
  "isRoot": true,
  "tools": {
    "dotnet-ef": {
      "version": "9.0.1",
      "commands": [
        "dotnet-ef"
      ],
      "rollForward": false
    }
  }
}
Controllers/Wom/WomdaaController.cs
@@ -73,6 +73,15 @@
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.ScanCode(query);
            if(resultInfos.tbBillList.result == "2")
            {
                return new ResponseResult
                {
                    status = Convert.ToInt32(resultInfos.tbBillList.result),
                    message = resultInfos.tbBillList.strMsg,
                    data = resultInfos
                };
            }
            return new ResponseResult
            {
                status = 0,
Dto/service/ProductionPickDto.cs
@@ -14,6 +14,11 @@
    public string? barcode { get; set; }
    //返回信息
    public string? strMsg { get; set; }
    //返回参数类型 -1:失败 1:成功
    public string? result { get; set; }
    public List<Womdab>? totals { get; set; }
    public List<WwGdDetail>? totals1 { get; set; }
service/QC/LljService.cs
@@ -26,11 +26,12 @@
            .WhereIF(
                StringUtil.IsNotNullOrEmpty(queryObj.result) &&
                "未完成".Equals(queryObj.result),
                a => (a.FcheckResu ?? "") == ""|| (a.FcheckResu ?? "") == "检验中")
                a => (a.STATUS ?? "") != "已提交")
                //a => (a.FcheckResu ?? "") == ""|| (a.FcheckResu ?? "") == "检验中")
            .WhereIF(
                StringUtil.IsNotNullOrEmpty(queryObj.result) &&
                !"未完成".Equals(queryObj.result),
                a => !((a.FcheckResu ?? "") == "" || (a.FcheckResu ?? "") == "检验中"))
                a => (a.STATUS ?? "") == "已提交")
            .WhereIF(UtilityHelper.CheckGuid(parsedGuid),
                a => a.guid == parsedGuid)
            .OrderByDescending(a => a.CreateDate)
@@ -313,6 +314,7 @@
                commit += db.Updateable<MesQaItemsDetectDetail5>()
                    .SetColumns(s => s.FcheckResu == result)
                    .SetColumns(s => s.FenterQty == count)
                    .SetColumns(s => s.FngRate == (s.CheckQyt == 0 ? (decimal?)null : (decimal?)(Convert.ToDouble(noCount) / Convert.ToDouble(count))))
                    .Where(s => s.Guid == detail.ParentGuid)
                    .ExecuteCommand();
service/Wom/WomdaaManager.cs
@@ -77,7 +77,9 @@
                        daa001 = query.daa001,
                        barcodeNum = barcodeNum,
                        splitNum = splitNum,
                        barcode = query.barcode
                        barcode = query.barcode,
                        strMsg = _strMsg,
                        result = _intSum
                    };
                    return dto;