优化微信选品逻辑
This commit is contained in:
1 parent
c3ecb84a1e
commit
898a739b65
7 files changed
+109
-72
No files matched your search
@@ -310,8 +310,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
cmbSourceType.Visible = true;
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text))
|
||||
{
|
||||
lblGroupFilter.Visible = true;
|
||||
cmbGroupFilter.Visible = true;
|
||||
//lblGroupFilter.Visible = true;
|
||||
//cmbGroupFilter.Visible = true;
|
||||
}
|
||||
}
|
||||
if (BaseClass.UserAuthority.ParseToString().Contains("微信回采"))
|
||||
@@ -325,8 +325,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
cmbHot.Visible = true;
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text))
|
||||
{
|
||||
lblGroupFilter.Visible = true;
|
||||
cmbGroupFilter.Visible = true;
|
||||
//lblGroupFilter.Visible = true;
|
||||
//cmbGroupFilter.Visible = true;
|
||||
}
|
||||
}
|
||||
if (BaseClass.UserAuthority.Contains("商品采集") || BaseClass.ParentAuthority.Contains("商品采集"))
|
||||
@@ -341,6 +341,18 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//chkImgRandomBlock.Visible = true;
|
||||
}
|
||||
|
||||
List<Control> ctrlLst = new List<Control>() {
|
||||
lblSourceType, cmbSourceType, lblGroupFilter, cmbGroupFilter, lblHot, cmbHot, lblIdFilter, txtIdFilter, lblJstInitSet, cmbJstInitSet
|
||||
};
|
||||
for (int i = 0; i < ctrlLst.Count - 1; i++)
|
||||
{
|
||||
if (ctrlLst[i].Visible == false)
|
||||
{
|
||||
for (int j= ctrlLst.Count - 1; j > i; j--)
|
||||
ctrlLst[j].Location = new Point(ctrlLst[j -1].Location.X, ctrlLst[j - 1].Location.Y);
|
||||
}
|
||||
}
|
||||
|
||||
IsLoadComplate = true;
|
||||
}
|
||||
|
||||
@@ -4682,14 +4694,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
data += "&product_name=" + txtSearchGoodsName.Text.Trim();
|
||||
|
||||
// 同时刷新下商品分组
|
||||
// 商品采集权限可以随机管理員或自己采集的商品
|
||||
string addUserName = BaseClass.UserAuthority.Contains("商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
if (BaseClass.GroupId != 3)
|
||||
addUserName = BaseClass.ParentAuthority.Contains("商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
data += "&add_user_name=" + addUserName;
|
||||
// 如果指定是自己采集的商品,则只随机自己采集的商品
|
||||
if (cmbSourceType.Text.Trim().Contains("多多商品") || cmbSourceType.Text.Trim().Contains("1688商品"))
|
||||
data += "&add_user_name=" + (BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName);
|
||||
else
|
||||
data += "&add_user_name=" + addUserName;
|
||||
|
||||
// 采集来源判断
|
||||
data += "&product_get_type=" + cmbSourceType.Text.Trim().Replace("多多商品","机会商品").Replace("1688商品", "1688厂家,1688外部数据");
|
||||
|
||||
if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
data += "&in_cates=" + (cmbCateFilter1.Text == "全部" ? "" : cmbCateFilter1.Text);
|
||||
else
|
||||
@@ -5195,8 +5212,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
});
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text) || cmbSourceType.Text == "我的商品")
|
||||
{
|
||||
lblGroupFilter.Visible = true;
|
||||
cmbGroupFilter.Visible = true;
|
||||
//lblGroupFilter.Visible = true;
|
||||
//cmbGroupFilter.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user