diff options
Diffstat (limited to 'lib/rfq-last/vendor/batch-update-conditions-dialog.tsx')
| -rw-r--r-- | lib/rfq-last/vendor/batch-update-conditions-dialog.tsx | 112 |
1 files changed, 32 insertions, 80 deletions
diff --git a/lib/rfq-last/vendor/batch-update-conditions-dialog.tsx b/lib/rfq-last/vendor/batch-update-conditions-dialog.tsx index c258293b..6112aed4 100644 --- a/lib/rfq-last/vendor/batch-update-conditions-dialog.tsx +++ b/lib/rfq-last/vendor/batch-update-conditions-dialog.tsx @@ -1096,36 +1096,18 @@ export function BatchUpdateConditionsDialog({ checked={fieldsToUpdate.materialPrice} onCheckedChange={(checked) => { setFieldsToUpdate({ ...fieldsToUpdate, materialPrice: !!checked }); - if (checked) { - form.setValue("materialPriceRelatedYn", true); - } }} /> - <FormField - control={form.control} - name="materialPriceRelatedYn" - render={({ field }) => ( - <FormItem className="flex-1 flex items-center justify-between"> - <div className="space-y-0.5"> - <FormLabel className={cn( - !fieldsToUpdate.materialPrice && "text-muted-foreground" - )}> - 연동제 적용 요건문의 - </FormLabel> - <div className="text-sm text-muted-foreground"> - 원자재 가격 연동 여부 - </div> - </div> - <FormControl> - <Switch - checked={field.value} - onCheckedChange={field.onChange} - disabled={!fieldsToUpdate.materialPrice} - /> - </FormControl> - </FormItem> - )} - /> + <div className="space-y-0.5 flex-1"> + <FormLabel className={cn( + !fieldsToUpdate.materialPrice && "text-muted-foreground" + )}> + 연동제 적용 요건문의 + </FormLabel> + <div className="text-sm text-muted-foreground"> + 원자재 가격 연동 여부 + </div> + </div> </div> {/* Spare Part */} @@ -1140,33 +1122,18 @@ export function BatchUpdateConditionsDialog({ } }} /> - <FormField - control={form.control} - name="sparepartYn" - render={({ field }) => ( - <FormItem className="flex-1 flex items-center justify-between"> - <div className="space-y-0.5"> - <FormLabel className={cn( - !fieldsToUpdate.sparepart && "text-muted-foreground" - )}> - Spare Part - </FormLabel> - <div className="text-sm text-muted-foreground"> - 예비 부품 요구사항 - </div> - </div> - <FormControl> - <Switch - checked={field.value} - onCheckedChange={field.onChange} - disabled={!fieldsToUpdate.sparepart} - /> - </FormControl> - </FormItem> - )} - /> + <div className="space-y-0.5 flex-1"> + <FormLabel className={cn( + !fieldsToUpdate.sparepart && "text-muted-foreground" + )}> + Spare Part + </FormLabel> + <div className="text-sm text-muted-foreground"> + 예비 부품 요구사항 + </div> + </div> </div> - {form.watch("sparepartYn") && fieldsToUpdate.sparepart && ( + {fieldsToUpdate.sparepart && ( <FormField control={form.control} name="sparepartDescription" @@ -1198,33 +1165,18 @@ export function BatchUpdateConditionsDialog({ } }} /> - <FormField - control={form.control} - name="firstYn" - render={({ field }) => ( - <FormItem className="flex-1 flex items-center justify-between"> - <div className="space-y-0.5"> - <FormLabel className={cn( - !fieldsToUpdate.first && "text-muted-foreground" - )}> - 초도품 관리 - </FormLabel> - <div className="text-sm text-muted-foreground"> - 초도품 관리 요구사항 - </div> - </div> - <FormControl> - <Switch - checked={field.value} - onCheckedChange={field.onChange} - disabled={!fieldsToUpdate.first} - /> - </FormControl> - </FormItem> - )} - /> + <div className="space-y-0.5 flex-1"> + <FormLabel className={cn( + !fieldsToUpdate.first && "text-muted-foreground" + )}> + 초도품 관리 + </FormLabel> + <div className="text-sm text-muted-foreground"> + 초도품 관리 요구사항 + </div> + </div> </div> - {form.watch("firstYn") && fieldsToUpdate.first && ( + {fieldsToUpdate.first && ( <FormField control={form.control} name="firstDescription" |
