用户开放机会商品采集功能
This commit is contained in:
1 parent
b5ae0fc2f2
commit
5470863fff
26 files changed
+3131
-288
No files matched your search
@@ -469,7 +469,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
string sourceType = cmbSourceType.Text.Trim();
|
||||
Task.Run(() =>
|
||||
{
|
||||
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType); // 同时刷新下商品分组
|
||||
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType, "", BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin"); // 同时刷新下商品分组
|
||||
GetPddProductCate();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -3011,6 +3011,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (propInfo.values.FirstOrDefault().value.Contains("岁以上") || propInfo.values.FirstOrDefault().value.Contains("个月以上"))
|
||||
attrValue = propInfo.values.FirstOrDefault().value;
|
||||
}
|
||||
else if (attr.value == "个")
|
||||
{
|
||||
if ((propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith("个"))
|
||||
{
|
||||
attrValue = propInfo.values.FirstOrDefault()?.value;
|
||||
if (attrValue.TrimEnd('个').ParseToInt() == 0)
|
||||
attrValue = BaseRegex.GetMatchMaxRegexString(ref attrValue, "(\\d{1,6})") + (attrValue.Contains("只") ? " 只" : " 个");
|
||||
if (attrValue.TrimEnd('个').ParseToInt() == 0)
|
||||
attrValue = "1 个";
|
||||
}
|
||||
else
|
||||
attrValue = "1 个";
|
||||
}
|
||||
else if (attr.value == "只;个")
|
||||
{
|
||||
if ((propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith("只") || (propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith("个"))
|
||||
@@ -3200,6 +3213,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
attrValue = "7 岁以上";
|
||||
else if (attr.value == "只;个")
|
||||
attrValue = "1 个";
|
||||
else if (attr.value == "个")
|
||||
attrValue = "1 个";
|
||||
else if (attr.value == "ml")
|
||||
attrValue = "100 ml";
|
||||
else if (attr.value == "L")
|
||||
@@ -4415,6 +4430,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
data += "&in_spu_ids=" + txtIdFilter.Text;
|
||||
data += "&in_groups=" + cmbGroupFilter.Text;
|
||||
|
||||
data += "&add_user_name=" + (BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin");
|
||||
|
||||
if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
data += "&in_cates=" + (cmbCateFilter1.Text == "全部" ? "" : cmbCateFilter1.Text);
|
||||
else
|
||||
@@ -4879,7 +4896,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
string sourceType = cmbSourceType.Text.Trim();
|
||||
Task.Run(() =>
|
||||
{
|
||||
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType); // 同时刷新下商品分组
|
||||
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType, "", BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin"); // 同时刷新下商品分组
|
||||
});
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user