From e93433a3231ca440983c595bf6a365222abf1fb5 Mon Sep 17 00:00:00 2001 From: 25655 <2565550274@qq.com> Date: Tue, 18 Mar 2025 15:03:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=201.-=E4=BA=A7=E5=93=81=E7=BB=8F?= =?UTF-8?q?=E7=90=86=E4=B8=8B=E5=8D=95=E7=A1=AE=E8=AE=A4=E6=97=B6=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E7=89=A9=E6=96=99=E5=87=80=E9=87=8D=E5=8F=AA=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E4=B8=80=E4=B8=AA=E5=8D=B3=E5=8F=AF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yem/wm/im/trackplace/form/TrackplaceFormPlugIn.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yem/wm/im/trackplace/form/TrackplaceFormPlugIn.java b/src/main/java/com/yem/wm/im/trackplace/form/TrackplaceFormPlugIn.java index 6fb4b719..375845c9 100644 --- a/src/main/java/com/yem/wm/im/trackplace/form/TrackplaceFormPlugIn.java +++ b/src/main/java/com/yem/wm/im/trackplace/form/TrackplaceFormPlugIn.java @@ -11,13 +11,12 @@ import kd.bos.dataentity.metadata.dynamicobject.DynamicProperty; import kd.bos.entity.datamodel.IDataModel; import kd.bos.entity.datamodel.events.ChangeData; import kd.bos.entity.datamodel.events.PropertyChangedArgs; -import kd.bos.entity.operate.result.OperationResult; import kd.bos.exception.KDBizException; import kd.bos.form.FormShowParameter; import kd.bos.form.IFormView; -import kd.bos.form.control.AttachmentPanel; import kd.bos.form.control.EntryGrid; -import kd.bos.form.control.events.*; +import kd.bos.form.control.events.RowClickEvent; +import kd.bos.form.control.events.RowClickEventListener; import kd.bos.form.events.*; import kd.bos.form.field.BasedataEdit; import kd.bos.form.field.events.BeforeF7SelectEvent; @@ -379,8 +378,9 @@ public class TrackplaceFormPlugIn extends AbstractBillPlugIn implements Plugin, DynamicObject yemMateriel = dynamicObject.getDynamicObject("yem_materiel"); if (yemMateriel != null) { BigDecimal netweight = yemMateriel.getBigDecimal("netweight"); + BigDecimal yemNetweight = yemMateriel.getBigDecimal("yem_netweight"); boolean yemIsgift = dynamicObject.getBoolean("yem_isgift"); - if (netweight.compareTo(BigDecimal.ZERO) == 0 && !yemIsgift) { + if (netweight.compareTo(BigDecimal.ZERO) == 0 && yemNetweight.compareTo(BigDecimal.ZERO) == 0 && !yemIsgift) { String seq = dynamicObject.getString("seq"); newBigDecimal.add(seq); // this.getView().showMessage("第【" + seq + "】行物料中净重为空,请稍后重试!");