temu推单相关功能
This commit is contained in:
1 parent
165df61234
commit
b05de6797e
27 files changed
+4561
-315
No files matched your search
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -28,11 +29,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
JoinDeliveryConfig joinDeliveryConfig = null;
|
||||
public bool IsAdmin = false;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
/// <summary>
|
||||
/// 备货单列表
|
||||
/// </summary>
|
||||
List<TemuStockInfo> lstStockInfo = new List<TemuStockInfo>();
|
||||
ConcurrentList<TemuStockInfo> lstStockInfo = new ConcurrentList<TemuStockInfo>();
|
||||
|
||||
public JoinDeliveryForm()
|
||||
{
|
||||
|
||||
@@ -121,10 +121,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.splitContainer1.TabIndex = 37;
|
||||
this.splitContainer1.TabStop = false;
|
||||
//
|
||||
// txtNotes
|
||||
// txtReason
|
||||
//
|
||||
this.txtReason.Location = new System.Drawing.Point(69, 42);
|
||||
this.txtReason.Name = "txtNotes";
|
||||
this.txtReason.Name = "txtReason";
|
||||
this.txtReason.Size = new System.Drawing.Size(347, 23);
|
||||
this.txtReason.TabIndex = 472;
|
||||
//
|
||||
@@ -325,6 +325,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.dgvOrder.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvOrder.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvOrder.AutoRowNumber = true;
|
||||
this.dgvOrder.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvOrder.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvOrder.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -434,6 +435,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.colType.HeaderText = "申报价格类型";
|
||||
this.colType.Name = "colType";
|
||||
this.colType.ReadOnly = true;
|
||||
//
|
||||
// colSkuPrice
|
||||
//
|
||||
@@ -455,6 +457,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.colUseArea.HeaderText = "调整后申报价格适用范围";
|
||||
this.colUseArea.Name = "colUseArea";
|
||||
this.colUseArea.ReadOnly = true;
|
||||
//
|
||||
// colAvailableBalance
|
||||
//
|
||||
|
||||
@@ -92,8 +92,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
pbLoading.Visible = false;
|
||||
}));
|
||||
|
||||
if (IsAuto)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ErrMsg))
|
||||
return;
|
||||
SaveNewPrice();
|
||||
}
|
||||
});
|
||||
@@ -156,7 +159,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
try
|
||||
{
|
||||
var jObj = JObject.Parse(adjustRst);
|
||||
var objStr = JsonHelper.SerializeObject( jObj["result"]);
|
||||
var objStr = JsonHelper.SerializeObject(jObj["result"]);
|
||||
var adjustPriceInfo = JsonHelper.DeserializeJsonToObject<AdjustPriceInfo>(objStr);
|
||||
|
||||
foreach (var item in adjustPriceInfo.spuAdjustResult[productId].skcItems[0].items)
|
||||
@@ -325,12 +328,18 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
|
||||
if (shop == null || productId.IsNullOrEmpty() || skcId.IsNullOrEmpty() || productName.IsNullOrEmpty())
|
||||
{
|
||||
BaseMsgForm.ShowError("店铺商品信息为空!");
|
||||
if (IsAuto)
|
||||
ErrMsg = "店铺商品信息为空!";
|
||||
else
|
||||
BaseMsgForm.ShowError("店铺商品信息为空!");
|
||||
return;
|
||||
}
|
||||
if (!dgvOrder.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colSelect"].Value.ParseToBool() == true))
|
||||
{
|
||||
BaseMsgForm.ShowError("请至少勾选一项!"); // todo
|
||||
if (IsAuto)
|
||||
ErrMsg = "请至少勾选一项!" + dgvOrder.Rows.Cast<DataGridViewRow>().Count();
|
||||
else
|
||||
BaseMsgForm.ShowError("请至少勾选一项!"); // todo,查找自动设置出现次错误原因
|
||||
return;
|
||||
}
|
||||
foreach (DataGridViewRow r in dgvOrder.Rows)
|
||||
@@ -339,7 +348,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
if (r.Cells["colSkuNewPrice"].Value.ParseToDecimal() == 0)
|
||||
{
|
||||
BaseMsgForm.ShowError("请输入合理的新申报价格!");
|
||||
if (IsAuto)
|
||||
ErrMsg = "请输入合理的新申报价格!";
|
||||
else
|
||||
BaseMsgForm.ShowError("请输入合理的新申报价格!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
+74
-74
@@ -114,10 +114,6 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.btnClose = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.dgvOpenJit = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colProdIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -140,6 +136,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colStock = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colRecevieArea = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -1198,76 +1198,6 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.dgvOpenJit.TabIndex = 187;
|
||||
this.dgvOpenJit.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOpenJit_CellContentClick);
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.ucSplitPage1);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1584, 26);
|
||||
this.splitContainer4.SplitterDistance = 282;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
this.ucSplitPage1.PageSize = 50;
|
||||
this.ucSplitPage1.Size = new System.Drawing.Size(282, 26);
|
||||
this.ucSplitPage1.TabIndex = 5;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(1204, 0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.Visible = false;
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(1298, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.HeaderText = "选择";
|
||||
@@ -1448,6 +1378,76 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colMsg.ReadOnly = true;
|
||||
this.colMsg.Width = 180;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.ucSplitPage1);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1584, 26);
|
||||
this.splitContainer4.SplitterDistance = 321;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
this.ucSplitPage1.PageSize = 50;
|
||||
this.ucSplitPage1.Size = new System.Drawing.Size(321, 26);
|
||||
this.ucSplitPage1.TabIndex = 5;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(1165, 0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.Visible = false;
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(1259, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// TemuJitForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -30,27 +31,27 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
public bool IsClientJit { get; set; } = false;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
/// <summary>
|
||||
/// 生命周期商品列表
|
||||
/// </summary>
|
||||
public List<TemuForChainProductInfo> lstChainProdInfo = new List<TemuForChainProductInfo>();
|
||||
public ConcurrentList<TemuForChainProductInfo> lstChainProdInfo = new ConcurrentList<TemuForChainProductInfo>();
|
||||
/// <summary>
|
||||
/// 商品合规信息列表
|
||||
/// </summary>
|
||||
public List<complianceInfo> lstComplianceInfo = new List<complianceInfo>();
|
||||
public ConcurrentList<complianceInfo> lstComplianceInfo = new ConcurrentList<complianceInfo>();
|
||||
/// <summary>
|
||||
/// 实拍图
|
||||
/// </summary>
|
||||
public List<RealPictureInfo> lstRealPictureInfo = new List<RealPictureInfo>();
|
||||
public ConcurrentList<RealPictureInfo> lstRealPictureInfo = new ConcurrentList<RealPictureInfo>();
|
||||
/// <summary>
|
||||
/// 商品信息(含虚拟库存)列表
|
||||
/// </summary>
|
||||
public List<TemuListProductInfo> lstProductInfo = new List<TemuListProductInfo>();
|
||||
public ConcurrentList<TemuListProductInfo> lstProductInfo = new ConcurrentList<TemuListProductInfo>();
|
||||
/// <summary>
|
||||
/// 期望到货区域列表
|
||||
/// </summary>
|
||||
public List<SkcReceiveAreaPickOutInfo> lstReceiveArea = new List<SkcReceiveAreaPickOutInfo>();
|
||||
public ConcurrentList<SkcReceiveAreaPickOutInfo> lstReceiveArea = new ConcurrentList<SkcReceiveAreaPickOutInfo>();
|
||||
|
||||
/// <summary>
|
||||
/// 界面参数配置
|
||||
@@ -2468,6 +2469,7 @@ Content-Disposition: form-data; name=""upload_sign""
|
||||
public string SearchNotes { get; set; } = "";
|
||||
public bool SearchAllShop { get; set; } = true;
|
||||
public string SearchSpuId { get; set; } = "";
|
||||
public string SearchSkcId { get; set; } = "";
|
||||
public string SearchExtCode { get; set; } = "";
|
||||
public bool SearchDuration { get; set; } = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user