微信充值二维码 升级程序调整 打包程序调整

This commit is contained in:
wule committed 2026-05-29 10:09:00 +08:00
1 parent 55528e5109
commit 025b33b478
32 files changed
+1196 -78

No files matched your search

+25 -24
View File
@@ -40,6 +40,8 @@ namespace TemuKJD.WXForms.OrderForms
this.txtGiftOrderWaybillId = new System.Windows.Forms.TextBox();
this.btnCancel = new DevComponents.DotNetBar.PanelEx();
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.label5 = new System.Windows.Forms.Label();
this.txtCurrentStock = new System.Windows.Forms.TextBox();
this.btnDownProduct = new DevComponents.DotNetBar.PanelEx();
this.btnClearStock = new DevComponents.DotNetBar.PanelEx();
this.txtOrderPrice = new System.Windows.Forms.TextBox();
@@ -55,8 +57,6 @@ namespace TemuKJD.WXForms.OrderForms
this.numAddPrice = new System.Windows.Forms.NumericUpDown();
this.label1 = new System.Windows.Forms.Label();
this.btnAddPrice = new DevComponents.DotNetBar.PanelEx();
this.txtCurrentStock = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
this.ucGroupBoxEx1.SuspendLayout();
@@ -218,6 +218,28 @@ namespace TemuKJD.WXForms.OrderForms
this.ucGroupBoxEx4.TabStop = false;
this.ucGroupBoxEx4.Text = "优化订单商品";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(286, 171);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 17);
this.label5.TabIndex = 847;
this.label5.Text = "Sku库存";
//
// txtCurrentStock
//
this.txtCurrentStock.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtCurrentStock.BackColor = System.Drawing.SystemColors.Window;
this.txtCurrentStock.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtCurrentStock.Location = new System.Drawing.Point(342, 171);
this.txtCurrentStock.Name = "txtCurrentStock";
this.txtCurrentStock.ReadOnly = true;
this.txtCurrentStock.Size = new System.Drawing.Size(82, 16);
this.txtCurrentStock.TabIndex = 846;
this.txtCurrentStock.Text = "currentStock";
//
// btnDownProduct
//
this.btnDownProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -433,28 +455,6 @@ namespace TemuKJD.WXForms.OrderForms
this.btnAddPrice.Text = "改价";
this.btnAddPrice.Click += new System.EventHandler(this.btnAddPrice_Click);
//
// txtCurrentStock
//
this.txtCurrentStock.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtCurrentStock.BackColor = System.Drawing.SystemColors.Window;
this.txtCurrentStock.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtCurrentStock.Location = new System.Drawing.Point(342, 171);
this.txtCurrentStock.Name = "txtCurrentStock";
this.txtCurrentStock.ReadOnly = true;
this.txtCurrentStock.Size = new System.Drawing.Size(82, 16);
this.txtCurrentStock.TabIndex = 846;
this.txtCurrentStock.Text = "currentStock";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(286, 171);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 17);
this.label5.TabIndex = 847;
this.label5.Text = "Sku库存";
//
// WXOrderListOptimizeForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -465,6 +465,7 @@ namespace TemuKJD.WXForms.OrderForms
this.Name = "WXOrderListOptimizeForm";
this.Text = "优化订单";
this.TitleText = "优化订单";
this.Load += new System.EventHandler(this.WXOrderListOptimizeForm_Load);
this.Controls.SetChildIndex(this.panel1, 0);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
@@ -33,6 +33,8 @@ namespace TemuKJD.WXForms.OrderForms
this.Close();
}
public JObject prodObj = new JObject();
public bool EditPriceSuccess { get; set; } = false;
public bool SendGiftSuccess { get; set; } = false;
@@ -58,6 +60,11 @@ namespace TemuKJD.WXForms.OrderForms
{
var str = JsonHelper.SerializeObject(prodObj);
}
if (prodObj == null)
{
BaseMsgForm.ShowError("源商品已删除");
return;
}
//var rst = WXOrderList.EditPrice(shop, lblSpuId.Text, lblSkuId.Text, (numAddPrice.Value * 100).ParseToInt());
@@ -244,6 +251,45 @@ namespace TemuKJD.WXForms.OrderForms
this.Close();
}));
}
private void WXOrderListOptimizeForm_Load(object sender, EventArgs e)
{
var spuId = lblSpuId.Text;
int onSaleStatusCode = -1;
int pageSize = 50;
var getProdOnSaleRst = WXClearNoVisit.searchProduct(shop, 1, pageSize, spuId, onSaleStatusCode);
if (!getProdOnSaleRst.Contains("\"success\":true"))
{
var error = BaseRegex.GetStringJsonByRegs(ref getProdOnSaleRst, getProdOnSaleRst, "err_msg", "error_msg", "errMsg", "errorMsg", "msg");
BaseMsgForm.ShowInfo("读取原价错误,请重新打开窗口 " + error);
}
prodObj = JsonHelper.JObjectParse(getProdOnSaleRst)["productList"].FirstOrDefault() as JObject;
if (prodObj != null)
{
var str = JsonHelper.SerializeObject(prodObj);
}
if (prodObj == null)
{
//BaseMsgForm.ShowError("源商品已删除");
return;
}
//var rst = WXOrderList.EditPrice(shop, lblSpuId.Text, lblSkuId.Text, (numAddPrice.Value * 100).ParseToInt());
JObject changePriceObj = new JObject();
JArray skuArr = new JArray();
foreach (var sku in prodObj["skuList"])
{
JObject obj = new JObject();
var skuId = sku["skuId"].ParseToString();
var price = sku["price"].ParseToInt() * 0.01m;
if (skuId == this.lblSkuId.Text)
{
this.txtCurrentPrice.Text = price.ToString();
break;
}
}
}
}
public class UpdateDeliverInfoParam