1部分废弃功能注释 2数据库商品车队费、贴单费等设置 3账户授权金额设置 4jit核价商品还原逻辑调整

This commit is contained in:
wule committed 2025-12-03 11:04:58 +08:00
1 parent 480d8c2cd4
commit 165df61234
52 files changed
+2019 -1023

No files matched your search

@@ -114,11 +114,12 @@
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
this.dataGridViewEx1 = new TemuKJD.UserComponent.DataGridViewEx();
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.dgvMapDraftIds = new TemuKJD.UserComponent.DataGridViewEx();
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colMapId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colMapShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewLinkColumn5 = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMapDraftId = new System.Windows.Forms.DataGridViewLinkColumn();
this.colToPorductPage = new System.Windows.Forms.DataGridViewLinkColumn();
this.colToDraftPage = new System.Windows.Forms.DataGridViewLinkColumn();
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
@@ -176,7 +177,7 @@
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewEx1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvMapDraftIds)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).BeginInit();
this.SuspendLayout();
//
@@ -263,12 +264,11 @@
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 8F);
this.label14.ForeColor = System.Drawing.SystemColors.MenuHighlight;
this.label14.Location = new System.Drawing.Point(959, 71);
this.label14.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(278, 16);
this.label14.Size = new System.Drawing.Size(307, 17);
this.label14.TabIndex = 640;
this.label14.Text = "备注:新的商品上传货号为固定前缀 EC + 上家商品SKC";
//
@@ -1301,23 +1301,50 @@
//
// panel2
//
this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.dataGridViewEx1);
this.panel2.Location = new System.Drawing.Point(489, 75);
this.panel2.Controls.Add(this.panelEx1);
this.panel2.Controls.Add(this.dgvMapDraftIds);
this.panel2.Location = new System.Drawing.Point(661, 69);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(557, 342);
this.panel2.Size = new System.Drawing.Size(196, 341);
this.panel2.TabIndex = 191;
this.panel2.Visible = false;
//
// dataGridViewEx1
// panelEx1
//
this.dataGridViewEx1.AllowUserToAddRows = false;
this.dataGridViewEx1.AllowUserToDeleteRows = false;
this.panelEx1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelEx1.Cursor = System.Windows.Forms.Cursors.Hand;
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panelEx1.Location = new System.Drawing.Point(151, 313);
this.panelEx1.Name = "panelEx1";
this.panelEx1.Size = new System.Drawing.Size(42, 24);
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.panelEx1.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.panelEx1.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.panelEx1.Style.ForeColor.Color = System.Drawing.Color.White;
this.panelEx1.Style.GradientAngle = 90;
this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.panelEx1.TabIndex = 453;
this.panelEx1.Text = "关闭";
this.panelEx1.Click += new System.EventHandler(this.btnCloseDgvMapDraftIds_Click);
//
// dgvMapDraftIds
//
this.dgvMapDraftIds.AllowUserToAddRows = false;
this.dgvMapDraftIds.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dataGridViewEx1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridViewEx1.AutoRowNumber = true;
this.dataGridViewEx1.BackgroundColor = System.Drawing.Color.White;
this.dataGridViewEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.dgvMapDraftIds.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvMapDraftIds.AutoRowNumber = true;
this.dgvMapDraftIds.BackgroundColor = System.Drawing.Color.White;
this.dgvMapDraftIds.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -1325,23 +1352,23 @@
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridViewEx1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dataGridViewEx1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridViewEx1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dgvMapDraftIds.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvMapDraftIds.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvMapDraftIds.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewCheckBoxColumn1,
this.colMapId,
this.colMapShopId,
this.dataGridViewLinkColumn5,
this.colMapDraftId,
this.colToPorductPage,
this.colToDraftPage});
this.dataGridViewEx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridViewEx1.Location = new System.Drawing.Point(0, 0);
this.dataGridViewEx1.Name = "dataGridViewEx1";
this.dataGridViewEx1.ReadOnly = true;
this.dataGridViewEx1.RowHeadersWidth = 40;
this.dataGridViewEx1.RowTemplate.Height = 23;
this.dataGridViewEx1.Size = new System.Drawing.Size(555, 340);
this.dataGridViewEx1.TabIndex = 192;
this.dgvMapDraftIds.Location = new System.Drawing.Point(1, 1);
this.dgvMapDraftIds.Name = "dgvMapDraftIds";
this.dgvMapDraftIds.ReadOnly = true;
this.dgvMapDraftIds.RowHeadersWidth = 40;
this.dgvMapDraftIds.RowTemplate.Height = 23;
this.dgvMapDraftIds.Size = new System.Drawing.Size(192, 310);
this.dgvMapDraftIds.TabIndex = 192;
this.dgvMapDraftIds.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDraftIds_CellContentClick);
//
// dataGridViewCheckBoxColumn1
//
@@ -1350,6 +1377,7 @@
this.dataGridViewCheckBoxColumn1.ReadOnly = true;
this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewCheckBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.dataGridViewCheckBoxColumn1.Visible = false;
this.dataGridViewCheckBoxColumn1.Width = 30;
//
// colMapId
@@ -1365,16 +1393,17 @@
this.colMapShopId.HeaderText = "映射店铺Id";
this.colMapShopId.Name = "colMapShopId";
this.colMapShopId.ReadOnly = true;
this.colMapShopId.Visible = false;
this.colMapShopId.Width = 120;
//
// dataGridViewLinkColumn5
// colMapDraftId
//
this.dataGridViewLinkColumn5.HeaderText = "商品SPU";
this.dataGridViewLinkColumn5.Name = "dataGridViewLinkColumn5";
this.dataGridViewLinkColumn5.ReadOnly = true;
this.dataGridViewLinkColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewLinkColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.dataGridViewLinkColumn5.Width = 86;
this.colMapDraftId.HeaderText = "已上传商品ID";
this.colMapDraftId.Name = "colMapDraftId";
this.colMapDraftId.ReadOnly = true;
this.colMapDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colMapDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colMapDraftId.Width = 120;
//
// colToPorductPage
//
@@ -1383,6 +1412,7 @@
this.colToPorductPage.ReadOnly = true;
this.colToPorductPage.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colToPorductPage.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colToPorductPage.Visible = false;
this.colToPorductPage.Width = 62;
//
// colToDraftPage
@@ -1731,7 +1761,7 @@
this.splitContainer2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridViewEx1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvMapDraftIds)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).EndInit();
this.ResumeLayout(false);
@@ -1814,13 +1844,7 @@
private DevComponents.DotNetBar.PanelEx btnSetSubSa;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Panel panel2;
private UserComponent.DataGridViewEx dataGridViewEx1;
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn colMapId;
private System.Windows.Forms.DataGridViewTextBoxColumn colMapShopId;
private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn5;
private System.Windows.Forms.DataGridViewLinkColumn colToPorductPage;
private System.Windows.Forms.DataGridViewLinkColumn colToDraftPage;
private UserComponent.DataGridViewEx dgvMapDraftIds;
private UserComponent.UcCheckBox chkSkuRandomLetter;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
@@ -1848,5 +1872,12 @@
private System.Windows.Forms.DataGridViewLinkColumn colEditNotes;
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
private DevComponents.DotNetBar.PanelEx panelEx1;
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn colMapId;
private System.Windows.Forms.DataGridViewTextBoxColumn colMapShopId;
private System.Windows.Forms.DataGridViewLinkColumn colMapDraftId;
private System.Windows.Forms.DataGridViewLinkColumn colToPorductPage;
private System.Windows.Forms.DataGridViewLinkColumn colToDraftPage;
}
}
@@ -65,6 +65,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
flowLayoutPanel1.Visible = false;
chkUploadProd.Visible = true;
flowLayoutPanel1.Visible = true;
tableLayoutPanel1.Width += 86;
ucSplitPage1.IsShowPageSize = false; // 可调整分页
@@ -77,6 +78,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
pbFissionSetting.Visible = true;
btnReFission.Visible = true;
ucSplitPage1.IsShowPageSize = true; // 可调整分页
tableLayoutPanel1.Width -= 86;
}
}
@@ -157,7 +159,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
"复制Cookie",
prodSelect.spu_id,
prodSelect.skc_id,
prodSelect.main_img.Replace("https:", "http:"),
prodSelect.main_img.Replace("https:", "http:") + "?imageMogr2/thumbnail/54x54"",
defaultBitmap,//prod.main_img,
prodSelect.fission_product_name,
string.IsNullOrWhiteSpace(prodSelect.change_cat_name) ? prodSelect.cat_name : prodSelect.change_cat_name.Split('>').LastOrDefault(),
@@ -344,7 +346,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
dgvSelectProduct.Rows[e.RowIndex].Cells["colUserNotes"].Value = dbSelectProduct.user_notes;
break;
case "Skc图片":
ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString());
ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString().Split('?').FirstOrDefault());
imgFrom.ShowDialog();
break;
case "认领":
@@ -359,24 +361,14 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
}
break;
case "草稿箱Id":
panel2.Visible = false;
if (!string.IsNullOrEmpty(draftId))
{
var shop = GetShop(shopId);
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/edit?productDraftId=" +
draftId + "&from=productDraftList";
adminLoginForm.openType = EnumOpenType.manage;
adminLoginForm.WindowState = FormWindowState.Maximized;
adminLoginForm.ShowDialog();
return;
var url = BaseClass.BuildObjString("product_third/get_select_product_map_draft_id_list");
bool flag = true;
var url = BaseClass.BuildObjString("product_third/get_select_prod_db_id_map_draft_id_list");
var data = UserLogin.GetSignaturex() + "&select_db_id=" + dbId;
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
@@ -384,6 +376,42 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var dbIdMapSpuIdLst = JsonHelper.DeserializeJsonToList<DBProdDbIdMapProductIdInfo>(jArr.ToString());
this.dgvMapDraftIds.Rows.Clear();
if (dbIdMapSpuIdLst.Count > 0)
{
flag = false;
foreach (var item in dbIdMapSpuIdLst)
{
this.dgvMapDraftIds.Rows.Add(
false,
item.product_select_db_id,
item.shop_id,
item.product_id
);
}
panel2.Visible = true;
}
}
catch (Exception ex)
{
BaseMsgForm.ShowError("获取商品Id列表失败 " + ex.Message);
}
}
if (flag)
{
var shop = GetShop(shopId);
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/edit?productDraftId=" +
draftId + "&from=productDraftList";
adminLoginForm.openType = EnumOpenType.manage;
adminLoginForm.WindowState = FormWindowState.Maximized;
adminLoginForm.ShowDialog();
}
}
break;
@@ -1994,5 +2022,37 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
(cell as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkGreen : Color.DarkRed;
}
}
private void btnCloseDgvMapDraftIds_Click(object sender, EventArgs e)
{
panel2.Visible = false;
}
private void dgvDraftIds_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex < 0 || e.RowIndex < 0)
return;
string headerText = dgvMapDraftIds.Columns[e.ColumnIndex].HeaderText;
var shopId = dgvMapDraftIds.Rows[e.RowIndex].Cells["colMapShopId"].Value.ParseToString();
var draftId = dgvMapDraftIds.Rows[e.RowIndex].Cells["colMapDraftId"].Value.ParseToString();
switch (headerText)
{
case "已上传商品ID":
{
var shop = GetShop(shopId);
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/edit?productDraftId=" +
draftId + "&from=productDraftList";
adminLoginForm.openType = EnumOpenType.manage;
adminLoginForm.WindowState = FormWindowState.Maximized;
adminLoginForm.ShowDialog();
}
break;
default:
break;
}
}
}
}
@@ -126,7 +126,7 @@
<metadata name="colMapShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewLinkColumn5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="colMapDraftId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colToPorductPage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">