From e10068528a03e02f122b6cf77fb3a902346ec9ab Mon Sep 17 00:00:00 2001 From: pan-houxiang <2663608154@qq.com> Date: Mon, 22 Dec 2025 15:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=B8=9A=E5=8A=A1=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=B8=AD=E6=98=AF=E5=90=A6=E5=8F=AF=E5=81=9A=E6=94=B6?= =?UTF-8?q?=E8=8E=B7=E9=80=9A=E7=9F=A5(PurOrderBillList)=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?"=E5=B7=B2=E5=AE=A1=E6=A0=B8"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/pm/PurOrderBillUpdatasfkzshListPlugin.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lc123/cloud/app/plugin/form/pm/PurOrderBillUpdatasfkzshListPlugin.java b/lc123/cloud/app/plugin/form/pm/PurOrderBillUpdatasfkzshListPlugin.java index b31b0f7..5e8bf6f 100644 --- a/lc123/cloud/app/plugin/form/pm/PurOrderBillUpdatasfkzshListPlugin.java +++ b/lc123/cloud/app/plugin/form/pm/PurOrderBillUpdatasfkzshListPlugin.java @@ -21,11 +21,13 @@ import java.util.Set; * 获取选中行单据分录,遍历对比分录每条数据的 "数量" 和 "关联数量" 字段,如果每一条都相等,则将是否可做收货通知 置为 false */ public class PurOrderBillUpdatasfkzshListPlugin extends AbstractListPlugin implements Plugin { + @Override public void itemClick(ItemClickEvent evt) { super.itemClick(evt); String itemKey = evt.getItemKey(); if ("biz_sfkzsh".equals(itemKey)) { + StringBuilder msg = new StringBuilder(); BillList billList = this.getView().getControl("billlistap"); // 获取选中行集合 ListSelectedRowCollection selectedRows = billList.getSelectedRows(); @@ -58,9 +60,14 @@ public class PurOrderBillUpdatasfkzshListPlugin extends AbstractListPlugin imple SaveServiceHelper.save(new DynamicObject[]{bill}); } else { - this.getView().showTipNotification("单据【"+billNo+"】未审核"); + msg.append(billNo).append(","); } } + if (msg.length() > 0) { + msg.deleteCharAt(msg.length() - 1); + this.getView().showTipNotification("单据【"+msg+"】未审核,不能更新【是否可做收获通知】"); + } + } } } \ No newline at end of file