This commit is contained in:
jl
2025-06-03 16:27:19 +08:00
parent af5cde8e46
commit 285bae186b
3 changed files with 63 additions and 51 deletions

View File

@ -16,12 +16,20 @@ namespace Epost.BLL
{ {
if (sku.Substring(0, 1) == "2") if (sku.Substring(0, 1) == "2")
{ {
if (sku.Substring(1, 1) == "5")
if (sku.Length >= 8)
{ {
sku = sku.Substring(0, 8); if (sku.Length >= 7)
{
sku = sku.Substring(2, 6);
}
}
else
{
if (sku.Length >= 7)
{
sku = sku.Substring(1, 6);
}
} }
return dal.GetSkuInfo(sku); return dal.GetSkuInfo(sku);
} }
else else

View File

@ -211,7 +211,7 @@ namespace Epost.BLL
//} //}
//else { //else {
if (scanStr.Substring(0, 1) == "Y") if (scanStr.Substring(0, 1) == "U")
{ {
#region #region
if (ulist.Any()) if (ulist.Any())
@ -244,11 +244,13 @@ namespace Epost.BLL
scanStr = sinfodt.Rows[0]["sku"].ToString(); scanStr = sinfodt.Rows[0]["sku"].ToString();
// location = data.Parameter;// sinfodt.Rows[0]["tolocation"].ToString(); // location = data.Parameter;// sinfodt.Rows[0]["tolocation"].ToString();
} }
string matchid = string.Empty;
if (ulist.Any())
{ matchid = ulist.FirstOrDefault().Matchid; }
LogHelper.WriteLogInfo("中分" + data.Parameter + "===SKU" + scanStr); LogHelper.WriteLogInfo("中分" + data.Parameter + "===SKU" + scanStr);
DataTable skudt = orderbll.GetSumList(matchid, scanStr, data.Block); List<AddressstorageModel> Arealist = addrBLL.GetAreaList();
if (Arealist.Any())
{
foreach (AddressstorageModel item in Arealist)
{
DataTable skudt = orderbll.GetSumList("", scanStr, item.block, item.area);
if (skudt != null && skudt.Rows.Count > 0) if (skudt != null && skudt.Rows.Count > 0)
{ {
//规格 //规格
@ -257,25 +259,24 @@ namespace Epost.BLL
int SumCkQuantity = 0;//= Convert.ToInt32(skudt.Rows[0]["SumCkQuantity"].ToString()); int SumCkQuantity = 0;//= Convert.ToInt32(skudt.Rows[0]["SumCkQuantity"].ToString());
//散件总数 //散件总数
int SumQuantity = Convert.ToInt32(skudt.Rows[0]["SumQuantity"].ToString()); int SumQuantity = Convert.ToInt32(skudt.Rows[0]["SumQuantity"].ToString());
int zcount = Convert.ToInt32(skudt.Rows[0]["SumQuantity"].ToString()); //if (discount != 1)
if (discount != 1) //{
{ // if (SumQuantity >= discount)
if (SumQuantity >= discount) // {
{
SumCkQuantity = SumQuantity / discount; // SumCkQuantity = SumQuantity / discount;
SumQuantity = SumQuantity % discount; // SumQuantity = SumQuantity % discount;
} // }
} //}
ShowMessageModel_M show = new ShowMessageModel_M(); ShowMessageModel_M show = new ShowMessageModel_M();
show.Title = skudt.Rows[0]["goodsname"].ToString(); show.Title = skudt.Rows[0]["sku_goodsname"].ToString();
show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red); show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
show.Block = data.Block; show.Block = item.block;
show.Islock = true; show.Islock = true;
show.Contents = data.Parameter + "(" + scanStr + ")\r" + "规格:" + discount + "\r总数量" + zcount; show.Contents = data.Parameter + "(" + scanStr + ")\r";// + "规格:" + discount;
show.Qty = SumQuantity.ToString(); show.Qty = SumQuantity.ToString();
show.Wholeqty = SumCkQuantity; show.Wholeqty = SumCkQuantity;
show.Unit = "件"; show.Unit = "件";
@ -286,14 +287,17 @@ namespace Epost.BLL
else else
{ {
ShowMessageModel_M show = new ShowMessageModel_M(); ShowMessageModel_M show = new ShowMessageModel_M();
show.Title = "SKU" + scanStr + "未完纳"; show.Title = "SKU" + scanStr + "无任务";
show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red); show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
show.Block = data.Block; show.Block = item.block;
show.Islock = true; show.Islock = true;
show.Contents = "请扫描其他商品!"; show.Contents = "请扫描其他商品!";
show.Type = 2; show.Type = 2;
comBLL.ShowBoxMessage_M(show); comBLL.ShowBoxMessage_M(show);
} }
}
}
#endregion #endregion
} }

View File

@ -11,7 +11,7 @@
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth> <WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
<NameOfLastUsedPublishProfile>E:\WORK\代码管理\T系列\播种\Epost.TestToolsWeb\Properties\PublishProfiles\Toolsweb.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>E:\WORK\代码管理\T系列\播种\Epost.TestToolsWeb\Properties\PublishProfiles\Toolsweb.pubxml</NameOfLastUsedPublishProfile>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort /> <IISExpressSSLPort />
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication />