快乐的昕的电脑
2025-11-21 fe7d837479da733dfb7b0e6ae0c814d59863dc87
Services/MesInvItemBarcodesManager.cs
@@ -288,9 +288,10 @@
            .Where(s => s.Daa001 == query.orderNo)
            .First();
        if (womdaa == null) throw new Exception("工单单号不存在");
        if (womdaa.Daa018 != "开工" && query.type != "tiaoji") throw new Exception("工单未开工");
        if (womdaa.Daa018 == "开工" && query.type == "tiaoji") throw new Exception("工单已开工");
        if (womdaa.Daa018 != "开工") throw new Exception("工单未开工");
        if (womdaa == null) throw new Exception("工单单号不存在");
        var okQty = query.currentCjNum - query.initCjNum - query.bf;//良品数量
@@ -299,7 +300,7 @@
        if (query.type == "tiaoji")
            remark = "调机报工";
        else
            remark = "开工报工";
            remark = "生产报工";
        // 创建报工记录
        var mesReporting = new MesReporting