refactor: show hint remark
This commit is contained in:
parent
4e3a642aa1
commit
85a6bc8816
2 changed files with 33 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ import useEmployeeStore from 'stores/employee';
|
||||||
import { useInvoice, useReceipt, usePayment } from 'stores/payment';
|
import { useInvoice, useReceipt, usePayment } from 'stores/payment';
|
||||||
import useCustomerStore from 'stores/customer';
|
import useCustomerStore from 'stores/customer';
|
||||||
import useOptionStore from 'stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { useQuotationForm } from './form';
|
import { useQuotationForm, DEFAULT_DATA } from './form';
|
||||||
import { deleteItem } from 'stores/utils';
|
import { deleteItem } from 'stores/utils';
|
||||||
|
|
||||||
// NOTE Import Types
|
// NOTE Import Types
|
||||||
|
|
@ -1784,6 +1784,7 @@ async function formDownload() {
|
||||||
<div class="surface-1 q-pa-md full-width">
|
<div class="surface-1 q-pa-md full-width">
|
||||||
<q-editor
|
<q-editor
|
||||||
dense
|
dense
|
||||||
|
:hint="$t('general.enterToAdd')"
|
||||||
:readonly="readonly || !pageState.remarkWrite"
|
:readonly="readonly || !pageState.remarkWrite"
|
||||||
:model-value="
|
:model-value="
|
||||||
!pageState.remarkWrite || readonly
|
!pageState.remarkWrite || readonly
|
||||||
|
|
@ -1833,7 +1834,7 @@ async function formDownload() {
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<template v-if="!readonly" v-slot:toggle>
|
<template v-if="!readonly" v-slot:toggle>
|
||||||
<div class="text-caption row no-wrap q-px-sm">
|
<div class="text-caption row no-wrap">
|
||||||
<MainButton
|
<MainButton
|
||||||
:disabled="readonly"
|
:disabled="readonly"
|
||||||
:solid="!pageState.remarkWrite"
|
:solid="!pageState.remarkWrite"
|
||||||
|
|
@ -1864,9 +1865,37 @@ async function formDownload() {
|
||||||
>
|
>
|
||||||
{{ $t('general.edit') }}
|
{{ $t('general.edit') }}
|
||||||
</MainButton>
|
</MainButton>
|
||||||
|
|
||||||
|
<MainButton
|
||||||
|
push
|
||||||
|
:disabled="readonly"
|
||||||
|
icon="mdi-help-circle-outline"
|
||||||
|
color="0 0% 40%"
|
||||||
|
style="padding: 0 var(--size-2)"
|
||||||
|
:style="{
|
||||||
|
color: 'hsl(0 0% 40%)',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<q-popup-proxy
|
||||||
|
class="q-pa-sm"
|
||||||
|
style="white-space: nowrap"
|
||||||
|
>
|
||||||
|
<div v-html="DEFAULT_DATA.remark"></div>
|
||||||
|
</q-popup-proxy>
|
||||||
|
</MainButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</q-editor>
|
</q-editor>
|
||||||
|
|
||||||
|
<p
|
||||||
|
class="app-text-muted"
|
||||||
|
v-if="quotationFormState.mode === 'edit'"
|
||||||
|
>
|
||||||
|
{{ $t('general.hintRemark') }}
|
||||||
|
<code>#[quotation-labor]</code>
|
||||||
|
{{ $t('general.or') }}
|
||||||
|
<code>#[quotation-payment]</code>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</q-expansion-item>
|
</q-expansion-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -2341,6 +2370,7 @@ async function formDownload() {
|
||||||
></QuotationFormProductSelect>
|
></QuotationFormProductSelect>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- add Worker -->
|
||||||
<QuotationFormWorkerAddDialog
|
<QuotationFormWorkerAddDialog
|
||||||
v-if="quotationFormState.source"
|
v-if="quotationFormState.source"
|
||||||
:disabled-worker-id="selectedWorker.map((v) => v.id)"
|
:disabled-worker-id="selectedWorker.map((v) => v.id)"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import { useInvoice } from 'stores/payment';
|
||||||
import useEmployeeStore from 'stores/employee';
|
import useEmployeeStore from 'stores/employee';
|
||||||
import { getName } from 'src/services/keycloak';
|
import { getName } from 'src/services/keycloak';
|
||||||
|
|
||||||
const DEFAULT_DATA: QuotationPayload = {
|
export const DEFAULT_DATA: QuotationPayload = {
|
||||||
productServiceList: [],
|
productServiceList: [],
|
||||||
urgent: false,
|
urgent: false,
|
||||||
customerBranchId: '',
|
customerBranchId: '',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue