南骏 池
2025-03-05 8e47218fc2098d6fda1c7e258164b73a0d67fbed
1.其他出库优化
2.委外退料单新增dabid
3.其他入库新增dabid
已修改5个文件
40 ■■■■ 文件已修改
Controllers/Wom/WwGdController.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
entity/MesInvItemInCItems.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/Warehouse/MesItemQtManager.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/Warehouse/MesItemQtrkManager.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/Wom/WwGdManager.cs 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Controllers/Wom/WwGdController.cs
@@ -149,9 +149,19 @@
    {
        try
        {
            // 调用WwGdManager的WwblScanBarcode方法获取物料信息
            dynamic resultInfos = new ExpandoObject();
            resultInfos.materialInfo = m.WwblScanBarcode(query);
            var (success, pendingList) = m.WwblScanBarcode(query);
            resultInfos.success = success;
            resultInfos.pendingList = pendingList;
            if (success.status == 2)
            {
                return new ResponseResult
                {
                    status = Convert.ToInt32(success.status),
                    message = success.message,
                    data = resultInfos.success
                };
            }
            return new ResponseResult
            {
                status = 0,
entity/MesInvItemInCItems.cs
@@ -170,5 +170,11 @@
    [SugarColumn(ColumnName = "depot_id")]
    public string? DepotId { get; set; }
    /// <summary>
    ///     仓库id
    /// </summary>
    [SugarColumn(ColumnName = "item_dabid")]
    public string? itemDabid { get; set; }
    [SugarColumn(ColumnName = "SUPP_ID")] public string? SuppId { get; set; }
}
service/Warehouse/MesItemQtManager.cs
@@ -216,7 +216,7 @@
            {
                // 创建新的出库单
                outId = Guid.NewGuid();
                outNo = BillNo.GetBillNo("QTCK(其他出库单)");
                outNo = BillNo.GetBillNo("QTCK(其他出库)");
                var mesItemQt = Db.Queryable<MesItemQt>()
                    .Where(it => it.Qtck == p_bill_no)
service/Warehouse/MesItemQtrkManager.cs
@@ -284,7 +284,8 @@
                    EbelnK3id = barcode.EbelnK3id,
                    LineK3id = barcode.LineK3id,
                    ItemId = barcode.ItemId,
                    DepotId = c_depot_id.ToString()
                    DepotId = c_depot_id.ToString(),
                    itemDabid = barcode.AboutGuid.ToString(),
                }).IgnoreColumns(true).ExecuteCommand();
            else
                // 存在则更新数量
service/Wom/WwGdManager.cs
@@ -450,7 +450,8 @@
                    LineK3id = c_mes_inv_item_barcodes.LineK3id,
                    ItemId = c_mes_inv_item_barcodes.ItemId,
                    DepotCode = c_mes_depots.DepotCode,
                    DepotId = c_depot_code.ToString()
                    DepotId = c_depot_code.ToString(),
                    itemDabid = c_mes_inv_item_barcodes.AboutGuid.ToString()
                }).IgnoreColumns(true).ExecuteCommand();
            else
                // 存在时更新数量
@@ -621,9 +622,9 @@
                                 (int)c_mes_inv_item_barcodes.Quantity // 增加已退数量
                    })
                    .Where(it => it.Tlmid == C_MES_ITEM_TBL.Id
                                 && it.Tld009 == c_mes_inv_item_barcodes.ItemId
                                 && it.Tld010 ==
                                 c_mes_inv_item_barcodes.WorkLine)
                                 && it.Tld009 == c_mes_inv_item_barcodes.ItemId)
                                 //&& it.Tld010 ==
                                 //c_mes_inv_item_barcodes.WorkLine)
                    .ExecuteCommand();
            }
            // 作业不良退料 - 更新工单表和退料单明细表
@@ -655,9 +656,9 @@
                                 (int)c_mes_inv_item_barcodes.Quantity // 增加已退数量
                    })
                    .Where(it => it.Tlmid == C_MES_ITEM_TBL.Id
                                 && it.Tld009 == c_mes_inv_item_barcodes.ItemId
                                 && it.Tld010 ==
                                 c_mes_inv_item_barcodes.WorkLine)
                                 && it.Tld009 == c_mes_inv_item_barcodes.ItemId)
                                 //&& it.Tld010 ==
                                 //c_mes_inv_item_barcodes.WorkLine)
                    .ExecuteCommand();
            }