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 <TableComponents
flat flat
bordered bordered
:button-delete="!checkable" hideView
:button-delete="!checkable && !readonly"
img-column="employeeName" img-column="employeeName"
:readonly="readonly" :readonly="readonly"
:inTable :inTable

View file

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

View file

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