refactor: edit hint
This commit is contained in:
parent
136ab65c32
commit
de8178118e
4 changed files with 22 additions and 28 deletions
|
|
@ -1298,7 +1298,6 @@ async function formDownload() {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
{{ console.log(productService) }}
|
|
||||||
<ImportWorker
|
<ImportWorker
|
||||||
v-model:open="pageState.importWorker"
|
v-model:open="pageState.importWorker"
|
||||||
v-model:data="importWorkerCriteria"
|
v-model:data="importWorkerCriteria"
|
||||||
|
|
@ -1898,36 +1897,17 @@ 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
|
<p class="app-text-muted text-caption">
|
||||||
class="app-text-muted"
|
|
||||||
v-if="quotationFormState.mode === 'edit'"
|
|
||||||
>
|
|
||||||
{{ $t('general.hintRemark') }}
|
{{ $t('general.hintRemark') }}
|
||||||
<code>#[quotation-labor]</code>
|
<code>#[quotation-labor]</code>
|
||||||
|
{{ $t('general.quotationLabor') }}
|
||||||
{{ $t('general.or') }}
|
{{ $t('general.or') }}
|
||||||
<code>#[quotation-payment]</code>
|
<code>#[quotation-payment]</code>
|
||||||
|
{{ $t('general.quotationPayment') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</q-expansion-item>
|
</q-expansion-item>
|
||||||
|
|
|
||||||
|
|
@ -117,9 +117,8 @@ const getToolbarConfig = computed(() => {
|
||||||
</template>
|
</template>
|
||||||
</q-editor>
|
</q-editor>
|
||||||
|
|
||||||
<p class="app-text-muted" v-if="!readonly">
|
<p class="app-text-muted text-caption">
|
||||||
{{ $t('general.hintRemark') }}
|
<slot name="hint" />
|
||||||
<code v-html="defaultRemark" />
|
|
||||||
</p>
|
</p>
|
||||||
</main>
|
</main>
|
||||||
</q-expansion-item>
|
</q-expansion-item>
|
||||||
|
|
|
||||||
|
|
@ -983,7 +983,13 @@ watch(
|
||||||
:items="taskListGroup"
|
:items="taskListGroup"
|
||||||
:items-discount="taskProduct"
|
:items-discount="taskProduct"
|
||||||
:default-remark="DEFAULT_DATA.remark"
|
:default-remark="DEFAULT_DATA.remark"
|
||||||
/>
|
>
|
||||||
|
<template #hint>
|
||||||
|
{{ $t('general.hintRemark') }}
|
||||||
|
<code>#[order-detail]</code>
|
||||||
|
{{ $t('general.orderDetail') }}
|
||||||
|
</template>
|
||||||
|
</RemarkExpansion>
|
||||||
|
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
|
|
|
||||||
|
|
@ -755,7 +755,16 @@ onMounted(async () => {
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
v-model:remark="formData.remark"
|
v-model:remark="formData.remark"
|
||||||
:default-remark="defaultRemark"
|
:default-remark="defaultRemark"
|
||||||
/>
|
>
|
||||||
|
<template #hint>
|
||||||
|
{{ $t('general.hintRemark') }}
|
||||||
|
<code>#[quotation-labor]</code>
|
||||||
|
{{ $t('general.quotationLabor') }}
|
||||||
|
{{ $t('general.or') }}
|
||||||
|
<code>#[quotation-payment]</code>
|
||||||
|
{{ $t('general.quotationPayment') }}
|
||||||
|
</template>
|
||||||
|
</RemarkExpansion>
|
||||||
|
|
||||||
<QuotationFormReceipt
|
<QuotationFormReceipt
|
||||||
v-if="creditNoteData && view === CreditNoteStatus.Success"
|
v-if="creditNoteData && view === CreditNoteStatus.Success"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue