refactor: add id input
This commit is contained in:
parent
27059e7e35
commit
87c606348f
4 changed files with 26 additions and 3 deletions
|
|
@ -97,6 +97,7 @@ watch(
|
||||||
class="col-md-4 col-12"
|
class="col-md-4 col-12"
|
||||||
v-model="code"
|
v-model="code"
|
||||||
id="select-br-id"
|
id="select-br-id"
|
||||||
|
for="select-br-id"
|
||||||
option-label="label"
|
option-label="label"
|
||||||
option-value="value"
|
option-value="value"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
|
|
@ -118,6 +119,7 @@ watch(
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
for="input-name"
|
for="input-name"
|
||||||
|
id="input-name"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
|
|
@ -130,6 +132,7 @@ watch(
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
for="input-process"
|
for="input-process"
|
||||||
|
id="input-process"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
|
|
@ -162,6 +165,7 @@ watch(
|
||||||
class="col-md-3 col-6"
|
class="col-md-3 col-6"
|
||||||
v-model="expenseType"
|
v-model="expenseType"
|
||||||
id="select-br-id"
|
id="select-br-id"
|
||||||
|
for="select-br-id"
|
||||||
option-label="label"
|
option-label="label"
|
||||||
option-value="value"
|
option-value="value"
|
||||||
lazy-rules="ondemand"
|
lazy-rules="ondemand"
|
||||||
|
|
@ -185,6 +189,8 @@ watch(
|
||||||
<q-field
|
<q-field
|
||||||
class="full-width"
|
class="full-width"
|
||||||
outlined
|
outlined
|
||||||
|
for="input-detail"
|
||||||
|
id="input-detail"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
:label="$t('general.detail')"
|
:label="$t('general.detail')"
|
||||||
|
|
@ -216,6 +222,7 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<q-input
|
<q-input
|
||||||
for="input-remark"
|
for="input-remark"
|
||||||
|
id="input-remark"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ watch(
|
||||||
</template>
|
</template>
|
||||||
</q-select>
|
</q-select>
|
||||||
<q-input
|
<q-input
|
||||||
|
for="input-code"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
readonly
|
readonly
|
||||||
|
|
@ -121,6 +122,7 @@ watch(
|
||||||
v-model="code"
|
v-model="code"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
|
for="input-name"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
|
|
@ -133,6 +135,7 @@ watch(
|
||||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
|
for="input-detail"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
|
|
@ -142,7 +145,6 @@ watch(
|
||||||
:label="$t('general.detail')"
|
:label="$t('general.detail')"
|
||||||
:model-value="readonly ? detail || '-' : detail"
|
:model-value="readonly ? detail || '-' : detail"
|
||||||
@update:model-value="(v) => (typeof v === 'string' ? (detail = v) : '')"
|
@update:model-value="(v) => (typeof v === 'string' ? (detail = v) : '')"
|
||||||
:for="`input-detail`"
|
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ withDefaults(
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
id="btn-include-vat"
|
id="btn-include-vat"
|
||||||
|
for="btn-include-vat"
|
||||||
class="q-px-sm q-mr-lg rounded cursor-pointer"
|
class="q-px-sm q-mr-lg rounded cursor-pointer"
|
||||||
:class="{
|
:class="{
|
||||||
dark: $q.dark.isActive,
|
dark: $q.dark.isActive,
|
||||||
|
|
@ -58,6 +59,7 @@ withDefaults(
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
id="btn-no-include-vat"
|
id="btn-no-include-vat"
|
||||||
|
for="btn-no-include-vat"
|
||||||
class="q-px-sm rounded cursor-pointer"
|
class="q-px-sm rounded cursor-pointer"
|
||||||
:class="{
|
:class="{
|
||||||
dark: $q.dark.isActive,
|
dark: $q.dark.isActive,
|
||||||
|
|
@ -72,6 +74,8 @@ withDefaults(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 row q-col-gutter-sm">
|
<div class="col-12 row q-col-gutter-sm">
|
||||||
<q-input
|
<q-input
|
||||||
|
id="input-price"
|
||||||
|
for="input-price"
|
||||||
v-if="priceDisplay?.price"
|
v-if="priceDisplay?.price"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -85,6 +89,8 @@ withDefaults(
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
|
id="input-agent-price"
|
||||||
|
for="input-agent-price"
|
||||||
v-if="priceDisplay?.agentPrice"
|
v-if="priceDisplay?.agentPrice"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -98,6 +104,8 @@ withDefaults(
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
|
id="input-service-charge"
|
||||||
|
for="input-service-charge"
|
||||||
v-if="priceDisplay?.serviceCharge"
|
v-if="priceDisplay?.serviceCharge"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@ defineEmits<{
|
||||||
<template>
|
<template>
|
||||||
<div class="bordered rounded">
|
<div class="bordered rounded">
|
||||||
<q-expansion-item
|
<q-expansion-item
|
||||||
|
for="item-up"
|
||||||
|
id="item-up"
|
||||||
dense
|
dense
|
||||||
switch-toggle-side
|
switch-toggle-side
|
||||||
default-opened
|
default-opened
|
||||||
|
|
@ -75,6 +77,7 @@ defineEmits<{
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-work-up-product"
|
id="btn-work-up-product"
|
||||||
|
for="btn-work-up-product"
|
||||||
icon="mdi-arrow-up"
|
icon="mdi-arrow-up"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -86,6 +89,7 @@ defineEmits<{
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-work-down-product"
|
id="btn-work-down-product"
|
||||||
|
for="btn-work-down-product"
|
||||||
icon="mdi-arrow-down"
|
icon="mdi-arrow-down"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -96,7 +100,7 @@ defineEmits<{
|
||||||
@click.stop="$emit('moveWorkDown')"
|
@click.stop="$emit('moveWorkDown')"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
for="select-work-name"
|
:for="`select-work-name-${index + 1}`"
|
||||||
class="col q-py-sm q-px-md"
|
class="col q-py-sm q-px-md"
|
||||||
style="background-color: var(--surface-1); z-index: 2"
|
style="background-color: var(--surface-1); z-index: 2"
|
||||||
@click="() => (readonly ? '' : fetchListOfWork())"
|
@click="() => (readonly ? '' : fetchListOfWork())"
|
||||||
|
|
@ -109,7 +113,6 @@ defineEmits<{
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<q-menu v-if="!readonly" fit anchor="bottom left" self="top left">
|
<q-menu v-if="!readonly" fit anchor="bottom left" self="top left">
|
||||||
<q-item>
|
<q-item>
|
||||||
<div class="full-width flex items-center justify-between">
|
<div class="full-width flex items-center justify-between">
|
||||||
|
|
@ -249,6 +252,7 @@ defineEmits<{
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
id="btn-add-work-product"
|
id="btn-add-work-product"
|
||||||
|
for="btn-add-work-product"
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
icon="mdi-plus"
|
icon="mdi-plus"
|
||||||
|
|
@ -292,6 +296,7 @@ defineEmits<{
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!readonly && $q.screen.gt.xs"
|
v-if="!readonly && $q.screen.gt.xs"
|
||||||
id="btn-product-down"
|
id="btn-product-down"
|
||||||
|
for="btn-product-down"
|
||||||
icon="mdi-arrow-down"
|
icon="mdi-arrow-down"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
@ -420,6 +425,7 @@ defineEmits<{
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
class="q-ml-md"
|
class="q-ml-md"
|
||||||
id="btn-delete-work-product"
|
id="btn-delete-work-product"
|
||||||
|
for="btn-delete-work-product"
|
||||||
icon="mdi-trash-can-outline"
|
icon="mdi-trash-can-outline"
|
||||||
padding="0"
|
padding="0"
|
||||||
dense
|
dense
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue