fix:可选中机型过滤问题

(cherry picked from commit e97f8bad74)
This commit is contained in:
zzs 2024-12-04 10:58:07 +08:00
parent 07306341b3
commit a184683b25
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ public class InquirylistEdit extends AbstractBillPlugIn implements BeforeF7Selec
Map<String, Object> map = new HashMap<>();
List<Long> ids = new ArrayList();
DynamicObject productModel = (DynamicObject) model.getValue("yem_productmodel", currentRowIndex);
DynamicObject products = yem_im_detailedinfor.get(0).getDynamicObject("yem_productmodel.yem_products");
DynamicObject products = yem_im_detailedinfor.get(currentRowIndex).getDynamicObject("yem_productmodel.yem_products");
for (DynamicObject dynamicObject : yem_im_detailedinfor) {
DynamicObjectCollection yem_multiconfig = dynamicObject.getDynamicObjectCollection("yem_multiconfig");
if (yem_multiconfig != null) {

View File

@ -105,8 +105,8 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
continue;
}
int entryRow = model.createNewEntryRow("yem_optionalentry");
model.setValue("yem_basemodel", productModel.getLong("id"), entryRow);
model.setValue("yem_productmodel", productModel.getJSONObject("yem_products").getLong("id"), entryRow);
model.setValue("yem_basemodel", productModel.getLong("id"), entryRow);
model.setValue("yem_productmodel", productModel.getJSONObject("yem_products").getLong("id"), entryRow);
model.setValue("yem_profilenamea", optional.getString("yem_profilenamec"), entryRow);
model.setValue("yem_configure", optional.getString("yem_configure"), entryRow);
model.setValue("yem_parameter", optional.getString("yem_parameter"), entryRow);