feat: tag distributions

This commit is contained in:
2026-01-24 16:21:46 +03:30
parent e0633245cd
commit de16f203d4

View File

@@ -185,7 +185,8 @@ export const SubmitTagDistribution = ({ item, getData }: any) => {
item?.distributions?.map((d: any) => d.batch_identity) || []
}
groupFunction={(item) =>
speciesOptions().find((s) => s.key === item)?.value || "نامشخص"
speciesOptions().find((s: any) => s.key === item)?.value ||
"نامشخص"
}
valueTemplateProps={[{ v1: "string" }, { v2: "string" }]}
multiple
@@ -244,8 +245,9 @@ export const SubmitTagDistribution = ({ item, getData }: any) => {
distributionType === "group"
? `تعداد (${batch.label})`
: `تعداد ${
speciesOptions().find((s) => s.key === batch.species_code)
?.value
speciesOptions().find(
(s: any) => s.key === batch.species_code
)?.value
}`
}
value={batch.count}