switch (field.getName()) {
case "unitprice":
record.setValue("subtotal", record.getValue("unitprice") * record.getValue("bencifenpei"));
break;
case "bencifenpei":
record.setValue("subtotal", record.getValue("unitprice") * record.getValue("bencifenpei"));
break;
}
实现输入数量单价之后小计(乘积)的联动