refactor: add i18n of product and service
This commit is contained in:
parent
0d360fdbde
commit
e7897fba32
7 changed files with 27 additions and 18 deletions
|
|
@ -222,6 +222,7 @@ const detailEditorImageDrop = createEditorImageDrop(detail);
|
||||||
dense
|
dense
|
||||||
>
|
>
|
||||||
<q-editor
|
<q-editor
|
||||||
|
id="input-detail"
|
||||||
dense
|
dense
|
||||||
:model-value="readonly ? detail || '-' : detail"
|
:model-value="readonly ? detail || '-' : detail"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,7 @@ function optionSearch(val: string | null) {
|
||||||
|
|
||||||
<div class="col-12 row q-col-gutter-sm">
|
<div class="col-12 row q-col-gutter-sm">
|
||||||
<q-select
|
<q-select
|
||||||
|
for="select-attachment"
|
||||||
behavior="menu"
|
behavior="menu"
|
||||||
:readonly
|
:readonly
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -150,6 +151,7 @@ function optionSearch(val: string | null) {
|
||||||
{{ $t('general.add', { text: $t('general.attachment') }) }}
|
{{ $t('general.add', { text: $t('general.attachment') }) }}
|
||||||
</q-item> -->
|
</q-item> -->
|
||||||
<q-item
|
<q-item
|
||||||
|
for="select-all"
|
||||||
dense
|
dense
|
||||||
clickable
|
clickable
|
||||||
class="flex items-center"
|
class="flex items-center"
|
||||||
|
|
@ -172,6 +174,7 @@ function optionSearch(val: string | null) {
|
||||||
</template>
|
</template>
|
||||||
<template #option="{ opt }">
|
<template #option="{ opt }">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
|
:id="`select-${opt.label}`"
|
||||||
:model-value="attachment.some((v) => v === opt.value)"
|
:model-value="attachment.some((v) => v === opt.value)"
|
||||||
class="q-pr-sm"
|
class="q-pr-sm"
|
||||||
size="xs"
|
size="xs"
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,7 @@ withDefaults(
|
||||||
</template>
|
</template>
|
||||||
<template v-if="col.name === '#vatIncluded'">
|
<template v-if="col.name === '#vatIncluded'">
|
||||||
<q-select
|
<q-select
|
||||||
|
for="select-vat-included"
|
||||||
:options="[
|
:options="[
|
||||||
{ label: $t('general.included'), value: true },
|
{ label: $t('general.included'), value: true },
|
||||||
{ label: $t('general.notIncluded'), value: false },
|
{ label: $t('general.notIncluded'), value: false },
|
||||||
|
|
@ -278,6 +279,7 @@ withDefaults(
|
||||||
{ label: $t('general.notIncluded'), value: false },
|
{ label: $t('general.notIncluded'), value: false },
|
||||||
]"
|
]"
|
||||||
v-if="priceDisplay?.agentPrice && props.rowIndex === 1"
|
v-if="priceDisplay?.agentPrice && props.rowIndex === 1"
|
||||||
|
for="select-vat-included"
|
||||||
map-options
|
map-options
|
||||||
emit-value
|
emit-value
|
||||||
flat
|
flat
|
||||||
|
|
@ -291,6 +293,7 @@ withDefaults(
|
||||||
{ label: $t('general.notIncluded'), value: false },
|
{ label: $t('general.notIncluded'), value: false },
|
||||||
]"
|
]"
|
||||||
v-if="priceDisplay?.serviceCharge && props.rowIndex === 2"
|
v-if="priceDisplay?.serviceCharge && props.rowIndex === 2"
|
||||||
|
for="select-vat-included"
|
||||||
map-options
|
map-options
|
||||||
emit-value
|
emit-value
|
||||||
flat
|
flat
|
||||||
|
|
|
||||||
|
|
@ -127,8 +127,8 @@ watch(
|
||||||
<div class="row items-center q-py-sm full-width" @click.stop>
|
<div class="row items-center q-py-sm full-width" @click.stop>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-work-up-product"
|
:id="`btn-work-up-product-${workIndex}`"
|
||||||
for="btn-work-up-product"
|
:for="`btn-work-up-product-${workIndex}`"
|
||||||
icon="mdi-arrow-up"
|
icon="mdi-arrow-up"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -139,8 +139,8 @@ watch(
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-work-down-product"
|
:id="`btn-work-down-product-${workIndex}`"
|
||||||
for="btn-work-down-product"
|
:for="`btn-work-down-product-${workIndex}`"
|
||||||
icon="mdi-arrow-down"
|
icon="mdi-arrow-down"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -244,7 +244,7 @@ watch(
|
||||||
<div :class="{ 'col-12 row justify-end q-mt-sm': $q.screen.lt.md }">
|
<div :class="{ 'col-12 row justify-end q-mt-sm': $q.screen.lt.md }">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-delete-work"
|
:id="`btn-delete-work-${workIndex}`"
|
||||||
icon="mdi-trash-can-outline"
|
icon="mdi-trash-can-outline"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -290,8 +290,8 @@ watch(
|
||||||
<AddButton
|
<AddButton
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
icon-only
|
icon-only
|
||||||
id="btn-add-work-product"
|
:id="`btn-add-work-product-${workIndex}`"
|
||||||
for="btn-add-work-product"
|
:for="`btn-add-work-product-${workIndex}`"
|
||||||
@click.stop="$emit('addProduct')"
|
@click.stop="$emit('addProduct')"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -317,7 +317,7 @@ watch(
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-product-up"
|
:id="`btn-product-up-${index}`"
|
||||||
icon="mdi-arrow-up"
|
icon="mdi-arrow-up"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -329,8 +329,8 @@ watch(
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-product-down"
|
:id="`btn-product-down-${index}`"
|
||||||
for="btn-product-down"
|
:for="`btn-product-down-${index}`"
|
||||||
icon="mdi-arrow-down"
|
icon="mdi-arrow-down"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -482,8 +482,8 @@ watch(
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
class="q-ml-md"
|
class="q-ml-md"
|
||||||
id="btn-delete-work-product"
|
:id="`btn-delete-work-product-${index}`"
|
||||||
for="btn-delete-work-product"
|
:for="`btn-delete-work-product-${index}`"
|
||||||
icon="mdi-trash-can-outline"
|
icon="mdi-trash-can-outline"
|
||||||
padding="0"
|
padding="0"
|
||||||
dense
|
dense
|
||||||
|
|
@ -521,7 +521,7 @@ watch(
|
||||||
</span>
|
</span>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-add-work-product"
|
:id="`btn-add-work-product-${workIndex}`"
|
||||||
class="text-capitalize rounded"
|
class="text-capitalize rounded"
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,7 @@ watch(
|
||||||
>
|
>
|
||||||
<div class="col-md col-12 row items-center">
|
<div class="col-md col-12 row items-center">
|
||||||
<q-btn
|
<q-btn
|
||||||
id="btn-move-up-product"
|
:id="`btn-move-up-product-${propIndex}`"
|
||||||
icon="mdi-arrow-up"
|
icon="mdi-arrow-up"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -481,7 +481,7 @@ watch(
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
id="btn-move-down-product"
|
:id="`btn-move-down-product-${propIndex}`"
|
||||||
icon="mdi-arrow-down"
|
icon="mdi-arrow-down"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -515,7 +515,7 @@ watch(
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
for="input-properties-name"
|
:for="`input-properties-name-${propIndex}`"
|
||||||
class="col-md col-12 q-mr-md"
|
class="col-md col-12 q-mr-md"
|
||||||
:class="{ 'q-my-sm': $q.screen.lt.md }"
|
:class="{ 'q-my-sm': $q.screen.lt.md }"
|
||||||
:label="$t('productService.service.propertiesName')"
|
:label="$t('productService.service.propertiesName')"
|
||||||
|
|
@ -554,8 +554,8 @@ watch(
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
for="input-properties-type"
|
:for="`input-properties-type-${propIndex}`"
|
||||||
id="input-properties-type"
|
:id="`input-properties-type-${propIndex}`"
|
||||||
:label="$t('general.type')"
|
:label="$t('general.type')"
|
||||||
option-value="value"
|
option-value="value"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ function setDefaultValue() {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<SelectInput
|
<SelectInput
|
||||||
|
for="select-work-flow-template"
|
||||||
v-model="value"
|
v-model="value"
|
||||||
incremental
|
incremental
|
||||||
:label
|
:label
|
||||||
|
|
|
||||||
|
|
@ -4347,6 +4347,7 @@ watch(
|
||||||
class="split-pay q-mx-sm"
|
class="split-pay q-mx-sm"
|
||||||
input-class="text-caption text-right"
|
input-class="text-caption text-right"
|
||||||
type="number"
|
type="number"
|
||||||
|
for="dialog-input-installments"
|
||||||
v-model="formService.installments"
|
v-model="formService.installments"
|
||||||
/>
|
/>
|
||||||
{{ $t('quotation.receiptDialog.installments') }}
|
{{ $t('quotation.receiptDialog.installments') }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue