|
|
@@ -71,15 +71,6 @@ const EscalationComponent: React.FC<Props> = ({ |
|
|
|
fetchData(); |
|
|
|
}, []) |
|
|
|
|
|
|
|
const nameOptions: NameOption[] = [ |
|
|
|
{ value: '', label: '請選擇姓名...' }, |
|
|
|
{ value: 'john', label: '張大明' }, |
|
|
|
{ value: 'jane', label: '李小美' }, |
|
|
|
{ value: 'mike', label: '王志強' }, |
|
|
|
{ value: 'sarah', label: '陳淑華' }, |
|
|
|
{ value: 'david', label: '林建國' }, |
|
|
|
]; |
|
|
|
|
|
|
|
const { |
|
|
|
register, |
|
|
|
formState: { errors, defaultValues, touchedFields }, |
|
|
@@ -232,7 +223,7 @@ const EscalationComponent: React.FC<Props> = ({ |
|
|
|
id="reason" |
|
|
|
// name="reason" |
|
|
|
{...register("escalationLog.reason", { |
|
|
|
required: "reason required!", |
|
|
|
required: "請輸入上報原因", |
|
|
|
})} |
|
|
|
label="上報原因" |
|
|
|
multiline |
|
|
@@ -240,6 +231,8 @@ const EscalationComponent: React.FC<Props> = ({ |
|
|
|
// value={formData.reason} |
|
|
|
onChange={handleInputChange} |
|
|
|
placeholder="請輸入上報原因" |
|
|
|
error={Boolean(errors.escalationLog?.reason)} |
|
|
|
helperText={errors.escalationLog?.reason?.message} |
|
|
|
/> |
|
|
|
|
|
|
|
{/* <Stack direction="row" justifyContent="flex-end" gap={1}> |
|
|
|