fix: move package create button to top right (#43)
* fix: move package create button to top right * fix: move product and product group save button * fix: make button stick to top right * fix: product => price input debounce * fix: product => installmentNo default --------- Co-authored-by: puriphatt <puriphat@frappet.com>
This commit is contained in:
parent
9f27012cb1
commit
d74a5e6ca5
2 changed files with 25 additions and 2 deletions
|
|
@ -111,6 +111,7 @@ withDefaults(
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
debounce="500"
|
||||||
class="col-4"
|
class="col-4"
|
||||||
:label="$t('productService.product.salePrice')"
|
:label="$t('productService.product.salePrice')"
|
||||||
:model-value="commaInput(price?.toString() || '0')"
|
:model-value="commaInput(price?.toString() || '0')"
|
||||||
|
|
@ -136,6 +137,7 @@ withDefaults(
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
debounce="500"
|
||||||
class="col-4"
|
class="col-4"
|
||||||
:label="$t('productService.product.agentPrice')"
|
:label="$t('productService.product.agentPrice')"
|
||||||
:model-value="commaInput(agentPrice?.toString() || '0')"
|
:model-value="commaInput(agentPrice?.toString() || '0')"
|
||||||
|
|
@ -161,6 +163,7 @@ withDefaults(
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
debounce="500"
|
||||||
class="col-4"
|
class="col-4"
|
||||||
:label="$t('productService.product.processingPrice')"
|
:label="$t('productService.product.processingPrice')"
|
||||||
:model-value="commaInput(serviceCharge?.toString() || '0')"
|
:model-value="commaInput(serviceCharge?.toString() || '0')"
|
||||||
|
|
|
||||||
|
|
@ -1211,7 +1211,7 @@ function submitAddWorkProduct() {
|
||||||
if (!productExists) {
|
if (!productExists) {
|
||||||
workItems.value[currentWorkIndex.value].product.push({
|
workItems.value[currentWorkIndex.value].product.push({
|
||||||
...i,
|
...i,
|
||||||
installmentNo: 1,
|
installmentNo: splitPay.value > 0 ? 1 : 0,
|
||||||
nameEn: '',
|
nameEn: '',
|
||||||
});
|
});
|
||||||
workItems.value[currentWorkIndex.value].attributes.stepProperties.forEach(
|
workItems.value[currentWorkIndex.value].attributes.stepProperties.forEach(
|
||||||
|
|
@ -3009,6 +3009,7 @@ watch(
|
||||||
<DialogForm
|
<DialogForm
|
||||||
v-model:modal="dialogInputForm"
|
v-model:modal="dialogInputForm"
|
||||||
noAddress
|
noAddress
|
||||||
|
hide-footer
|
||||||
:title="$t(`productService.${productMode}.addTitle`)"
|
:title="$t(`productService.${productMode}.addTitle`)"
|
||||||
:submit="() => submitGroup()"
|
:submit="() => submitGroup()"
|
||||||
:close="clearFormGroup"
|
:close="clearFormGroup"
|
||||||
|
|
@ -3098,6 +3099,14 @@ watch(
|
||||||
}"
|
}"
|
||||||
style="height: 100%; max-height: 100%; overflow-y: auto"
|
style="height: 100%; max-height: 100%; overflow-y: auto"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
class="q-py-md q-px-lg"
|
||||||
|
style="position: absolute; z-index: 99999; top: 0; right: 0"
|
||||||
|
>
|
||||||
|
<div class="surface-1 row rounded">
|
||||||
|
<SaveButton id="btn-info-basic-save" icon-only type="submit" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- :isType="productMode === 'type'" -->
|
<!-- :isType="productMode === 'type'" -->
|
||||||
<BasicInformation
|
<BasicInformation
|
||||||
ide="form-group"
|
ide="form-group"
|
||||||
|
|
@ -3466,6 +3475,7 @@ watch(
|
||||||
|
|
||||||
<!-- add Product -->
|
<!-- add Product -->
|
||||||
<DialogForm
|
<DialogForm
|
||||||
|
hide-footer
|
||||||
v-model:modal="dialogProduct"
|
v-model:modal="dialogProduct"
|
||||||
:title="$t('productService.product.addTitle')"
|
:title="$t('productService.product.addTitle')"
|
||||||
:submit="
|
:submit="
|
||||||
|
|
@ -3571,6 +3581,14 @@ watch(
|
||||||
}"
|
}"
|
||||||
style="height: 100%; max-height: 100%; overflow-y: auto"
|
style="height: 100%; max-height: 100%; overflow-y: auto"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
class="q-py-md q-px-lg"
|
||||||
|
style="position: absolute; z-index: 99999; top: 0; right: 0"
|
||||||
|
>
|
||||||
|
<div class="surface-1 row rounded">
|
||||||
|
<SaveButton id="btn-info-basic-save" icon-only type="submit" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<BasicInfoProduct
|
<BasicInfoProduct
|
||||||
v-if="productTab === 1"
|
v-if="productTab === 1"
|
||||||
v-model:detail="formDataProduct.detail"
|
v-model:detail="formDataProduct.detail"
|
||||||
|
|
@ -3782,6 +3800,7 @@ watch(
|
||||||
|
|
||||||
<!-- add service -->
|
<!-- add service -->
|
||||||
<DialogForm
|
<DialogForm
|
||||||
|
hide-footer
|
||||||
no-address
|
no-address
|
||||||
no-app-box
|
no-app-box
|
||||||
height="95vh"
|
height="95vh"
|
||||||
|
|
@ -3936,7 +3955,7 @@ watch(
|
||||||
style="height: 100%; max-height: 100%; overflow-y: auto"
|
style="height: 100%; max-height: 100%; overflow-y: auto"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="surface-1 rounded q-my-md q-mx-lg row items-center"
|
class="surface-1 rounded q-my-md q-mx-lg items-center row"
|
||||||
style="position: absolute; z-index: 999; top: 0; right: 0"
|
style="position: absolute; z-index: 999; top: 0; right: 0"
|
||||||
v-if="actionDisplay && !currentNoAction"
|
v-if="actionDisplay && !currentNoAction"
|
||||||
>
|
>
|
||||||
|
|
@ -3978,6 +3997,7 @@ watch(
|
||||||
@click="serviceTreeView = false"
|
@click="serviceTreeView = false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<SaveButton id="btn-info-basic-save" icon-only type="submit" />
|
||||||
</div>
|
</div>
|
||||||
<BasicInformation
|
<BasicInformation
|
||||||
v-if="serviceTab === 1"
|
v-if="serviceTab === 1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue