refactor(04): form space & product status
This commit is contained in:
parent
a9d58748fe
commit
a9ffaca668
1 changed files with 16 additions and 14 deletions
|
|
@ -972,6 +972,7 @@ function assignFormDataProduct(data: ProductList) {
|
||||||
code: data.code,
|
code: data.code,
|
||||||
image: undefined,
|
image: undefined,
|
||||||
registeredBranchId: data.registeredBranchId,
|
registeredBranchId: data.registeredBranchId,
|
||||||
|
status: data.status,
|
||||||
};
|
};
|
||||||
|
|
||||||
formDataProduct.value = { ...prevProduct.value };
|
formDataProduct.value = { ...prevProduct.value };
|
||||||
|
|
@ -3642,7 +3643,7 @@ watch(
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div class="full-width full-height">
|
<div class="full-width full-height q-pa-lg">
|
||||||
<div class="row items-center">
|
<div class="row items-center">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -3665,7 +3666,7 @@ watch(
|
||||||
<div>
|
<div>
|
||||||
<AppBox
|
<AppBox
|
||||||
no-padding
|
no-padding
|
||||||
class="row q-mt-sm q-col-gutter-sm"
|
class="row q-mt-md q-col-gutter-sm"
|
||||||
style="background: none"
|
style="background: none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
@ -3877,10 +3878,9 @@ watch(
|
||||||
>
|
>
|
||||||
<div class="q-mx-lg q-mt-lg">
|
<div class="q-mx-lg q-mt-lg">
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
active
|
|
||||||
hideFade
|
hideFade
|
||||||
useToggle
|
useToggle
|
||||||
hideActive
|
:active="formDataProduct.status !== 'INACTIVE'"
|
||||||
icon="mdi-shopping"
|
icon="mdi-shopping"
|
||||||
fallbackImg="/images/product-avatar.png"
|
fallbackImg="/images/product-avatar.png"
|
||||||
color="var(--teal-10)"
|
color="var(--teal-10)"
|
||||||
|
|
@ -3958,6 +3958,7 @@ watch(
|
||||||
v-model:name="formDataProduct.name"
|
v-model:name="formDataProduct.name"
|
||||||
v-model:code="formDataProduct.code"
|
v-model:code="formDataProduct.code"
|
||||||
v-model:process="formDataProduct.process"
|
v-model:process="formDataProduct.process"
|
||||||
|
disableCode
|
||||||
dense
|
dense
|
||||||
separator
|
separator
|
||||||
/>
|
/>
|
||||||
|
|
@ -4189,22 +4190,22 @@ watch(
|
||||||
|
|
||||||
<!-- manage work name -->
|
<!-- manage work name -->
|
||||||
<DialogForm
|
<DialogForm
|
||||||
no-address
|
hideFooter
|
||||||
no-app-box
|
|
||||||
no-footer
|
|
||||||
height="65vh"
|
height="65vh"
|
||||||
width="65%"
|
width="65%"
|
||||||
v-model:modal="manageWorkNameDialog"
|
v-model:modal="manageWorkNameDialog"
|
||||||
:title="$t('manage')"
|
:title="$t('manage')"
|
||||||
:close="triggerConfirmCloseWork"
|
:close="triggerConfirmCloseWork"
|
||||||
>
|
>
|
||||||
<WorkNameManagement
|
<div class="q-pa-lg full-height">
|
||||||
ref="workNameRef"
|
<WorkNameManagement
|
||||||
v-model:nameList="workNameItems"
|
ref="workNameRef"
|
||||||
@delete="confirmDeleteWork"
|
v-model:nameList="workNameItems"
|
||||||
@edit="editWork"
|
@delete="confirmDeleteWork"
|
||||||
@add="createWork"
|
@edit="editWork"
|
||||||
/>
|
@add="createWork"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</DialogForm>
|
</DialogForm>
|
||||||
|
|
||||||
<!-- edit service -->
|
<!-- edit service -->
|
||||||
|
|
@ -4318,6 +4319,7 @@ watch(
|
||||||
:readonly="!infoServiceEdit"
|
:readonly="!infoServiceEdit"
|
||||||
dense
|
dense
|
||||||
service
|
service
|
||||||
|
disableCode
|
||||||
v-model:options-branch="branchOption"
|
v-model:options-branch="branchOption"
|
||||||
v-model:registered-branch-id="
|
v-model:registered-branch-id="
|
||||||
formDataProductService.registeredBranchId
|
formDataProductService.registeredBranchId
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue