同上一条

This commit is contained in:
wule committed 2025-09-05 19:01:30 +08:00
1 parent 4eac19b37d
commit c45254656b
17 files changed
+927 -363

No files matched your search

@@ -37,6 +37,7 @@ namespace TemuKJD.KJDForms.AdminForms
{
this.dgvShop.AddSelectorColumn("colSelect");
this.dgvPriceCheck.AddSelectorColumn("colCheck");
this.dgvPriceCheck.MergeColumnHeader(new List<string>() { "colOk", "colCancel" }, "同意/拒绝报价");
this.dtpEndTime.Value = DateTime.Now.Date.AddDays(1).AddMilliseconds(-1);
this.dtpStartTime.Value = DateTime.Now.Date.AddDays(-7);
@@ -273,6 +274,36 @@ namespace TemuKJD.KJDForms.AdminForms
switch (headerText)
{
case "规格名称":
{
var PriceInfo = lstCheckPriceInfo.FirstOrDefault(p => p.productId.ParseToString() == prodId);
if (PriceInfo != null)
{
this.panel1.Visible = true;
string skuName = "";
var prodSkuList = PriceInfo.skcList.FirstOrDefault().skuList;
if (prodSkuList != null)
{
foreach (var sku in prodSkuList)
{
foreach (var prop in sku.productPropertyList)
{
skuName += prop.value + ",";
}
skuName = skuName.TrimEnd(',') + ";";
skuName += " ";
skuName += " 长:" + sku.len.ParseToInt() * 0.1;
skuName += " 宽:" + sku.width.ParseToInt() * 0.1;
skuName += " 高:" + sku.height.ParseToInt() * 0.1;
skuName += " 重:" + sku.weight.ParseToInt() * 0.001;
skuName += "\r\n";
}
}
this.textBox1.Text = skuName;
}
}
break;
case "同意报价":
{
applyHighPrice(shop, orderId, dgvPriceCheck.Rows[e.RowIndex]);
@@ -1697,10 +1728,18 @@ namespace TemuKJD.KJDForms.AdminForms
//最短边:50 - 80 cm//生成时需转换为mm
//重量:80000 - 99999g //生成时需转换为mg
var skc = info.skcList.FirstOrDefault();
if (skc.skuList.Any(s => (s.len >= 60 * 10 || s.width >= 60 * 10 || s.height >= 50 * 10) && s.weight >= 80000 * 1000))
//长宽高超50且重量大于1000克认为是有意改大了参数需要还原
//if (skc.skuList.Any(s => (s.len >= 45 * 10 || s.width >= 45 * 10 || s.height >= 45 * 10) && s.weight >= 1000 * 1000))
// return true;
if (skc.skuList.Any(s => (s.len >= numJudgeLen.Value * 10 || s.width >= numJudgeLen.Value * 10 || s.height >= numJudgeLen.Value * 10) && s.weight >= numJudgeWeight.Value * 1000))
return true;
return false;
}
private void btnClose_Click(object sender, EventArgs e)
{
this.panel1.Visible = false;
}
}
public class PriceCheckConfig