店铺优化数据抓取 拼多多买手刷新订单逻辑优化
This commit is contained in:
1 parent
0e6a927cf2
commit
b5d8818485
14 files changed
+2492
-615
No files matched your search
+299
-91
@@ -40,6 +40,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BuyerOrderListForm));
|
||||
@@ -67,12 +71,22 @@ 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.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();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.panelEx3 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.dgvAfterSale = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.btnExchange = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.lblMsg = new System.Windows.Forms.Label();
|
||||
this.btnRestore = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -88,7 +102,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colOImg = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colOGoodsInfo = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOOrderAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dgvOStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOExpressName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOExpressId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -108,14 +122,19 @@ 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.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();
|
||||
this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colRBuyerId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRBuyerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRPddOrderSn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colROrderDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colRGoodsInfo = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colROrderAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRRefundAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewLinkColumn1 = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -132,6 +151,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.splitContainer3.Panel2.SuspendLayout();
|
||||
this.splitContainer3.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvAfterSale)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvPddBuyerOrder)).BeginInit();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
@@ -517,6 +537,70 @@ 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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// splitContainer2
|
||||
//
|
||||
this.splitContainer2.BackColor = System.Drawing.Color.White;
|
||||
@@ -641,6 +725,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.dgvAfterSale);
|
||||
this.panel2.Controls.Add(this.btnExchange);
|
||||
this.panel2.Controls.Add(this.pictureBox1);
|
||||
this.panel2.Controls.Add(this.lblMsg);
|
||||
this.panel2.Controls.Add(this.btnRestore);
|
||||
@@ -653,6 +739,76 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.panel2.Size = new System.Drawing.Size(1062, 345);
|
||||
this.panel2.TabIndex = 908;
|
||||
//
|
||||
// dgvAfterSale
|
||||
//
|
||||
this.dgvAfterSale.AllowUserToAddRows = false;
|
||||
this.dgvAfterSale.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvAfterSale.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.dgvAfterSale.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dgvAfterSale.AutoRowNumber = true;
|
||||
this.dgvAfterSale.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvAfterSale.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvAfterSale.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvAfterSale.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.dgvAfterSale.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvAfterSale.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewCheckBoxColumn2,
|
||||
this.colRBuyerId,
|
||||
this.colRBuyerName,
|
||||
this.colRPddOrderSn,
|
||||
this.colROrderDate,
|
||||
this.dataGridViewTextBoxColumn5,
|
||||
this.dataGridViewImageColumn1,
|
||||
this.colRGoodsInfo,
|
||||
this.colROrderAmount,
|
||||
this.colRRefundAmount,
|
||||
this.colRStatus,
|
||||
this.colRMsg,
|
||||
this.dataGridViewLinkColumn1});
|
||||
this.dgvAfterSale.Location = new System.Drawing.Point(30, 223);
|
||||
this.dgvAfterSale.MultiSelectCheckBox = true;
|
||||
this.dgvAfterSale.Name = "dgvAfterSale";
|
||||
this.dgvAfterSale.ReadOnly = true;
|
||||
this.dgvAfterSale.RowTemplate.Height = 23;
|
||||
this.dgvAfterSale.Size = new System.Drawing.Size(1005, 83);
|
||||
this.dgvAfterSale.TabIndex = 941;
|
||||
this.dgvAfterSale.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAfterSale_CellContentClick);
|
||||
//
|
||||
// btnExchange
|
||||
//
|
||||
this.btnExchange.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnExchange.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnExchange.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExchange.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnExchange.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnExchange.Location = new System.Drawing.Point(989, 12);
|
||||
this.btnExchange.Name = "btnExchange";
|
||||
this.btnExchange.Size = new System.Drawing.Size(70, 23);
|
||||
this.btnExchange.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnExchange.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnExchange.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnExchange.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnExchange.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnExchange.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnExchange.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnExchange.Style.GradientAngle = 90;
|
||||
this.btnExchange.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnExchange.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnExchange.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnExchange.TabIndex = 931;
|
||||
this.btnExchange.Text = "切换售后";
|
||||
this.btnExchange.Click += new System.EventHandler(this.btnExchange_Click);
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
@@ -733,8 +889,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
this.dgvPddBuyerOrder.AllowUserToAddRows = false;
|
||||
this.dgvPddBuyerOrder.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvPddBuyerOrder.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
|
||||
dataGridViewCellStyle13.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvPddBuyerOrder.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
|
||||
this.dgvPddBuyerOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -742,14 +898,14 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dgvPddBuyerOrder.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvPddBuyerOrder.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvPddBuyerOrder.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvPddBuyerOrder.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
|
||||
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvPddBuyerOrder.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
|
||||
this.dgvPddBuyerOrder.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvPddBuyerOrder.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewCheckBoxColumn1,
|
||||
@@ -761,7 +917,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colOImg,
|
||||
this.colOGoodsInfo,
|
||||
this.colOOrderAmount,
|
||||
this.dgvOStatus,
|
||||
this.colOStatus,
|
||||
this.colOExpressName,
|
||||
this.colOExpressId,
|
||||
this.colOMsg,
|
||||
@@ -807,8 +963,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// colOOrderTime
|
||||
//
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOOrderTime.DefaultCellStyle = dataGridViewCellStyle11;
|
||||
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOOrderTime.DefaultCellStyle = dataGridViewCellStyle15;
|
||||
this.colOOrderTime.FillWeight = 70F;
|
||||
this.colOOrderTime.HeaderText = "拍单时间";
|
||||
this.colOOrderTime.Name = "colOOrderTime";
|
||||
@@ -834,8 +990,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// colOGoodsInfo
|
||||
//
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOGoodsInfo.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOGoodsInfo.DefaultCellStyle = dataGridViewCellStyle16;
|
||||
this.colOGoodsInfo.FillWeight = 140F;
|
||||
this.colOGoodsInfo.HeaderText = "商品信息";
|
||||
this.colOGoodsInfo.Name = "colOGoodsInfo";
|
||||
@@ -848,11 +1004,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colOOrderAmount.Name = "colOOrderAmount";
|
||||
this.colOOrderAmount.ReadOnly = true;
|
||||
//
|
||||
// dgvOStatus
|
||||
// colOStatus
|
||||
//
|
||||
this.dgvOStatus.HeaderText = "订单状态";
|
||||
this.dgvOStatus.Name = "dgvOStatus";
|
||||
this.dgvOStatus.ReadOnly = true;
|
||||
this.colOStatus.HeaderText = "订单状态";
|
||||
this.colOStatus.Name = "colOStatus";
|
||||
this.colOStatus.ReadOnly = true;
|
||||
//
|
||||
// colOExpressName
|
||||
//
|
||||
@@ -1102,69 +1258,105 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.statusBar.Size = new System.Drawing.Size(1438, 25);
|
||||
this.statusBar.TabIndex = 5;
|
||||
//
|
||||
// colSelect
|
||||
// dataGridViewCheckBoxColumn2
|
||||
//
|
||||
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;
|
||||
this.dataGridViewCheckBoxColumn2.FillWeight = 26F;
|
||||
this.dataGridViewCheckBoxColumn2.HeaderText = "选";
|
||||
this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2";
|
||||
this.dataGridViewCheckBoxColumn2.ReadOnly = true;
|
||||
this.dataGridViewCheckBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewCheckBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// colBuyerId
|
||||
// colRBuyerId
|
||||
//
|
||||
this.colBuyerId.HeaderText = "买手Id";
|
||||
this.colBuyerId.Name = "colBuyerId";
|
||||
this.colBuyerId.ReadOnly = true;
|
||||
this.colBuyerId.Visible = false;
|
||||
this.colBuyerId.Width = 55;
|
||||
this.colRBuyerId.HeaderText = "买手编号";
|
||||
this.colRBuyerId.Name = "colRBuyerId";
|
||||
this.colRBuyerId.ReadOnly = true;
|
||||
this.colRBuyerId.Visible = false;
|
||||
//
|
||||
// colBuyerName
|
||||
// colRBuyerName
|
||||
//
|
||||
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;
|
||||
this.colRBuyerName.FillWeight = 80F;
|
||||
this.colRBuyerName.HeaderText = "买手名称";
|
||||
this.colRBuyerName.Name = "colRBuyerName";
|
||||
this.colRBuyerName.ReadOnly = true;
|
||||
//
|
||||
// colBuyerNick
|
||||
// colRPddOrderSn
|
||||
//
|
||||
this.colBuyerNick.HeaderText = "买手昵称";
|
||||
this.colBuyerNick.Name = "colBuyerNick";
|
||||
this.colBuyerNick.ReadOnly = true;
|
||||
this.colBuyerNick.Width = 80;
|
||||
this.colRPddOrderSn.HeaderText = "拍单订单号";
|
||||
this.colRPddOrderSn.Name = "colRPddOrderSn";
|
||||
this.colRPddOrderSn.ReadOnly = true;
|
||||
//
|
||||
// colShopNotes
|
||||
// colROrderDate
|
||||
//
|
||||
this.colShopNotes.HeaderText = "备注";
|
||||
this.colShopNotes.Name = "colShopNotes";
|
||||
this.colShopNotes.ReadOnly = true;
|
||||
this.colShopNotes.Width = 80;
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colROrderDate.DefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.colROrderDate.FillWeight = 70F;
|
||||
this.colROrderDate.HeaderText = "拍单日期";
|
||||
this.colROrderDate.Name = "colROrderDate";
|
||||
this.colROrderDate.ReadOnly = true;
|
||||
//
|
||||
// colVisit
|
||||
// dataGridViewTextBoxColumn5
|
||||
//
|
||||
this.colVisit.HeaderText = "访问";
|
||||
this.colVisit.Name = "colVisit";
|
||||
this.colVisit.ReadOnly = true;
|
||||
this.colVisit.Visible = false;
|
||||
this.colVisit.Width = 38;
|
||||
this.dataGridViewTextBoxColumn5.HeaderText = "图片路径";
|
||||
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
|
||||
this.dataGridViewTextBoxColumn5.ReadOnly = true;
|
||||
this.dataGridViewTextBoxColumn5.Visible = false;
|
||||
//
|
||||
// colLoginStatus
|
||||
// dataGridViewImageColumn1
|
||||
//
|
||||
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;
|
||||
this.dataGridViewImageColumn1.FillWeight = 35F;
|
||||
this.dataGridViewImageColumn1.HeaderText = "订单图片";
|
||||
this.dataGridViewImageColumn1.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
|
||||
this.dataGridViewImageColumn1.ReadOnly = true;
|
||||
this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.dataGridViewImageColumn1.Visible = false;
|
||||
//
|
||||
// colMessage
|
||||
// colRGoodsInfo
|
||||
//
|
||||
this.colMessage.HeaderText = "消息";
|
||||
this.colMessage.Name = "colMessage";
|
||||
this.colMessage.ReadOnly = true;
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colRGoodsInfo.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.colRGoodsInfo.FillWeight = 140F;
|
||||
this.colRGoodsInfo.HeaderText = "商品信息";
|
||||
this.colRGoodsInfo.Name = "colRGoodsInfo";
|
||||
this.colRGoodsInfo.ReadOnly = true;
|
||||
//
|
||||
// colROrderAmount
|
||||
//
|
||||
this.colROrderAmount.FillWeight = 50F;
|
||||
this.colROrderAmount.HeaderText = "付款金额";
|
||||
this.colROrderAmount.Name = "colROrderAmount";
|
||||
this.colROrderAmount.ReadOnly = true;
|
||||
//
|
||||
// colRRefundAmount
|
||||
//
|
||||
this.colRRefundAmount.FillWeight = 50F;
|
||||
this.colRRefundAmount.HeaderText = "退款金额";
|
||||
this.colRRefundAmount.Name = "colRRefundAmount";
|
||||
this.colRRefundAmount.ReadOnly = true;
|
||||
//
|
||||
// colRStatus
|
||||
//
|
||||
this.colRStatus.HeaderText = "售后状态";
|
||||
this.colRStatus.Name = "colRStatus";
|
||||
this.colRStatus.ReadOnly = true;
|
||||
//
|
||||
// colRMsg
|
||||
//
|
||||
this.colRMsg.HeaderText = "发送信息";
|
||||
this.colRMsg.Name = "colRMsg";
|
||||
this.colRMsg.ReadOnly = true;
|
||||
//
|
||||
// dataGridViewLinkColumn1
|
||||
//
|
||||
this.dataGridViewLinkColumn1.FillWeight = 50F;
|
||||
this.dataGridViewLinkColumn1.HeaderText = "发送";
|
||||
this.dataGridViewLinkColumn1.Name = "dataGridViewLinkColumn1";
|
||||
this.dataGridViewLinkColumn1.ReadOnly = true;
|
||||
this.dataGridViewLinkColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewLinkColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// BuyerOrderListForm
|
||||
//
|
||||
@@ -1202,6 +1394,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.splitContainer3.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvAfterSale)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvPddBuyerOrder)).EndInit();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
@@ -1261,21 +1454,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private DevComponents.DotNetBar.PanelEx btnFilterOrder;
|
||||
private System.Windows.Forms.Label lblMsg;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOBuyerId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOBuyerName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOPddOrderSn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOOrderTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOImgUrl;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colOImg;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOGoodsInfo;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOOrderAmount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dgvOStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOExpressName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOExpressId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOMsg;
|
||||
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;
|
||||
@@ -1285,5 +1463,35 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colVisit;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
private DevComponents.DotNetBar.PanelEx btnExchange;
|
||||
private UserComponent.DataGridViewEx dgvAfterSale;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOBuyerId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOBuyerName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOPddOrderSn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOOrderTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOImgUrl;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colOImg;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOGoodsInfo;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOOrderAmount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOExpressName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOExpressId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOMsg;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSend;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colAfterSale;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRBuyerId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRBuyerName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRPddOrderSn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colROrderDate;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
|
||||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRGoodsInfo;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colROrderAmount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRRefundAmount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRMsg;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn1;
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
ShopLoginInfo currentShop { get { return this.lblCurrentShop.Tag as ShopLoginInfo; } }
|
||||
//ConcurrentList<WxOrderInfoLite> lstWxOrderInfoLite { get; set; } = new ConcurrentList<WxOrderInfoLite>();
|
||||
ConcurrentList<PddBuyerOrderInfoLite> lstPddBuyerOrderInfoLite { get; set; } = new ConcurrentList<PddBuyerOrderInfoLite>();
|
||||
ConcurrentList<PddBuyerAfterSaleInfoLite> lstPddBuyerAfterSaleInfoLite { get; set; } = new ConcurrentList<PddBuyerAfterSaleInfoLite>();
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = new CancellationTokenSource();
|
||||
public ChromiumWebBrowser cefWebBrowser = null;
|
||||
public BuyerOrderConfig buyerOrderConfig = new BuyerOrderConfig();
|
||||
@@ -50,6 +51,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
public bool isLoadComplate = false;
|
||||
public bool firstVisible = false;
|
||||
bool isInitOrder = false;
|
||||
bool isInitAfterSale = false;
|
||||
bool isInitBuyer = false;
|
||||
bool isReadOrder = false;
|
||||
|
||||
@@ -65,6 +67,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
dtpStartTime.Value = DateTime.Now.Date.AddMonths(-1);
|
||||
dtpEndTime.Value = DateTime.Now.Date.AddDays(1).AddSeconds(-1);
|
||||
dgvBuyer.AddSelectorColumn("colSelect");
|
||||
dgvAfterSale.Location = new Point(dgvPddBuyerOrder.Location.X, dgvPddBuyerOrder.Location.Y);
|
||||
dgvAfterSale.Width = dgvPddBuyerOrder.Width;
|
||||
dgvAfterSale.Height = dgvPddBuyerOrder.Height;
|
||||
dgvAfterSale.SendToBack();
|
||||
|
||||
InitCef();
|
||||
|
||||
@@ -82,6 +88,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
lstPddBuyerOrderInfoLite = new ConcurrentList<PddBuyerOrderInfoLite>();
|
||||
lstPddBuyerOrderInfoLite.RemoveAll(o => o.order_time < BaseClass.DateTimeToTimestampSeconds(DateTime.Now.AddMonths(-1)));
|
||||
|
||||
lstPddBuyerAfterSaleInfoLite = NaiBa.Util.Helper.ConfigHelper.LoadConfig<ConcurrentList<PddBuyerAfterSaleInfoLite>>("pdd_buyer_after_sale_list");
|
||||
if (lstPddBuyerAfterSaleInfoLite == null)
|
||||
lstPddBuyerAfterSaleInfoLite = new ConcurrentList<PddBuyerAfterSaleInfoLite>();
|
||||
lstPddBuyerAfterSaleInfoLite.RemoveAll(o => o.orderDate < DateTime.Now.AddMonths(-1).ToString("yyMMdd").ParseToInt());
|
||||
|
||||
GetBuyer();
|
||||
|
||||
Task.Run(() =>
|
||||
@@ -92,7 +103,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
ShowExistOrder();
|
||||
|
||||
while (isInitOrder)
|
||||
while (isInitOrder || isInitAfterSale)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
@@ -104,7 +115,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
while(true)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
if (isReadOrder || isInitBuyer || isInitOrder)
|
||||
if (isReadOrder || isInitBuyer || isInitOrder || isInitAfterSale)
|
||||
{
|
||||
Invoke(new Action(() => { pictureBox1.Visible = true; }));
|
||||
}
|
||||
@@ -138,6 +149,21 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
isInitOrder = false;
|
||||
});
|
||||
|
||||
isInitAfterSale = true;
|
||||
Task.Run(() => {
|
||||
foreach (var afterSale in lstPddBuyerAfterSaleInfoLite)
|
||||
{
|
||||
if (GlobalConfig.BuyerLoginList.Any(b => b.buyer_id == afterSale.buyerId))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(afterSale);
|
||||
}));
|
||||
}
|
||||
}
|
||||
isInitAfterSale = false;
|
||||
});
|
||||
}
|
||||
|
||||
void ShowOrder(PddBuyerOrderInfoLite order)
|
||||
@@ -180,7 +206,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
// 商品信息
|
||||
row.Cells["colOGoodsInfo"].Value = order.order_Goods == null ? "" : string.Join("\r\n", order.order_Goods.Select(g => g.goods_name + " x" + g.goods_number));
|
||||
row.Cells["colOOrderAmount"].Value = order.order_amount * 0.01;
|
||||
row.Cells["dgvOStatus"].Value = order.order_status_prompt;
|
||||
row.Cells["colOStatus"].Value = order.order_status_prompt;
|
||||
row.Cells["colOExpressName"].Value = order.outExpressCompanyName;
|
||||
row.Cells["colOExpressId"].Value = order.tracking_number;
|
||||
row.Cells["colOMsg"].Value = order.sendStatus;
|
||||
@@ -217,6 +243,80 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
}
|
||||
|
||||
void ShowAfterSale(PddBuyerAfterSaleInfoLite afterSale)
|
||||
{
|
||||
if (afterSale == null)
|
||||
return;
|
||||
|
||||
var row = dgvAfterSale.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colRPddOrderSn").ParseToString() == afterSale.orderSn);
|
||||
if (row == null)
|
||||
{
|
||||
var rowIndex = this.dgvAfterSale.Rows.Add(
|
||||
false,
|
||||
afterSale.buyerId,
|
||||
afterSale.buyerName,
|
||||
afterSale.orderSn,
|
||||
afterSale.orderDate,
|
||||
"", // 图片路径,
|
||||
DataGridViewExtension.defaultBitmap, // 订单图片
|
||||
afterSale.listItemGoodsVO == null ? "" : afterSale.listItemGoodsVO.goodsName + " " + afterSale.listItemGoodsVO.spec + " x" + afterSale.listItemGoodsVO.goodsNumber, // 商品信息
|
||||
afterSale.listItemAmountVO.orderAmount * 0.01m,
|
||||
afterSale.listItemAmountVO.refundAmount * 0.01m,
|
||||
afterSale.listItemStatusVO.statusText,
|
||||
afterSale.sendStatus,
|
||||
"发送",
|
||||
"退货"
|
||||
);
|
||||
row = dgvAfterSale.Rows[rowIndex];
|
||||
row.Height = 40;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//row.Cells["colOSelect"].Value = selectIds.Contains(buyer.buyer_id);
|
||||
row.Cells["colRBuyerId"].Value = afterSale.buyerId;
|
||||
row.Cells["colRBuyerName"].Value = afterSale.buyerName;
|
||||
row.Cells["colRPddOrderSn"].Value = afterSale.orderSn;
|
||||
row.Cells["colROrderDate"].Value = afterSale.orderDate;
|
||||
//row.Cells["colOImgUrl"].Value = "";
|
||||
// 商品信息
|
||||
row.Cells["colRGoodsInfo"].Value = afterSale.listItemGoodsVO == null ? "" : afterSale.listItemGoodsVO.goodsName + " " + afterSale.listItemGoodsVO.spec + " x" + afterSale.listItemGoodsVO.goodsNumber; // 商品信息
|
||||
row.Cells["colROrderAmount"].Value = afterSale.listItemAmountVO.orderAmount * 0.01;
|
||||
row.Cells["colRRefundAmount"].Value = afterSale.listItemAmountVO.refundAmount * 0.01;
|
||||
row.Cells["colRStatus"].Value = afterSale.listItemStatusVO.statusText;
|
||||
row.Cells["colRMsg"].Value = afterSale.sendStatus;
|
||||
}
|
||||
//if (afterSale.outExpressCompanyName == "物流名称获取失败")
|
||||
// row.Cells["colOExpressName"].Style.ForeColor = Color.Orange;
|
||||
//else
|
||||
// row.Cells["colOExpressName"].Style.ForeColor = Control.DefaultForeColor;
|
||||
|
||||
//if (afterSale.order_status_prompt.Contains("交易成功"))
|
||||
//{
|
||||
// row.Cells["colOMsg"].Value = "[完]" + row.Cells["colOMsg"].Value.ParseToString();
|
||||
// row.Cells["colOMsg"].Style.ForeColor = Color.Green;
|
||||
//}
|
||||
//else if (afterSale.order_status_prompt.Contains("退款成功") || afterSale.order_status_prompt.Contains("交易已取消"))
|
||||
//{
|
||||
// row.Cells["colOMsg"].Value = "[已退]" + row.Cells["colOMsg"].Value.ParseToString();
|
||||
// row.Cells["colOMsg"].Style.ForeColor = Color.Gray;
|
||||
//}
|
||||
//else if (afterSale.after_sales != null)
|
||||
//{
|
||||
// row.Cells["colOMsg"].Value = "[退货中]" + row.Cells["colOMsg"].Value.ParseToString();
|
||||
// row.Cells["colOMsg"].Style.ForeColor = Color.DeepSkyBlue;
|
||||
//}
|
||||
//else if (!string.IsNullOrEmpty(afterSale.wxRefundStatus))
|
||||
//{
|
||||
// row.Cells["colOMsg"].Value = "[" + afterSale.wxRefundStatus + "]" + row.Cells["colOMsg"].Value.ParseToString();
|
||||
// row.Cells["colOMsg"].Style.ForeColor = Color.Red;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// row.Cells["colOMsg"].Style.ForeColor = Control.DefaultForeColor;
|
||||
//}
|
||||
}
|
||||
|
||||
private void InitCef()
|
||||
{
|
||||
cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false);
|
||||
@@ -248,6 +348,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
private void RequestHandler_ResourceLoadComplete(object sender, string url, string postData, string responseData, IRequest request)
|
||||
{
|
||||
var cookie1 = request.Headers["Cookie"];
|
||||
Task.Run(() =>
|
||||
{
|
||||
var url1 = url;
|
||||
@@ -267,6 +368,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//if (url1.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3&order_index=0"))
|
||||
//{
|
||||
//}
|
||||
// 已发货 第一页
|
||||
if (url1.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3")) //https://mobile.yangkeduo.com/orders.html?type=3
|
||||
{
|
||||
Task.Run(() =>
|
||||
@@ -291,6 +393,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
});
|
||||
}
|
||||
// 待发货 第一页
|
||||
if (url1.StartsWith("https://mobile.yangkeduo.com/orders.html?type=2"))
|
||||
{
|
||||
Task.Run(() =>
|
||||
@@ -323,6 +426,61 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
});
|
||||
}
|
||||
// 读取售后
|
||||
if (url1.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/blade/after_sales_list"))
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
CefReadBuyerAfterSale(url1, data1);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
// 售后 第一页
|
||||
if (url1.StartsWith("https://mobile.yangkeduo.com/complaint_list.html"))
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
if (data1.Contains("listItemStatusVo") && data1.Contains("afterSalesId") && data1.Contains("statusText"))
|
||||
{
|
||||
var cookie2 = cookie1.Replace(";" , "&").Replace(" ", "");
|
||||
//var jsonDatas = BaseRegex.GetJsonObjStrJson(ref data1, "pending");
|
||||
var jsonDatas = BaseRegex.GetJsonObjStrJson(ref data1, "listDataMap");
|
||||
var jsonData = jsonDatas?.OrderByDescending(x => x.Length).FirstOrDefault();
|
||||
//var nickName = BaseRegex.GetStringJson(ref data1, "nickName");
|
||||
|
||||
//var uid = BaseRegex.GetStringJson(ref data1, "uid");
|
||||
//var buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_id == uid)?.buyer_id;
|
||||
//if (buyerId.IsNullOrEmpty())
|
||||
// buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_nick == nickName)?.buyer_id;
|
||||
//if (!string.IsNullOrEmpty(jsonData) && !string.IsNullOrEmpty(buyerId))
|
||||
//{
|
||||
// var ordersStr = BaseRegex.GetJsonObjStrJson(ref jsonData, "initOdersList")?.FirstOrDefault();
|
||||
// if (ordersStr != null && ordersStr.StartsWith("{\"2\":"))
|
||||
// {
|
||||
// ordersStr = "{\"orders\":" + ordersStr.Substring(5);
|
||||
// CefReadBuyerOrder(buyerId, ordersStr);
|
||||
// }
|
||||
//}
|
||||
var uid = BaseRegex.GetStringQuery(ref cookie2, "pdd_user_id");
|
||||
var buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_id == uid)?.buyer_id;
|
||||
if (!string.IsNullOrEmpty(buyerId) && !string.IsNullOrEmpty(jsonData))
|
||||
{
|
||||
try
|
||||
{
|
||||
var jObj = JsonHelper.JObjectParse(jsonData);
|
||||
jObj["result"] = jObj["all"];
|
||||
jObj["result"]["listItemVOList"] = jObj["result"]["list"];
|
||||
CefReadBuyerAfterSale(buyerId, JsonHelper.SerializeObject(jObj));
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -417,6 +575,83 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order_list", lstPddBuyerOrderInfoLite);
|
||||
}
|
||||
|
||||
void CefReadBuyerAfterSale(string url, string data)
|
||||
{
|
||||
var buyer = GlobalConfig.BuyerLoginList.FirstOrDefault(b => url.Contains(b.buyer_id));
|
||||
if (buyer == null)
|
||||
return;
|
||||
|
||||
if (data.Contains("\"listItemVOList\":[]") || data.Contains("\"hasNextQuery\":false"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
lblMsg.Text = buyer.buyer_name + " 获取到空售后列表,退出自动滑动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}));
|
||||
currentReadBuyer = "";
|
||||
return;
|
||||
}
|
||||
if (data.Contains("\"error_code\":40001"))
|
||||
{
|
||||
currentReadBuyer = "";
|
||||
CheckBuyerLogin(new List<BuyerLoginInfo> { buyer }, false);
|
||||
return;
|
||||
}
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
lblMsg.Text = buyer.buyer_name + " 正在获取售后列表 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}));
|
||||
|
||||
var list = JsonHelper.DeserializeJsonToList<PddBuyerAfterSaleInfoLite>(JsonHelper.JObjectParse(data)["result"]["listItemVOList"].ParseToString());
|
||||
foreach (var af in list)
|
||||
{
|
||||
af.buyerId = buyer.buyer_id;
|
||||
af.buyerName = buyer.buyer_name;
|
||||
|
||||
PddBuyerAfterSaleInfoLite afterSale = null;
|
||||
if (!this.lstPddBuyerAfterSaleInfoLite.Any(or => or.afterSalesId == af.afterSalesId))
|
||||
{
|
||||
afterSale = af;
|
||||
lstPddBuyerAfterSaleInfoLite.Add(afterSale);
|
||||
}
|
||||
else
|
||||
{
|
||||
afterSale = this.lstPddBuyerAfterSaleInfoLite.FirstOrDefault(aft => aft.afterSalesId == af.afterSalesId);
|
||||
if (JsonHelper.SerializeObject(afterSale) != JsonHelper.SerializeObject(af))
|
||||
{
|
||||
//order = JsonHelper.DeserializeJsonToObject<PddBuyerOrderInfoLite>(JsonHelper.SerializeObject(o));
|
||||
afterSale.afterSalesId = af.afterSalesId;
|
||||
afterSale.listItemAmountVO = JsonHelper.DeserializeJsonToObject<ListItemAmountVO>(JsonHelper.SerializeObject(af.listItemAmountVO));
|
||||
afterSale.listItemExtraVO = JsonHelper.DeserializeJsonToObject<ListItemExtraVO>(JsonHelper.SerializeObject(af.listItemExtraVO));
|
||||
afterSale.listItemGoodsVO = JsonHelper.DeserializeJsonToObject<ListItemGoodsVO>(JsonHelper.SerializeObject(af.listItemGoodsVO));
|
||||
afterSale.listItemMallVO = JsonHelper.DeserializeJsonToObject<ListItemMallVO>(JsonHelper.SerializeObject(af.listItemMallVO));
|
||||
afterSale.listItemStatusVO = JsonHelper.DeserializeJsonToObject<ListItemStatusVO>(JsonHelper.SerializeObject(af.listItemStatusVO));
|
||||
}
|
||||
}
|
||||
|
||||
if (afterSale.orderDate < DateTime.Now.AddMonths(-2).ToString("yyMMdd").ParseToInt())
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
lblMsg.Text = buyer.buyer_name + " 近2个月售后列表获取完成,退出自动滑动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}));
|
||||
currentReadBuyer = "";
|
||||
return;
|
||||
}
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
SendAfterSaleE57(afterSale);
|
||||
});
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(afterSale);
|
||||
}));
|
||||
}
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_after_sale_list", lstPddBuyerAfterSaleInfoLite);
|
||||
}
|
||||
|
||||
private bool RequestHandler_BeforeResourceLoad(object sender, string url, string postData, IRequest request)
|
||||
{
|
||||
return false;
|
||||
@@ -587,7 +822,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
nextGetOrderTime = DateTime.Now.AddMinutes(30);
|
||||
GetPddOrder();
|
||||
MakeAfterSales();
|
||||
MakeWxToPddAfterSales();
|
||||
}
|
||||
Thread.Sleep(1000);
|
||||
Invoke(new Action(() =>
|
||||
@@ -634,9 +869,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/personal.html");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
// 售后
|
||||
string readBuyer = buyer.buyer_id;
|
||||
currentReadBuyer = buyer.buyer_id;
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/orders.html?type=2");
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/complaint_list.html?refer_page_name=personal&refer_page_sn=10001&tab=all");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
int top = 0;
|
||||
@@ -645,8 +881,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
Thread.Sleep(Randomx.GetId(100,300));
|
||||
top += Randomx.GetId(400, 500);
|
||||
top += Randomx.GetId(450, 600);
|
||||
Thread.Sleep(Randomx.GetId(100, 300));
|
||||
|
||||
var jsStr = @"window.scroll({
|
||||
top: document.body.scrollHeight,
|
||||
@@ -663,6 +899,37 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
// 待发货
|
||||
readBuyer = buyer.buyer_id;
|
||||
currentReadBuyer = buyer.buyer_id;
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/orders.html?type=2");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
top = 0;
|
||||
while (currentReadBuyer == readBuyer)
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
top += Randomx.GetId(450, 600);
|
||||
Thread.Sleep(Randomx.GetId(100,300));
|
||||
|
||||
var jsStr = @"window.scroll({
|
||||
top: document.body.scrollHeight,
|
||||
left: 0,
|
||||
behavior: 'smooth' // 可选,使滚动平滑
|
||||
});";
|
||||
jsStr = @"window.scroll({
|
||||
top: " + top + @",
|
||||
left: 0,
|
||||
behavior: 'smooth' // 可选,使滚动平滑
|
||||
});";
|
||||
var t1 = cefWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr);
|
||||
t1.Wait(1000);
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
// 已发货
|
||||
readBuyer = buyer.buyer_id;
|
||||
currentReadBuyer = buyer.buyer_id;
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/orders.html?type=3");
|
||||
@@ -674,7 +941,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
top += Randomx.GetId(400, 500);
|
||||
top += Randomx.GetId(450, 600);
|
||||
Thread.Sleep(Randomx.GetId(100, 300));
|
||||
|
||||
var jsStr = @"window.scroll({
|
||||
@@ -704,7 +971,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
nextGetOrderTime = DateTime.Now.AddMinutes(30);
|
||||
GetPddOrder();
|
||||
MakeAfterSales();
|
||||
MakeWxToPddAfterSales();
|
||||
}
|
||||
|
||||
private void pnlEmpty_Click(object sender, EventArgs e)
|
||||
@@ -1030,7 +1297,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
pictureBox1.Visible = true;
|
||||
Task.Run(() =>
|
||||
{
|
||||
MakeAfterSale(order);
|
||||
MakeWxToPddAfterSale(order);
|
||||
Invoke(new Action(() => { pictureBox1.Visible = false; }));
|
||||
});
|
||||
break;
|
||||
@@ -1041,8 +1308,17 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
public void SendOrderE57(PddBuyerOrderInfoLite order, bool resetSendStatus = false)
|
||||
{
|
||||
if (order == null)
|
||||
return;
|
||||
if (resetSendStatus)
|
||||
order.sendStatus = "";
|
||||
var row = dgvPddBuyerOrder.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colOPddOrderSn").ParseToString() == order.order_sn);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (row != null)
|
||||
row.Cells["colOMsg"].Value = "";
|
||||
}));
|
||||
Thread.Sleep(100);
|
||||
|
||||
// 已发货且没有运单号的属于已退货,不再发送
|
||||
if (order.order_status_prompt != "拼单成功,待发货" && order.order_status_prompt != "免拼成功,待发货" && (
|
||||
@@ -1065,6 +1341,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
// return;
|
||||
if (order.sendStatus.Contains("外采订单已发货"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowOrder(order);
|
||||
}));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1081,21 +1361,26 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//失败 已存在
|
||||
//<ResultVo><code>1505</code><msg>调用微信接口更新物流信息失败: 非法参数, 同运单号拦截 rid: 69d8ab9c-22baa3b1-67de0d95</msg><data/><totalRecords/></ResultVo>
|
||||
var exportRst = WXHttpResponseBLL.e57PostResponse(url, dataStr, "");
|
||||
if (exportRst.Contains("发送失败 操作超时"))
|
||||
for (int i = 0; i < 5 && exportRst.Contains("操作超时"); i++)
|
||||
{
|
||||
Thread.Sleep(2000);
|
||||
WXHttpResponseBLL.e57PostResponse(url, dataStr, "");
|
||||
if (exportRst.Contains("SUCCESS") /*|| exportRst.Contains("已存在") || exportRst.Contains("同运单号拦截") || exportRst.Contains("订单已绑定外采订单")*/)
|
||||
{
|
||||
order.sendStatus = "已发送";
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order_list", lstPddBuyerOrderInfoLite);
|
||||
}
|
||||
else if (exportRst != null && exportRst.Contains("<msg>") && exportRst.Contains("</msg>"))
|
||||
// exportRst.Contains("已存在") || exportRst.Contains("同运单号拦截") || exportRst.Contains("订单已绑定外采订单")
|
||||
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
|
||||
xmlDoc.LoadXml(exportRst); //<ResultVo><code>1505</code><msg>不支持的平台类型: WEISHOP</msg><data/><totalRecords/></ResultVo>
|
||||
string msg = xmlDoc["ResultVo"]["msg"].InnerText;
|
||||
string data = xmlDoc["ResultVo"]["data"].InnerText;
|
||||
if (msg == "SUCCESS")
|
||||
{
|
||||
order.sendStatus = exportRst.Substring(0, exportRst.IndexOf("</msg>")).Substring(exportRst.IndexOf("<msg>") + 5);
|
||||
order.sendStatus = string.IsNullOrEmpty(data) ? msg : data;
|
||||
if (order.sendStatus == "更新微信外采订单状态成功")
|
||||
order.sendStatus = "已发送";
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order_list", lstPddBuyerOrderInfoLite);
|
||||
}
|
||||
else
|
||||
{
|
||||
order.sendStatus = "发送失败 " + exportRst;
|
||||
order.sendStatus = "发送失败 " + (string.IsNullOrEmpty(msg) ? data : msg);
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order_list", lstPddBuyerOrderInfoLite);
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
@@ -1105,7 +1390,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//Thread.Sleep(500);
|
||||
}
|
||||
|
||||
public void MakeAfterSales()
|
||||
public void MakeWxToPddAfterSales()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
@@ -1154,7 +1439,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}));
|
||||
if (chkAutoAfterSale.Checked)
|
||||
{
|
||||
MakeAfterSale(order);
|
||||
MakeWxToPddAfterSale(order);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1166,7 +1451,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
});
|
||||
}
|
||||
|
||||
public string MakeAfterSale(PddBuyerOrderInfoLite order)
|
||||
// 通过服务端读取微信售后并触发拼多多售后或显示提示供买手手动退货
|
||||
public string MakeWxToPddAfterSale(PddBuyerOrderInfoLite order)
|
||||
{
|
||||
//if (isReadOrder)
|
||||
//{
|
||||
@@ -1225,6 +1511,67 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
}
|
||||
|
||||
// 向服务端更新售后退货信息更新状态
|
||||
public void SendAfterSaleE57(PddBuyerAfterSaleInfoLite afterSale, bool resetSendStatus = false)
|
||||
{
|
||||
if (resetSendStatus)
|
||||
afterSale.sendStatus = "";
|
||||
|
||||
var row = dgvAfterSale.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colRPddOrderSn").ParseToString() == afterSale.orderSn);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (row != null)
|
||||
row.Cells["colRMsg"].Value = "";
|
||||
}));
|
||||
Thread.Sleep(100);
|
||||
|
||||
// 已退款成功且发送过的,不再发送
|
||||
if (afterSale.listItemStatusVO.statusText.Contains("退款成功") && afterSale.sendStatus == "发送成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(afterSale);
|
||||
}));
|
||||
return;
|
||||
}
|
||||
|
||||
JObject obj = new JObject();
|
||||
obj["platform"] = "WEISHOP";
|
||||
obj["outOrderNo"] = afterSale.orderSn;
|
||||
obj["afterSaleStatus"] = afterSale.listItemStatusVO.statusText;
|
||||
var dataStr = JsonHelper.SerializeObject(obj);
|
||||
string url = "https://po.e57.cn/prod-api/api/oms-api/external_procurement/updateAfterSaleStatus";
|
||||
//成功 "<ResultVo><code>0</code><msg>SUCCESS</msg><data/><totalRecords/></ResultVo>"
|
||||
//失败 已存在
|
||||
//<ResultVo><code>1505</code><msg>调用微信接口更新物流信息失败: 非法参数, 同运单号拦截 rid: 69d8ab9c-22baa3b1-67de0d95</msg><data/><totalRecords/></ResultVo>
|
||||
var exportRst = WXHttpResponseBLL.e57PostResponse(url, dataStr, "");
|
||||
for (int i = 0; i < 5 && exportRst.Contains("操作超时"); i++)
|
||||
{
|
||||
Thread.Sleep(2000);
|
||||
WXHttpResponseBLL.e57PostResponse(url, dataStr, "");
|
||||
}
|
||||
if (exportRst.Contains("SUCCESS") || exportRst.Contains("更新外采订单的售后成功") /*|| exportRst.Contains("已存在") || exportRst.Contains("同运单号拦截") || exportRst.Contains("订单已绑定外采订单")*/)
|
||||
{
|
||||
afterSale.sendStatus = "发送成功";
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_after_sale_list", lstPddBuyerAfterSaleInfoLite);
|
||||
}
|
||||
else if (exportRst != null && exportRst.Contains("<msg>") && exportRst.Contains("</msg>"))
|
||||
{
|
||||
afterSale.sendStatus = exportRst.Substring(0, exportRst.IndexOf("</msg>")).Substring(exportRst.IndexOf("<msg>") + 5);
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_after_sale_list", lstPddBuyerAfterSaleInfoLite);
|
||||
}
|
||||
else
|
||||
{
|
||||
afterSale.sendStatus = "发送失败 " + exportRst;
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_after_sale_list", lstPddBuyerAfterSaleInfoLite);
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(afterSale);
|
||||
}));
|
||||
//Thread.Sleep(500);
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
panel2.Visible = !panel2.Visible;
|
||||
@@ -1273,6 +1620,15 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
else
|
||||
row.Visible = false;
|
||||
}
|
||||
foreach (DataGridViewRow row in dgvAfterSale.Rows)
|
||||
{
|
||||
if (row.Cells["colRPddOrderSn"].Value.ParseToString().Contains(txtOrderSnFilter.Text.Trim()))
|
||||
row.Visible = true;
|
||||
//else if (row.Cells["colOBuyerName"].Value.ParseToString().Contains(txtOrderSnFilter.Text.Trim()))
|
||||
// row.Visible = true;
|
||||
else
|
||||
row.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRestore_Click(object sender, EventArgs e)
|
||||
@@ -1291,6 +1647,53 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
buyerOrderConfig.IsAutoAfterSale = chkAutoAfterSale.Checked;
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order_config", buyerOrderConfig);
|
||||
}
|
||||
|
||||
private void btnExchange_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (btnExchange.Text == "切换售后")
|
||||
{
|
||||
this.dgvPddBuyerOrder.SendToBack();
|
||||
btnExchange.Text = "切换订单";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.dgvAfterSale.SendToBack();
|
||||
btnExchange.Text = "切换售后";
|
||||
}
|
||||
}
|
||||
|
||||
private void dgvAfterSale_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (e.ColumnIndex < 0 || e.RowIndex < 0)
|
||||
return;
|
||||
string headerText = dgvAfterSale.Columns[e.ColumnIndex].HeaderText;
|
||||
var orderSn = dgvAfterSale.Rows[e.RowIndex].Cells["colRPddOrderSn"].Value.ParseToString();
|
||||
var order = lstPddBuyerAfterSaleInfoLite.FirstOrDefault(p => p.orderSn == orderSn);
|
||||
|
||||
|
||||
switch (headerText)
|
||||
{
|
||||
case "详情":
|
||||
case "编辑/详情":
|
||||
break;
|
||||
case "图片":
|
||||
ShowImgForm imgFrom = new ShowImgForm(dgvPddBuyerOrder.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString().Replace("?imageView2/2/w/90/h/90", ""));
|
||||
imgFrom.ShowDialog();
|
||||
break;
|
||||
case "":
|
||||
case "全选":
|
||||
dgvPddBuyerOrder.Rows[e.RowIndex].Cells["colCheck"].Value = !(bool)dgvPddBuyerOrder.Rows[e.RowIndex].Cells["colCheck"].Value;
|
||||
break;
|
||||
case "发送":
|
||||
Task.Run(() =>
|
||||
{
|
||||
SendAfterSaleE57(order, true);
|
||||
});
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class YkdBuyerOrder
|
||||
|
||||
@@ -174,6 +174,45 @@
|
||||
<metadata name="colMessage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewCheckBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRBuyerId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRBuyerName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRPddOrderSn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colROrderDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewImageColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRGoodsInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colROrderAmount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRRefundAmount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRMsg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewLinkColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewCheckBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -201,7 +240,7 @@
|
||||
<metadata name="colOOrderAmount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dgvOStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="colOStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colOExpressName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
||||
Reference in new issue
Block a user