用户产品数据库
用户1688采集
This commit is contained in:
1 parent
025b33b478
commit
c3ecb84a1e
25 files changed
+2050
-975
No files matched your search
@@ -329,6 +329,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
cmbGroupFilter.Visible = true;
|
||||
}
|
||||
}
|
||||
if (BaseClass.UserAuthority.Contains("商品采集") || BaseClass.ParentAuthority.Contains("商品采集"))
|
||||
{
|
||||
cmbSourceType.Items.Insert(1, "------");
|
||||
cmbSourceType.Items.Insert(1, "1688商品");
|
||||
cmbSourceType.Items.Insert(1, "多多商品");
|
||||
}
|
||||
//#endif
|
||||
if (BaseClass.SaLevel == 1)
|
||||
{
|
||||
@@ -490,14 +496,24 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
private void RefreshDbProdGroupAndCate()
|
||||
{
|
||||
string sourceType = cmbSourceType.Text.Trim();
|
||||
Task.Run(() =>
|
||||
{
|
||||
// 同时刷新下商品分组
|
||||
string addUserName = BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
if (BaseClass.GroupId != 3)
|
||||
addUserName = BaseClass.ParentAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType, "", addUserName); // 同时刷新下商品分组
|
||||
//string addUserName = BaseClass.UserAuthority.Contains("商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
//if (BaseClass.GroupId != 3)
|
||||
// addUserName = BaseClass.ParentAuthority.Contains("商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
//PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType, "", addUserName); // 同时刷新下商品分组
|
||||
PDDDBProdListForm.GetPDDProductGroup(new List<ComboBox> { cmbGroupFilter, }, "", "", "admin");
|
||||
if (BaseClass.UserAuthority.Contains("商品采集") || BaseClass.ParentAuthority.Contains("商品采集"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cmbGroupFilter.Items.Remove("------");
|
||||
cmbGroupFilter.Items.Remove("我的商品");
|
||||
cmbGroupFilter.Items.Insert(1, "------");
|
||||
cmbGroupFilter.Items.Insert(1, "我的商品");
|
||||
}));
|
||||
}
|
||||
GetPddProductCate();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -2513,7 +2529,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
|
||||
else if (dbProd.product_get_type_text == "1688厂家")
|
||||
// 官方库1688厂家数据必须有退货地址才能上传,用户自采数据使用店铺或默认退货地址
|
||||
else if (dbProd.product_get_type_text == "1688厂家" && dbProd.add_user_name == "admin")
|
||||
{
|
||||
var urlAfterSale = BaseClass.BuildObjString("product/wx_get_after_sale");
|
||||
var dataAfterSale = Work.UserLogin.GetSignaturex();
|
||||
@@ -4652,17 +4669,27 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
data += "&in_ext_codes=" + txtExtCodeFilter.Text;
|
||||
data += "&in_spu_ids=" + txtIdFilter.Text;
|
||||
data += "&in_groups=" + cmbGroupFilter.Text;
|
||||
|
||||
string serach_group = cmbGroupFilter.Text.Trim();
|
||||
if (BaseClass.UserAuthority.Contains("商品采集") || BaseClass.ParentAuthority.Contains("商品采集"))
|
||||
{
|
||||
if (BaseClass.GroupId == 3)
|
||||
serach_group = cmbGroupFilter.Text.Trim().Replace("我的商品", "用户" + BaseClass.UserName);
|
||||
else
|
||||
serach_group = cmbGroupFilter.Text.Trim().Replace("我的商品", "用户" + BaseClass.ParentUserName);
|
||||
}
|
||||
data += "&in_groups=" + serach_group;
|
||||
|
||||
data += "&product_name=" + txtSearchGoodsName.Text.Trim();
|
||||
|
||||
// 同时刷新下商品分组
|
||||
string addUserName = BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
string addUserName = BaseClass.UserAuthority.Contains("商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
if (BaseClass.GroupId != 3)
|
||||
addUserName = BaseClass.ParentAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
addUserName = BaseClass.ParentAuthority.Contains("商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
data += "&add_user_name=" + addUserName;
|
||||
|
||||
// 采集来源判断
|
||||
data += "&product_get_type=" + cmbSourceType.Text.Trim();
|
||||
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
|
||||
@@ -5118,6 +5145,14 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
}
|
||||
|
||||
private void cmbGroupFilter_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (cmbGroupFilter.Text == "我的商品" && cmbSourceType.Text != "" && cmbSourceType.Text != "多多商品" && cmbSourceType.Text != "1688商品")
|
||||
{
|
||||
cmbSourceType.Text = "";
|
||||
}
|
||||
}
|
||||
|
||||
private void cmbSourceType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
@@ -5125,7 +5160,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
else
|
||||
fillWxCate();
|
||||
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text) && cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家")
|
||||
{
|
||||
cmbJstInitSet.Text = "";
|
||||
@@ -5139,12 +5173,27 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
Task.Run(() =>
|
||||
{
|
||||
// 同时刷新下商品分组
|
||||
string addUserName = BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
string addUserName = BaseClass.UserAuthority.Contains("商品采集") ? ("admin," + BaseClass.UserName) : "admin";
|
||||
if (BaseClass.GroupId != 3)
|
||||
addUserName = BaseClass.ParentAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
addUserName = BaseClass.ParentAuthority.Contains("商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
|
||||
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, sourceType, "", addUserName); // 同时刷新下商品分组
|
||||
if (BaseClass.UserAuthority.Contains("商品采集") || BaseClass.ParentAuthority.Contains("商品采集"))
|
||||
{
|
||||
var mainUserName = BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName;
|
||||
if (cmbGroupFilter.Items.Cast<object>().Any(it => it.ParseToString() == "用户" + mainUserName))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cmbGroupFilter.Items.Remove("用户" + mainUserName);
|
||||
cmbGroupFilter.Items.Remove("------");
|
||||
cmbGroupFilter.Items.Remove("我的商品");
|
||||
cmbGroupFilter.Items.Insert(1, "------");
|
||||
cmbGroupFilter.Items.Insert(1, "我的商品");
|
||||
}));
|
||||
}
|
||||
}
|
||||
});
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text))
|
||||
if (!string.IsNullOrWhiteSpace(cmbSourceType.Text) || cmbSourceType.Text == "我的商品")
|
||||
{
|
||||
lblGroupFilter.Visible = true;
|
||||
cmbGroupFilter.Visible = true;
|
||||
@@ -5160,11 +5209,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
|
||||
private void cmbSourceType_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void cmbCateFilter1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "微信店采")
|
||||
@@ -5463,6 +5507,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private void btnProdDb_Click(object sender, EventArgs e)
|
||||
{
|
||||
WXUserProdListForm.Instance.lstTemuDBProductSelect = this.lstTemuDBProductSelect;
|
||||
WXUserProdListForm.Instance.cmbSourceType.Items.Clear();
|
||||
WXUserProdListForm.Instance.cmbSourceType.Items.AddRange(this.cmbSourceType.Items.Cast<Object>().ToArray());
|
||||
WXUserProdListForm.Instance.SaveComplete -= dbProdList_SaveComplete;
|
||||
WXUserProdListForm.Instance.SaveComplete += dbProdList_SaveComplete;
|
||||
WXUserProdListForm.Instance.Show();
|
||||
@@ -5482,8 +5528,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
if (cmbHot.Text == "爆款数据")
|
||||
{
|
||||
cmbSourceType.Text = "";
|
||||
cmbJstInitSet.Text = "未设置";
|
||||
cmbSourceType.Text = "微信店采";
|
||||
cmbJstInitSet.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user