feat: tag distributions
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user