falta interfaz venta
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
<script lang="ts">
|
||||
let { onClose, onSubmit } : {
|
||||
onClose: () => void,
|
||||
onSubmit: (data: { opcionVenta: boolean; cantGarantes: number; mesesHastaAumento: number, mesesDuracionContrato:number }) => void
|
||||
onSubmit: (data: { opcionVenta: boolean; cantGarantes: number; mesesHastaAumento: number, mesesDuracionContrato:number, montoOpcion:number, iddivisa:number }) => void
|
||||
} = $props();
|
||||
|
||||
let opcionVenta: boolean = $state(false);
|
||||
let cantGarantes: number = $state(0);
|
||||
let mesesHastaAumento: number = $state(0);
|
||||
let mesesDuracionContrato:number =$state(0);
|
||||
let montoOpcion:number=$state(0);
|
||||
let iddivisa:number=$state(0);
|
||||
|
||||
function handleSubmit(e:Event) {
|
||||
e.preventDefault();
|
||||
onSubmit({ opcionVenta, cantGarantes, mesesHastaAumento, mesesDuracionContrato });
|
||||
onSubmit({ opcionVenta, cantGarantes, mesesHastaAumento, mesesDuracionContrato, montoOpcion, iddivisa });
|
||||
onClose();
|
||||
}
|
||||
</script>
|
||||
@@ -25,11 +28,23 @@
|
||||
<form onsubmit={handleSubmit}>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" bind:checked={opcionVenta} id="opcionVenta" />
|
||||
<label class="form-check-label" for="opcionVenta">Seleccionar Opcion de Venta</label>
|
||||
</div>
|
||||
{#if opcionVenta}
|
||||
<div class="form-group">
|
||||
<label for="montoOpcion">Definir monto</label>
|
||||
<input type="number" class="form-control" bind:value={montoOpcion} id="montoOpcion">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="iddivisa">Seleccionar Divisa</label>
|
||||
<select class="form-select" bind:value={iddivisa} id="iddivisa">
|
||||
<option value="0">AR$</option>
|
||||
<option value="1">US$</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="cantGarantes">Cantidad de Garantes</label>
|
||||
|
||||
Reference in New Issue
Block a user