载具条码打印

This commit is contained in:
2024-01-10 13:40:40 +08:00
parent d25ba04ee5
commit 3504aefa0e
2 changed files with 148 additions and 1 deletions

View File

@@ -5,9 +5,11 @@ using JNPF.VisualDev;
using JNPF.VisualDev.Entitys.Dto.VisualDev;
using JNPF.VisualDev.Interfaces;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using Tnb.BasicData.Entities;
using Tnb.WarehouseMgr.Entities;
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
using Tnb.WarehouseMgr.Entities.Enums;
using Tnb.WarehouseMgr.Interfaces;
@@ -111,6 +113,19 @@ namespace Tnb.WarehouseMgr
}
return row > 0;
}
/// <summary>
/// 载具条码打印
/// </summary>
/// <param name="input"></param>
/// <exception cref="ArgumentNullException"></exception>
[HttpPost]
public void CarryBarCodePrint(CarryBarCodeInput input)
{
if (input == null || input.barCodes.Count < 1) throw new ArgumentNullException(nameof(input));
var ip = _db.Queryable<BasFactoryConfig>().Where(p => p.key == "carrybarcodeprinterip").FirstAsync().Result.value;
base.CarryPrint(input.barCodes, input.copies, ip);
}
}
}