fix: readonly, info code & createdAt

This commit is contained in:
puriphatt 2024-10-11 11:28:06 +07:00
parent c020a3acbd
commit 0a832974f5
3 changed files with 29 additions and 14 deletions

View file

@ -72,9 +72,9 @@ import { group } from 'node:console';
import { precisionRound } from 'src/utils/arithmetic';
import { useConfigStore } from 'src/stores/config';
defineProps<{
readonly?: boolean;
}>();
// defineProps<{
// readonly?: boolean;
// }>();
type Node = {
[key: string]: any;
@ -558,7 +558,6 @@ onMounted(async () => {
currentQuotationId.value,
quotationFormState.value.mode,
);
await assignWorkerToSelectedWorker();
}
await assignToProductServiceList();
@ -609,7 +608,10 @@ watch(
<span class="text-caption text-regular app-text-muted">
{{
$t('quotation.processOn', {
msg: `${dateFormat(date, true)} ${dateFormat(date, true, true)}`,
msg:
quotationFormState.mode === 'create'
? `${dateFormat(date, true)} ${dateFormat(date, true, true)}`
: `${dateFormat(quotationFull?.createdAt, true)} ${dateFormat(quotationFull?.createdAt, true, true)}`,
})
}}
</span>
@ -822,8 +824,8 @@ watch(
:class="{ 'full-height': $q.screen.gt.xs }"
>
<QuotationFormInfo
:quotation-no="quotationFull && quotationFull.code"
v-model:urgent="quotationFormData.urgent"
v-model:quotation-no="quotationNo"
v-model:actor="quotationFormData.actorName"
v-model:work-name="quotationFormData.workName"
v-model:contactor="quotationFormData.contactName"