diff --git a/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java b/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java index 001d9fd..30dab24 100644 --- a/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java +++ b/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java @@ -221,8 +221,10 @@ public class ImportPurchaseApplyBillPlugin extends AbstractBillPlugIn implements if (entryIds.contains(entryId)) { int index = model.createNewEntryRow("projectentry"); model.setValue("qeug_purentry_id", entryId, index); - model.setValue("purentrycontent", entry.get("qeug_materialname"), index); - DynamicObject project = entry.getDynamicObject("qeug_project"); + model.setValue("purentrycontent", entry.get("qeug_materialname"), index);// 物料名称 + model.setValue("qeug_qty", entry.get("qeug_qty"), index);// 数量 + model.setValue("qeug_unit", entry.get("qeug_unit"), index);// 单位 + DynamicObject project = entry.getDynamicObject("qeug_project");// 项目 if (project != null) { QFilter projectQF = new QFilter("number", QCP.equals, project.getString("number")); DynamicObject purproject = BusinessDataServiceHelper.loadSingle("rebm_purproject", projectQF.toArray());