1商品上传测试 标题逻辑修改 2商品退货包裹详情获取
This commit is contained in:
1 parent
d7550ae559
commit
16aae6cc86
18 files changed
+1977
-579
No files matched your search
+169
-120
@@ -42,17 +42,13 @@
|
||||
this.btnReFission = new TemuKJD.UserControls.ButtonEx();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.chkShowDel = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkNoSubSa = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.txtShopId = new System.Windows.Forms.TextBox();
|
||||
this.chkUploadProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.cmbStatus = new System.Windows.Forms.ComboBox();
|
||||
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.txtShopName = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.btnSearch = new TemuKJD.UserControls.ButtonEx();
|
||||
this.txtSKC = new System.Windows.Forms.TextBox();
|
||||
this.txtSPU = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
@@ -67,11 +63,18 @@
|
||||
this.txtSkuHeadText = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.txtSkuEndText = new System.Windows.Forms.TextBox();
|
||||
this.chkHeadWords = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkEndWords = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkFission = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkReFissionAllProdName = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkRandomSkuOrder = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkSkuRandomPrice = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.numSkuRandomPrice = new System.Windows.Forms.NumericUpDown();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.btnSearch = new TemuKJD.UserControls.ButtonEx();
|
||||
this.chkNoSubSa = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.chkShowDel = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.btnSetSubSa = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnAdd = new TemuKJD.UserControls.ButtonEx();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
@@ -186,17 +189,13 @@
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tableLayoutPanel1.Controls.Add(this.label6, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkShowDel, 19, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkNoSubSa, 18, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.txtShopId, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkUploadProd, 20, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cmbStatus, 15, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.pnlEmpty, 17, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label7, 2, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label8, 14, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.txtShopName, 3, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label5, 4, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 16, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.txtSKC, 7, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.txtSPU, 5, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label1, 6, 0);
|
||||
@@ -207,67 +206,48 @@
|
||||
this.tableLayoutPanel1.Controls.Add(this.label4, 12, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.txtProdName, 11, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 0, 1);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 5);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 19, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkNoSubSa, 16, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.pnlEmpty, 18, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkShowDel, 17, 0);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 2;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1145, 56);
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1145, 60);
|
||||
this.tableLayoutPanel1.TabIndex = 190;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(3, 5);
|
||||
this.label6.Location = new System.Drawing.Point(3, 7);
|
||||
this.label6.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(44, 17);
|
||||
this.label6.TabIndex = 449;
|
||||
this.label6.Text = "店铺Id";
|
||||
//
|
||||
// chkShowDel
|
||||
//
|
||||
this.chkShowDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkShowDel.AutoSize = true;
|
||||
this.chkShowDel.Location = new System.Drawing.Point(966, 3);
|
||||
this.chkShowDel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkShowDel.Name = "chkShowDel";
|
||||
this.chkShowDel.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkShowDel.TabIndex = 468;
|
||||
this.chkShowDel.Text = "显示删除";
|
||||
this.chkShowDel.UseVisualStyleBackColor = true;
|
||||
this.chkShowDel.CheckedChanged += new System.EventHandler(this.chkShowDel_CheckedChanged);
|
||||
//
|
||||
// chkNoSubSa
|
||||
//
|
||||
this.chkNoSubSa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkNoSubSa.AutoSize = true;
|
||||
this.chkNoSubSa.Location = new System.Drawing.Point(879, 3);
|
||||
this.chkNoSubSa.Margin = new System.Windows.Forms.Padding(4, 0, 0, 0);
|
||||
this.chkNoSubSa.Name = "chkNoSubSa";
|
||||
this.chkNoSubSa.Size = new System.Drawing.Size(87, 21);
|
||||
this.chkNoSubSa.TabIndex = 467;
|
||||
this.chkNoSubSa.Text = "未分配超管";
|
||||
this.chkNoSubSa.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtShopId
|
||||
//
|
||||
this.txtShopId.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtShopId.Location = new System.Drawing.Point(47, 2);
|
||||
this.txtShopId.Location = new System.Drawing.Point(47, 4);
|
||||
this.txtShopId.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtShopId.Name = "txtShopId";
|
||||
this.txtShopId.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtShopId.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtShopId.TabIndex = 448;
|
||||
//
|
||||
// chkUploadProd
|
||||
//
|
||||
this.chkUploadProd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkUploadProd.AutoSize = true;
|
||||
this.chkUploadProd.Location = new System.Drawing.Point(1041, 3);
|
||||
this.chkUploadProd.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkUploadProd.Location = new System.Drawing.Point(1039, 19);
|
||||
this.chkUploadProd.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkUploadProd.Name = "chkUploadProd";
|
||||
this.chkUploadProd.Size = new System.Drawing.Size(104, 21);
|
||||
this.tableLayoutPanel1.SetRowSpan(this.chkUploadProd, 2);
|
||||
this.chkUploadProd.Size = new System.Drawing.Size(106, 21);
|
||||
this.chkUploadProd.TabIndex = 470;
|
||||
this.chkUploadProd.Text = "上传到未发布";
|
||||
this.chkUploadProd.UseVisualStyleBackColor = true;
|
||||
@@ -280,44 +260,18 @@
|
||||
"待上传",
|
||||
"已上传",
|
||||
"全部"});
|
||||
this.cmbStatus.Location = new System.Drawing.Point(702, 4);
|
||||
this.cmbStatus.Location = new System.Drawing.Point(695, 6);
|
||||
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.cmbStatus.Name = "cmbStatus";
|
||||
this.cmbStatus.Size = new System.Drawing.Size(49, 25);
|
||||
this.cmbStatus.Size = new System.Drawing.Size(48, 25);
|
||||
this.cmbStatus.TabIndex = 459;
|
||||
this.cmbStatus.Text = "待上传";
|
||||
//
|
||||
// pnlEmpty
|
||||
//
|
||||
this.pnlEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(817, 3);
|
||||
this.pnlEmpty.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.pnlEmpty.Name = "pnlEmpty";
|
||||
this.pnlEmpty.Size = new System.Drawing.Size(56, 22);
|
||||
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.pnlEmpty.Style.GradientAngle = 90;
|
||||
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.pnlEmpty.TabIndex = 431;
|
||||
this.pnlEmpty.Text = "清空条件";
|
||||
this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(102, 5);
|
||||
this.label7.Location = new System.Drawing.Point(101, 7);
|
||||
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(56, 17);
|
||||
@@ -328,7 +282,7 @@
|
||||
//
|
||||
this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(646, 5);
|
||||
this.label8.Location = new System.Drawing.Point(639, 7);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(56, 17);
|
||||
@@ -338,63 +292,46 @@
|
||||
// txtShopName
|
||||
//
|
||||
this.txtShopName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtShopName.Location = new System.Drawing.Point(158, 2);
|
||||
this.txtShopName.Location = new System.Drawing.Point(157, 4);
|
||||
this.txtShopName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtShopName.Name = "txtShopName";
|
||||
this.txtShopName.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtShopName.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtShopName.TabIndex = 451;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(213, 5);
|
||||
this.label5.Location = new System.Drawing.Point(211, 7);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(31, 17);
|
||||
this.label5.TabIndex = 435;
|
||||
this.label5.Text = "SPU";
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearch.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSearch.Location = new System.Drawing.Point(757, 2);
|
||||
this.btnSearch.Margin = new System.Windows.Forms.Padding(6, 2, 2, 2);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(56, 24);
|
||||
this.btnSearch.TabIndex = 424;
|
||||
this.btnSearch.Text = "搜索";
|
||||
this.btnSearch.UseVisualStyleBackColor = false;
|
||||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// txtSKC
|
||||
//
|
||||
this.txtSKC.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSKC.Location = new System.Drawing.Point(330, 2);
|
||||
this.txtSKC.Location = new System.Drawing.Point(327, 4);
|
||||
this.txtSKC.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSKC.Name = "txtSKC";
|
||||
this.txtSKC.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtSKC.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtSKC.TabIndex = 432;
|
||||
//
|
||||
// txtSPU
|
||||
//
|
||||
this.txtSPU.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSPU.Location = new System.Drawing.Point(244, 2);
|
||||
this.txtSPU.Location = new System.Drawing.Point(242, 4);
|
||||
this.txtSPU.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSPU.Name = "txtSPU";
|
||||
this.txtSPU.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtSPU.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtSPU.TabIndex = 434;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(299, 5);
|
||||
this.label1.Location = new System.Drawing.Point(296, 7);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(31, 17);
|
||||
@@ -405,7 +342,7 @@
|
||||
//
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(385, 5);
|
||||
this.label2.Location = new System.Drawing.Point(381, 7);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(32, 17);
|
||||
@@ -415,26 +352,26 @@
|
||||
// txtCat
|
||||
//
|
||||
this.txtCat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCat.Location = new System.Drawing.Point(417, 2);
|
||||
this.txtCat.Location = new System.Drawing.Point(413, 4);
|
||||
this.txtCat.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtCat.Name = "txtCat";
|
||||
this.txtCat.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtCat.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtCat.TabIndex = 425;
|
||||
//
|
||||
// txtExtCode
|
||||
//
|
||||
this.txtExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtExtCode.Location = new System.Drawing.Point(591, 2);
|
||||
this.txtExtCode.Location = new System.Drawing.Point(585, 4);
|
||||
this.txtExtCode.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtExtCode.Name = "txtExtCode";
|
||||
this.txtExtCode.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtExtCode.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtExtCode.TabIndex = 429;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(472, 5);
|
||||
this.label3.Location = new System.Drawing.Point(467, 7);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(32, 17);
|
||||
@@ -445,7 +382,7 @@
|
||||
//
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(559, 5);
|
||||
this.label4.Location = new System.Drawing.Point(553, 7);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(32, 17);
|
||||
@@ -455,29 +392,32 @@
|
||||
// txtProdName
|
||||
//
|
||||
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProdName.Location = new System.Drawing.Point(504, 2);
|
||||
this.txtProdName.Location = new System.Drawing.Point(499, 4);
|
||||
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtProdName.Name = "txtProdName";
|
||||
this.txtProdName.Size = new System.Drawing.Size(49, 23);
|
||||
this.txtProdName.Size = new System.Drawing.Size(48, 23);
|
||||
this.txtProdName.TabIndex = 427;
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel1, 100);
|
||||
this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel1, 18);
|
||||
this.flowLayoutPanel1.Controls.Add(this.label9);
|
||||
this.flowLayoutPanel1.Controls.Add(this.txtSkuHeadText);
|
||||
this.flowLayoutPanel1.Controls.Add(this.label10);
|
||||
this.flowLayoutPanel1.Controls.Add(this.txtSkuEndText);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkFission);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkHeadWords);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkEndWords);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkReFissionAllProdName);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkRandomSkuOrder);
|
||||
this.flowLayoutPanel1.Controls.Add(this.chkSkuRandomPrice);
|
||||
this.flowLayoutPanel1.Controls.Add(this.numSkuRandomPrice);
|
||||
this.flowLayoutPanel1.Controls.Add(this.label11);
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 28);
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 32);
|
||||
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(1145, 28);
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(909, 28);
|
||||
this.flowLayoutPanel1.TabIndex = 471;
|
||||
//
|
||||
// label9
|
||||
@@ -497,7 +437,7 @@
|
||||
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(156, 23);
|
||||
this.txtSkuHeadText.Size = new System.Drawing.Size(91, 23);
|
||||
this.txtSkuHeadText.TabIndex = 452;
|
||||
this.txtSkuHeadText.TextChanged += new System.EventHandler(this.txtSkuHeadText_TextChanged);
|
||||
//
|
||||
@@ -505,7 +445,7 @@
|
||||
//
|
||||
this.label10.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(214, 6);
|
||||
this.label10.Location = new System.Drawing.Point(149, 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);
|
||||
@@ -515,23 +455,59 @@
|
||||
// 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(266, 3);
|
||||
this.txtSkuEndText.Location = new System.Drawing.Point(201, 3);
|
||||
this.txtSkuEndText.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSkuEndText.Name = "txtSkuEndText";
|
||||
this.txtSkuEndText.Size = new System.Drawing.Size(159, 23);
|
||||
this.txtSkuEndText.Size = new System.Drawing.Size(92, 23);
|
||||
this.txtSkuEndText.TabIndex = 454;
|
||||
this.txtSkuEndText.TextChanged += new System.EventHandler(this.txtSkuEndText_TextChanged);
|
||||
//
|
||||
// chkHeadWords
|
||||
//
|
||||
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(380, 4);
|
||||
this.chkHeadWords.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkHeadWords.Name = "chkHeadWords";
|
||||
this.chkHeadWords.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkHeadWords.TabIndex = 473;
|
||||
this.chkHeadWords.Text = "标题前缀";
|
||||
this.chkHeadWords.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkEndWords
|
||||
//
|
||||
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(461, 4);
|
||||
this.chkEndWords.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkEndWords.Name = "chkEndWords";
|
||||
this.chkEndWords.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkEndWords.TabIndex = 474;
|
||||
this.chkEndWords.Text = "标题后缀";
|
||||
this.chkEndWords.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// 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(299, 4);
|
||||
this.chkFission.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkFission.Name = "chkFission";
|
||||
this.chkFission.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkFission.TabIndex = 475;
|
||||
this.chkFission.Text = "标题重组";
|
||||
this.chkFission.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkReFissionAllProdName
|
||||
//
|
||||
this.chkReFissionAllProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkReFissionAllProdName.AutoSize = true;
|
||||
this.chkReFissionAllProdName.Location = new System.Drawing.Point(431, 4);
|
||||
this.chkReFissionAllProdName.Location = new System.Drawing.Point(542, 4);
|
||||
this.chkReFissionAllProdName.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkReFissionAllProdName.Name = "chkReFissionAllProdName";
|
||||
this.chkReFissionAllProdName.Size = new System.Drawing.Size(147, 21);
|
||||
this.chkReFissionAllProdName.Size = new System.Drawing.Size(99, 21);
|
||||
this.chkReFissionAllProdName.TabIndex = 472;
|
||||
this.chkReFissionAllProdName.Text = "商品标题二次完全打乱";
|
||||
this.chkReFissionAllProdName.Text = "标题完全打乱";
|
||||
this.chkReFissionAllProdName.UseVisualStyleBackColor = true;
|
||||
this.chkReFissionAllProdName.CheckedChanged += new System.EventHandler(this.chkReFissionAllProdName_CheckedChanged);
|
||||
//
|
||||
@@ -539,7 +515,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(582, 4);
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(645, 4);
|
||||
this.chkRandomSkuOrder.Margin = new System.Windows.Forms.Padding(4, 0, 0, 0);
|
||||
this.chkRandomSkuOrder.Name = "chkRandomSkuOrder";
|
||||
this.chkRandomSkuOrder.Size = new System.Drawing.Size(95, 21);
|
||||
@@ -552,7 +528,7 @@
|
||||
//
|
||||
this.chkSkuRandomPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkuRandomPrice.AutoSize = true;
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(683, 4);
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(746, 4);
|
||||
this.chkSkuRandomPrice.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkSkuRandomPrice.Name = "chkSkuRandomPrice";
|
||||
this.chkSkuRandomPrice.Size = new System.Drawing.Size(119, 21);
|
||||
@@ -569,10 +545,10 @@
|
||||
0,
|
||||
0,
|
||||
131072});
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(802, 3);
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(865, 3);
|
||||
this.numSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numSkuRandomPrice.Name = "numSkuRandomPrice";
|
||||
this.numSkuRandomPrice.Size = new System.Drawing.Size(55, 23);
|
||||
this.numSkuRandomPrice.Size = new System.Drawing.Size(44, 23);
|
||||
this.numSkuRandomPrice.TabIndex = 470;
|
||||
this.numSkuRandomPrice.Value = new decimal(new int[] {
|
||||
20,
|
||||
@@ -585,13 +561,83 @@
|
||||
//
|
||||
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(863, 6);
|
||||
this.label11.Location = new System.Drawing.Point(6, 29);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(20, 17);
|
||||
this.label11.TabIndex = 471;
|
||||
this.label11.Text = "元";
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearch.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSearch.Location = new System.Drawing.Point(975, 18);
|
||||
this.btnSearch.Margin = new System.Windows.Forms.Padding(6, 2, 2, 2);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.tableLayoutPanel1.SetRowSpan(this.btnSearch, 2);
|
||||
this.btnSearch.Size = new System.Drawing.Size(56, 24);
|
||||
this.btnSearch.TabIndex = 424;
|
||||
this.btnSearch.Text = "搜索";
|
||||
this.btnSearch.UseVisualStyleBackColor = false;
|
||||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// chkNoSubSa
|
||||
//
|
||||
this.chkNoSubSa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkNoSubSa.AutoSize = true;
|
||||
this.chkNoSubSa.Location = new System.Drawing.Point(747, 5);
|
||||
this.chkNoSubSa.Margin = new System.Windows.Forms.Padding(4, 0, 0, 0);
|
||||
this.chkNoSubSa.Name = "chkNoSubSa";
|
||||
this.chkNoSubSa.Size = new System.Drawing.Size(87, 21);
|
||||
this.chkNoSubSa.TabIndex = 467;
|
||||
this.chkNoSubSa.Text = "未分配超管";
|
||||
this.chkNoSubSa.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// pnlEmpty
|
||||
//
|
||||
this.pnlEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(911, 19);
|
||||
this.pnlEmpty.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.pnlEmpty.Name = "pnlEmpty";
|
||||
this.tableLayoutPanel1.SetRowSpan(this.pnlEmpty, 2);
|
||||
this.pnlEmpty.Size = new System.Drawing.Size(56, 22);
|
||||
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.pnlEmpty.Style.GradientAngle = 90;
|
||||
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.pnlEmpty.TabIndex = 431;
|
||||
this.pnlEmpty.Text = "清空条件";
|
||||
this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
|
||||
//
|
||||
// chkShowDel
|
||||
//
|
||||
this.chkShowDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkShowDel.AutoSize = true;
|
||||
this.chkShowDel.Location = new System.Drawing.Point(834, 5);
|
||||
this.chkShowDel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkShowDel.Name = "chkShowDel";
|
||||
this.chkShowDel.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkShowDel.TabIndex = 468;
|
||||
this.chkShowDel.Text = "显示删除";
|
||||
this.chkShowDel.UseVisualStyleBackColor = true;
|
||||
this.chkShowDel.CheckedChanged += new System.EventHandler(this.chkShowDel_CheckedChanged);
|
||||
//
|
||||
// btnSetSubSa
|
||||
//
|
||||
this.btnSetSubSa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -1039,5 +1085,8 @@
|
||||
private System.Windows.Forms.NumericUpDown numSkuRandomPrice;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private UserComponent.UcCheckBox chkReFissionAllProdName;
|
||||
private UserComponent.UcCheckBox chkHeadWords;
|
||||
private UserComponent.UcCheckBox chkEndWords;
|
||||
private UserComponent.UcCheckBox chkFission;
|
||||
}
|
||||
}
|
||||
@@ -592,7 +592,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
var result = "";
|
||||
try
|
||||
{
|
||||
result = UploadProduct(shop, temuDBProd, prod); //将商品上传至草稿箱
|
||||
result = UploadProduct(shop, temuDBProd, prod, row.Cells["colOpResult"]); //将商品上传至草稿箱
|
||||
|
||||
if (result.Contains("登录过期"))
|
||||
{
|
||||
@@ -713,21 +713,29 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
string UploadProduct(ShopLoginInfo shop, TemuDBProduct dbProd, TemuDBProductSelect selectProd)
|
||||
string UploadProduct(ShopLoginInfo shop, TemuDBProduct dbProd, TemuDBProductSelect selectProd, DataGridViewCell cell)
|
||||
{
|
||||
if (shop == null || string.IsNullOrEmpty(shop.ShopId) || shop.LoginStatus != "登录成功" || shop.LoginStatus2 != "国际版在线")
|
||||
{
|
||||
return "店铺为空或未登录!";
|
||||
}
|
||||
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "正在初始化上传";
|
||||
}));
|
||||
}
|
||||
|
||||
//var prodDetailStr = GetHtml.UrlDecode(dbProd.product_json);
|
||||
//var prodInfo = JsonHelper.DeserializeJsonToObject<TemuProductInfo>(prodDetailStr);
|
||||
var prodInfo = JsonHelper.DeserializeJsonToObject<TemuProductInfo>(dbProd.product_json);
|
||||
var sTemuSizeSpec = dbProd.size_json;
|
||||
|
||||
TemuProductParam prodParam = new TemuProductParam();
|
||||
prodParam.carouselImageI18nReqs = prodInfo.carouselImageI18nVOList;
|
||||
prodParam.carouselImageUrls = prodInfo.carouselImageUrls;
|
||||
prodParam.productDraftId = 0;
|
||||
|
||||
prodParam.cat1Id = prodInfo.categories.cat1.catId;
|
||||
prodParam.cat2Id = prodInfo.categories.cat2.catId;
|
||||
prodParam.cat3Id = prodInfo.categories.cat3.catId;
|
||||
@@ -738,12 +746,43 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
prodParam.cat8Id = prodInfo.categories.cat8.catId;
|
||||
prodParam.cat9Id = prodInfo.categories.cat9.catId;
|
||||
prodParam.cat10Id = prodInfo.categories.cat10.catId;
|
||||
|
||||
// 先根据类目获取draftid
|
||||
long catId = prodParam.cat10Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat9Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat8Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat7Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat6Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat5Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat4Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat3Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat2Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat1Id.ParseToLong();
|
||||
|
||||
var html = AddDraft(shop, catId.ToString());
|
||||
if (html.Contains("{\"success\":true"))
|
||||
prodParam.productDraftId = BaseRegex.GetLongJson(ref html, "productDraftId");
|
||||
else
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = BaseRegex.GetStringJson(ref html, "error_msg");
|
||||
return "上传失败 " + error;
|
||||
}
|
||||
if (prodParam.productDraftId <= 0)
|
||||
{
|
||||
return "上传失败 " + html;
|
||||
}
|
||||
|
||||
prodParam.carouselImageI18nReqs = prodInfo.carouselImageI18nVOList;
|
||||
prodParam.carouselImageUrls = prodInfo.carouselImageUrls;
|
||||
|
||||
prodParam.goodsAdvantageLabelTypes = prodInfo.goodsAdvantageLabelVOList != null ?
|
||||
prodInfo.goodsAdvantageLabelVOList : new List<object>();
|
||||
prodParam.goodsLayerDecorationCustomizeI18nReqs = prodInfo.goodsLayerDecorationCustomizeI18nVOList;
|
||||
prodParam.goodsLayerDecorationReqs = new List<GoodsLayerDecorationReqsItem>();
|
||||
foreach (var goodsLayerDecorationVOInfo in
|
||||
(prodInfo.goodsLayerDecorationVOList == null ? new List<TemuGoodsLayerDecorationVO>() : prodInfo.goodsLayerDecorationVOList))
|
||||
foreach (var goodsLayerDecorationVOInfo in (prodInfo.goodsLayerDecorationVOList == null ?
|
||||
new List<TemuGoodsLayerDecorationVO>() : prodInfo.goodsLayerDecorationVOList))
|
||||
{
|
||||
var goodsLayerDecorationItem = new GoodsLayerDecorationReqsItem()
|
||||
{
|
||||
@@ -783,21 +822,32 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
protocolUrl = "https://bdl.cdnfe.com/upload_bdl/seller-protocol/00f56a69-7bee-4768-8cef-e1682ffd58e3.html",
|
||||
};
|
||||
prodParam.productDetailVideoReqList = prodInfo.detailVideoVOList;
|
||||
//是否需要存疑
|
||||
prodParam.productDraftId = 0;
|
||||
prodParam.productGuideFileI18nReqs = prodInfo.productGuideFileI18nList;
|
||||
prodParam.productGuideFileNewReqList = prodInfo.productGuideFileNewVOList;
|
||||
//prodParam.productName = prodInfo.productName;
|
||||
prodParam.productName = selectProd.fission_product_name;
|
||||
if(this.chkReFissionAllProdName.Checked)
|
||||
{
|
||||
int[] heads = dbProd.head_words.Split(new string[] { "-", "个" }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(s=>s.ParseToInt()).ToArray();
|
||||
string headWords = "";
|
||||
if (heads.Length > 1 && heads[1] > heads[0])
|
||||
headWords = Randomx.GetId(heads[0], heads[1]) + "个";
|
||||
string endWords = string.IsNullOrEmpty(dbProd.end_words) ? "" : dbProd.end_words;
|
||||
|
||||
string headWords = "";
|
||||
string endWords = "";
|
||||
if (this.chkFission.Checked)
|
||||
{
|
||||
// 头词
|
||||
if (chkHeadWords.Checked)
|
||||
{
|
||||
int[] heads = dbProd.head_words.Split(new string[] { "-", "个" }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(s => s.ParseToInt()).ToArray();
|
||||
|
||||
if (heads.Length > 1 && heads[1] > heads[0])
|
||||
headWords = Randomx.GetId(heads[0], heads[1]) + "个";
|
||||
}
|
||||
|
||||
// 尾词
|
||||
if (this.chkEndWords.Checked)
|
||||
{
|
||||
endWords = string.IsNullOrEmpty(dbProd.end_words) ? "" : dbProd.end_words;
|
||||
}
|
||||
|
||||
// 标题部分打乱
|
||||
List<string> fissionLst = new List<string>();
|
||||
fissionLst.AddRange(dbProd.fission_words.ParseToString().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries));
|
||||
string centerWords = ",";
|
||||
@@ -806,8 +856,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
int id = Randomx.GetId(fissionLst.Count);
|
||||
var fissionTxt = fissionLst[id];
|
||||
fissionLst.RemoveAt(id);
|
||||
//var allTxt = headWords + dbProd.product_name + centerWords + fissionTxt + "," + endWords;
|
||||
var allTxt = dbProd.product_name + centerWords + fissionTxt + ",";
|
||||
var allTxt = headWords + dbProd.product_name + centerWords + fissionTxt + "," + endWords;
|
||||
//var allTxt = dbProd.product_name + centerWords + fissionTxt + ",";
|
||||
byte[] bytes = Encoding.GetEncoding("gb2312").GetBytes(allTxt);
|
||||
if (bytes.Length > 250)
|
||||
{
|
||||
@@ -815,19 +865,27 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
}
|
||||
centerWords += fissionTxt + ",";
|
||||
}
|
||||
List<string> centerNameLst = (dbProd.product_name + centerWords.ParseToString())
|
||||
.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
string centerName = "";
|
||||
while (centerNameLst.Count > 0)
|
||||
{
|
||||
int id = Randomx.GetId(centerNameLst.Count);
|
||||
centerName += centerNameLst[id] + ",";
|
||||
centerNameLst.RemoveAt(id);
|
||||
}
|
||||
string centerName = dbProd.product_name + centerWords.ParseToString();
|
||||
|
||||
// 标题完全打乱
|
||||
if (chkReFissionAllProdName.Checked)
|
||||
{
|
||||
List<string> centerNameLst = centerName
|
||||
.Split(new string[] { ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
|
||||
string newCenterName = "";
|
||||
while (centerNameLst.Count > 0)
|
||||
{
|
||||
int id = Randomx.GetId(centerNameLst.Count);
|
||||
newCenterName += centerNameLst[id] + ",";
|
||||
centerNameLst.RemoveAt(id);
|
||||
}
|
||||
centerName = newCenterName;
|
||||
}
|
||||
prodParam.productName = (headWords + centerName + endWords).Trim(',');
|
||||
prodParam.productName = centerName.Trim(',');
|
||||
//prodParam.productName = centerName.Trim(',');
|
||||
}
|
||||
|
||||
prodParam.productNonAuditExtAttrReq = new ProductNonAuditExtAttrReq()
|
||||
{
|
||||
california65WarningInfoReq = new California65WarningInfoReq()
|
||||
@@ -951,8 +1009,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
{
|
||||
var speck = skuInfo.productSkuSpecList.FirstOrDefault(s => s.parentSpecName == "颜色");
|
||||
if (speck != null)
|
||||
{
|
||||
skuNameDic[speck.specName] = skuHead[Randomx.GetId(skuHead.Count)] +
|
||||
speck.specName + skuEnd[Randomx.GetId(skuEnd.Count)];
|
||||
speck.specName + skuEnd[Randomx.GetId(skuEnd.Count)];
|
||||
}
|
||||
else
|
||||
skuNameDic[speck.specName] = speck.specName;
|
||||
}
|
||||
@@ -965,6 +1025,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
while (skuListTmp.Count > 0)
|
||||
{
|
||||
skuCount++;
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "正在生成sku " + skuCount + "/" + skcInfo.productSkuList.Count;
|
||||
}));
|
||||
}
|
||||
|
||||
#region 随机打乱sku顺序
|
||||
int id = 0;
|
||||
@@ -1010,8 +1077,22 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
vid = prodParam.productSpecPropertyReqs.FirstOrDefault(p => p.specId == skuSpecInfo.specId)?.vid,
|
||||
};
|
||||
//前后缀映射
|
||||
if (skuSpecInfo.parentSpecName == "颜色")
|
||||
if (skuSpecInfo.parentSpecName == "颜色" && skuNameDic[skuSpecItem.specName] != skuSpecItem.specName)
|
||||
{
|
||||
skuSpecItem.specName = skuNameDic[skuSpecItem.specName];
|
||||
string draftId = prodParam.productDraftId.ParseToString();
|
||||
string parentSpecId = skuSpecItem.parentSpecId.ParseToString();
|
||||
var rst = QueryOrAddSpec(shop, draftId, parentSpecId, skuSpecItem.specName);
|
||||
if (rst.Contains("\"success\":true"))
|
||||
{
|
||||
long specId = BaseRegex.GetLongJson(ref rst, "specId");
|
||||
if (specId > 0)
|
||||
{
|
||||
skuSpecItem.specId = specId;
|
||||
}
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(100, 500));
|
||||
}
|
||||
skuItem.productSkuSpecReqs.Add(skuSpecItem);
|
||||
}
|
||||
skuItem.productSkuSuggestedPriceReq = JsonHelper.DeserializeJsonToObject<ProductSkuSuggestedPriceReq>(
|
||||
@@ -1048,7 +1129,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
#region 使用随机sku价格上传(第一个sku价格不变,此处有bug,平台最后的sku排列不是按照提交上去的顺序排的)
|
||||
if (skuCount != 1 && chkSkuRandomPrice.Checked)
|
||||
{
|
||||
|
||||
for (int x = 0; x < 5 && skcItem.productSkuReqs.Any(s => s.supplierPrice == skuItem.supplierPrice); x++)
|
||||
{
|
||||
int randomPrice = (this.numSkuRandomPrice.Value * 100).ParseToInt();
|
||||
@@ -1075,37 +1155,19 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
prodParam.productSkcReqs.Add(skcItem);
|
||||
}
|
||||
|
||||
long catId = prodParam.cat10Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat9Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat8Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat7Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat6Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat5Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat4Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat3Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat2Id.ParseToLong();
|
||||
if (catId == 0) catId = prodParam.cat1Id.ParseToLong();
|
||||
|
||||
var html = AddDraft(shop, catId.ToString());
|
||||
if (html.Contains("{\"success\":true"))
|
||||
prodParam.productDraftId = BaseRegex.GetLongJson(ref html, "productDraftId");
|
||||
else
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = BaseRegex.GetStringJson(ref html, "error_msg");
|
||||
return "上传失败 " + error;
|
||||
}
|
||||
|
||||
if (prodParam.productDraftId <= 0)
|
||||
{
|
||||
return "上传失败 " + html;
|
||||
}
|
||||
|
||||
#region 尺码表
|
||||
string sizeError = "";
|
||||
//上传尺码表(如果有)
|
||||
if (!string.IsNullOrEmpty(sTemuSizeSpec))
|
||||
{
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "正在生成尺码";
|
||||
}));
|
||||
}
|
||||
|
||||
sTemuSizeSpec = GetHtml.UrlDecode(sTemuSizeSpec);
|
||||
if (sTemuSizeSpec.Contains("sizeSpecDataVO"))
|
||||
{
|
||||
@@ -1132,7 +1194,15 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "正在保存草稿";
|
||||
}));
|
||||
}
|
||||
html = SaveDraft(shop, prodParam.productDraftId.ToString(), prodParam);
|
||||
if (html.Contains("{\"success\":true"))
|
||||
{
|
||||
@@ -1154,6 +1224,14 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
}
|
||||
|
||||
#region 草稿箱编辑后立即上传商品
|
||||
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "正在提交到未发布";
|
||||
}));
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(1000, 2000));
|
||||
html = AddProduct(shop, prodParam.productDraftId.ToString(), prodParam);
|
||||
if (html.Contains("\"success\":true"))
|
||||
@@ -1218,6 +1296,15 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
|
||||
private string QueryOrAddSpec(ShopLoginInfo shop, string draftId, string parentSpecId, string specName)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/sku/spec/byName/queryOrAdd";
|
||||
string body = @"{""parentSpecId"":" + parentSpecId + @",""specName"":""" + specName + @"""}";
|
||||
|
||||
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=productDraftList";
|
||||
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
|
||||
private void btnSetSubSa_Click(object sender, EventArgs e)
|
||||
{
|
||||
var lstProdId = dgvSelectProduct.Rows.Cast<DataGridViewRow>().Where(row
|
||||
|
||||
Reference in new issue
Block a user