bug
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Core.Manager;
|
||||
@@ -16,6 +17,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
using NPOI.OpenXmlFormats;
|
||||
using NPOI.OpenXmlFormats.Dml.Diagram;
|
||||
using Org.BouncyCastle.Utilities.Net;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.Common.Utils;
|
||||
@@ -152,19 +154,11 @@ namespace Tnb.WarehouseMgr
|
||||
[HttpPost]
|
||||
public async Task BarCodePrint(BarCodeInput input)
|
||||
{
|
||||
;
|
||||
|
||||
if (input == null)
|
||||
{
|
||||
throw new AppFriendlyException(nameof(input), 500);
|
||||
}
|
||||
List<string> barcodes = new();
|
||||
barcodes.Add("2300100051901001211210002");
|
||||
barcodes.Add("2300100051901001211210008");
|
||||
barcodes.Add("2300100051901001211210009");
|
||||
|
||||
|
||||
base.BarCodePrint(barcodes, 1);
|
||||
try
|
||||
{
|
||||
await _db.Ado.BeginTranAsync();
|
||||
@@ -213,7 +207,8 @@ namespace Tnb.WarehouseMgr
|
||||
barcodes.AddRange(wmsTempCodes.Select(p => p.barcode).ToList());
|
||||
if (barcodes?.Count > 0)
|
||||
{
|
||||
base.BarCodePrint(barcodes, 1);
|
||||
var ip= _db.Queryable<BasFactoryConfig>().Where(p=>p.key== "printerip").FirstAsync().Result.value;
|
||||
base.BarCodePrint(barcodes, 1, ip);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user