1 核价查询功能优化 2 添加上传商品次数修改功能 3优化备货功能

This commit is contained in:
wule committed 2025-09-08 19:04:59 +08:00
1 parent c45254656b
commit fc017993df
22 files changed
+1661 -869

No files matched your search

@@ -164,7 +164,7 @@ namespace TemuKJD.KJDForms.ProductForms
{
col.Visible = true;
}
if (col.Name == "colTodaySaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
if (col.Name == "colTodaySaleVolume" || col.Name == "colLastSevenDaysSaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
|| col.Name == "colWaitReceiveNum" || col.Name == "colNeedStockUp" || col.Name == "colQualityScore")
{
col.Visible = false;
@@ -749,7 +749,7 @@ namespace TemuKJD.KJDForms.ProductForms
{
col.Visible = false;
}
if (col.Name == "colTodaySaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
if (col.Name == "colTodaySaleVolume" || col.Name == "colLastSevenDaysSaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
|| col.Name == "colWaitReceiveNum" || col.Name == "colNeedStockUp" || col.Name == "colQualityScore")
{
col.Visible = true;
@@ -866,13 +866,32 @@ namespace TemuKJD.KJDForms.ProductForms
// 拟申请备货数量=今日销量×系数-仓内可用库存-已发货库存
// 实际备货数量=平台实际允许数量和拟申请备货数量取小(申请备货时计算)
int scale = scale1;
if (sku.inCartNumber7d.ParseToInt() > sku.todaySaleVolume.ParseToInt())
{
scale = scale2;
if (rbTodaySaleCount.Checked)
{
if (sku.inCartNumber7d.ParseToInt() > sku.todaySaleVolume.ParseToInt())
{
scale = scale2;
}
}
else
{
if (sku.inCartNumber7d.ParseToInt() > sku.lastSevenDaysSaleVolume.ParseToInt() / 7.0m)
{
scale = scale2;
}
}
if (rbTodaySaleCount.Checked)
{
sku.wantStockUpBound = sku.todaySaleVolume.ParseToInt() * scale
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt();
}
else
{
sku.wantStockUpBound = (sku.lastSevenDaysSaleVolume.ParseToInt() / 7.0 * scale
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt()).ParseToInt();
}
sku.wantStockUpBound = sku.todaySaleVolume.ParseToInt() * scale
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt();
Invoke(new Action(() =>
{
if (sku.wantStockUpBound > 0 && sku.wantStockUpBound < this.txtMinBound.Text.ParseToInt())
@@ -949,6 +968,7 @@ namespace TemuKJD.KJDForms.ProductForms
"",
sInfo.skuQuantityTotalInfo.inCartNumber7d,
sInfo.skuQuantityTotalInfo.todaySaleVolume,
sInfo.skuQuantityTotalInfo.lastSevenDaysSaleVolume,
sInfo.skuQuantityTotalInfo.inventoryNumInfo.warehouseInventoryNum,
sInfo.skuQuantityTotalInfo.inventoryNumInfo.waitReceiveNum,
sInfo.goodsAfsScore == null ? "-" : (Math.Round(sInfo.goodsAfsScore.Value * 10) / 10).ToString(),
@@ -1262,5 +1282,19 @@ namespace TemuKJD.KJDForms.ProductForms
{
ShowDgvImg();
}
private void rbTodaySaleCount_CheckedChanged(object sender, EventArgs e)
{
if(rbTodaySaleCount.Checked)
{
label101.Text = "备货数量:近7日加购小于今日销量,今日销量 ×";
label102.Text = "近7日加购大于今日销量,今日销量 ×";
}
else
{
label101.Text = "备货数量:近7日加购小于7日平均销量,7日平均 ×";
label102.Text = "近7日加购大于7日平均销量,7日平均 ×";
}
}
}
}