商品随机sku价格顺序提交尝试

This commit is contained in:
wule committed 2025-08-07 19:48:45 +08:00
1 parent c66ce84d26
commit f92e8ed79b
15 files changed
+696 -299

No files matched your search

@@ -40,10 +40,12 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductSelectListManageForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.btnReFission = new TemuKJD.UserControls.ButtonEx();
this.chkShowDel = new TemuKJD.UserComponent.UcCheckBox(this.components);
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();
@@ -60,7 +62,16 @@
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.txtProdName = new System.Windows.Forms.TextBox();
this.chkNoSubSa = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.label9 = new System.Windows.Forms.Label();
this.txtSkuHeadText = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.txtSkuEndText = new System.Windows.Forms.TextBox();
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.btnSetSubSa = new TemuKJD.UserControls.ButtonEx();
this.btnAdd = new TemuKJD.UserControls.ButtonEx();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
@@ -98,6 +109,8 @@
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numSkuRandomPrice)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
@@ -118,9 +131,7 @@
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.btnReFission);
this.splitContainer1.Panel1.Controls.Add(this.chkShowDel);
this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
this.splitContainer1.Panel1.Controls.Add(this.chkNoSubSa);
this.splitContainer1.Panel1.Controls.Add(this.btnSetSubSa);
this.splitContainer1.Panel1.Controls.Add(this.btnAdd);
//
@@ -128,7 +139,7 @@
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(1438, 638);
this.splitContainer1.SplitterDistance = 53;
this.splitContainer1.SplitterDistance = 66;
this.splitContainer1.TabIndex = 2;
//
// btnReFission
@@ -139,7 +150,7 @@
this.btnReFission.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnReFission.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReFission.ForeColor = System.Drawing.Color.White;
this.btnReFission.Location = new System.Drawing.Point(1153, 14);
this.btnReFission.Location = new System.Drawing.Point(1153, 19);
this.btnReFission.Margin = new System.Windows.Forms.Padding(2);
this.btnReFission.Name = "btnReFission";
this.btnReFission.Size = new System.Drawing.Size(90, 26);
@@ -148,23 +159,11 @@
this.btnReFission.UseVisualStyleBackColor = false;
this.btnReFission.Click += new System.EventHandler(this.btnReFission_Click);
//
// chkShowDel
//
this.chkShowDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkShowDel.AutoSize = true;
this.chkShowDel.Location = new System.Drawing.Point(1044, 17);
this.chkShowDel.Name = "chkShowDel";
this.chkShowDel.Size = new System.Drawing.Size(99, 21);
this.chkShowDel.TabIndex = 468;
this.chkShowDel.Text = "显示删除功能";
this.chkShowDel.UseVisualStyleBackColor = true;
this.chkShowDel.CheckedChanged += new System.EventHandler(this.chkShowDel_CheckedChanged);
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.ColumnCount = 18;
this.tableLayoutPanel1.ColumnCount = 21;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
@@ -183,8 +182,14 @@
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
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);
@@ -201,16 +206,18 @@
this.tableLayoutPanel1.Controls.Add(this.label3, 10, 0);
this.tableLayoutPanel1.Controls.Add(this.label4, 12, 0);
this.tableLayoutPanel1.Controls.Add(this.txtProdName, 11, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 13);
this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 0, 1);
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 5);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(945, 28);
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.Size = new System.Drawing.Size(1145, 56);
this.tableLayoutPanel1.TabIndex = 190;
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Left;
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.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
@@ -219,36 +226,75 @@
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.Dock = System.Windows.Forms.DockStyle.Top;
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtShopId.Name = "txtShopId";
this.txtShopId.Size = new System.Drawing.Size(57, 23);
this.txtShopId.Size = new System.Drawing.Size(49, 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.Name = "chkUploadProd";
this.chkUploadProd.Size = new System.Drawing.Size(104, 21);
this.chkUploadProd.TabIndex = 470;
this.chkUploadProd.Text = "上传到未发布";
this.chkUploadProd.UseVisualStyleBackColor = true;
//
// cmbStatus
//
this.cmbStatus.Dock = System.Windows.Forms.DockStyle.Fill;
this.cmbStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbStatus.FormattingEnabled = true;
this.cmbStatus.Items.AddRange(new object[] {
"待上传",
"已上传",
"全部"});
this.cmbStatus.Location = new System.Drawing.Point(758, 1);
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1);
this.cmbStatus.Location = new System.Drawing.Point(702, 2);
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.cmbStatus.Name = "cmbStatus";
this.cmbStatus.Size = new System.Drawing.Size(57, 25);
this.cmbStatus.Size = new System.Drawing.Size(49, 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(882, 3);
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;
@@ -269,9 +315,9 @@
//
// label7
//
this.label7.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(110, 5);
this.label7.Location = new System.Drawing.Point(102, 5);
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);
@@ -280,9 +326,9 @@
//
// label8
//
this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(702, 5);
this.label8.Location = new System.Drawing.Point(646, 5);
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);
@@ -291,18 +337,18 @@
//
// txtShopName
//
this.txtShopName.Dock = System.Windows.Forms.DockStyle.Top;
this.txtShopName.Location = new System.Drawing.Point(166, 2);
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtShopName.Name = "txtShopName";
this.txtShopName.Size = new System.Drawing.Size(57, 23);
this.txtShopName.Size = new System.Drawing.Size(49, 23);
this.txtShopName.TabIndex = 451;
//
// label5
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(229, 5);
this.label5.Location = new System.Drawing.Point(213, 5);
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);
@@ -311,12 +357,13 @@
//
// 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(821, 2);
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);
@@ -327,27 +374,27 @@
//
// txtSKC
//
this.txtSKC.Dock = System.Windows.Forms.DockStyle.Top;
this.txtSKC.Location = new System.Drawing.Point(354, 2);
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtSKC.Name = "txtSKC";
this.txtSKC.Size = new System.Drawing.Size(57, 23);
this.txtSKC.Size = new System.Drawing.Size(49, 23);
this.txtSKC.TabIndex = 432;
//
// txtSPU
//
this.txtSPU.Dock = System.Windows.Forms.DockStyle.Top;
this.txtSPU.Location = new System.Drawing.Point(260, 2);
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtSPU.Name = "txtSPU";
this.txtSPU.Size = new System.Drawing.Size(57, 23);
this.txtSPU.Size = new System.Drawing.Size(49, 23);
this.txtSPU.TabIndex = 434;
//
// label1
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(323, 5);
this.label1.Location = new System.Drawing.Point(299, 5);
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);
@@ -356,9 +403,9 @@
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(417, 5);
this.label2.Location = new System.Drawing.Point(385, 5);
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);
@@ -367,27 +414,27 @@
//
// txtCat
//
this.txtCat.Dock = System.Windows.Forms.DockStyle.Top;
this.txtCat.Location = new System.Drawing.Point(449, 2);
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtCat.Name = "txtCat";
this.txtCat.Size = new System.Drawing.Size(57, 23);
this.txtCat.Size = new System.Drawing.Size(49, 23);
this.txtCat.TabIndex = 425;
//
// txtExtCode
//
this.txtExtCode.Dock = System.Windows.Forms.DockStyle.Top;
this.txtExtCode.Location = new System.Drawing.Point(639, 2);
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtExtCode.Name = "txtExtCode";
this.txtExtCode.Size = new System.Drawing.Size(57, 23);
this.txtExtCode.Size = new System.Drawing.Size(49, 23);
this.txtExtCode.TabIndex = 429;
//
// label3
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(512, 5);
this.label3.Location = new System.Drawing.Point(472, 5);
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);
@@ -396,9 +443,9 @@
//
// label4
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Left;
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(607, 5);
this.label4.Location = new System.Drawing.Point(559, 5);
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);
@@ -407,23 +454,143 @@
//
// txtProdName
//
this.txtProdName.Dock = System.Windows.Forms.DockStyle.Top;
this.txtProdName.Location = new System.Drawing.Point(544, 2);
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.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtProdName.Name = "txtProdName";
this.txtProdName.Size = new System.Drawing.Size(57, 23);
this.txtProdName.Size = new System.Drawing.Size(49, 23);
this.txtProdName.TabIndex = 427;
//
// chkNoSubSa
// flowLayoutPanel1
//
this.chkNoSubSa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkNoSubSa.AutoSize = true;
this.chkNoSubSa.Location = new System.Drawing.Point(949, 17);
this.chkNoSubSa.Name = "chkNoSubSa";
this.chkNoSubSa.Size = new System.Drawing.Size(99, 21);
this.chkNoSubSa.TabIndex = 467;
this.chkNoSubSa.Text = "仅未分配超管";
this.chkNoSubSa.UseVisualStyleBackColor = true;
this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel1, 100);
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.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.Margin = new System.Windows.Forms.Padding(0);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(1145, 28);
this.flowLayoutPanel1.TabIndex = 471;
//
// label9
//
this.label9.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(3, 6);
this.label9.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(52, 17);
this.label9.TabIndex = 450;
this.label9.Text = "sku前缀";
//
// txtSkuHeadText
//
this.txtSkuHeadText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
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.TabIndex = 452;
this.txtSkuHeadText.TextChanged += new System.EventHandler(this.txtSkuHeadText_TextChanged);
//
// label10
//
this.label10.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(214, 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);
this.label10.TabIndex = 453;
this.label10.Text = "sku后缀";
//
// 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.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.TabIndex = 454;
this.txtSkuEndText.TextChanged += new System.EventHandler(this.txtSkuEndText_TextChanged);
//
// 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.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.TabIndex = 472;
this.chkReFissionAllProdName.Text = "商品标题二次完全打乱";
this.chkReFissionAllProdName.UseVisualStyleBackColor = true;
this.chkReFissionAllProdName.CheckedChanged += new System.EventHandler(this.chkReFissionAllProdName_CheckedChanged);
//
// chkRandomSkuOrder
//
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.Margin = new System.Windows.Forms.Padding(4, 0, 0, 0);
this.chkRandomSkuOrder.Name = "chkRandomSkuOrder";
this.chkRandomSkuOrder.Size = new System.Drawing.Size(95, 21);
this.chkRandomSkuOrder.TabIndex = 469;
this.chkRandomSkuOrder.Text = "sku打乱顺序";
this.chkRandomSkuOrder.UseVisualStyleBackColor = true;
this.chkRandomSkuOrder.CheckedChanged += new System.EventHandler(this.chkRandomSkuOrder_CheckedChanged);
//
// chkSkuRandomPrice
//
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.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.chkSkuRandomPrice.Name = "chkSkuRandomPrice";
this.chkSkuRandomPrice.Size = new System.Drawing.Size(119, 21);
this.chkSkuRandomPrice.TabIndex = 468;
this.chkSkuRandomPrice.Text = "sku随机价格变化";
this.chkSkuRandomPrice.UseVisualStyleBackColor = true;
this.chkSkuRandomPrice.CheckedChanged += new System.EventHandler(this.chkSkuRandomPrice_CheckedChanged);
//
// numSkuRandomPrice
//
this.numSkuRandomPrice.DecimalPlaces = 2;
this.numSkuRandomPrice.Increment = new decimal(new int[] {
1,
0,
0,
131072});
this.numSkuRandomPrice.Location = new System.Drawing.Point(802, 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.TabIndex = 470;
this.numSkuRandomPrice.Value = new decimal(new int[] {
20,
0,
0,
65536});
this.numSkuRandomPrice.ValueChanged += new System.EventHandler(this.numSkuRandomPrice_ValueChanged);
//
// label11
//
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.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 = "元";
//
// btnSetSubSa
//
@@ -433,7 +600,7 @@
this.btnSetSubSa.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSetSubSa.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetSubSa.ForeColor = System.Drawing.Color.White;
this.btnSetSubSa.Location = new System.Drawing.Point(1247, 14);
this.btnSetSubSa.Location = new System.Drawing.Point(1247, 19);
this.btnSetSubSa.Margin = new System.Windows.Forms.Padding(2);
this.btnSetSubSa.Name = "btnSetSubSa";
this.btnSetSubSa.Size = new System.Drawing.Size(90, 26);
@@ -450,7 +617,7 @@
this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAdd.ForeColor = System.Drawing.Color.White;
this.btnAdd.Location = new System.Drawing.Point(1341, 14);
this.btnAdd.Location = new System.Drawing.Point(1341, 19);
this.btnAdd.Margin = new System.Windows.Forms.Padding(2);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(90, 26);
@@ -477,15 +644,15 @@
//
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Size = new System.Drawing.Size(1438, 581);
this.splitContainer2.SplitterDistance = 552;
this.splitContainer2.Size = new System.Drawing.Size(1438, 568);
this.splitContainer2.SplitterDistance = 539;
this.splitContainer2.TabIndex = 0;
//
// pbLoading
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(694, 235);
this.pbLoading.Location = new System.Drawing.Point(694, 228);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -541,7 +708,7 @@
this.dgvSelectProduct.ReadOnly = true;
this.dgvSelectProduct.RowHeadersWidth = 51;
this.dgvSelectProduct.RowTemplate.Height = 23;
this.dgvSelectProduct.Size = new System.Drawing.Size(1430, 552);
this.dgvSelectProduct.Size = new System.Drawing.Size(1430, 539);
this.dgvSelectProduct.TabIndex = 189;
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
this.dgvSelectProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvSelectProduct_Scroll);
@@ -786,12 +953,14 @@
this.VisibleChanged += new System.EventHandler(this.DbProductSelectListManageForm_VisibleChanged);
this.Controls.SetChildIndex(this.splitContainer1, 0);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.flowLayoutPanel1.ResumeLayout(false);
this.flowLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numSkuRandomPrice)).EndInit();
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
@@ -859,5 +1028,16 @@
private System.Windows.Forms.DataGridViewLinkColumn colEditNotes;
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
private UserComponent.UcCheckBox chkUploadProd;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox txtSkuHeadText;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox txtSkuEndText;
private UserComponent.UcCheckBox chkSkuRandomPrice;
private UserComponent.UcCheckBox chkRandomSkuOrder;
private System.Windows.Forms.NumericUpDown numSkuRandomPrice;
private System.Windows.Forms.Label label11;
private UserComponent.UcCheckBox chkReFissionAllProdName;
}
}
@@ -46,6 +46,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
btnSetSubSa.Visible = false;
chkNoSubSa.Visible = false;
btnReFission.Visible = false;
chkUploadProd.Visible = false; // 直接上传
flowLayoutPanel1.Visible = false; // 一些测试操作项目显示在此处
if (BaseClass.SaLevel == 1)
{
@@ -54,6 +56,12 @@ namespace TemuKJD.KJDForms.ProductSelectForms
btnSetSubSa.Visible = true;
chkNoSubSa.Visible = true;
btnReFission.Visible = true;
chkUploadProd.Visible = true;
flowLayoutPanel1.Visible = true;
//chkReFissionAllProdName.Checked = true;
//chkRandomSkuOrder.Checked = true;
//chkSkuRandomPrice.Checked = true;
}
}
@@ -594,20 +602,23 @@ namespace TemuKJD.KJDForms.ProductSelectForms
}
catch (Exception ex)
{
result = "上传草稿箱失败:" + ex.Message;
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"" + ex.Message + "\"}";
}
Thread.Sleep(200);
if (!result.Contains("上传草稿箱成功"))
if (result.Contains("\"status\":\"未上传\""))
{
var error = BaseRegex.GetStringJson(ref result, "errMsg");
if (string.IsNullOrWhiteSpace(error))
error = result;
Invoke(new Action(() =>
{
row.Cells["colOpResult"].Value = result;
row.Cells["colOpResult"].Value = error;
}));
continue;
}
prod.status = "已上传";
prod.status = BaseRegex.GetStringJson(ref result, "status");
var productDraftId = BaseRegex.GetStringJson(ref result, "productDraftId");
var url = BaseClass.BuildObjString("product/mdy_user_select_product_status");
var data = UserLogin.GetSignaturex() +
@@ -615,7 +626,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
"&draft_id=" + productDraftId + // draft_id即商品spuid
"&up_spu_id=" + prod.spu_id +
"&shop_id=" + prod.shop_id +
"&status=已上传";
"&status=" + prod.status;
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
@@ -626,16 +637,18 @@ namespace TemuKJD.KJDForms.ProductSelectForms
{
Invoke(new Action(() =>
{
row.Cells["colOpResult"].Value = "已成功上传草稿箱但保存到服务端失败:" + BaseRegex.GetStringJson(ref html, "msg") + "; ";
row.Cells["colStatus"].Value = "已上传";
string opRst = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱";
row.Cells["colOpResult"].Value = opRst + "但保存到服务端失败:" + BaseRegex.GetStringJson(ref html, "msg") + "; ";
row.Cells["colStatus"].Value = prod.status;
}));
}
else
{
Invoke(new Action(() =>
{
string opRst = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱";
row.Cells["colDraftId"].Value = productDraftId; // 草稿箱id
row.Cells["colOpResult"].Value = "已成功上传草稿箱";
row.Cells["colOpResult"].Value = opRst + BaseRegex.GetStringJson(ref result, "msg") + "; ";
row.Cells["colStatus"].Value = "已上传";
}));
}
@@ -777,6 +790,45 @@ namespace TemuKJD.KJDForms.ProductSelectForms
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;
List<string> fissionLst = new List<string>();
fissionLst.AddRange(dbProd.fission_words.ParseToString().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries));
string centerWords = ",";
while (fissionLst.Count > 0)
{
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 + ",";
byte[] bytes = Encoding.GetEncoding("gb2312").GetBytes(allTxt);
if (bytes.Length > 250)
{
break;
}
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);
}
prodParam.productName = (headWords + centerName + endWords).Trim(',');
prodParam.productName = centerName.Trim(',');
}
prodParam.productNonAuditExtAttrReq = new ProductNonAuditExtAttrReq()
{
california65WarningInfoReq = new California65WarningInfoReq()
@@ -872,8 +924,43 @@ namespace TemuKJD.KJDForms.ProductSelectForms
skcItem.productSkcCarouselImageI18nReqs = skcInfo.productSkcCarouselImageI18nVOList;
skcItem.productSkcId = 0;
skcItem.productSkuReqs = new List<ProductSkuReqsItem>();
#region 建立一组前后缀映射以便获取不同的sku
Dictionary<string, string> skuNameDic = new Dictionary<string, string>();
var skuHead = this.txtSkuHeadText.Text.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
if (skuHead.Count == 0)
skuHead.Add("");
var skuEnd = this.txtSkuEndText.Text.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
if (skuEnd.Count == 0)
skuEnd.Add("");
foreach (var skuInfo in skcInfo.productSkuList)
{
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)];
else
skuNameDic[speck.specName] = speck.specName;
}
#endregion
int skuCount = 0;
//foreach (var skuInfo in skcInfo.productSkuList)
List<TemuProductSku> skuListTmp = new List<TemuProductSku>();
skuListTmp.AddRange(skcInfo.productSkuList);
while (skuListTmp.Count > 0)
{
skuCount++;
#region 随机打乱sku顺序
int id = 0;
if (chkRandomSkuOrder.Checked)
id = Randomx.GetId(0, skuListTmp.Count);
var skuInfo = skuListTmp[id];
if (skuInfo != null)
skuListTmp.RemoveAt(id);
#endregion
ProductSkuReqsItem skuItem = new ProductSkuReqsItem();
skuItem.currencyType = skuInfo.currencyType;
skuItem.extCode = skuInfo.extCode;
@@ -908,6 +995,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
specName = skuSpecInfo.specName,
vid = prodParam.productSpecPropertyReqs.FirstOrDefault(p => p.specId == skuSpecInfo.specId)?.vid,
};
//前后缀映射
if (skuSpecInfo.parentSpecName == "颜色")
skuSpecItem.specName = skuNameDic[skuSpecItem.specName];
skuItem.productSkuSpecReqs.Add(skuSpecItem);
}
skuItem.productSkuSuggestedPriceReq = JsonHelper.DeserializeJsonToObject<ProductSkuSuggestedPriceReq>(
@@ -940,10 +1030,34 @@ namespace TemuKJD.KJDForms.ProductSelectForms
JsonHelper.SerializeObject(skuInfo.productSkuWhExtAttr.productSkuWeight)),
};
skuItem.supplierPrice = skuInfo.supplierPrice;
#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();
if (randomPrice < 2)
randomPrice = 2;
if (Randomx.GetId(2) == 1)
skuItem.supplierPrice = skuItem.supplierPrice.ParseToInt() + Randomx.GetId(1, randomPrice);
else
skuItem.supplierPrice = skuItem.supplierPrice.ParseToInt() - Randomx.GetId(1, randomPrice);
}
}
else
{
}
#endregion
skuItem.thumbUrl = skuInfo.thumbUrl;
skcItem.productSkuReqs.Add(skuItem);
}
prodParam.productSkcReqs.Add(skcItem);
}
@@ -1007,28 +1121,42 @@ namespace TemuKJD.KJDForms.ProductSelectForms
html = SaveDraft(shop, prodParam.productDraftId.ToString(), prodParam);
if (html.Contains("{\"success\":true"))
return "上传草稿箱成功\"productDraftId\":\"" + prodParam.productDraftId.ToString() + "\" " + sizeError;
{
if (!chkUploadProd.Checked)
{
return "{\"success\":true,\"status\":\"已上传\"," +
"\"productDraftId\":\"" + prodParam.productDraftId.ParseToString() + "\"," +
"\"errMsg\":\"" + sizeError + "\"}";
}
}
else
{
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
if (string.IsNullOrEmpty(error))
error = BaseRegex.GetStringJson(ref html, "error_msg");
return "上传草稿箱失败" + error + " " + sizeError;
return "{\"success\":false,\"status\":\"未上传\"," +
"\"productDraftId\":\"" + prodParam.productDraftId.ParseToString() + "\"," +
"\"errMsg\":\"草稿箱上传失败 " + error + " " + sizeError + "\"}";
}
#region 草稿箱后立即上传商品 暂时注释
//Thread.Sleep(Randomx.GetId(2000, 3000));
//html = AddProduct(shop, prodParam.productDraftId.ToString(), prodParam);
//if (html.Contains("{\"success\":true"))
// BaseMsgForm.ShowInfo("上传商品成功");
//else
//{
// var error = BaseRegex.GetStringJson(ref html, "errorMsg");
// if (string.IsNullOrWhiteSpace(error))
// error = BaseRegex.GetStringJson(ref html, "error_msg");
// BaseMsgForm.ShowError(("上传商品失败\r\n" + error + "\r\n请在草稿箱查找商品!").Replace("\r\n\r\n", "\r\n"));
// return;
//}
#region 草稿箱编辑后立即上传商品
Thread.Sleep(Randomx.GetId(1000, 2000));
html = AddProduct(shop, prodParam.productDraftId.ToString(), prodParam);
if (html.Contains("\"success\":true"))
{
return "{\"success\":true,\"status\":\"已上传\"," +
"\"productDraftId\":\"" + prodParam.productDraftId.ParseToString() + "\"," +
"\"errMsg\":\"" + sizeError + "\"}";
}
else
{
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
if (string.IsNullOrWhiteSpace(error))
error = BaseRegex.GetStringJson(ref html, "error_msg");
return "{\"success\":false,\"status\":\"草稿箱\"," +
"\"productDraftId\":\"" + prodParam.productDraftId.ParseToString() + "\"," +
"\"errMsg\":\"上传失败 " + error + " " + sizeError + "\"}";
}
#endregion
}
@@ -1067,11 +1195,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private string AddProduct(ShopLoginInfo shop, string draftId, TemuProductParam prodParam)
{
string url = "https://seller.kuajingmaihuo.com/bg-visage-mms/product/add";
//string url = "https://seller.kuajingmaihuo.com/bg-visage-mms/product/add";
string url = "https://agentseller.temu.com/visage-agent-seller/product/add";
string body = JsonHelper.SerializeObject(prodParam);
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
//string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
// draftId + "&from=productDraftList";
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)
@@ -1278,5 +1408,42 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.statusBar.UpdateProgressBar(prodSelect.Length);
}));
}
private void chkSkuRandomPrice_CheckedChanged(object sender, EventArgs e)
{
dbProdSelectConfig.chkSkuRandomPriceChecked = chkSkuRandomPrice.Checked;
}
private void chkRandomSkuOrder_CheckedChanged(object sender, EventArgs e)
{
dbProdSelectConfig.chkRandomSkuOrderChecked = chkRandomSkuOrder.Checked;
}
private void chkReFissionAllProdName_CheckedChanged(object sender, EventArgs e)
{
dbProdSelectConfig.chkReFissionAllProdNameChecked = chkReFissionAllProdName.Checked;
}
private void txtSkuEndText_TextChanged(object sender, EventArgs e)
{
dbProdSelectConfig.txtSkuEndText = txtSkuEndText.Text;
}
private void txtSkuHeadText_TextChanged(object sender, EventArgs e)
{
dbProdSelectConfig.txtSkuHeadText = txtSkuHeadText.Text;
}
private void numSkuRandomPrice_ValueChanged(object sender, EventArgs e)
{
dbProdSelectConfig.numSkuRandomPrice = numSkuRandomPrice.Value;
}
public class DbProdSelectConfig
{
public string txtSkuHeadText { get; set; } = "";
public string txtSkuEndText { get; set; } = "";
public bool chkReFissionAllProdNameChecked { get; set; } = false;
public bool chkRandomSkuOrderChecked { get; set; } = false;
public bool chkSkuRandomPriceChecked { get; set; } = false;
public decimal numSkuRandomPrice { get; set; } = 0;
}
DbProdSelectConfig dbProdSelectConfig = new DbProdSelectConfig();
}
}