forked from verdnatura/salix-front
refs #6664 btn
This commit is contained in:
parent
e47561df86
commit
8ae7756e9a
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue