1退货包裹收费逻辑调整 2插旗隐藏功能

This commit is contained in:
wule committed 2026-08-12 21:35:14 +08:00
1 parent dacacb352c
commit 2ecc120c5d
13 files changed
+161 -27

No files matched your search

@@ -7,6 +7,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
@@ -18,6 +19,7 @@ using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Work;
using Work._29Tools.BLL;
using Work._29Tools.Forms.ShopForms;
@@ -161,5 +163,41 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
}
}
}
}
private void borderFlag_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (this.DataContext is oms_wei_order_info order)
{
int flag = 0;
if (order.colour_flag == 4)
{
flag = 0;
}
else
{
flag = 4;
}
Task.Run(() =>
{
var url = BaseClass.Build29WxObjString("order/wx_update_erp_color_flag");
var data = UserLogin.GetSignaturex();
data += "&order_id=" + order.order_id;
data += "&colour_flag=" + flag;
var rst = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(rst) || !rst.Contains("\"code\":200"))
rst = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(rst) || !rst.Contains("\"code\":200"))
{
BaseMsgWindow.ShowAnimateMessage(BaseRegex.GetStringJson(ref rst, "msg"), "Error", 5);
return;
}
BaseMsgWindow.ShowAnimateMessage("修改成功", "Msg", 2);
order.colour_flag = flag;
Thread.Sleep(1000);
Dispatcher.Invoke(new Action(() => { MainWindow.Instance.orderListCtrl.FilterOneOrder(order); }));
});
}
}
}
}