1代理改名字 2代理管理功能 3订单流水统计功能(方便报税) 4 商品预售界面-商品改价支持加减乘除四种模式

This commit is contained in:
wule committed 2026-07-18 18:29:06 +08:00
1 parent 457a8acee6
commit ba502650ab
69 files changed
+27720 -720

No files matched your search

@@ -69,6 +69,11 @@ namespace TemuKJD.WXForms.ProductForms
dgvSelectProduct.AddImgColumn("colProductSkcPic", "colImgUrl");
IsLoadComplate = true;
cmbType.Enabled = false;
cmbType.Text = "价格比例";
txtPercent.Text = "10";
}
private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
@@ -899,7 +904,7 @@ namespace TemuKJD.WXForms.ProductForms
//{"cosignmentOrderId":"4436464658179189760","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738","cancelScene":2}],"orderId":"3736464645960385280"}
JObject signActivityObj = new JObject();
signActivityObj["platformActivityId"] = "1016";
signActivityObj["platformActivityId"] = "1163";
var jArr = new JArray();
bool hasProdForActivity = false;
foreach (var row in rowLstTmp)
@@ -1073,7 +1078,7 @@ namespace TemuKJD.WXForms.ProductForms
//{"cosignmentOrderId":"4436464658179189760","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738","cancelScene":2}],"orderId":"3736464645960385280"}
JObject signActivityObj = new JObject();
signActivityObj["platformActivityId"] = "1016";
signActivityObj["platformActivityId"] = "1163";
var jArr = new JArray();
bool hasProdForCancelActivity = false;
foreach (var row in rowLstTmp)
@@ -1313,7 +1318,8 @@ namespace TemuKJD.WXForms.ProductForms
public class WXActivity
{
public static string getShopCanActivity(ShopLoginInfo shop, string activityId = "1016")
//1016 618活动 1163入夏好物
public static string getShopCanActivity(ShopLoginInfo shop, string activityId = "1163")
{
string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/queryShopPlatformActivity?token=&lang=zh_CN&platformActivityId=" + activityId;
string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&curTab=2";
@@ -1322,7 +1328,7 @@ namespace TemuKJD.WXForms.ProductForms
return result;
}
public static string applyShopActivity(ShopLoginInfo shop, string activityId = "1016")
public static string applyShopActivity(ShopLoginInfo shop, string activityId = "1163")
{
string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/applyShopPlatformActivity?token=&lang=zh_CN";
string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&curTab=2";
@@ -1331,7 +1337,7 @@ namespace TemuKJD.WXForms.ProductForms
return result;
}
public static string getActivityProdList(ShopLoginInfo shop, int page, int pageSize = 10, string activityId = "1016")
public static string getActivityProdList(ShopLoginInfo shop, int page, int pageSize = 10, string activityId = "1163")
{
//{"keyword":"","pageNum":1,"pageSize":10,"platformActivityId":"1016"}
@@ -1342,7 +1348,7 @@ namespace TemuKJD.WXForms.ProductForms
return result;
}
public static string signWxActivity(ShopLoginInfo shop, JObject prodData, string activityId = "1016")
public static string signWxActivity(ShopLoginInfo shop, JObject prodData, string activityId = "1163")
{
//{"keyword":"","pageNum":1,"pageSize":10,"platformActivityId":"1016"}
@@ -1353,7 +1359,7 @@ namespace TemuKJD.WXForms.ProductForms
return result;
}
public static string getProdInActivityList(ShopLoginInfo shop, int page, int pageSize = 10, string activityId = "1016")
public static string getProdInActivityList(ShopLoginInfo shop, int page, int pageSize = 10, string activityId = "1163")
{
//{"keyword":"","pageNum":1,"pageSize":10,"platformActivityId":"1016"}
+173 -115
View File
@@ -32,14 +32,14 @@ namespace TemuKJD.WXForms.ProductForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.txtShippingPriceTimes = new System.Windows.Forms.TextBox();
@@ -69,23 +69,27 @@ namespace TemuKJD.WXForms.ProductForms
this.chkStepAddPrice = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.ucTabControlMetro1 = new TemuKJD.UserControls.UcTabControlMetro();
this.上传参数 = new System.Windows.Forms.TabPage();
this.chkSameSpecPriceDown = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkLowestPriceSku = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkUseWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtMaxPrice = new System.Windows.Forms.TextBox();
this.chkUseRecommand = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkPreSale = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtDefaultBestBefore = new System.Windows.Forms.TextBox();
this.chkDefaultBestBefore = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtMinPrice = new System.Windows.Forms.TextBox();
this.btnFilterBound = new DevComponents.DotNetBar.PanelEx();
this.txtFilterBoundMin = new System.Windows.Forms.TextBox();
this.chkUseWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkUpDraft = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label25 = new System.Windows.Forms.Label();
this.chkSkipUploaded = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkSameSpecPrice = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkSameSpecPriceUp = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtPreDays = new System.Windows.Forms.TextBox();
this.txtReplaceText = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.chkSaveBound = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkAiShortTitle = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label5 = new System.Windows.Forms.Label();
this.chkPreSale = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkHighestPriceSku = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtFilterBoundMax = new System.Windows.Forms.TextBox();
this.label18 = new System.Windows.Forms.Label();
@@ -95,6 +99,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtTitleHeadWord = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label39 = new System.Windows.Forms.Label();
this.佣金上货 = new System.Windows.Forms.TabPage();
this.label31 = new System.Windows.Forms.Label();
this.txtCommissionChangeValue = new System.Windows.Forms.TextBox();
@@ -235,7 +240,6 @@ namespace TemuKJD.WXForms.ProductForms
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.btnClear = new DevComponents.DotNetBar.PanelEx();
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.chkUseRecommand = new TemuKJD.UserComponent.UcCheckBox(this.components);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -286,7 +290,7 @@ namespace TemuKJD.WXForms.ProductForms
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer3);
this.splitContainer1.Size = new System.Drawing.Size(1684, 641);
this.splitContainer1.Size = new System.Drawing.Size(1710, 641);
this.splitContainer1.SplitterDistance = 165;
this.splitContainer1.TabIndex = 11;
//
@@ -322,7 +326,7 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx2.Controls.Add(this.ucTabControlMetro1);
this.ucGroupBoxEx2.Location = new System.Drawing.Point(595, 2);
this.ucGroupBoxEx2.Name = "ucGroupBoxEx2";
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1087, 165);
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1113, 165);
this.ucGroupBoxEx2.TabIndex = 667;
this.ucGroupBoxEx2.TabStop = false;
this.ucGroupBoxEx2.Text = "商品上传";
@@ -354,7 +358,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStop.Location = new System.Drawing.Point(1015, 44);
this.btnStop.Location = new System.Drawing.Point(1041, 44);
this.btnStop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(64, 23);
@@ -378,7 +382,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(993, 15);
this.label7.Location = new System.Drawing.Point(1019, 15);
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(20, 17);
@@ -390,7 +394,7 @@ namespace TemuKJD.WXForms.ProductForms
this.chkRandomCompanyProd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkRandomCompanyProd.Checked = true;
this.chkRandomCompanyProd.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkRandomCompanyProd.Location = new System.Drawing.Point(819, 13);
this.chkRandomCompanyProd.Location = new System.Drawing.Point(845, 13);
this.chkRandomCompanyProd.Name = "chkRandomCompanyProd";
this.chkRandomCompanyProd.Size = new System.Drawing.Size(87, 21);
this.chkRandomCompanyProd.TabIndex = 889;
@@ -416,7 +420,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearDgv.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearDgv.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearDgv.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearDgv.Location = new System.Drawing.Point(1015, 72);
this.btnClearDgv.Location = new System.Drawing.Point(1041, 72);
this.btnClearDgv.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearDgv.Name = "btnClearDgv";
this.btnClearDgv.Size = new System.Drawing.Size(64, 23);
@@ -573,7 +577,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(913, 15);
this.label6.Location = new System.Drawing.Point(939, 15);
this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 17);
@@ -596,7 +600,7 @@ namespace TemuKJD.WXForms.ProductForms
// txtWaitSeconds
//
this.txtWaitSeconds.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtWaitSeconds.Location = new System.Drawing.Point(969, 12);
this.txtWaitSeconds.Location = new System.Drawing.Point(995, 12);
this.txtWaitSeconds.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtWaitSeconds.Name = "txtWaitSeconds";
this.txtWaitSeconds.Size = new System.Drawing.Size(24, 23);
@@ -644,7 +648,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnUpload.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnUpload.DisabledBackColor = System.Drawing.Color.Empty;
this.btnUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpload.Location = new System.Drawing.Point(1015, 16);
this.btnUpload.Location = new System.Drawing.Point(1041, 16);
this.btnUpload.Name = "btnUpload";
this.btnUpload.Size = new System.Drawing.Size(64, 23);
this.btnUpload.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -721,7 +725,7 @@ namespace TemuKJD.WXForms.ProductForms
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
this.ucTabControlMetro1.SelectedIndex = 0;
this.ucTabControlMetro1.ShowCloseButton = false;
this.ucTabControlMetro1.Size = new System.Drawing.Size(591, 150);
this.ucTabControlMetro1.Size = new System.Drawing.Size(617, 150);
this.ucTabControlMetro1.TabIndex = 822;
this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray;
@@ -729,7 +733,10 @@ namespace TemuKJD.WXForms.ProductForms
//
// 上传参数
//
this.上传参数.Controls.Add(this.chkSameSpecPriceDown);
this.上传参数.Controls.Add(this.chkLowestPriceSku);
this.上传参数.Controls.Add(this.chkUseWXComplateProd);
this.上传参数.Controls.Add(this.txtMaxPrice);
this.上传参数.Controls.Add(this.chkUseRecommand);
this.上传参数.Controls.Add(this.chkPreSale);
this.上传参数.Controls.Add(this.txtDefaultBestBefore);
@@ -740,7 +747,7 @@ namespace TemuKJD.WXForms.ProductForms
this.上传参数.Controls.Add(this.chkUpDraft);
this.上传参数.Controls.Add(this.label25);
this.上传参数.Controls.Add(this.chkSkipUploaded);
this.上传参数.Controls.Add(this.chkSameSpecPrice);
this.上传参数.Controls.Add(this.chkSameSpecPriceUp);
this.上传参数.Controls.Add(this.txtPreDays);
this.上传参数.Controls.Add(this.txtReplaceText);
this.上传参数.Controls.Add(this.label8);
@@ -756,14 +763,80 @@ namespace TemuKJD.WXForms.ProductForms
this.上传参数.Controls.Add(this.txtTitleHeadWord);
this.上传参数.Controls.Add(this.label22);
this.上传参数.Controls.Add(this.label3);
this.上传参数.Controls.Add(this.label39);
this.上传参数.Location = new System.Drawing.Point(4, 28);
this.上传参数.Name = "上传参数";
this.上传参数.Padding = new System.Windows.Forms.Padding(3);
this.上传参数.Size = new System.Drawing.Size(583, 118);
this.上传参数.Size = new System.Drawing.Size(609, 118);
this.上传参数.TabIndex = 1;
this.上传参数.Text = "上传参数";
this.上传参数.UseVisualStyleBackColor = true;
//
// chkSameSpecPriceDown
//
this.chkSameSpecPriceDown.AutoSize = true;
this.chkSameSpecPriceDown.Checked = true;
this.chkSameSpecPriceDown.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkSameSpecPriceDown.Location = new System.Drawing.Point(548, 3);
this.chkSameSpecPriceDown.Name = "chkSameSpecPriceDown";
this.chkSameSpecPriceDown.Size = new System.Drawing.Size(131, 21);
this.chkSameSpecPriceDown.TabIndex = 917;
this.chkSameSpecPriceDown.Text = "颜色规格同价(下浮)";
this.chkSameSpecPriceDown.UseVisualStyleBackColor = true;
//
// chkLowestPriceSku
//
this.chkLowestPriceSku.AutoSize = true;
this.chkLowestPriceSku.Checked = true;
this.chkLowestPriceSku.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkLowestPriceSku.Location = new System.Drawing.Point(433, 3);
this.chkLowestPriceSku.Name = "chkLowestPriceSku";
this.chkLowestPriceSku.Size = new System.Drawing.Size(119, 21);
this.chkLowestPriceSku.TabIndex = 916;
this.chkLowestPriceSku.Text = "只保留最低价sku";
this.chkLowestPriceSku.UseVisualStyleBackColor = true;
//
// chkUseWXComplateProd
//
this.chkUseWXComplateProd.Location = new System.Drawing.Point(529, 28);
this.chkUseWXComplateProd.Name = "chkUseWXComplateProd";
this.chkUseWXComplateProd.Size = new System.Drawing.Size(87, 21);
this.chkUseWXComplateProd.TabIndex = 876;
this.chkUseWXComplateProd.Text = "使用回采数据";
this.chkUseWXComplateProd.UseVisualStyleBackColor = true;
this.chkUseWXComplateProd.Visible = false;
this.chkUseWXComplateProd.CheckedChanged += new System.EventHandler(this.chkUseWXComplateProd_CheckedChanged);
//
// txtMaxPrice
//
this.txtMaxPrice.Location = new System.Drawing.Point(117, 2);
this.txtMaxPrice.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtMaxPrice.Name = "txtMaxPrice";
this.txtMaxPrice.Size = new System.Drawing.Size(36, 23);
this.txtMaxPrice.TabIndex = 912;
this.txtMaxPrice.Text = "9999";
//
// chkUseRecommand
//
this.chkUseRecommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUseRecommand.AutoSize = true;
this.chkUseRecommand.Location = new System.Drawing.Point(490, 51);
this.chkUseRecommand.Name = "chkUseRecommand";
this.chkUseRecommand.Size = new System.Drawing.Size(123, 21);
this.chkUseRecommand.TabIndex = 907;
this.chkUseRecommand.Text = "使用推荐属性数值";
this.chkUseRecommand.UseVisualStyleBackColor = true;
//
// chkPreSale
//
this.chkPreSale.Location = new System.Drawing.Point(281, 28);
this.chkPreSale.Name = "chkPreSale";
this.chkPreSale.Size = new System.Drawing.Size(65, 21);
this.chkPreSale.TabIndex = 789;
this.chkPreSale.Text = "预售天数";
this.chkPreSale.UseVisualStyleBackColor = true;
this.chkPreSale.CheckedChanged += new System.EventHandler(this.chkPreSale_CheckedChanged);
//
// txtDefaultBestBefore
//
this.txtDefaultBestBefore.Location = new System.Drawing.Point(529, 93);
@@ -830,21 +903,11 @@ namespace TemuKJD.WXForms.ProductForms
this.txtFilterBoundMin.Text = "1000";
this.txtFilterBoundMin.TextChanged += new System.EventHandler(this.txtFilterBoundMin_TextChanged);
//
// chkUseWXComplateProd
//
this.chkUseWXComplateProd.Location = new System.Drawing.Point(541, 28);
this.chkUseWXComplateProd.Name = "chkUseWXComplateProd";
this.chkUseWXComplateProd.Size = new System.Drawing.Size(87, 21);
this.chkUseWXComplateProd.TabIndex = 876;
this.chkUseWXComplateProd.Text = "使用回采数据";
this.chkUseWXComplateProd.UseVisualStyleBackColor = true;
this.chkUseWXComplateProd.Visible = false;
this.chkUseWXComplateProd.CheckedChanged += new System.EventHandler(this.chkUseWXComplateProd_CheckedChanged);
//
// chkUpDraft
//
this.chkUpDraft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUpDraft.AutoSize = true;
this.chkUpDraft.Location = new System.Drawing.Point(447, 3);
this.chkUpDraft.Location = new System.Drawing.Point(490, 72);
this.chkUpDraft.Name = "chkUpDraft";
this.chkUpDraft.Size = new System.Drawing.Size(87, 21);
this.chkUpDraft.TabIndex = 769;
@@ -867,7 +930,7 @@ namespace TemuKJD.WXForms.ProductForms
this.chkSkipUploaded.AutoSize = true;
this.chkSkipUploaded.Checked = true;
this.chkSkipUploaded.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkSkipUploaded.Location = new System.Drawing.Point(341, 3);
this.chkSkipUploaded.Location = new System.Drawing.Point(424, 28);
this.chkSkipUploaded.Name = "chkSkipUploaded";
this.chkSkipUploaded.Size = new System.Drawing.Size(111, 21);
this.chkSkipUploaded.TabIndex = 755;
@@ -875,18 +938,18 @@ namespace TemuKJD.WXForms.ProductForms
this.chkSkipUploaded.UseVisualStyleBackColor = true;
this.chkSkipUploaded.CheckedChanged += new System.EventHandler(this.chkSkipUploaded_CheckedChanged);
//
// chkSameSpecPrice
// chkSameSpecPriceUp
//
this.chkSameSpecPrice.AutoSize = true;
this.chkSameSpecPrice.Checked = true;
this.chkSameSpecPrice.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkSameSpecPrice.Location = new System.Drawing.Point(246, 3);
this.chkSameSpecPrice.Name = "chkSameSpecPrice";
this.chkSameSpecPrice.Size = new System.Drawing.Size(99, 21);
this.chkSameSpecPrice.TabIndex = 745;
this.chkSameSpecPrice.Text = "颜色规格同价";
this.chkSameSpecPrice.UseVisualStyleBackColor = true;
this.chkSameSpecPrice.CheckedChanged += new System.EventHandler(this.chkSameSpecPrice_CheckedChanged);
this.chkSameSpecPriceUp.AutoSize = true;
this.chkSameSpecPriceUp.Checked = true;
this.chkSameSpecPriceUp.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkSameSpecPriceUp.Location = new System.Drawing.Point(308, 3);
this.chkSameSpecPriceUp.Name = "chkSameSpecPriceUp";
this.chkSameSpecPriceUp.Size = new System.Drawing.Size(131, 21);
this.chkSameSpecPriceUp.TabIndex = 745;
this.chkSameSpecPriceUp.Text = "颜色规格同价(上浮)";
this.chkSameSpecPriceUp.UseVisualStyleBackColor = true;
this.chkSameSpecPriceUp.CheckedChanged += new System.EventHandler(this.chkSameSpecPriceUp_CheckedChanged);
//
// txtPreDays
//
@@ -904,9 +967,10 @@ namespace TemuKJD.WXForms.ProductForms
| System.Windows.Forms.AnchorStyles.Right)));
this.txtReplaceText.Location = new System.Drawing.Point(65, 52);
this.txtReplaceText.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtReplaceText.MaxLength = 1000000;
this.txtReplaceText.Multiline = true;
this.txtReplaceText.Name = "txtReplaceText";
this.txtReplaceText.Size = new System.Drawing.Size(510, 40);
this.txtReplaceText.Size = new System.Drawing.Size(420, 40);
this.txtReplaceText.TabIndex = 740;
this.txtReplaceText.Text = "真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
this.txtReplaceText.TextChanged += new System.EventHandler(this.txtReplaceText_TextChanged);
@@ -949,29 +1013,19 @@ namespace TemuKJD.WXForms.ProductForms
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(89, 5);
this.label5.Location = new System.Drawing.Point(153, 5);
this.label5.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(40, 17);
this.label5.TabIndex = 744;
this.label5.Text = "元sku";
//
// chkPreSale
//
this.chkPreSale.Location = new System.Drawing.Point(281, 28);
this.chkPreSale.Name = "chkPreSale";
this.chkPreSale.Size = new System.Drawing.Size(65, 21);
this.chkPreSale.TabIndex = 789;
this.chkPreSale.Text = "预售天数";
this.chkPreSale.UseVisualStyleBackColor = true;
this.chkPreSale.CheckedChanged += new System.EventHandler(this.chkPreSale_CheckedChanged);
//
// chkHighestPriceSku
//
this.chkHighestPriceSku.AutoSize = true;
this.chkHighestPriceSku.Checked = true;
this.chkHighestPriceSku.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkHighestPriceSku.Location = new System.Drawing.Point(129, 3);
this.chkHighestPriceSku.Location = new System.Drawing.Point(193, 3);
this.chkHighestPriceSku.Name = "chkHighestPriceSku";
this.chkHighestPriceSku.Size = new System.Drawing.Size(119, 21);
this.chkHighestPriceSku.TabIndex = 739;
@@ -1061,6 +1115,16 @@ namespace TemuKJD.WXForms.ProductForms
this.label3.TabIndex = 741;
this.label3.Text = "移除敏感词";
//
// label39
//
this.label39.AutoSize = true;
this.label39.Location = new System.Drawing.Point(90, 5);
this.label39.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(32, 17);
this.label39.TabIndex = 911;
this.label39.Text = "或>";
//
// 佣金上货
//
this.佣金上货.Controls.Add(this.label31);
@@ -1078,7 +1142,7 @@ namespace TemuKJD.WXForms.ProductForms
this.佣金上货.Location = new System.Drawing.Point(4, 28);
this.佣金上货.Name = "佣金上货";
this.佣金上货.Padding = new System.Windows.Forms.Padding(3);
this.佣金上货.Size = new System.Drawing.Size(583, 118);
this.佣金上货.Size = new System.Drawing.Size(609, 118);
this.佣金上货.TabIndex = 2;
this.佣金上货.Text = "佣金上货";
this.佣金上货.UseVisualStyleBackColor = true;
@@ -1246,7 +1310,7 @@ namespace TemuKJD.WXForms.ProductForms
this.裂变调试.Location = new System.Drawing.Point(4, 28);
this.裂变调试.Name = "裂变调试";
this.裂变调试.Padding = new System.Windows.Forms.Padding(3);
this.裂变调试.Size = new System.Drawing.Size(583, 118);
this.裂变调试.Size = new System.Drawing.Size(609, 118);
this.裂变调试.TabIndex = 3;
this.裂变调试.Text = "裂变调试";
this.裂变调试.UseVisualStyleBackColor = true;
@@ -1260,7 +1324,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtFissionTitle.Multiline = true;
this.txtFissionTitle.Name = "txtFissionTitle";
this.txtFissionTitle.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtFissionTitle.Size = new System.Drawing.Size(496, 79);
this.txtFissionTitle.Size = new System.Drawing.Size(522, 79);
this.txtFissionTitle.TabIndex = 0;
this.txtFissionTitle.TextChanged += new System.EventHandler(this.txtFissionTitle_TextChanged);
//
@@ -1375,7 +1439,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label32.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label32.AutoSize = true;
this.label32.Location = new System.Drawing.Point(549, 57);
this.label32.Location = new System.Drawing.Point(575, 57);
this.label32.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(20, 17);
@@ -1386,7 +1450,7 @@ namespace TemuKJD.WXForms.ProductForms
// txtAiImgCount
//
this.txtAiImgCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.txtAiImgCount.Location = new System.Drawing.Point(524, 54);
this.txtAiImgCount.Location = new System.Drawing.Point(550, 54);
this.txtAiImgCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAiImgCount.Name = "txtAiImgCount";
this.txtAiImgCount.Size = new System.Drawing.Size(24, 23);
@@ -1398,7 +1462,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkAiImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkAiImage.AutoSize = true;
this.chkAiImage.Location = new System.Drawing.Point(455, 55);
this.chkAiImage.Location = new System.Drawing.Point(481, 55);
this.chkAiImage.Name = "chkAiImage";
this.chkAiImage.Size = new System.Drawing.Size(74, 21);
this.chkAiImage.TabIndex = 892;
@@ -2325,7 +2389,7 @@ namespace TemuKJD.WXForms.ProductForms
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.splitContainer4);
this.splitContainer3.Size = new System.Drawing.Size(1684, 472);
this.splitContainer3.Size = new System.Drawing.Size(1710, 472);
this.splitContainer3.SplitterDistance = 442;
this.splitContainer3.TabIndex = 1;
//
@@ -2355,7 +2419,7 @@ namespace TemuKJD.WXForms.ProductForms
this.splitContainer2.Panel2.Controls.Add(this.chkTestNoAuditUpload);
this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct);
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0);
this.splitContainer2.Size = new System.Drawing.Size(1684, 442);
this.splitContainer2.Size = new System.Drawing.Size(1710, 442);
this.splitContainer2.SplitterDistance = 410;
this.splitContainer2.TabIndex = 0;
//
@@ -2422,19 +2486,19 @@ namespace TemuKJD.WXForms.ProductForms
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle9.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvShop.AutoRowNumber = true;
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
@@ -2582,7 +2646,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(610, 196);
this.pbLoading.Location = new System.Drawing.Point(623, 196);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -2597,7 +2661,7 @@ namespace TemuKJD.WXForms.ProductForms
this.并发上传.Cursor = System.Windows.Forms.Cursors.Hand;
this.并发上传.DisabledBackColor = System.Drawing.Color.Empty;
this.并发上传.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.并发上传.Location = new System.Drawing.Point(1144, 30);
this.并发上传.Location = new System.Drawing.Point(1170, 30);
this.并发上传.Name = "并发上传";
this.并发上传.Size = new System.Drawing.Size(118, 23);
this.并发上传.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -2666,19 +2730,19 @@ namespace TemuKJD.WXForms.ProductForms
//
this.dgvSelectProduct.AllowUserToAddRows = false;
this.dgvSelectProduct.AllowUserToDeleteRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
this.dgvSelectProduct.AutoRowNumber = true;
this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White;
this.dgvSelectProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -2709,7 +2773,7 @@ namespace TemuKJD.WXForms.ProductForms
this.dgvSelectProduct.Name = "dgvSelectProduct";
this.dgvSelectProduct.ReadOnly = true;
this.dgvSelectProduct.RowTemplate.Height = 23;
this.dgvSelectProduct.Size = new System.Drawing.Size(1266, 442);
this.dgvSelectProduct.Size = new System.Drawing.Size(1292, 442);
this.dgvSelectProduct.TabIndex = 187;
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
//
@@ -2740,8 +2804,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colSupplierName
//
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5;
this.colSupplierName.Frozen = true;
this.colSupplierName.HeaderText = "店铺名称";
this.colSupplierName.Name = "colSupplierName";
@@ -2821,8 +2885,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colProductName
//
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductName.DefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductName.DefaultCellStyle = dataGridViewCellStyle6;
this.colProductName.HeaderText = "商品标题";
this.colProductName.Name = "colProductName";
this.colProductName.ReadOnly = true;
@@ -2830,8 +2894,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colProductCat
//
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductCat.DefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductCat.DefaultCellStyle = dataGridViewCellStyle7;
this.colProductCat.HeaderText = "商品类目";
this.colProductCat.Name = "colProductCat";
this.colProductCat.ReadOnly = true;
@@ -2886,8 +2950,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colAddTime
//
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle16;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle8;
this.colAddTime.HeaderText = "上传时间";
this.colAddTime.Name = "colAddTime";
this.colAddTime.ReadOnly = true;
@@ -2915,8 +2979,8 @@ namespace TemuKJD.WXForms.ProductForms
//
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
this.splitContainer4.Size = new System.Drawing.Size(1684, 26);
this.splitContainer4.SplitterDistance = 993;
this.splitContainer4.Size = new System.Drawing.Size(1710, 26);
this.splitContainer4.SplitterDistance = 1019;
this.splitContainer4.TabIndex = 3;
//
// statusBar
@@ -2927,7 +2991,7 @@ namespace TemuKJD.WXForms.ProductForms
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(993, 26);
this.statusBar.Size = new System.Drawing.Size(1019, 26);
this.statusBar.TabIndex = 2;
//
// btnClear
@@ -2980,21 +3044,11 @@ namespace TemuKJD.WXForms.ProductForms
this.panelEx1.Text = "停止当前操作";
this.panelEx1.Visible = false;
//
// chkUseRecommand
//
this.chkUseRecommand.AutoSize = true;
this.chkUseRecommand.Location = new System.Drawing.Point(422, 28);
this.chkUseRecommand.Name = "chkUseRecommand";
this.chkUseRecommand.Size = new System.Drawing.Size(123, 21);
this.chkUseRecommand.TabIndex = 907;
this.chkUseRecommand.Text = "使用推荐属性数值";
this.chkUseRecommand.UseVisualStyleBackColor = true;
//
// WXDBProdUploadForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1684, 641);
this.ClientSize = new System.Drawing.Size(1710, 641);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.KeyPreview = true;
@@ -3105,7 +3159,7 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtMinPrice;
private System.Windows.Forms.Label label8;
private UserComponent.UcCheckBox chkSameSpecPrice;
private UserComponent.UcCheckBox chkSameSpecPriceUp;
private System.Windows.Forms.ComboBox cmbSourceType;
private System.Windows.Forms.Label lblSourceType;
private System.Windows.Forms.ComboBox cmbWxSafe;
@@ -3245,5 +3299,9 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.TextBox txtRandomFissionProductCount;
private UserComponent.UcCheckBox chkRandomFissionProduct;
private UserComponent.UcCheckBox chkUseRecommand;
private System.Windows.Forms.TextBox txtMaxPrice;
private System.Windows.Forms.Label label39;
private UserComponent.UcCheckBox chkSameSpecPriceDown;
private UserComponent.UcCheckBox chkLowestPriceSku;
}
}
@@ -186,9 +186,12 @@ namespace TemuKJD.WXForms.ProductForms
this.txtPreDays.TextChanged -= txtPreDays_TextChanged;
this.txtReplaceText.TextChanged -= txtReplaceText_TextChanged;
this.txtMinPrice.TextChanged -= txtMinPrice_TextChanged;
this.txtMaxPrice.TextChanged -= txtMaxPrice_TextChanged;
this.txtWaitSeconds.TextChanged -= txtWaitSeconds_TextChanged;
this.chkHighestPriceSku.CheckedChanged -= chkHighestPriceSku_CheckedChanged;
this.chkSameSpecPrice.CheckedChanged -= chkSameSpecPrice_CheckedChanged;
this.chkLowestPriceSku.CheckedChanged -= chkLowestPriceSku_CheckedChanged;
this.chkSameSpecPriceUp.CheckedChanged -= chkSameSpecPriceUp_CheckedChanged;
this.chkSameSpecPriceDown.CheckedChanged -= chkSameSpecPriceDown_CheckedChanged;
this.chkSkipUploaded.CheckedChanged -= chkSkipUploaded_CheckedChanged;
this.chkUpDraft.CheckedChanged -= chkUpDraft_CheckedChanged;
this.chkPreSale.CheckedChanged -= chkPreSale_CheckedChanged;
@@ -204,7 +207,9 @@ namespace TemuKJD.WXForms.ProductForms
this.txtMinPrice.Text = wxUploadRule.SkuMinPrice.ParseToString();
this.txtWaitSeconds.Text = wxUploadRule.WaitSeconds.ParseToString();
this.chkHighestPriceSku.Checked = wxUploadRule.OnlyHighestPriceSku.ParseToBool();
this.chkSameSpecPrice.Checked = wxUploadRule.SameSpecSamePrice.ParseToBool();
this.chkLowestPriceSku.Checked = wxUploadRule.OnlyLowestPriceSku.ParseToBool();
this.chkSameSpecPriceUp.Checked = wxUploadRule.SameSpecSamePriceUp.ParseToBool();
this.chkSameSpecPriceDown.Checked = wxUploadRule.SameSpecSamePriceDown.ParseToBool();
this.chkSkipUploaded.Checked = wxUploadRule.SkipUploaded.ParseToBool();
this.chkUpDraft.Checked = wxUploadRule.UpDraft.ParseToBool();
this.chkPreSale.Checked = wxUploadRule.IsPreSale.ParseToBool();
@@ -223,7 +228,9 @@ namespace TemuKJD.WXForms.ProductForms
this.txtMinPrice.TextChanged += txtMinPrice_TextChanged;
this.txtWaitSeconds.TextChanged += txtWaitSeconds_TextChanged;
this.chkHighestPriceSku.CheckedChanged += chkHighestPriceSku_CheckedChanged;
this.chkSameSpecPrice.CheckedChanged += chkSameSpecPrice_CheckedChanged;
this.chkLowestPriceSku.CheckedChanged += chkLowestPriceSku_CheckedChanged;
this.chkSameSpecPriceUp.CheckedChanged += chkSameSpecPriceUp_CheckedChanged;
this.chkSameSpecPriceDown.CheckedChanged += chkSameSpecPriceDown_CheckedChanged;
this.chkSkipUploaded.CheckedChanged += chkSkipUploaded_CheckedChanged;
this.chkUpDraft.CheckedChanged += chkUpDraft_CheckedChanged;
this.chkPreSale.CheckedChanged += chkPreSale_CheckedChanged;
@@ -1254,9 +1261,15 @@ namespace TemuKJD.WXForms.ProductForms
if (result.Contains("今日提审次数已用尽,请明日再试") || result.Contains("如需上架请先缴纳足额保证金") || result.Contains("在架商品数已达到上限") ||
result.Contains("提审次数已达上限") || result.Contains("拥金上货失败:需要开通优选联盟") || result.Contains("本店铺近期提审失败比例较高,已被限"))
{
var shopRow = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
if (shopRow != null)
Invoke(new Action(() => { shopRow.Cells["colSelect"].Value = false; }));
shop.upLimitRetryCount++;
if (shop.upLimitRetryCount > 3)
{
shop.upLimitRetryCount = 0;
var shopRow = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
if (shopRow != null)
Invoke(new Action(() => { shopRow.Cells["colSelect"].Value = false; }));
}
}
// 图片重复的,修改图片缓存为空再传一次
if (result.Contains("10020225") || result.Contains("10020226"))
@@ -1828,7 +1841,8 @@ namespace TemuKJD.WXForms.ProductForms
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品数据初始化失败" + ex.Message + "\"}";
}
}
if (chkSameSpecPrice.Checked)
// 同颜色规格向上浮动同价格
if (chkSameSpecPriceUp.Checked)
{
var priceTextLst = dbProd.price_text.Split('-');
if (priceTextLst.Length != 2 || priceTextLst[0] != priceTextLst[1])
@@ -1865,6 +1879,45 @@ namespace TemuKJD.WXForms.ProductForms
}
}
}
// 同颜色规格向下浮动同价格
if (chkSameSpecPriceDown.Checked)
{
var priceTextLst = dbProd.price_text.Split('-');
if (priceTextLst.Length != 2 || priceTextLst[0] != priceTextLst[1])
{
Dictionary<string, int> specPriceDic = new Dictionary<string, int>();
Dictionary<string, int> specMultiPriceDic = new Dictionary<string, int>();
var skuJArr = prodJObj["detail"]["sku"] as JArray;
try
{
// 计算主spec的最低价
foreach (var skuJObj in skuJArr)
{
var specJArr = skuJObj["spec"] as JArray;
if (!specPriceDic.ContainsKey(specJArr[0]["spec_name"].ParseToString()) || skuJObj["price"].ParseToInt() < specPriceDic[specJArr[0]["spec_name"].ParseToString()])
{
specPriceDic[specJArr[0]["spec_name"].ParseToString()] = skuJObj["price"].ParseToInt();
}
if (!specMultiPriceDic.ContainsKey(specJArr[0]["spec_name"].ParseToString()) || skuJObj["multi_price"].ParseToInt() < specMultiPriceDic[specJArr[0]["spec_name"].ParseToString()])
{
specMultiPriceDic[specJArr[0]["spec_name"].ParseToString()] = skuJObj["multi_price"].ParseToInt();
}
}
// 统一按最低价设置
foreach (var skuJObj in skuJArr)
{
var specJArr = skuJObj["spec"] as JArray;
skuJObj["price"] = specPriceDic[specJArr[0]["spec_name"].ParseToString()];
skuJObj["multi_price"] = specMultiPriceDic[specJArr[0]["spec_name"].ParseToString()];
}
}
catch (Exception ex)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品数据初始化失败" + ex.Message + "\"}";
}
}
}
// 只保留最高价
if (chkHighestPriceSku.Checked)
{
int price = 0;
@@ -1901,6 +1954,43 @@ namespace TemuKJD.WXForms.ProductForms
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品数据初始化失败" + ex.Message + "\"}";
}
}
// 只保留最低价
if (chkLowestPriceSku.Checked)
{
int price = 99999999;
var skuJArr = prodJObj["detail"]["sku"] as JArray;
try
{
// 计算主spec的最低价
foreach (var skuJObj in skuJArr)
{
if (price > skuJObj["multi_price"].ParseToInt())
price = skuJObj["multi_price"].ParseToInt();
}
var product_json_tmp = JsonHelper.SerializeObject(prodJObj);
// 移除第一组所有sku
skuJArr.RemoveAll();
// 序列化第二组,从组中挑选符合价格条件的sku往第一组内填写
var prodJObj2 = JObject.Parse(product_json_tmp);
var skuJArr2 = prodJObj2["detail"]["sku"] as JArray;
foreach (var skuJObj2 in skuJArr2)
{
if (skuJObj2["multi_price"].ParseToInt() <= price)
skuJArr.Add(skuJObj2);
}
if (skuJArr.Count == 0)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品sku差价不满足上货条件,跳过\"}";
}
}
catch (Exception ex)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品数据初始化失败" + ex.Message + "\"}";
}
}
// 过滤低价sku,如果所有sku都不达标,跳过商品
if (!string.IsNullOrEmpty(txtMinPrice.Text))
{
@@ -1915,11 +2005,11 @@ namespace TemuKJD.WXForms.ProductForms
var skuJArr2 = prodJObj2["detail"]["sku"] as JArray;
foreach (var skuJObj2 in skuJArr2)
{
var limitPrice = this.txtMinPrice.Text.Trim().ParseToDecimal() * 100;
var limitMinPrice = this.txtMinPrice.Text.Trim().ParseToDecimal() * 100;
// 供应商价加价10%(最低1元)赚取差价 先加价后过滤,过滤条件也要相应增加10%
//if (dbProd.product_get_type_text == "厂商直采")
// limitPrice += Math.Max(100m, limitPrice * 0.1m);
if (skuJObj2["multi_price"].ParseToInt() >= limitPrice)
if (skuJObj2["multi_price"].ParseToInt() >= limitMinPrice)
skuJArr.Add(skuJObj2);
}
if (skuJArr.Count == 0)
@@ -1927,6 +2017,33 @@ namespace TemuKJD.WXForms.ProductForms
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品sku价格不满足上货条件,跳过\"}";
}
}
// 过滤高价sku,如果所有sku都不达标,跳过商品
if (!string.IsNullOrEmpty(txtMaxPrice.Text))
{
var product_json_tmp = JsonHelper.SerializeObject(prodJObj);
// 移除第一组所有sku
var skuJArr = prodJObj["detail"]["sku"] as JArray;
skuJArr.RemoveAll();
// 序列化第二组,从组中挑选符合价格条件的sku往第一组内填写
var prodJObj2 = JObject.Parse(product_json_tmp);
var skuJArr2 = prodJObj2["detail"]["sku"] as JArray;
foreach (var skuJObj2 in skuJArr2)
{
var limitMaxPrice = this.txtMaxPrice.Text.Trim().ParseToDecimal() * 100;
// 供应商价加价10%(最低1元)赚取差价 先加价后过滤,过滤条件也要相应增加10%
//if (dbProd.product_get_type_text == "厂商直采")
// limitPrice += Math.Max(100m, limitPrice * 0.1m);
if (skuJObj2["multi_price"].ParseToInt() <= limitMaxPrice)
skuJArr.Add(skuJObj2);
}
if (skuJArr.Count == 0)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品sku价格不满足上货条件,跳过\"}";
}
}
dbProd.product_json = JsonHelper.SerializeObject(prodJObj);
}
catch (Exception ex)
@@ -5937,6 +6054,12 @@ namespace TemuKJD.WXForms.ProductForms
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
private void txtMaxPrice_TextChanged(object sender, EventArgs e)
{
wxUploadRule.SkuMaxPrice = txtMaxPrice.Text.Trim().ParseToInt();
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
private void txtWaitSeconds_TextChanged(object sender, EventArgs e)
{
wxUploadRule.WaitSeconds = txtWaitSeconds.Text.Trim().ParseToInt();
@@ -5946,12 +6069,30 @@ namespace TemuKJD.WXForms.ProductForms
private void chkHighestPriceSku_CheckedChanged(object sender, EventArgs e)
{
wxUploadRule.OnlyHighestPriceSku = chkHighestPriceSku.Checked;
if (chkHighestPriceSku.Checked)
chkLowestPriceSku.Checked = false;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
private void chkLowestPriceSku_CheckedChanged(object sender, EventArgs e)
{
wxUploadRule.OnlyLowestPriceSku = chkLowestPriceSku.Checked;
if (chkLowestPriceSku.Checked)
chkHighestPriceSku.Checked = false;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
private void chkSameSpecPrice_CheckedChanged(object sender, EventArgs e)
private void chkSameSpecPriceUp_CheckedChanged(object sender, EventArgs e)
{
wxUploadRule.SameSpecSamePrice = chkSameSpecPrice.Checked;
wxUploadRule.SameSpecSamePriceUp = chkSameSpecPriceUp.Checked;
if (chkSameSpecPriceUp.Checked)
chkSameSpecPriceDown.Checked = false;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
private void chkSameSpecPriceDown_CheckedChanged(object sender, EventArgs e)
{
wxUploadRule.SameSpecSamePriceDown = chkSameSpecPriceDown.Checked;
if (chkSameSpecPriceDown.Checked)
chkSameSpecPriceUp.Checked = false;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
@@ -6372,6 +6513,11 @@ namespace TemuKJD.WXForms.ProductForms
fillWxCate();
}
}
private void chkSameSpecPrice_CheckedChanged(object sender, EventArgs e)
{
}
}
public class WXUpload
@@ -6823,11 +6969,14 @@ Content-Type: application/octet-stream
public string FilterWords { get; set; } = "顶级,之王,二手,亏本,冲量,白菜价,跳楼价,xx,xxx,最大,最小,低价,降价,成本,赔钱,甩卖,真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
public int SkuMinPrice { get; set; } = 10;
public int SkuMaxPrice { get; set; } = 9999;
public int WaitSeconds { get; set; } = 10;
public bool OnlyHighestPriceSku { get; set; } = true;
public bool SameSpecSamePrice { get; set; } = true;
public bool OnlyHighestPriceSku { get; set; } = false;
public bool OnlyLowestPriceSku { get; set; } = false;
public bool SameSpecSamePriceUp { get; set; } = false;
public bool SameSpecSamePriceDown { get; set; } = false;
public bool SkipUploaded { get; set; } = true;
public bool UpDraft { get; set; } = false;
public bool IsPreSale { get; set; } = false;
+57 -39
View File
@@ -55,6 +55,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearList = new DevComponents.DotNetBar.PanelEx();
this.btnDown = new DevComponents.DotNetBar.PanelEx();
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbChangePriceType = new System.Windows.Forms.ComboBox();
this.btnRestorePrice = new DevComponents.DotNetBar.PanelEx();
this.label7 = new System.Windows.Forms.Label();
this.txtPrice = new System.Windows.Forms.TextBox();
@@ -71,12 +72,9 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearDgv = new DevComponents.DotNetBar.PanelEx();
this.btnSetPreSale = new DevComponents.DotNetBar.PanelEx();
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.label9 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.chkSearchPromotionLink = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.cmbOnSaleStatus = new System.Windows.Forms.ComboBox();
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
this.chkProdTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
this.cmbPreType = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
@@ -85,6 +83,7 @@ namespace TemuKJD.WXForms.ProductForms
this.label2 = new System.Windows.Forms.Label();
this.btnClearFilter = new DevComponents.DotNetBar.PanelEx();
this.btnSearchProd = new DevComponents.DotNetBar.PanelEx();
this.chkProdTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
this.label24 = new System.Windows.Forms.Label();
@@ -102,9 +101,11 @@ namespace TemuKJD.WXForms.ProductForms
this.label17 = new System.Windows.Forms.Label();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.label9 = new System.Windows.Forms.Label();
this.pbLoadingShop = new System.Windows.Forms.PictureBox();
this.txtPageBegin = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
this.txtIdFilter = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.lblIdFilter = new System.Windows.Forms.Label();
@@ -454,6 +455,7 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
this.ucGroupBoxEx2.Controls.Add(this.cmbChangePriceType);
this.ucGroupBoxEx2.Controls.Add(this.btnRestorePrice);
this.ucGroupBoxEx2.Controls.Add(this.label7);
this.ucGroupBoxEx2.Controls.Add(this.txtPrice);
@@ -476,13 +478,28 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx2.TabStop = false;
this.ucGroupBoxEx2.Text = "设置预售/价格";
//
// cmbChangePriceType
//
this.cmbChangePriceType.FormattingEnabled = true;
this.cmbChangePriceType.Items.AddRange(new object[] {
"指定价格",
"原价×",
"原价÷",
"原价+",
"原价−"});
this.cmbChangePriceType.Location = new System.Drawing.Point(107, 128);
this.cmbChangePriceType.Name = "cmbChangePriceType";
this.cmbChangePriceType.Size = new System.Drawing.Size(74, 25);
this.cmbChangePriceType.TabIndex = 870;
this.cmbChangePriceType.Text = "固定价格";
//
// btnRestorePrice
//
this.btnRestorePrice.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnRestorePrice.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRestorePrice.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRestorePrice.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRestorePrice.Location = new System.Drawing.Point(242, 129);
this.btnRestorePrice.Location = new System.Drawing.Point(309, 129);
this.btnRestorePrice.Name = "btnRestorePrice";
this.btnRestorePrice.Size = new System.Drawing.Size(84, 23);
this.btnRestorePrice.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -513,7 +530,7 @@ namespace TemuKJD.WXForms.ProductForms
//
// txtPrice
//
this.txtPrice.Location = new System.Drawing.Point(113, 129);
this.txtPrice.Location = new System.Drawing.Point(184, 129);
this.txtPrice.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtPrice.Name = "txtPrice";
this.txtPrice.Size = new System.Drawing.Size(33, 23);
@@ -525,7 +542,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnSetPrice.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSetPrice.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSetPrice.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetPrice.Location = new System.Drawing.Point(152, 129);
this.btnSetPrice.Location = new System.Drawing.Point(221, 129);
this.btnSetPrice.Name = "btnSetPrice";
this.btnSetPrice.Size = new System.Drawing.Size(84, 23);
this.btnSetPrice.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -731,17 +748,6 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx4.TabStop = false;
this.ucGroupBoxEx4.Text = "商品查询";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(17, 144);
this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(32, 17);
this.label9.TabIndex = 988;
this.label9.Text = "结束";
this.label9.Visible = false;
//
// label5
//
this.label5.AutoSize = true;
@@ -782,28 +788,6 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbOnSaleStatus.SelectedIndexChanged += new System.EventHandler(this.cmbOnSaleStatus_SelectedIndexChanged);
this.cmbOnSaleStatus.TextChanged += new System.EventHandler(this.cmbOnSaleStatus_TextChanged);
//
// dtpEndTime
//
this.dtpEndTime.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEndTime.Location = new System.Drawing.Point(49, 141);
this.dtpEndTime.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpEndTime.Name = "dtpEndTime";
this.dtpEndTime.Size = new System.Drawing.Size(134, 23);
this.dtpEndTime.TabIndex = 986;
this.dtpEndTime.Visible = false;
//
// chkProdTime
//
this.chkProdTime.AutoSize = true;
this.chkProdTime.Location = new System.Drawing.Point(211, 59);
this.chkProdTime.Name = "chkProdTime";
this.chkProdTime.Size = new System.Drawing.Size(60, 21);
this.chkProdTime.TabIndex = 837;
this.chkProdTime.Text = "时间>";
this.chkProdTime.UseVisualStyleBackColor = true;
this.chkProdTime.CheckedChanged += new System.EventHandler(this.chkProdTime_CheckedChanged);
//
// dtpStartTime
//
this.dtpStartTime.CustomFormat = "yyyy-MM-dd HH:mm";
@@ -936,6 +920,17 @@ namespace TemuKJD.WXForms.ProductForms
this.btnSearchProd.Text = "商品查询";
this.btnSearchProd.Click += new System.EventHandler(this.btnSearchProd_Click);
//
// chkProdTime
//
this.chkProdTime.AutoSize = true;
this.chkProdTime.Location = new System.Drawing.Point(211, 59);
this.chkProdTime.Name = "chkProdTime";
this.chkProdTime.Size = new System.Drawing.Size(60, 21);
this.chkProdTime.TabIndex = 837;
this.chkProdTime.Text = "时间>";
this.chkProdTime.UseVisualStyleBackColor = true;
this.chkProdTime.CheckedChanged += new System.EventHandler(this.chkProdTime_CheckedChanged);
//
// ucGroupBoxEx1
//
this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -1273,6 +1268,17 @@ namespace TemuKJD.WXForms.ProductForms
this.splitContainer2.SplitterDistance = 350;
this.splitContainer2.TabIndex = 0;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(17, 144);
this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(32, 17);
this.label9.TabIndex = 988;
this.label9.Text = "结束";
this.label9.Visible = false;
//
// pbLoadingShop
//
this.pbLoadingShop.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -1309,6 +1315,17 @@ namespace TemuKJD.WXForms.ProductForms
this.label1.Text = "开始页";
this.label1.Visible = false;
//
// dtpEndTime
//
this.dtpEndTime.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEndTime.Location = new System.Drawing.Point(49, 141);
this.dtpEndTime.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpEndTime.Name = "dtpEndTime";
this.dtpEndTime.Size = new System.Drawing.Size(134, 23);
this.dtpEndTime.TabIndex = 986;
this.dtpEndTime.Visible = false;
//
// txtIdFilter
//
this.txtIdFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
@@ -2020,5 +2037,6 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.DateTimePicker dtpStartTime;
private System.Windows.Forms.DateTimePicker dtpEndTime;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.ComboBox cmbChangePriceType;
}
}
@@ -1753,7 +1753,16 @@ namespace TemuKJD.WXForms.ProductForms
return;
}
var downProdRst = changePrice(shop, prodId, skuPricesStr, (newPrice * 100).ParseToInt());
var ChangePriceType = "固定价格";
Invoke(new Action(() =>
{
ChangePriceType = cmbChangePriceType.Text.Trim();
// 提前保存防止修改时出错/闪退导致保存失败。
dicProductBasePrice[prodId] = skuPricesStr;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_product_base_price", dicProductBasePrice);
}));
var downProdRst = changePrice(shop, prodId, skuPricesStr, (newPrice * 100).ParseToInt(), false, ChangePriceType);
Thread.Sleep(Randomx.GetId(200, 500));
if (!downProdRst.Contains("\"code\":0"))
{
@@ -1783,10 +1792,46 @@ namespace TemuKJD.WXForms.ProductForms
{
Invoke(new Action(() =>
{
dicProductBasePrice[prodId] = skuPricesStr;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_product_base_price", dicProductBasePrice);
row.Cells["colOpResult"].Value = "修改价格成功";
row.Cells["colPrice"].Value = newPrice;
if (ChangePriceType == "原价×")
{
var priceArr = JArray.Parse(skuPricesStr);
var oldLowPrice = priceArr.Min(p => p["price"].ParseToInt());
var oldHighPrice = priceArr.Max(p => p["price"].ParseToInt());
var lowPrice = (oldLowPrice * newPrice).ParseToInt() * 0.01m;
var highPrice = (oldHighPrice * newPrice).ParseToInt() * 0.01m;
row.Cells["colPrice"].Value = "" + lowPrice + " - " + highPrice;
}
else if (ChangePriceType == "原价÷")
{
var priceArr = JArray.Parse(skuPricesStr);
var oldLowPrice = priceArr.Min(p => p["price"].ParseToInt());
var oldHighPrice = priceArr.Max(p => p["price"].ParseToInt());
var lowPrice = (oldLowPrice / newPrice).ParseToInt() * 0.01m;
var highPrice = (oldHighPrice / newPrice).ParseToInt() * 0.01m;
row.Cells["colPrice"].Value = "" + lowPrice + " - " + highPrice;
}
else if (ChangePriceType == "原价+")
{
var priceArr = JArray.Parse(skuPricesStr);
var oldLowPrice = priceArr.Min(p => p["price"].ParseToInt());
var oldHighPrice = priceArr.Max(p => p["price"].ParseToInt());
var lowPrice = (oldLowPrice + (newPrice * 100).ParseToInt()) * 0.01m;
var highPrice = (oldHighPrice + (newPrice * 100).ParseToInt()) * 0.01m;
row.Cells["colPrice"].Value = "" + lowPrice + " - " + highPrice;
}
else if (ChangePriceType == "原价−")
{
var priceArr = JArray.Parse(skuPricesStr);
var oldLowPrice = priceArr.Min(p => p["price"].ParseToInt());
var oldHighPrice = priceArr.Max(p => p["price"].ParseToInt());
var lowPrice = (oldLowPrice - (newPrice * 100).ParseToInt()) * 0.01m;
var highPrice = (oldHighPrice - (newPrice * 100).ParseToInt()) * 0.01m;
row.Cells["colPrice"].Value = "" + lowPrice + " - " + highPrice;
}
else
row.Cells["colPrice"].Value = newPrice;
}));
}
});
@@ -1814,7 +1859,7 @@ namespace TemuKJD.WXForms.ProductForms
/// <param name="newPrice">新价格 单位分</param>
/// <param name="isRestore">是否是还原价格</param>
/// <returns></returns>
private string changePrice(ShopLoginInfo shop, string spuId, string skuPrices, int newPrice, bool isRestore = false)
private string changePrice(ShopLoginInfo shop, string spuId, string skuPrices, int newPrice, bool isRestore = false, string newPriceType = "固定价格")
{
try
{
@@ -1829,7 +1874,18 @@ namespace TemuKJD.WXForms.ProductForms
if (isRestore)
obj["salePrice"] = sku["price"].ParseToInt();
else
obj["salePrice"] = newPrice;
{
if (newPriceType == "原价×")
obj["salePrice"] = sku["price"].ParseToInt() * newPrice / 100;
else if (newPriceType == "原价÷")
obj["salePrice"] = sku["price"].ParseToInt() * 100 / newPrice;
else if (newPriceType == "原价+")
obj["salePrice"] = sku["price"].ParseToInt() + newPrice;
else if (newPriceType == "原价−")
obj["salePrice"] = sku["price"].ParseToInt() - newPrice;
else
obj["salePrice"] = newPrice;
}
skuArr.Add(obj);
}
changePriceObj["skuList"] = skuArr;
@@ -169,13 +169,21 @@ namespace TemuKJD.WXForms.ProductForms
this.dgvDbProduct.Rows.Clear();
lstTemuDbProduct.Clear();
}
bool isNotCount = true;
if (BaseClass.UserName == "13313717678" || BaseClass.ParentUserName == "13313717678")
{
ucSplitPage1.lblTotal.Visible = true;
isNotCount = false;
}
Task.Run(() =>
{
int pageCount;
int pageSize = 100;
decimal seconds;
Invoke(new Action(() => { pageSize = this.ucSplitPage1.PageSize; }));
var list = GetProductList(out pageCount, out seconds, page, pageSize);
var list = GetProductList(out pageCount, out seconds, page, pageSize, isNotCount);
lstTemuDbProduct.AddRange(list);
this.ucSplitPage1.TotalPage = pageCount;
@@ -485,8 +493,6 @@ namespace TemuKJD.WXForms.ProductForms
data += "&is_not_count=true";
}));
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))