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