fix: work component & work dialog

This commit is contained in:
puriphatt 2024-06-25 11:04:34 +00:00
parent 6222db1973
commit bdcda30890
3 changed files with 12 additions and 11 deletions

View file

@ -1933,7 +1933,7 @@ watch(currentStatus, async () => {
<!-- edit service -->
<FormDialog
no-address
no-app-box
:no-app-box="currentServiceTab !== 'workInformation'"
:edit="!(formDataProductService.status === 'INACTIVE')"
height="95vh"
:isEdit="infoServiceEdit"
@ -1976,7 +1976,10 @@ watch(currentStatus, async () => {
/>
</template>
<div v-if="currentServiceTab === 'serviceInformation'" class="col-10">
<div
v-if="currentServiceTab === 'serviceInformation'"
class="col-md-10 col-sm-12"
>
<div class="surface-1 rounded bordered q-pa-lg full-width row">
<BasicInformation
:readonly="!infoServiceEdit"
@ -2009,10 +2012,7 @@ watch(currentStatus, async () => {
</div>
</div>
<div
v-if="currentServiceTab === 'workInformation'"
class="surface-1 rounded bordered col-10 q-pa-lg"
>
<template #information>
<FormServiceWork
:readonly="!infoServiceEdit"
v-model:work-items="workItems"
@ -2034,7 +2034,7 @@ watch(currentStatus, async () => {
}
"
/>
</div>
</template>
</FormDialog>
</template>