diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-29 07:43:44 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-29 07:43:44 +0000 |
| commit | 2eb717eb2bbfd97a5f149d13049aa336c26c393b (patch) | |
| tree | 274283b7759bfba619e6d143edccf3845ba45ed6 /lib/vendor-investigation/table/update-investigation-sheet.tsx | |
| parent | bfc26491991997b5b109af6ea6bc75a8be138e9a (diff) | |
(최겸) 구매 실사 개발(진행중)
Diffstat (limited to 'lib/vendor-investigation/table/update-investigation-sheet.tsx')
| -rw-r--r-- | lib/vendor-investigation/table/update-investigation-sheet.tsx | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/lib/vendor-investigation/table/update-investigation-sheet.tsx b/lib/vendor-investigation/table/update-investigation-sheet.tsx index 9f7c8994..7daa9d44 100644 --- a/lib/vendor-investigation/table/update-investigation-sheet.tsx +++ b/lib/vendor-investigation/table/update-investigation-sheet.tsx @@ -107,7 +107,7 @@ const getFileUploadConfig = (status: string) => { } /** - * 실사 정보 수정 시트 + * 실사 결과 입력 시트 */ export function UpdateVendorInvestigationSheet({ investigation, @@ -539,11 +539,11 @@ export function UpdateVendorInvestigationSheet({ <Sheet {...props}> <SheetContent className="flex flex-col h-full sm:max-w-xl" > <SheetHeader className="text-left flex-shrink-0"> - <SheetTitle>실사 업데이트</SheetTitle> + <SheetTitle>실사 결과 입력</SheetTitle> <SheetDescription> {investigation?.vendorName && ( <span className="font-medium">{investigation.vendorName}</span> - )}의 실사 정보를 수정합니다. + )}의 실사 결과를 입력합니다. </SheetDescription> </SheetHeader> @@ -554,8 +554,8 @@ export function UpdateVendorInvestigationSheet({ className="flex flex-col gap-4" id="update-investigation-form" > - {/* 실사 상태 */} - <FormField + {/* 실사 상태 - 주석처리 (실사 결과 입력에서는 자동으로 완료됨/취소됨/보완요구됨으로 변경) */} + {/* <FormField control={form.control} name="investigationStatus" render={({ field }) => ( @@ -572,6 +572,8 @@ export function UpdateVendorInvestigationSheet({ <SelectItem value="IN_PROGRESS">진행 중</SelectItem> <SelectItem value="COMPLETED">완료됨</SelectItem> <SelectItem value="CANCELED">취소됨</SelectItem> + <SelectItem value="SUPPLEMENT_REQUIRED">보완 요구됨</SelectItem> + <SelectItem value="RESULT_SENT">실사결과발송</SelectItem> </SelectGroup> </SelectContent> </Select> @@ -579,10 +581,10 @@ export function UpdateVendorInvestigationSheet({ <FormMessage /> </FormItem> )} - /> + /> */} - {/* 실사 주소 */} - <FormField + {/* 실사 주소 - 주석처리 (실사 진행 관리에서 처리) */} + {/* <FormField control={form.control} name="investigationAddress" render={({ field }) => ( @@ -598,10 +600,10 @@ export function UpdateVendorInvestigationSheet({ <FormMessage /> </FormItem> )} - /> + /> */} - {/* 실사 방법 */} - <FormField + {/* 실사 방법 - 주석처리 (실사 진행 관리에서 처리) */} + {/* <FormField control={form.control} name="investigationMethod" render={({ field }) => ( @@ -625,10 +627,10 @@ export function UpdateVendorInvestigationSheet({ <FormMessage /> </FormItem> )} - /> + /> */} - {/* 실사 수행 예정일 */} - <FormField + {/* 실사 수행 예정일 - 주석처리 (실사 진행 관리에서 처리) */} + {/* <FormField control={form.control} name="forecastedAt" render={({ field }) => ( @@ -662,10 +664,10 @@ export function UpdateVendorInvestigationSheet({ <FormMessage /> </FormItem> )} - /> + /> */} - {/* 실사 확정일 */} - <FormField + {/* 실사 확정일 - 주석처리 (실사 진행 관리에서 처리) */} + {/* <FormField control={form.control} name="confirmedAt" render={({ field }) => ( @@ -699,7 +701,7 @@ export function UpdateVendorInvestigationSheet({ <FormMessage /> </FormItem> )} - /> + /> */} {/* 실제 실사일 */} <FormField @@ -738,61 +740,59 @@ export function UpdateVendorInvestigationSheet({ )} /> - {/* 평가 점수 - 완료된 상태일 때만 표시 */} - {form.watch("investigationStatus") === "COMPLETED" && ( - <FormField - control={form.control} - name="evaluationScore" - render={({ field }) => ( - <FormItem> - <FormLabel>평가 점수</FormLabel> - <FormControl> - <Input - type="number" - min={0} - max={100} - placeholder="0-100점" - {...field} - value={field.value || ""} - onChange={(e) => { - const value = e.target.value === "" ? undefined : parseInt(e.target.value, 10) - field.onChange(value) - }} - /> - </FormControl> - <FormMessage /> - </FormItem> - )} - /> - )} + {/* 평가 점수 */} + <FormField + control={form.control} + name="evaluationScore" + render={({ field }) => ( + <FormItem> + <FormLabel>평가 점수</FormLabel> + <FormControl> + <Input + type="number" + min={0} + max={100} + placeholder="0-100점" + {...field} + value={field.value || ""} + onChange={(e) => { + const value = e.target.value === "" ? undefined : parseInt(e.target.value, 10) + field.onChange(value) + }} + /> + </FormControl> + <FormMessage /> + </FormItem> + )} + /> - {/* 평가 결과 - 완료된 상태일 때만 표시 */} - {form.watch("investigationStatus") === "COMPLETED" && ( - <FormField - control={form.control} - name="evaluationResult" - render={({ field }) => ( - <FormItem> - <FormLabel>평가 결과</FormLabel> - <FormControl> - <Select value={field.value || ""} onValueChange={field.onChange}> - <SelectTrigger> - <SelectValue placeholder="평가 결과를 선택하세요" /> - </SelectTrigger> - <SelectContent> - <SelectGroup> - <SelectItem value="APPROVED">승인</SelectItem> - <SelectItem value="SUPPLEMENT">보완</SelectItem> - <SelectItem value="REJECTED">불가</SelectItem> - </SelectGroup> - </SelectContent> - </Select> - </FormControl> - <FormMessage /> - </FormItem> - )} - /> - )} + {/* 평가 결과 */} + <FormField + control={form.control} + name="evaluationResult" + render={({ field }) => ( + <FormItem> + <FormLabel>평가 결과</FormLabel> + <FormControl> + <Select value={field.value || ""} onValueChange={field.onChange}> + <SelectTrigger> + <SelectValue placeholder="평가 결과를 선택하세요" /> + </SelectTrigger> + <SelectContent> + <SelectGroup> + <SelectItem value="APPROVED">승인</SelectItem> + <SelectItem value="SUPPLEMENT">보완</SelectItem> + <SelectItem value="SUPPLEMENT_REINSPECT">보완-재실사</SelectItem> + <SelectItem value="SUPPLEMENT_DOCUMENT">보완-서류제출</SelectItem> + <SelectItem value="REJECTED">불가</SelectItem> + </SelectGroup> + </SelectContent> + </Select> + </FormControl> + <FormMessage /> + </FormItem> + )} + /> {/* QM 의견 */} <FormField |
