|  |  |  | 
|---|
|  |  |  | 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" | 
|---|
|  |  |  | optionText="uuid" | 
|---|
|  |  |  | optionText="data" | 
|---|
|  |  |  | filterToQuery={(val) => ({ data: val })} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </ReferenceInput> | 
|---|
|  |  |  | 
|---|
|  |  |  | <ReferenceInput | 
|---|
|  |  |  | source="staSts" | 
|---|
|  |  |  | reference="staSts" | 
|---|
|  |  |  | perPage={REFERENCE_INPUT_PAGESIZE} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <AutocompleteInput | 
|---|
|  |  |  | label="table.field.sta.staSts" | 
|---|