From 5a5dff4a776a2eeba4136b99b8f766ea977b98c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=B0=8F=E4=BC=9F?= Date: Tue, 13 May 2025 15:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=20=E5=80=99=E8=A1=A5=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/SupplementInvoiceBillPlugin.java | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java index 19aa35c..e684c7b 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java @@ -114,9 +114,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { @Override public void propertyChanged(PropertyChangedArgs e) { - if (!"C".equals(this.getModel().getValue("billstatus"))){ - super.propertyChanged(e);//单据不是审核状态走父类 - } + //单据为审核走以下逻辑 log.info("SupplementInvoiceBillPlugin:发生变动的字段:"+e.getProperty().getName()); String billId = this.getModel().getDataEntity().getPkValue().toString(); @@ -239,14 +237,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { public void closedCallBack(ClosedCallBackEvent event) { String billId = this.getModel().getDataEntity().getPkValue().toString(); log.info("SupplementInvoiceBillPlugin:主键值:"+billId); - if (!"C".equals(this.getModel().getValue("billstatus"))){ - super.closedCallBack(event); - String actionId = event.getActionId(); - Object returnData = event.getReturnData(); - if (actionId.equals("selectinvoice") && returnData != null) { - this.selectInvoiceCallBack(returnData); - } - } else if (!billId.equals("0") &&"C".equals(this.getModel().getValue("billstatus"))){ + if (!billId.equals("0") &&"C".equals(this.getModel().getValue("billstatus"))){ String actionId = event.getActionId();//获取回调标识 Object returnData = event.getReturnData();//获取子页面返回的数据 log.info("SupplementInvoiceBillPlugin:获取回调标识:"+actionId); @@ -259,13 +250,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { } - protected void selectInvoiceCallBack(Object returnData) { - DynamicObject org = (DynamicObject)this.getModel().getValue("fiaccountorg"); - List invoiceVOList = InvoiceDataHandleHelper.parseXhInvoiceCloudReturnData(returnData); - Map> invoiceMap = CustomInvoiceDataHandleHelper.processInvoiceVO(invoiceVOList, RequestContext.get().getCurrUserId(), org.getLong("id"), new Date(), "ec_in_invoice", (DynamicObject)this.getModel().getValue("currency"), true); - ImportInvoiceUtils invoiceUtils = new ImportInvoiceUtils(this.getView(), this.getPageCache()); - this.addInvoiceToEntry(invoiceUtils, invoiceMap); - } + protected void invoiceCloseCallBack1(ClosedCallBackEvent event) { ListSelectedRowCollection rows = (ListSelectedRowCollection)event.getReturnData();