1.修改明细删除行提示null

This commit is contained in:
zhouc 2024-09-24 14:48:53 +08:00
parent 2878292488
commit 4615f3ce68

View File

@ -269,6 +269,9 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
collect(dataEntity);
SaveServiceHelper.save(new DynamicObject[]{dataEntity});
}
if("submit".equals(key)){
this.getView().invokeOperation("refresh");
}
}
@ -560,15 +563,15 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
case "yem_customclass":
carryReportCategoryAndHsCode(this.getModel(), this.getView(), rowIndex, "yem_customclass");
break;
case "yem_qty":
// case "yem_qty":
case "yem_offeramount":
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_es_salescontrac_s");
for (DynamicObject dynamicObject : collection) {
BigDecimal raprate = dynamicObject.getBigDecimal("yem_raprate");
BigDecimal offeramount = dataEntity.getBigDecimal("yem_offeramount");
dynamicObject.set("yem_rapamt", PaymentControlUtil.getAdvancePayment(offeramount, raprate));
this.getView().updateView("yem_es_salescontrac_s");
}
this.getView().invokeOperation("save");
break;
case "yem_bigcabinetnumbers":
countBigCabinetQty(model);//汇总表头大柜数量