退货包裹计费功能 活动查询已报名商品 优化清理无流量 插旗等相关服务

This commit is contained in:
wule committed 2026-08-12 21:46:33 +08:00
1 parent 3611d9a8e9
commit 99237fae41
25 files changed
+1477 -256

No files matched your search

+54 -1
View File
@@ -125,7 +125,8 @@ namespace TemuKJD.WXForms.ShopForms
user.points = BaseRegex.GetIntJson(ref oStr, "points");
user.balance = BaseRegex.GetDecimalJson(ref oStr, "balance");
user.shop_points_per_month = BaseRegex.GetIntJson(ref oStr, "shop_points_per_month");
user.postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "postage_per_order");
user.postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "postage_per_order");
user.refund_postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "refund_postage_per_order");
user.oem_id = BaseRegex.GetStringJson(ref oStr, "oem_id");
user.oem_name = BaseRegex.GetStringJson(ref oStr, "oem_name");
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
@@ -154,6 +155,8 @@ namespace TemuKJD.WXForms.ShopForms
"+",
Math.Max(2.2m, user.postage_per_order.ParseToDecimal()),
(user.group_id == "3") ? "改" : null,
Math.Max(2.5m, user.refund_postage_per_order.ParseToDecimal()),
(user.group_id == "3") ? "改" : null,
user.group_id == "3" ? "添加店铺" : "",
"编辑",
"删除");
@@ -198,6 +201,7 @@ namespace TemuKJD.WXForms.ShopForms
string authority = dgvUser.Rows[e.RowIndex].Cells["colAuthority"].Value.ParseToString();
int shopPointsPerMonth = dgvUser.Rows[e.RowIndex].Cells["colShopPointsPerMonth"].Value.ParseToInt();
decimal postagePerOrder = dgvUser.Rows[e.RowIndex].Cells["colPostagePerOrder"].Value.ParseToDecimal();
decimal refundPostagePerOrder = dgvUser.Rows[e.RowIndex].Cells["colRefundPostagePerOrder"].Value.ParseToDecimal();
var row = dgvUser.Rows[e.RowIndex];
if (columText == "编辑")
{
@@ -256,6 +260,15 @@ namespace TemuKJD.WXForms.ShopForms
this.pnlPostagePerOrder.BringToFront();
this.lblPostagePerOrderUserId.Text = uid;
}
if (columName == "colChangeRefundPostagePerOrder")
{
this.lblRefundPostagePerOrderUserInfo.Text = mobile + " - " + nickName;
this.numRefundPostagePerOrder.Value = refundPostagePerOrder;
this.pnlRefundPostagePerOrder.Tag = row;
this.pnlRefundPostagePerOrder.Visible = true;
this.pnlRefundPostagePerOrder.BringToFront();
this.lblRefundPostagePerOrderUserId.Text = uid;
}
}
if (columText == "")
row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
@@ -300,6 +313,7 @@ namespace TemuKJD.WXForms.ShopForms
pnlShopPointsPerMonth.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlBalance.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlPostagePerOrder.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlRefundPostagePerOrder.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
this.txtSearch.GotFocus += TxtSearch_GotFocus;
this.txtSearch.LostFocus += TxtSearch_LostFocus;
@@ -504,5 +518,44 @@ namespace TemuKJD.WXForms.ShopForms
{
pnlPostagePerOrder.Visible = false;
}
private void btnRefundPostagePerOrder_Click(object sender, EventArgs e)
{
if (updateRefundPostagePerOrder(lblRefundPostagePerOrderUserId.Text))
{
pnlRefundPostagePerOrder.Visible = false;
BaseMsgForm.ShowInfo("修改充值用户店铺月费金额成功");
}
}
public bool updateRefundPostagePerOrder(string userDbId, bool showFailBox = true)
{
string url = BaseClass.BuildObjString("user/update_user");
string data = UserLogin.GetSignaturex();
data += "&id=" + userDbId;
data += "&refund_postage_per_order=" + numRefundPostagePerOrder.Value;
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
if (!html.Contains("\"code\":200"))
{
var msg = BaseRegex.GetStringJsonByRegs(ref html, html, "msg");
if (showFailBox)
{
Invoke(new Action(() => { BaseMsgForm.ShowError(msg); }));
}
return false;
}
var row = dgvUser.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["UserIdColumn"].Value.ParseToString() == userDbId);
if (row != null)
{
Invoke(new Action(() => { row.Cells["colRefundPostagePerOrder"].Value = numRefundPostagePerOrder.Value; }));
}
return true;
}
private void btnRefundPostagePerOrderCancel_Click(object sender, EventArgs e)
{
pnlRefundPostagePerOrder.Visible = false;
}
}
}