订单管理功能继续优化

This commit is contained in:
wule_5900x committed 2026-05-24 23:54:48 +08:00
1 parent abdc09afa1
commit ecb291e3d7
8 files changed
+439 -215

No files matched your search

@@ -819,6 +819,13 @@ namespace TemuKJD.WXForms.ProductForms
Thread.Sleep(Randomx.GetId(10, 20));
var prodId = row.Cells["colDraftId"].Value.ParseToString();
var skus = this.wxActivityData.requestProductInfoList.resultList.Where(p => p.product.productId == prodId).ToList();
if (chkSkipPriceEnd.Checked && txtSkipPriceEnd.Text.Trim().Length > 0 && skus.Any(s => (s.salePrice.ParseToInt() * 0.01m).ParseToString().EndsWith(txtSkipPriceEnd.Text.Trim())))
{
row.Cells["colOpResult"].Value = "价格尾数命中跳过";
continue;
}
if (skus.All(s => s.isAdded == true))
{
Invoke(new Action(() => { row.Cells["colOpResult"].Value = "已报名"; }));
@@ -829,13 +836,6 @@ namespace TemuKJD.WXForms.ProductForms
Invoke(new Action(() => { row.Cells["colOpResult"].Value = "正在报名"; }));
}
if (chkSkipPriceEnd.Checked && txtSkipPriceEnd.Text.Trim().Length > 0 && skus.Any(s => (s.salePrice.ParseToInt() * 0.01m).ParseToString().EndsWith(txtSkipPriceEnd.Text.Trim())))
{
hasProdForActivity = false;
row.Cells["colOpResult"].Value = "价格尾数命中跳过";
break;
}
skus = skus.Where(s => s.isAdded != true).ToList();
foreach (var sku in skus)
{
@@ -907,7 +907,7 @@ namespace TemuKJD.WXForms.ProductForms
{
foreach (var row in rowLstTmp)
{
if (row.Cells["colOpResult"].Value.ParseToString() == "已报名")
if (row.Cells["colOpResult"].Value.ParseToString() == "已报名" || row.Cells["colOpResult"].Value.ParseToString() == "价格尾数命中跳过")
continue;
var errStr = "";