|
@@ -18,8 +18,8 @@
|
|
|
label.discount-label {{ discount < 0 ? 'Ganancia' : 'Descuento' }}
|
|
|
input.discount-input(:value='discount | absolute | currency(...options)' readonly)
|
|
|
.discount-options
|
|
|
- button.discount-button(@click='onAccept' :disabled='isValid() === false') Aceptar
|
|
|
- button.discount-button(@click='onCancel') Cancelar
|
|
|
+ button.discount-button(@click.prevent='onAccept' :disabled='isValid() === false') Aceptar
|
|
|
+ button.discount-button(@click.prevent='onCancel') Cancelar
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -83,7 +83,7 @@
|
|
|
e.stop()
|
|
|
}
|
|
|
},
|
|
|
- onAccept() {
|
|
|
+ onAccept(e) {
|
|
|
this.$emit('onAccept', this.ammount)
|
|
|
},
|
|
|
onCancel() {
|