refs #6664 popup #153
|
@ -37,7 +37,7 @@ const marker_labels = [
|
||||||
{ value: DEFAULT_MIN_RESPONSABILITY, label: t('claim.summary.company') },
|
{ value: DEFAULT_MIN_RESPONSABILITY, label: t('claim.summary.company') },
|
||||||
{ value: DEFAULT_MAX_RESPONSABILITY, label: t('claim.summary.person') },
|
{ value: DEFAULT_MAX_RESPONSABILITY, label: t('claim.summary.person') },
|
||||||
];
|
];
|
||||||
const portesMultiplicator = ref();
|
const multiplicatorValue = ref();
|
||||||
|
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
|
@ -135,24 +135,10 @@ 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) {
|
await onUpdateGreugeAccept();
|
||||||
// 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 }) {
|
async function onUpdateGreugeAccept() {
|
||||||
const greugeTypeFreightId = (
|
const greugeTypeFreightId = (
|
||||||
await axios.get(`GreugeTypes/findOne`, {
|
await axios.get(`GreugeTypes/findOne`, {
|
||||||
filter: { where: { code: 'freightPickUp' } },
|
filter: { where: { code: 'freightPickUp' } },
|
||||||
|
@ -160,7 +146,7 @@ async function onUpdateGreugeAccept({ return: multiplicatorValue }) {
|
||||||
).data.id;
|
).data.id;
|
||||||
const freightPickUpPrice =
|
const freightPickUpPrice =
|
||||||
carlossa marked this conversation as resolved
|
|||||||
(await axios.get(`GreugeConfigs/findOne`)).data.freightPickUpPrice *
|
(await axios.get(`GreugeConfigs/findOne`)).data.freightPickUpPrice *
|
||||||
+multiplicatorValue;
|
+multiplicatorValue.value;
|
||||||
console.log(freightPickUpPrice);
|
console.log(freightPickUpPrice);
|
||||||
carlossa marked this conversation as resolved
Outdated
alexm
commented
console.log console.log
|
|||||||
await axios.post(`Greuges`, {
|
await axios.post(`Greuges`, {
|
||||||
clientFk: claim.value.clientFk,
|
clientFk: claim.value.clientFk,
|
||||||
|
@ -267,6 +253,9 @@ async function importToNewRefundTicket() {
|
||||||
</QCard>
|
</QCard>
|
||||||
<QCard class="q-mb-md q-pa-sm no-box-shadow" style="position: static">
|
<QCard class="q-mb-md q-pa-sm no-box-shadow" style="position: static">
|
||||||
<QInput
|
<QInput
|
||||||
|
:disable="
|
||||||
|
!(claim.responsibility >= Math.ceil(DEFAULT_MAX_RESPONSABILITY) / 2)
|
||||||
|
"
|
||||||
:label="t('confirmGreuges')"
|
:label="t('confirmGreuges')"
|
||||||
class="q-field__native text-grey-2"
|
class="q-field__native text-grey-2"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -277,10 +266,6 @@ async function importToNewRefundTicket() {
|
||||||
max="50"
|
max="50"
|
||||||
v-model="multiplicatorValue"
|
v-model="multiplicatorValue"
|
||||||
/>
|
/>
|
||||||
<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>
|
||||||
|
|
|
@ -31,7 +31,6 @@ describe('ClaimAction', () => {
|
||||||
|
|
||||||
it('should regularize', () => {
|
it('should regularize', () => {
|
||||||
cy.get('[title="Regularize"]').click();
|
cy.get('[title="Regularize"]').click();
|
||||||
cy.clickConfirm();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should remove the line', () => {
|
it('should remove the line', () => {
|
||||||
|
|
Loading…
Reference in New Issue
Ho vec poc legible, i ficar
* +
no es un poc raro?