1拼多多图片上传功能优化 2temu随机sku前后特殊字符功能
This commit is contained in:
1 parent
51e1773793
commit
2388ea8ae9
10 files changed
+309
-163
No files matched your search
+31
-16
@@ -148,6 +148,7 @@
|
||||
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.chkSkuRandomLetter = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -809,7 +810,7 @@
|
||||
"全部",
|
||||
"重上",
|
||||
"已买"});
|
||||
this.cmbUserNotes.Location = new System.Drawing.Point(1026, 8);
|
||||
this.cmbUserNotes.Location = new System.Drawing.Point(1026, 5);
|
||||
this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbUserNotes.Name = "cmbUserNotes";
|
||||
this.cmbUserNotes.Size = new System.Drawing.Size(62, 25);
|
||||
@@ -826,7 +827,7 @@
|
||||
"核价成功",
|
||||
"核价成功(重复)",
|
||||
"重复"});
|
||||
this.cmbNotes.Location = new System.Drawing.Point(901, 8);
|
||||
this.cmbNotes.Location = new System.Drawing.Point(901, 5);
|
||||
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbNotes.Name = "cmbNotes";
|
||||
this.cmbNotes.Size = new System.Drawing.Size(63, 25);
|
||||
@@ -853,7 +854,7 @@
|
||||
"已上传",
|
||||
"草稿箱",
|
||||
"全部"});
|
||||
this.cmbStatus.Location = new System.Drawing.Point(800, 8);
|
||||
this.cmbStatus.Location = new System.Drawing.Point(800, 5);
|
||||
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbStatus.Name = "cmbStatus";
|
||||
this.cmbStatus.Size = new System.Drawing.Size(63, 25);
|
||||
@@ -868,6 +869,7 @@
|
||||
this.flowLayoutPanel1.Controls.Add(this.txtSkuHeadText);
|
||||
this.flowLayoutPanel1.Controls.Add(this.label10);
|
||||
this.flowLayoutPanel1.Controls.Add(this.txtSkuEndText);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkSkuRandomLetter);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkFission);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkHeadWords);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkEndWords);
|
||||
@@ -899,14 +901,14 @@
|
||||
this.txtSkuHeadText.Location = new System.Drawing.Point(55, 3);
|
||||
this.txtSkuHeadText.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSkuHeadText.Name = "txtSkuHeadText";
|
||||
this.txtSkuHeadText.Size = new System.Drawing.Size(85, 23);
|
||||
this.txtSkuHeadText.Size = new System.Drawing.Size(65, 23);
|
||||
this.txtSkuHeadText.TabIndex = 452;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(143, 6);
|
||||
this.label10.Location = new System.Drawing.Point(123, 6);
|
||||
this.label10.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(52, 17);
|
||||
@@ -916,18 +918,18 @@
|
||||
// txtSkuEndText
|
||||
//
|
||||
this.txtSkuEndText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSkuEndText.Location = new System.Drawing.Point(195, 3);
|
||||
this.txtSkuEndText.Location = new System.Drawing.Point(175, 3);
|
||||
this.txtSkuEndText.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSkuEndText.Name = "txtSkuEndText";
|
||||
this.txtSkuEndText.Size = new System.Drawing.Size(85, 23);
|
||||
this.txtSkuEndText.Size = new System.Drawing.Size(65, 23);
|
||||
this.txtSkuEndText.TabIndex = 454;
|
||||
//
|
||||
// chkFission
|
||||
//
|
||||
this.chkFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkFission.AutoSize = true;
|
||||
this.chkFission.Location = new System.Drawing.Point(286, 4);
|
||||
this.chkFission.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkFission.Location = new System.Drawing.Point(342, 4);
|
||||
this.chkFission.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkFission.Name = "chkFission";
|
||||
this.chkFission.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkFission.TabIndex = 475;
|
||||
@@ -938,7 +940,7 @@
|
||||
//
|
||||
this.chkHeadWords.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkHeadWords.AutoSize = true;
|
||||
this.chkHeadWords.Location = new System.Drawing.Point(361, 4);
|
||||
this.chkHeadWords.Location = new System.Drawing.Point(417, 4);
|
||||
this.chkHeadWords.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkHeadWords.Name = "chkHeadWords";
|
||||
this.chkHeadWords.Size = new System.Drawing.Size(75, 21);
|
||||
@@ -950,7 +952,7 @@
|
||||
//
|
||||
this.chkEndWords.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkEndWords.AutoSize = true;
|
||||
this.chkEndWords.Location = new System.Drawing.Point(436, 4);
|
||||
this.chkEndWords.Location = new System.Drawing.Point(492, 4);
|
||||
this.chkEndWords.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkEndWords.Name = "chkEndWords";
|
||||
this.chkEndWords.Size = new System.Drawing.Size(75, 21);
|
||||
@@ -964,7 +966,7 @@
|
||||
this.chkDeleteLowPriceSku.AutoSize = true;
|
||||
this.chkDeleteLowPriceSku.Checked = true;
|
||||
this.chkDeleteLowPriceSku.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkDeleteLowPriceSku.Location = new System.Drawing.Point(511, 4);
|
||||
this.chkDeleteLowPriceSku.Location = new System.Drawing.Point(567, 4);
|
||||
this.chkDeleteLowPriceSku.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkDeleteLowPriceSku.Name = "chkDeleteLowPriceSku";
|
||||
this.chkDeleteLowPriceSku.Size = new System.Drawing.Size(95, 21);
|
||||
@@ -976,7 +978,7 @@
|
||||
//
|
||||
this.chkRandomSkuOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkRandomSkuOrder.AutoSize = true;
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(606, 4);
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(662, 4);
|
||||
this.chkRandomSkuOrder.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkRandomSkuOrder.Name = "chkRandomSkuOrder";
|
||||
this.chkRandomSkuOrder.Size = new System.Drawing.Size(95, 21);
|
||||
@@ -987,7 +989,7 @@
|
||||
// chkSkuRandomPrice
|
||||
//
|
||||
this.chkSkuRandomPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(701, 4);
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(757, 4);
|
||||
this.chkSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkSkuRandomPrice.Name = "chkSkuRandomPrice";
|
||||
this.chkSkuRandomPrice.Size = new System.Drawing.Size(110, 21);
|
||||
@@ -1003,7 +1005,7 @@
|
||||
0,
|
||||
0,
|
||||
131072});
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(811, 3);
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(867, 3);
|
||||
this.numSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numSkuRandomPrice.Name = "numSkuRandomPrice";
|
||||
this.numSkuRandomPrice.Size = new System.Drawing.Size(44, 23);
|
||||
@@ -1018,7 +1020,7 @@
|
||||
//
|
||||
this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(855, 6);
|
||||
this.label11.Location = new System.Drawing.Point(911, 6);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -1672,6 +1674,18 @@
|
||||
this.statusBar.Size = new System.Drawing.Size(1534, 25);
|
||||
this.statusBar.TabIndex = 5;
|
||||
//
|
||||
// chkSkuRandomLetter
|
||||
//
|
||||
this.chkSkuRandomLetter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkuRandomLetter.AutoSize = true;
|
||||
this.chkSkuRandomLetter.Location = new System.Drawing.Point(246, 4);
|
||||
this.chkSkuRandomLetter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkSkuRandomLetter.Name = "chkSkuRandomLetter";
|
||||
this.chkSkuRandomLetter.Size = new System.Drawing.Size(96, 21);
|
||||
this.chkSkuRandomLetter.TabIndex = 477;
|
||||
this.chkSkuRandomLetter.Text = "Sku随机字符";
|
||||
this.chkSkuRandomLetter.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ProductThirdSelectListManageForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1830,5 +1844,6 @@
|
||||
private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn5;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colToPorductPage;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colToDraftPage;
|
||||
private UserComponent.UcCheckBox chkSkuRandomLetter;
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
{
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
|
||||
List<string> skuRandomLetterArr = new List<string> { "~", "#", "¥", "%", "&", "*", "(", ")", "(", ")", "+", "-", "_", "=", "【", "】", "·", "|", "《", "》" };
|
||||
|
||||
List<TemuDBProductSelect> lstAdminTemuDBProductSelect = new List<TemuDBProductSelect>();
|
||||
List<ShopLoginInfo> shopLst = new List<ShopLoginInfo>();
|
||||
|
||||
@@ -1206,8 +1208,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
"\"errMsg\":\"上传停止\"}";
|
||||
}
|
||||
|
||||
//var speck = skuInfo.productSkuSpecList.FirstOrDefault(s => s.parentSpecName == "颜色");
|
||||
var speck = skuInfo.productSkuSpecList.FirstOrDefault();
|
||||
var speck = skuInfo.productSkuSpecList.FirstOrDefault(s => s.parentSpecName == "颜色");
|
||||
if (speck == null)
|
||||
speck = skuInfo.productSkuSpecList.FirstOrDefault();
|
||||
if (speck != null)
|
||||
{
|
||||
skuNameDic[speck.specName] = skuHead[Randomx.GetId(skuHead.Count)] +
|
||||
@@ -1215,6 +1218,14 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
else
|
||||
skuNameDic[speck.specName] = speck.specName;
|
||||
|
||||
if (chkSkuRandomLetter.Checked)
|
||||
{
|
||||
//if (Randomx.GetId(2) == 1)
|
||||
skuNameDic[speck.specName] = skuNameDic[speck.specName] + skuRandomLetterArr[Randomx.GetId(skuRandomLetterArr.Count)];
|
||||
//else
|
||||
skuNameDic[speck.specName] = skuRandomLetterArr[Randomx.GetId(skuRandomLetterArr.Count)] + skuNameDic[speck.specName];
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user