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