载具条码打印
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user