| | |
| | | import { useWatch, useFormContext } from "react-hook-form"; |
| | | import { Stack, Grid, Box, Typography } from '@mui/material'; |
| | | import * as Common from '@/utils/common'; |
| | | import { EDIT_MODE } from '@/config/setting'; |
| | | import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting'; |
| | | import EditBaseAside from "../components/EditBaseAside"; |
| | | import CustomerTopToolBar from "../components/EditTopToolBar"; |
| | | import MemoInput from "../components/MemoInput"; |
| | |
| | | <ReferenceInput |
| | | source="userId" |
| | | reference="user" |
| | | perPage={REFERENCE_INPUT_PAGESIZE} |
| | | > |
| | | <AutocompleteInput |
| | | label="table.field.operationRecord.userId" |
| | | optionText="nickname" |
| | | filterToQuery={(val) => ({ nickname: val })} |
| | | /> |
| | | </ReferenceInput> |
| | | </Stack> |
| | |
| | | ]} |
| | | />, |
| | | <ReferenceInput source="userId" reference="user"> |
| | | <AutocompleteInput label="table.field.operationRecord.userId" optionText="nickname" /> |
| | | <AutocompleteInput label="table.field.operationRecord.userId" optionText="nickname" filterToQuery={(val) => ({ nickname: val })} /> |
| | | </ReferenceInput>, |
| | | |
| | | <TextInput label="common.field.memo" source="memo" />, |
| | |
| | | import { useWatch, useFormContext } from "react-hook-form"; |
| | | import { Stack, Grid, Box, Typography } from '@mui/material'; |
| | | import * as Common from '@/utils/common'; |
| | | import { EDIT_MODE } from '@/config/setting'; |
| | | import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting'; |
| | | import EditBaseAside from "../components/EditBaseAside"; |
| | | import CustomerTopToolBar from "../components/EditTopToolBar"; |
| | | import MemoInput from "../components/MemoInput"; |
| | |
| | | <ReferenceInput |
| | | source="zoneId" |
| | | reference="zone" |
| | | perPage={REFERENCE_INPUT_PAGESIZE} |
| | | > |
| | | <AutocompleteInput |
| | | label="table.field.sta.zoneId" |
| | |
| | | <ReferenceInput |
| | | source="staType" |
| | | reference="staType" |
| | | perPage={REFERENCE_INPUT_PAGESIZE} |
| | | > |
| | | <AutocompleteInput |
| | | label="table.field.sta.staType" |
| | |
| | | <ReferenceInput |
| | | source="code" |
| | | reference="code" |
| | | perPage={REFERENCE_INPUT_PAGESIZE} |
| | | > |
| | | <AutocompleteInput |
| | | label="table.field.sta.code" |
| | |
| | | <ReferenceInput |
| | | source="staSts" |
| | | reference="staSts" |
| | | perPage={REFERENCE_INPUT_PAGESIZE} |
| | | > |
| | | <AutocompleteInput |
| | | label="table.field.sta.staSts" |
| | |
| | | <TextInput source="phone" label="table.field.user.phone" />, |
| | | <TextInput source="email" label="table.field.user.email" />, |
| | | // <ReferenceInput source="deptId" label="table.field.user.deptId" reference="dept"> |
| | | // <AutocompleteInput label="table.field.user.deptId" optionText="name" /> |
| | | // <AutocompleteInput label="table.field.user.deptId" optionText="name" filterToQuery={(val) => ({ name: val })} /> |
| | | // </ReferenceInput>, |
| | | <TextInput source="realName" label="table.field.user.realName" />, |
| | | <TextInput source="idCard" label="table.field.user.idCard" />, |
| | |
| | | sb.append(" <ReferenceInput\n"); |
| | | sb.append(" source=\"").append(column.getHumpName()).append("\"\n"); |
| | | sb.append(" reference=\"").append(GeneratorUtils.firstCharConvert(column.getForeignKey())).append("\"\n"); |
| | | sb.append(" perPage={REFERENCE_INPUT_PAGESIZE}\n"); |
| | | if (count == 0) { |
| | | sb.append(" autoFocus\n"); |
| | | } |
| | |
| | | import { useWatch, useFormContext } from "react-hook-form"; |
| | | import { Stack, Grid, Box, Typography } from '@mui/material'; |
| | | import * as Common from '@/utils/common'; |
| | | import { EDIT_MODE } from '@/config/setting'; |
| | | import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting'; |
| | | import EditBaseAside from "../components/EditBaseAside"; |
| | | import CustomerTopToolBar from "../components/EditTopToolBar"; |
| | | import MemoInput from "../components/MemoInput"; |