From f3ab62f5c15b877b4806070ef32cef1002323998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=A6=E9=BA=9F=20=E7=8E=8B?= Date: Fri, 28 Aug 2026 10:13:37 +0800 Subject: [PATCH 01/15] =?UTF-8?q?#EQD-7187=20=E5=AE=A2=E6=88=B7=E9=A2=84?= =?UTF-8?q?=E4=BB=98=E9=87=91=E9=85=8D=E7=BD=AE-=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=EF=BC=8C=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client_margin_templateController.cs | 5 + .../client_margin_templateEdit.cshtml | 63 +++++++++++- .../app/client/clientMarginTemplateEdit.js | 95 +++++++++++++++++++ 3 files changed, 162 insertions(+), 1 deletion(-) diff --git a/YLErpWeb/Controllers/client_margin_templateController.cs b/YLErpWeb/Controllers/client_margin_templateController.cs index df68ab84..1f3b645c 100644 --- a/YLErpWeb/Controllers/client_margin_templateController.cs +++ b/YLErpWeb/Controllers/client_margin_templateController.cs @@ -33,6 +33,11 @@ namespace YLErp.Web.Controllers else { var marginTemplate = yldb.margin_template_v2.Find(template.MarginTemplateId); + //绑定模板不在上方下拉筛选范围内(如已失效)时,Find 得到的是未挂 Details 的新实例,右栏只读回显会空白 + if (marginTemplate.Details.Count == 0) + { + marginTemplate.Details = yldb.margin_template_detail.Where(y => y.MarginTemplateId == marginTemplate.id).ToList(); + } ViewBag.MarginTemplate = marginTemplate; } return View(template); diff --git a/YLErpWeb/Views/client_margin_template/client_margin_templateEdit.cshtml b/YLErpWeb/Views/client_margin_template/client_margin_templateEdit.cshtml index 308784f8..6f84ee02 100644 --- a/YLErpWeb/Views/client_margin_template/client_margin_templateEdit.cshtml +++ b/YLErpWeb/Views/client_margin_template/client_margin_templateEdit.cshtml @@ -105,8 +105,69 @@
+ @*区间追保结构(规则15)只读回显:参数组区块与 margin_template_v2Edit 同款样式(本页为绑定信息页,参数本身在预付金模板V2维护,故全部只读)*@ +