0
0
Fork 0
This commit is contained in:
Carlos Satorres 2024-01-24 14:58:33 +01:00
parent e47561df86
commit 8ae7756e9a
1 changed files with 21 additions and 19 deletions

View File

@ -135,21 +135,21 @@ async function regularizeClaim() {
message: t('globals.dataSaved'), message: t('globals.dataSaved'),
type: 'positive', type: 'positive',
}); });
if (claim.value.responsibility >= Math.ceil(DEFAULT_MAX_RESPONSABILITY) / 2) { // if (claim.value.responsibility >= Math.ceil(DEFAULT_MAX_RESPONSABILITY) / 2) {
quasar // quasar
.dialog({ // .dialog({
component: VnConfirm, // component: VnConfirm,
componentProps: { // componentProps: {
title: t('confirmGreuges'), // title: t('confirmGreuges'),
message: ` // message: `
<input class="q-field__native text-grey-2" type="number" placeholder="1" id="multiplicatorValue" name="multiplicatorValue" min="0" max="50"/> // <input class="q-field__native text-grey-2" type="number" placeholder="1" id="multiplicatorValue" name="multiplicatorValue" min="0" max="50"/>
`, // `,
data: { inputId: 'multiplicatorValue' }, // data: { inputId: 'multiplicatorValue' },
promise: onUpdateGreugeAccept, // promise: onUpdateGreugeAccept,
}, // },
}) // })
.onOk(async () => await onUpdateGreugeAccept()); // .onOk(async () => await onUpdateGreugeAccept());
} // }
} }
async function onUpdateGreugeAccept({ return: multiplicatorValue }) { async function onUpdateGreugeAccept({ return: multiplicatorValue }) {
@ -275,11 +275,12 @@ async function importToNewRefundTicket() {
name="multiplicatorValue" name="multiplicatorValue"
min="0" min="0"
max="50" max="50"
disable=" v-model="multiplicatorValue"
claim.value.responsibility >=
Math.ceil(DEFAULT_MAX_RESPONSABILITY) / 2
"
/> />
<QBtn
@click="onUpdateGreugeAccept(multiplicatorValue)"
:label="t('Apply Greuges')"
></QBtn>
</QCard> </QCard>
</QDrawer> </QDrawer>
<Teleport to="#st-data" v-if="stateStore.isSubToolbarShown()"> </Teleport> <Teleport to="#st-data" v-if="stateStore.isSubToolbarShown()"> </Teleport>
@ -521,4 +522,5 @@ es:
Id item: Id artículo Id item: Id artículo
confirmGreuges: ¿Desea insertar greuges? confirmGreuges: ¿Desea insertar greuges?
confirmGreugesMessage: Insertar greuges en la ficha del cliente confirmGreugesMessage: Insertar greuges en la ficha del cliente
Apply Greuges: Aplicar Greuges
</i18n> </i18n>