店铺优化相关功能

This commit is contained in:
wule committed 2026-04-24 21:48:22 +08:00
1 parent 9805792aed
commit 0e6a927cf2
43 files changed
+3305 -1604

No files matched your search

+90 -90
View File
@@ -44,6 +44,7 @@ namespace TemuKJD.WXForms.TalkForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BuyerOrderListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.chkAutoAfterSale = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnStopStop = new DevComponents.DotNetBar.PanelEx();
this.chkPause = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnCheck = new DevComponents.DotNetBar.PanelEx();
@@ -66,14 +67,6 @@ namespace TemuKJD.WXForms.TalkForms
this.col_notes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
this.dgvBuyer = new TemuKJD.UserComponent.DataGridViewEx();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colBuyerId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgvBuyerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colBuyerNick = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colVisit = new System.Windows.Forms.DataGridViewLinkColumn();
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.panelEx3 = new DevComponents.DotNetBar.PanelEx();
@@ -115,7 +108,14 @@ namespace TemuKJD.WXForms.TalkForms
this.chkOnlyShowCurrentShop = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.lblCurrentShop = new System.Windows.Forms.Label();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.chkAutoAfterSale = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colBuyerId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colBuyerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colBuyerNick = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colVisit = new System.Windows.Forms.DataGridViewLinkColumn();
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -166,6 +166,16 @@ namespace TemuKJD.WXForms.TalkForms
this.splitContainer1.SplitterDistance = 90;
this.splitContainer1.TabIndex = 1;
//
// chkAutoAfterSale
//
this.chkAutoAfterSale.Location = new System.Drawing.Point(242, 64);
this.chkAutoAfterSale.Name = "chkAutoAfterSale";
this.chkAutoAfterSale.Size = new System.Drawing.Size(113, 21);
this.chkAutoAfterSale.TabIndex = 953;
this.chkAutoAfterSale.Text = "未发货单自动售后";
this.chkAutoAfterSale.UseVisualStyleBackColor = true;
this.chkAutoAfterSale.CheckedChanged += new System.EventHandler(this.chkAutoAfterSale_CheckedChanged);
//
// btnStopStop
//
this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control;
@@ -490,7 +500,7 @@ namespace TemuKJD.WXForms.TalkForms
this.dgvBuyer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
this.colBuyerId,
this.dgvBuyerName,
this.colBuyerName,
this.colBuyerNick,
this.colShopNotes,
this.colVisit,
@@ -507,70 +517,6 @@ namespace TemuKJD.WXForms.TalkForms
this.dgvBuyer.TabIndex = 7;
this.dgvBuyer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
//
// colSelect
//
this.colSelect.HeaderText = "全选";
this.colSelect.Name = "colSelect";
this.colSelect.ReadOnly = true;
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colSelect.Width = 28;
//
// colBuyerId
//
this.colBuyerId.HeaderText = "买手Id";
this.colBuyerId.Name = "colBuyerId";
this.colBuyerId.ReadOnly = true;
this.colBuyerId.Visible = false;
this.colBuyerId.Width = 55;
//
// dgvBuyerName
//
this.dgvBuyerName.FillWeight = 150F;
this.dgvBuyerName.HeaderText = "买手名称";
this.dgvBuyerName.Name = "dgvBuyerName";
this.dgvBuyerName.ReadOnly = true;
this.dgvBuyerName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dgvBuyerName.Visible = false;
this.dgvBuyerName.Width = 80;
//
// colBuyerNick
//
this.colBuyerNick.HeaderText = "买手昵称";
this.colBuyerNick.Name = "colBuyerNick";
this.colBuyerNick.ReadOnly = true;
this.colBuyerNick.Width = 80;
//
// colShopNotes
//
this.colShopNotes.HeaderText = "备注";
this.colShopNotes.Name = "colShopNotes";
this.colShopNotes.ReadOnly = true;
this.colShopNotes.Width = 80;
//
// colVisit
//
this.colVisit.HeaderText = "访问";
this.colVisit.Name = "colVisit";
this.colVisit.ReadOnly = true;
this.colVisit.Visible = false;
this.colVisit.Width = 38;
//
// colLoginStatus
//
this.colLoginStatus.HeaderText = "状态";
this.colLoginStatus.Name = "colLoginStatus";
this.colLoginStatus.ReadOnly = true;
this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colLoginStatus.Width = 38;
//
// colMessage
//
this.colMessage.HeaderText = "消息";
this.colMessage.Name = "colMessage";
this.colMessage.ReadOnly = true;
//
// splitContainer2
//
this.splitContainer2.BackColor = System.Drawing.Color.White;
@@ -1156,15 +1102,69 @@ namespace TemuKJD.WXForms.TalkForms
this.statusBar.Size = new System.Drawing.Size(1438, 25);
this.statusBar.TabIndex = 5;
//
// chkAutoAfterSale
// colSelect
//
this.chkAutoAfterSale.Location = new System.Drawing.Point(242, 64);
this.chkAutoAfterSale.Name = "chkAutoAfterSale";
this.chkAutoAfterSale.Size = new System.Drawing.Size(113, 21);
this.chkAutoAfterSale.TabIndex = 953;
this.chkAutoAfterSale.Text = "未发货单自动售后";
this.chkAutoAfterSale.UseVisualStyleBackColor = true;
this.chkAutoAfterSale.CheckedChanged += new System.EventHandler(this.chkAutoAfterSale_CheckedChanged);
this.colSelect.HeaderText = "全选";
this.colSelect.Name = "colSelect";
this.colSelect.ReadOnly = true;
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colSelect.Width = 28;
//
// colBuyerId
//
this.colBuyerId.HeaderText = "买手Id";
this.colBuyerId.Name = "colBuyerId";
this.colBuyerId.ReadOnly = true;
this.colBuyerId.Visible = false;
this.colBuyerId.Width = 55;
//
// colBuyerName
//
this.colBuyerName.FillWeight = 150F;
this.colBuyerName.HeaderText = "买手名称";
this.colBuyerName.Name = "colBuyerName";
this.colBuyerName.ReadOnly = true;
this.colBuyerName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colBuyerName.Visible = false;
this.colBuyerName.Width = 80;
//
// colBuyerNick
//
this.colBuyerNick.HeaderText = "买手昵称";
this.colBuyerNick.Name = "colBuyerNick";
this.colBuyerNick.ReadOnly = true;
this.colBuyerNick.Width = 80;
//
// colShopNotes
//
this.colShopNotes.HeaderText = "备注";
this.colShopNotes.Name = "colShopNotes";
this.colShopNotes.ReadOnly = true;
this.colShopNotes.Width = 80;
//
// colVisit
//
this.colVisit.HeaderText = "访问";
this.colVisit.Name = "colVisit";
this.colVisit.ReadOnly = true;
this.colVisit.Visible = false;
this.colVisit.Width = 38;
//
// colLoginStatus
//
this.colLoginStatus.HeaderText = "状态";
this.colLoginStatus.Name = "colLoginStatus";
this.colLoginStatus.ReadOnly = true;
this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colLoginStatus.Width = 38;
//
// colMessage
//
this.colMessage.HeaderText = "消息";
this.colMessage.Name = "colMessage";
this.colMessage.ReadOnly = true;
//
// BuyerOrderListForm
//
@@ -1250,14 +1250,6 @@ namespace TemuKJD.WXForms.TalkForms
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
private DevComponents.DotNetBar.PanelEx btnRefresh;
private DevComponents.DotNetBar.PanelEx btnCheck;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colBuyerId;
private System.Windows.Forms.DataGridViewTextBoxColumn dgvBuyerName;
private System.Windows.Forms.DataGridViewTextBoxColumn colBuyerNick;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
private System.Windows.Forms.DataGridViewLinkColumn colVisit;
private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
private UserComponent.DataGridViewEx dgvPddBuyerOrder;
private DevComponents.DotNetBar.PanelEx panelEx3;
private DevComponents.DotNetBar.PanelEx panelEx2;
@@ -1285,5 +1277,13 @@ namespace TemuKJD.WXForms.TalkForms
private System.Windows.Forms.DataGridViewLinkColumn colSend;
private System.Windows.Forms.DataGridViewLinkColumn colAfterSale;
private UserComponent.UcCheckBox chkAutoAfterSale;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colBuyerId;
private System.Windows.Forms.DataGridViewTextBoxColumn colBuyerName;
private System.Windows.Forms.DataGridViewTextBoxColumn colBuyerNick;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
private System.Windows.Forms.DataGridViewLinkColumn colVisit;
private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
}
}
@@ -198,12 +198,17 @@ namespace TemuKJD.WXForms.TalkForms
}
else if (order.order_status_prompt.Contains("退款成功") || order.order_status_prompt.Contains("交易已取消"))
{
row.Cells["colOMsg"].Value = "[退]" + row.Cells["colOMsg"].Value.ParseToString();
row.Cells["colOMsg"].Value = "[已退]" + row.Cells["colOMsg"].Value.ParseToString();
row.Cells["colOMsg"].Style.ForeColor = Color.Gray;
}
else if (order.after_sales != null)
{
row.Cells["colOMsg"].Value = "[待退]" + row.Cells["colOMsg"].Value.ParseToString();
row.Cells["colOMsg"].Value = "[退货中]" + row.Cells["colOMsg"].Value.ParseToString();
row.Cells["colOMsg"].Style.ForeColor = Color.DeepSkyBlue;
}
else if (!string.IsNullOrEmpty(order.wxRefundStatus))
{
row.Cells["colOMsg"].Value = "[" + order.wxRefundStatus + "]" + row.Cells["colOMsg"].Value.ParseToString();
row.Cells["colOMsg"].Style.ForeColor = Color.Red;
}
else
@@ -546,8 +551,8 @@ namespace TemuKJD.WXForms.TalkForms
{
row.Cells["colSelect"].Value = selectIds.Contains(buyer.buyer_id);
row.Cells["colBuyerId"].Value = buyer.buyer_id;
row.Cells["dgvBuyerName"].Value = buyer.buyer_name;
row.Cells["dgvBuyerNick"].Value = buyer.buyer_nick;
row.Cells["colBuyerName"].Value = buyer.buyer_name;
row.Cells["colBuyerNick"].Value = buyer.buyer_nick;
row.Cells["colShopNotes"].Value = buyer.notes;
row.Cells["colBuyerId"].Value = buyer.buyer_id;
row.Cells["colLoginStatus"].Value = buyer.status;
@@ -1141,7 +1146,7 @@ namespace TemuKJD.WXForms.TalkForms
if (order == null)
continue;
//order.refundStatus = order.order_status_prompt.Contains("待发货") ? "待退款" : "待退货";
order.wxRefundStatus = order.order_status_prompt.Contains("待发货") ? "待退款" : "待退货";
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order_list", lstPddBuyerOrderInfoLite);
Invoke(new Action(() =>
{