- {branches && branches.length > 0
- ? branches.map((_, index: number) => (
-
-
-
+
+
+ | {translate('::App.Listform.ListformField.BranchId')} |
+ {translate('::Abp.Identity.User.DefaultWarehouse')} |
+ {translate('::Abp.Identity.User.DefaultLocation')} |
+
+
+
+ {branches?.map((branch, index) => {
+ const warehouseOptions = (branch.warehouses ?? []).map((w) => ({
+ value: w.id,
+ label: w.name,
+ }))
+ const locationOptions = (
+ branch.warehouses?.find((w) => w.id === branch.defaultWarehouseId)
+ ?.locations ?? []
+ ).map((l) => ({ value: l.id, label: l.name }))
+ return (
+
+ |
+
+ {branch.name}
+
+ |
+
+
+ {({ field, form }: FieldProps) => (
+
+
+ |
+
+
+ {({ field, form }: FieldProps) => (
+
+
+ |
+
+ )
+ })}
+
+
@@ -1416,13 +1506,13 @@ function UserDetails() {
'::Abp.Identity.User.LockoutManagement.AccountEndDate',
)}
inputPrefix={