fix: readonly quotation info

This commit is contained in:
puriphatt 2024-10-17 18:05:45 +07:00
parent 4878e5f751
commit 8f069de610
3 changed files with 6 additions and 2 deletions

View file

@ -92,7 +92,8 @@ const columns = [
<TableComponents
flat
bordered
:button-delete="!checkable"
hideView
:button-delete="!checkable && !readonly"
img-column="employeeName"
:readonly="readonly"
:inTable

View file

@ -16,6 +16,7 @@ const props = withDefaults(
buttonDelete?: boolean;
hidePagination?: boolean;
inTable?: boolean;
hideView?: boolean;
imgColumn?: string;
customColumn?: string[];
@ -100,7 +101,7 @@ defineEmits<{
@click="$emit('delete', props.rowIndex)"
/>
<q-btn
v-if="!buttonDelete"
v-if="!buttonDelete && !hideView"
icon="mdi-eye-outline"
size="sm"
dense

View file

@ -373,6 +373,7 @@ watch(
>
{{ `${$t('quotation.periodNo')} ${i + 1}` }}
<q-input
:readonly
class="col q-mx-sm"
:label="$t('quotation.amount')"
:model-value="commaInput(period.amount.toString())"
@ -415,6 +416,7 @@ watch(
</template>
</q-input>
<DatePicker
:readonly
v-model="period.date"
class="col-5"
:label="$t('quotation.payDueDate')"