修复拍单订单空白记录问题
This commit is contained in:
1 parent
e755da09a6
commit
c25ec3a89a
2 files changed
+237
-176
No files matched your search
@@ -97,6 +97,8 @@ namespace TemuKJD.ToolForms
|
||||
|
||||
private void PddBuyOrderForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblErrMsg.Text = string.Empty;
|
||||
|
||||
if (this.BuyType == "direct" && pnlMap.Visible == false)
|
||||
{
|
||||
this.pnlDirectAddressAnalysis.Visible = true;
|
||||
@@ -467,126 +469,141 @@ namespace TemuKJD.ToolForms
|
||||
//https://mobile.yangkeduo.com/proxy/api/api/morgan/confirm/render?pdduid=8161628055192
|
||||
//https://mobile.yangkeduo.com/order_checkout.html?sku_id=1917755178967&group_id=168599782729&goods_id=966934985983&goods_number=1&page_from=0&detail_id=27322663212&_oak_rcto=YWJun7Qe7qhenWIlxgKO3uhsoi0WMIkr6Sb3iSrTsNPiwo_AHzvFVWwZ36KSfBTSAX-QF_CD92G9rA&order_extra_type=1&refer_page_element=open_btn&source_channel=0&refer_page_name=goods_detail&refer_page_id=10014_1782220402115_blxn1wofgo&refer_page_sn=10014
|
||||
//https://mobile.yangkeduo.com/order_checkout.html?sku_id=1914416497946&group_id=168211384489&goods_id=964481496910&goods_number=2&page_from=23&detail_id=27475863056&_oc_refer_ad=0&_oak_rcto=YWJQMioxuzYiHEIW34yn103Toi0WMIkr6SaYUDjBkmkvOAtI8c-ZcKMw36KSfBTSAX-QF_CD92G9rA&order_extra_type=1&refer_page_element=open_btn&source_channel=0&_x_query=%E4%B8%AD%E5%9B%BD%E5%8F%A4%E4%BB%A3%E7%AE%97%E6%9C%AF%E6%B3%95%E8%80%81%E7%89%88%E6%9C%AC%E6%B4%AA%E4%B8%95%E8%B0%9F%E8%91%97%E5%91%BD%E7%90%86%E5%AD%A6%E7%A0%94%E7%A9%B6%E5%85%A5%E9%97%A8%E9%A3%8E%E6%B0%B4%E5%AD%A6%E4%B9%A6%E7%B1%8D%E5%85%A5%E9%97%A8%E5%B1%85%E5%AE%B6&refer_page_name=goods_detail&refer_page_id=10014_1782275100226_pojdmxgpty&refer_page_sn=10014
|
||||
if (responseData.Contains("\"goods_id\"") && (url.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/morgan/confirm/render?pdduid=") || url.Contains("sku_id=")))
|
||||
|
||||
|
||||
if (responseData.Contains("984761201312"))
|
||||
{
|
||||
|
||||
}
|
||||
if (responseData.Contains("\"goods_id\""))
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
var data = responseData;
|
||||
if (url.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/morgan/confirm/render?pdduid=") || url.Contains("sku_id="))
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
var data = responseData;
|
||||
|
||||
if (data.Contains("\"goods_id\""))
|
||||
{
|
||||
var goodsId = BaseRegex.GetLongJson(ref data, "goods_id");
|
||||
var skuId = BaseRegex.GetLongJson(ref data, "sku_id");
|
||||
var goodsName = BaseRegex.GetStringJson(ref data, "goods_name");
|
||||
if (string.IsNullOrEmpty(goodsName))
|
||||
goodsName = BaseRegex.GetStringJson(ref data, "goodsName");
|
||||
var specifications = BaseRegex.GetMatchRegexString(ref data, @"""specifications"":\[([^']*?)\]");
|
||||
var spec = string.IsNullOrEmpty(specifications) ? "" : specifications;
|
||||
if (spec.IsNullOrEmpty())
|
||||
{
|
||||
var specMatch = BaseRegex.GetMatchRegex(ref data, @"""spec_value"":""([^']+?)""");
|
||||
foreach (var match in specMatch)
|
||||
{
|
||||
var matchStr = match.ParseToString();
|
||||
spec += ("," + BaseRegex.GetStringJson(ref matchStr, "spec_value"));
|
||||
}
|
||||
spec = spec.Trim(',');
|
||||
}
|
||||
var oneGoodsPrice = BaseRegex.GetIntJson(ref data, "goodsPrice");
|
||||
var buyCnt = BaseRegex.GetIntJson(ref data, "goods_number");
|
||||
var buyPrice = BaseRegex.GetIntJson(ref data, "pay_price");
|
||||
|
||||
if (!this.Created)
|
||||
return;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (!goodsId.IsNullOrZero()) this.txtBuyGoodsId.Text = goodsId.ParseToString();
|
||||
if (!skuId.IsNullOrZero()) this.txtBuySkuId.Text = skuId.ParseToString();
|
||||
if (!goodsName.IsNullOrEmpty()) this.txtBuyGoodsName.Text = goodsName;
|
||||
if (!spec.IsNullOrEmpty()) this.txtBuySkuName.Text = spec;
|
||||
if (!buyCnt.IsNullOrZero()) this.txtBuyCnt.Text = buyCnt.ParseToString();
|
||||
if (!buyPrice.IsNullOrZero()) this.txtBuyPrice.Text = (buyPrice * 0.01m).ParseToString();
|
||||
}));
|
||||
|
||||
if (!this.Created)
|
||||
return;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (BuyType == "direct" && txtBuyTransitWarehouse.Text.Contains("******"))
|
||||
if (data.Contains("\"goods_id\""))
|
||||
{
|
||||
var goodsId = BaseRegex.GetLongJson(ref data, "goods_id");
|
||||
var skuId = BaseRegex.GetLongJson(ref data, "sku_id");
|
||||
var goodsName = BaseRegex.GetStringJson(ref data, "goods_name");
|
||||
if (string.IsNullOrEmpty(goodsName))
|
||||
goodsName = BaseRegex.GetStringJson(ref data, "goodsName");
|
||||
var specifications = BaseRegex.GetMatchRegexString(ref data, @"""specifications"":\[([^']*?)\]");
|
||||
var spec = string.IsNullOrEmpty(specifications) ? "" : specifications;
|
||||
if (spec.IsNullOrEmpty())
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("请手动输入合法地址信息再拍单!");
|
||||
return;
|
||||
}
|
||||
|
||||
// 自动修改收货地址为中转仓(或直发)
|
||||
var transit = TransitWarehouseData.TransitWarehouseList.FirstOrDefault(t => t.TransDetailAddress == txtBuyTransitWarehouse.Text.Trim());
|
||||
if (transit == null && BuyType == "transit")
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("仓库已发生改变,请点击重新关联商品,选择仓库后重新拍单!");
|
||||
return;
|
||||
}
|
||||
if ((transit != null || BuyType == "direct") && IsChangeAddress == false && HasChangeAddress == false)
|
||||
{
|
||||
if (IsSoldOut)
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("商品已售罄,请重新关联未售罄商品后再拍单!");
|
||||
return;
|
||||
}
|
||||
if (!IsSoldOut)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
IsChangeAddress = true;
|
||||
Thread.Sleep(100);
|
||||
if (BuyType == "transit")
|
||||
{
|
||||
if (AbnormalTransitWarehouseOrderInfo != null)
|
||||
{
|
||||
Invoke(new Action(() => { txtSourceCode.Text = AbnormalTransitWarehouseOrderInfo.random_code; }));
|
||||
}
|
||||
else
|
||||
{
|
||||
var sourceCodeRst = GetSourceCode(transit);
|
||||
if (sourceCodeRst.Contains("失败"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.cefWebBrowser.Visible = false;
|
||||
BaseMsgForm.ShowError(sourceCodeRst);
|
||||
}));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
ChangeAddress(transit);
|
||||
IsChangeAddress = false;
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
// 自动下单
|
||||
if (IsAutoBuy && HasChangeAddress && url.StartsWith("https://mobile.yangkeduo.com/order_checkout.html?sku_id="))
|
||||
{
|
||||
Task.Run(async () =>
|
||||
var specMatch = BaseRegex.GetMatchRegex(ref data, @"""spec_value"":""([^']+?)""");
|
||||
foreach (var match in specMatch)
|
||||
{
|
||||
try
|
||||
{
|
||||
await AutoBuy();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.BuyErrMsg = ex.Message;
|
||||
}
|
||||
Invoke(() => { this.Close(); });
|
||||
});
|
||||
var matchStr = match.ParseToString();
|
||||
spec += ("," + BaseRegex.GetStringJson(ref matchStr, "spec_value"));
|
||||
}
|
||||
spec = spec.Trim(',');
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
var oneGoodsPrice = BaseRegex.GetIntJson(ref data, "goodsPrice");
|
||||
var buyCnt = BaseRegex.GetIntJson(ref data, "goods_number");
|
||||
var buyPrice = BaseRegex.GetIntJson(ref data, "pay_price");
|
||||
|
||||
if (!this.Created)
|
||||
return;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (!goodsId.IsNullOrZero()) this.txtBuyGoodsId.Text = goodsId.ParseToString();
|
||||
if (!skuId.IsNullOrZero()) this.txtBuySkuId.Text = skuId.ParseToString();
|
||||
if (!goodsName.IsNullOrEmpty()) this.txtBuyGoodsName.Text = goodsName;
|
||||
if (!spec.IsNullOrEmpty()) this.txtBuySkuName.Text = spec;
|
||||
if (!buyCnt.IsNullOrZero()) this.txtBuyCnt.Text = buyCnt.ParseToString();
|
||||
if (!buyPrice.IsNullOrZero()) this.txtBuyPrice.Text = (buyPrice * 0.01m).ParseToString();
|
||||
}));
|
||||
|
||||
if (!this.Created)
|
||||
return;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (BuyType == "direct" && txtBuyTransitWarehouse.Text.Contains("******"))
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("请手动输入合法地址信息再拍单!");
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "请手动输入合法地址信息再拍单!"; });
|
||||
return;
|
||||
}
|
||||
|
||||
// 自动修改收货地址为中转仓(或直发)
|
||||
var transit = TransitWarehouseData.TransitWarehouseList.FirstOrDefault(t => t.TransDetailAddress == txtBuyTransitWarehouse.Text.Trim());
|
||||
if (transit == null && BuyType == "transit")
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("仓库已发生改变,请点击重新关联商品,选择仓库后重新拍单!");
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "仓库已发生改变,请点击重新关联商品,选择仓库后重新拍单!"; });
|
||||
return;
|
||||
}
|
||||
if ((transit != null || BuyType == "direct") && IsChangeAddress == false && HasChangeAddress == false)
|
||||
{
|
||||
if (IsSoldOut)
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("商品已售罄,请重新关联未售罄商品后再拍单!");
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "商品已售罄,请重新关联未售罄商品后再拍单!"; });
|
||||
return;
|
||||
}
|
||||
if (!IsSoldOut)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
IsChangeAddress = true;
|
||||
Thread.Sleep(100);
|
||||
if (BuyType == "transit")
|
||||
{
|
||||
if (AbnormalTransitWarehouseOrderInfo != null)
|
||||
{
|
||||
Invoke(new Action(() => { txtSourceCode.Text = AbnormalTransitWarehouseOrderInfo.random_code; }));
|
||||
}
|
||||
else
|
||||
{
|
||||
var sourceCodeRst = GetSourceCode(transit);
|
||||
if (sourceCodeRst.Contains("失败"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.cefWebBrowser.Visible = false;
|
||||
BaseMsgForm.ShowError(sourceCodeRst);
|
||||
}));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
ChangeAddress(transit);
|
||||
IsChangeAddress = false;
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
// 自动下单
|
||||
if (IsAutoBuy && HasChangeAddress && url.StartsWith("https://mobile.yangkeduo.com/order_checkout.html?sku_id="))
|
||||
{
|
||||
Task.Run(async () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
await AutoBuy();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.BuyErrMsg = ex.Message;
|
||||
}
|
||||
Invoke(() => { this.Close(); });
|
||||
});
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (postData.Contains("260805-"))
|
||||
{
|
||||
@@ -1072,7 +1089,7 @@ namespace TemuKJD.ToolForms
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.pddFrontGoodsLite == null || this.pddFrontGoodsLite.goodsId == null)
|
||||
if ((this.pddFrontGoodsLite?.goodsId).IsNullOrZero() || (this.pddFrontGoodsLite?.mallId).IsNullOrZero())
|
||||
{
|
||||
await Task.Run(() =>
|
||||
{
|
||||
@@ -1082,14 +1099,18 @@ namespace TemuKJD.ToolForms
|
||||
var client = cefWebBrowser.GetDevToolsClient();
|
||||
var ts1 = client.Runtime.EvaluateAsync(jsStr, null, true, null, null, true, null, true);
|
||||
ts1.Wait(500);
|
||||
Thread.Sleep(2000);
|
||||
for (int i = 0; i < 80; i++)
|
||||
{
|
||||
if (!(this.pddFrontGoodsLite?.mallId).IsNullOrZero())
|
||||
break;
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.Enabled = false;
|
||||
if (!this.cefWebBrowser.Address.StartsWith("https://mobile.yangkeduo.com/order.html?order_sn=") && (this.pddFrontGoodsLite?.goodsId).ParseToString() == txtMapGoodsId.Text.Trim())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
string url;
|
||||
@@ -1106,7 +1127,7 @@ namespace TemuKJD.ToolForms
|
||||
+ "&map_sku_id=" + txtMapSkuId.Text.Trim()
|
||||
+ "&map_send_address=" + sendProvince
|
||||
+ "&transit_warehouse_id=" + transitWarehouse?.TransId;
|
||||
if (this.pddFrontGoodsLite != null && this.pddFrontGoodsLite.goodsId.ParseToString() == txtMapGoodsId.Text.Trim())
|
||||
if (!(this.pddFrontGoodsLite?.mallId).IsNullOrZero() && this.pddFrontGoodsLite.goodsId.ParseToString() == txtMapGoodsId.Text.Trim())
|
||||
{
|
||||
// 保存商品关联信息
|
||||
data += "&map_skus=" + GetHtml.UrlEncodeUtf8(JsonHelper.SerializeObject(pddFrontGoodsLite));
|
||||
@@ -1236,59 +1257,73 @@ namespace TemuKJD.ToolForms
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("溯源码长度错误!");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "溯源码长度错误!"; });
|
||||
return;
|
||||
}
|
||||
var client = cefWebBrowser.GetDevToolsClient();
|
||||
if (client == null)
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("页面未加载!");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "页面未加载!"; });
|
||||
return;
|
||||
}
|
||||
//var sourceCode = txtSourceCode.Text.Trim();
|
||||
//var jsStr1 = @"(function() { var elements = document.getElementsByTagName('div');
|
||||
// for (i = elements.length - 1; i >= 0; i--){
|
||||
// var element = elements[i];
|
||||
// if (element.innerHTML.indexOf('" + sourceCode + @"') >= 0) {
|
||||
// return 'success';
|
||||
// }
|
||||
// }
|
||||
// return '';
|
||||
// })();";
|
||||
//var ts1 = client.Runtime.EvaluateAsync(jsStr1, null, true, null, null, true, null, true);
|
||||
//await ts1;
|
||||
// 付款页面没法匹配,暂时注释
|
||||
//if (ts1.Result?.Result?.Value.ParseToString() != "success")
|
||||
//{
|
||||
//var sourceCode = txtSourceCode.Text.Trim();
|
||||
//var jsStr1 = @"(function() { var elements = document.getElementsByTagName('div');
|
||||
// for (i = elements.length - 1; i >= 0; i--){
|
||||
// var element = elements[i];
|
||||
// if (element.innerHTML.indexOf('" + sourceCode + @"') >= 0) {
|
||||
// return 'success';
|
||||
// }
|
||||
// }
|
||||
// return '';
|
||||
// })();";
|
||||
//var ts1 = client.Runtime.EvaluateAsync(jsStr1, null, true, null, null, true, null, true);
|
||||
//await ts1;
|
||||
// 付款页面没法匹配,暂时注释
|
||||
//if (ts1.Result?.Result?.Value.ParseToString() != "success")
|
||||
//{
|
||||
// if (!IsAutoBuy)
|
||||
// BaseMsgForm.ShowError("溯源码不匹配!");
|
||||
// return;
|
||||
//}
|
||||
// BaseMsgForm.ShowError("溯源码不匹配!");
|
||||
// else
|
||||
// Invoke(() => { lblErrMsg.Text = "页面未加载!"; });
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (BuyType == "transit" && string.IsNullOrEmpty(txtBuyTransitWarehouse.Text.Trim()))
|
||||
if (BuyType == "transit" && string.IsNullOrEmpty(txtBuyTransitWarehouse.Text.Trim()))
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("缺少中转地址,请重新绑定商品并选择仓库地址");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "缺少中转地址,请重新绑定商品并选择仓库地址"; });
|
||||
return;
|
||||
}
|
||||
var transit = TransitWarehouseData.TransitWarehouseList.FirstOrDefault(t => t.TransDetailAddress == txtBuyTransitWarehouse.Text.Trim());
|
||||
if (BuyType == "transit" && transit == null)
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("中转地址对应的中转仓不存在,请核对");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "中转地址对应的中转仓不存在,请核对"; });
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtBuyOrderId.Text.Trim()))
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("缺少拍单订单号,请拍单后再提交");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "缺少拍单订单号,请拍单后再提交"; });
|
||||
return;
|
||||
}
|
||||
if ((txtBuyPrice.Text.ParseToDecimal() * 100).ParseToInt().IsNullOrZero())
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("缺少拍单金额,请拍单后再提交");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "缺少拍单金额,请拍单后再提交"; });
|
||||
return;
|
||||
}
|
||||
|
||||
btnManualUpdateBuyOrder.Enabled = false;
|
||||
@@ -1345,7 +1380,9 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("拍单保存失败,服务端返回 " + msg, "拍单信息保存失败");
|
||||
btnManualUpdateBuyOrder.Enabled = true;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "拍单保存失败,服务端返回 " + msg; });
|
||||
btnManualUpdateBuyOrder.Enabled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1404,15 +1441,17 @@ namespace TemuKJD.ToolForms
|
||||
// }
|
||||
// if (!IsAutoBuy)
|
||||
// BaseMsgForm.ShowError("拍单信息保存成功,接收到服务端传递的错误消息:" + msg, "订单提前取号失败");
|
||||
// else
|
||||
// Invoke(() => { lblErrMsg.Text = "拍单信息保存成功,接收到服务端传递的错误消息:" + msg; });
|
||||
// btnManualUpdateBuyOrder.Enabled = true;
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 秒退异常单中转重拍
|
||||
if (AbnormalTransitWarehouseOrderInfo != null)
|
||||
#region 秒退异常单中转重拍
|
||||
if (AbnormalTransitWarehouseOrderInfo != null)
|
||||
{
|
||||
var url = BaseClass.Build29WxObjString("order/wx_update_abnormal_transit_order");
|
||||
var data = UserLogin.GetSignaturex();
|
||||
@@ -1481,7 +1520,9 @@ namespace TemuKJD.ToolForms
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("直发拍单信息保存失败(01) " + BaseRegex.GetStringJson(ref html, "msg"));
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "直发拍单信息保存失败(01) " + BaseRegex.GetStringJson(ref html, "msg"); });
|
||||
return;
|
||||
}
|
||||
var existOrderExtList = JsonHelper.DeserializeJsonToList<order_item_ext>(JsonHelper.JObjectParse(html)["data"].ParseToString());
|
||||
order_item_ext orderExt = new order_item_ext()
|
||||
@@ -1508,7 +1549,9 @@ namespace TemuKJD.ToolForms
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("直发拍单信息保存失败(02) " + BaseRegex.GetStringJson(ref html1, "msg"));
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "直发拍单信息保存失败(02) " + BaseRegex.GetStringJson(ref html, "msg"); });
|
||||
return;
|
||||
}
|
||||
|
||||
// 拍单后覆盖原售后状态(如果有)
|
||||
@@ -1523,7 +1566,9 @@ namespace TemuKJD.ToolForms
|
||||
{
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("直发拍单信息保存失败(03) " + BaseRegex.GetStringJson(ref html2, "msg"));
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "直发拍单信息保存失败(03) " + BaseRegex.GetStringJson(ref html, "msg"); });
|
||||
return;
|
||||
}
|
||||
|
||||
JObject obj = new JObject();
|
||||
@@ -1571,7 +1616,9 @@ namespace TemuKJD.ToolForms
|
||||
//NaiBa.Util.Helper.ConfigHelper.SaveConfig("other_buyer_order_list", lstOtherBuyerOrderInfoLite);
|
||||
if (!IsAutoBuy)
|
||||
BaseMsgForm.ShowError("直发拍单保存失败,服务端返回 " + msg, "拍单信息保存失败");
|
||||
return;
|
||||
else
|
||||
Invoke(() => { lblErrMsg.Text = "直发拍单保存失败,服务端返回 " + msg; });
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
+38
-24
@@ -83,6 +83,7 @@
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.txtAddress = new System.Windows.Forms.TextBox();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btnCancelAutoBuy = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||
this.cmbMapSkus = new System.Windows.Forms.ComboBox();
|
||||
@@ -109,7 +110,7 @@
|
||||
this.chkAutoChangeWarehouseAddress = new Work.UserComponents.UcCheckBox(this.components);
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.pnlMap = new System.Windows.Forms.Panel();
|
||||
this.btnCancelAutoBuy = new DevComponents.DotNetBar.PanelEx();
|
||||
this.lblErrMsg = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbCloseBase)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
@@ -153,6 +154,7 @@
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.BackColor = System.Drawing.Color.White;
|
||||
this.splitContainer1.Panel2.Controls.Add(this.lblErrMsg);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnJumpOrderList);
|
||||
this.splitContainer1.Panel2MinSize = 0;
|
||||
this.splitContainer1.Size = new System.Drawing.Size(864, 888);
|
||||
@@ -790,6 +792,31 @@
|
||||
this.panel1.Size = new System.Drawing.Size(487, 890);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// btnCancelAutoBuy
|
||||
//
|
||||
this.btnCancelAutoBuy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancelAutoBuy.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCancelAutoBuy.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancelAutoBuy.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancelAutoBuy.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnCancelAutoBuy.Location = new System.Drawing.Point(376, 35);
|
||||
this.btnCancelAutoBuy.Name = "btnCancelAutoBuy";
|
||||
this.btnCancelAutoBuy.Size = new System.Drawing.Size(97, 23);
|
||||
this.btnCancelAutoBuy.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelAutoBuy.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(99)))), ((int)(((byte)(143)))));
|
||||
this.btnCancelAutoBuy.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(99)))), ((int)(((byte)(143)))));
|
||||
this.btnCancelAutoBuy.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnCancelAutoBuy.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnCancelAutoBuy.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnCancelAutoBuy.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCancelAutoBuy.Style.GradientAngle = 90;
|
||||
this.btnCancelAutoBuy.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelAutoBuy.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(107)))), ((int)(((byte)(83)))), ((int)(((byte)(147)))));
|
||||
this.btnCancelAutoBuy.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(107)))), ((int)(((byte)(83)))), ((int)(((byte)(147)))));
|
||||
this.btnCancelAutoBuy.TabIndex = 887;
|
||||
this.btnCancelAutoBuy.Text = "取消自动拍单";
|
||||
this.btnCancelAutoBuy.Click += new System.EventHandler(this.btnCancelAutoBuy_Click);
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.pictureBox2);
|
||||
@@ -1139,30 +1166,15 @@
|
||||
this.pnlMap.Size = new System.Drawing.Size(468, 203);
|
||||
this.pnlMap.TabIndex = 871;
|
||||
//
|
||||
// btnCancelAutoBuy
|
||||
// lblErrMsg
|
||||
//
|
||||
this.btnCancelAutoBuy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancelAutoBuy.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCancelAutoBuy.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancelAutoBuy.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancelAutoBuy.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnCancelAutoBuy.Location = new System.Drawing.Point(376, 35);
|
||||
this.btnCancelAutoBuy.Name = "btnCancelAutoBuy";
|
||||
this.btnCancelAutoBuy.Size = new System.Drawing.Size(97, 23);
|
||||
this.btnCancelAutoBuy.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelAutoBuy.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(99)))), ((int)(((byte)(143)))));
|
||||
this.btnCancelAutoBuy.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(99)))), ((int)(((byte)(143)))));
|
||||
this.btnCancelAutoBuy.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnCancelAutoBuy.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnCancelAutoBuy.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnCancelAutoBuy.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCancelAutoBuy.Style.GradientAngle = 90;
|
||||
this.btnCancelAutoBuy.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelAutoBuy.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(107)))), ((int)(((byte)(83)))), ((int)(((byte)(147)))));
|
||||
this.btnCancelAutoBuy.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(107)))), ((int)(((byte)(83)))), ((int)(((byte)(147)))));
|
||||
this.btnCancelAutoBuy.TabIndex = 887;
|
||||
this.btnCancelAutoBuy.Text = "取消自动拍单";
|
||||
this.btnCancelAutoBuy.Click += new System.EventHandler(this.btnCancelAutoBuy_Click);
|
||||
this.lblErrMsg.AutoSize = true;
|
||||
this.lblErrMsg.ForeColor = System.Drawing.Color.SandyBrown;
|
||||
this.lblErrMsg.Location = new System.Drawing.Point(198, 5);
|
||||
this.lblErrMsg.Name = "lblErrMsg";
|
||||
this.lblErrMsg.Size = new System.Drawing.Size(87, 17);
|
||||
this.lblErrMsg.TabIndex = 893;
|
||||
this.lblErrMsg.Text = "errMsg ";
|
||||
//
|
||||
// PddMobileBuyOrderForm
|
||||
//
|
||||
@@ -1181,6 +1193,7 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbCloseBase)).EndInit();
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||
@@ -1287,5 +1300,6 @@
|
||||
private System.Windows.Forms.Label label31;
|
||||
private System.Windows.Forms.PictureBox pictureBox2;
|
||||
private DevComponents.DotNetBar.PanelEx btnCancelAutoBuy;
|
||||
private System.Windows.Forms.Label lblErrMsg;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user