diff options
Diffstat (limited to 'lib/pq/pq-review-table-new/request-investigation-dialog.tsx')
| -rw-r--r-- | lib/pq/pq-review-table-new/request-investigation-dialog.tsx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/pq/pq-review-table-new/request-investigation-dialog.tsx b/lib/pq/pq-review-table-new/request-investigation-dialog.tsx index 6cbb885f..b9648e74 100644 --- a/lib/pq/pq-review-table-new/request-investigation-dialog.tsx +++ b/lib/pq/pq-review-table-new/request-investigation-dialog.tsx @@ -51,14 +51,6 @@ interface QMUser { }
const requestInvestigationFormSchema = z.object({
- evaluationType: z.enum([
- "PURCHASE_SELF_EVAL", // 구매자체평가
- "DOCUMENT_EVAL", // 서류평가
- // "PRODUCT_INSPECTION", // 제품검사평가
- // "SITE_VISIT_EVAL" // 방문실사평가
- ], {
- required_error: "평가 유형을 선택해주세요.",
- }),
qmManagerId: z.number({
required_error: "QM 담당자를 선택해주세요.",
}),
@@ -76,7 +68,6 @@ interface RequestInvestigationDialogProps { isOpen: boolean
onClose: () => void
onSubmit: (data: {
- evaluationType: "PURCHASE_SELF_EVAL" | "DOCUMENT_EVAL" | "PRODUCT_INSPECTION" | "SITE_VISIT_EVAL",
qmManagerId: number,
forecastedAt: Date,
investigationAddress: string,
@@ -86,7 +77,6 @@ interface RequestInvestigationDialogProps { selectedCount: number
// 선택된 행에서 가져온 초기값
initialData?: {
- evaluationType?: "PURCHASE_SELF_EVAL" | "DOCUMENT_EVAL" | "PRODUCT_INSPECTION" | "SITE_VISIT_EVAL",
qmManagerId?: number,
forecastedAt?: Date,
investigationAddress?: string,
@@ -110,7 +100,6 @@ export function RequestInvestigationDialog({ const form = useForm<RequestInvestigationFormValues>({
resolver: zodResolver(requestInvestigationFormSchema),
defaultValues: {
- evaluationType: initialData?.evaluationType || "PURCHASE_SELF_EVAL",
qmManagerId: initialData?.qmManagerId || undefined,
forecastedAt: initialData?.forecastedAt || undefined,
investigationAddress: initialData?.investigationAddress || "",
@@ -123,7 +112,6 @@ export function RequestInvestigationDialog({ React.useEffect(() => {
if (isOpen) {
form.reset({
- evaluationType: initialData?.evaluationType || "PURCHASE_SELF_EVAL",
qmManagerId: initialData?.qmManagerId || undefined,
forecastedAt: initialData?.forecastedAt || undefined,
investigationAddress: initialData?.investigationAddress || "",
@@ -175,33 +163,6 @@ export function RequestInvestigationDialog({ </DialogHeader>
<Form {...form}>
<form onSubmit={form.handleSubmit(handleSubmit)} className="space-y-4">
- <FormField
- control={form.control}
- name="evaluationType"
- render={({ field }) => (
- <FormItem>
- <FormLabel>평가 유형</FormLabel>
- <Select
- onValueChange={field.onChange}
- defaultValue={field.value}
- disabled={isPending}
- >
- <FormControl>
- <SelectTrigger>
- <SelectValue placeholder="평가 유형을 선택하세요" />
- </SelectTrigger>
- </FormControl>
- <SelectContent>
- <SelectItem value="PURCHASE_SELF_EVAL">구매자체평가</SelectItem>
- <SelectItem value="DOCUMENT_EVAL">서류평가</SelectItem>
- {/* <SelectItem value="PRODUCT_INSPECTION">제품검사평가</SelectItem> */}
- {/* <SelectItem value="SITE_VISIT_EVAL">방문실사평가</SelectItem> */}
- </SelectContent>
- </Select>
- <FormMessage />
- </FormItem>
- )}
- />
<FormField
control={form.control}
|
