diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 846616c6..52d46018 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -735,6 +735,8 @@ function clearFormProduct() { dialogProduct.value = false; dialogProductEdit.value = false; + profileUrl.value = ''; + profileSubmit.value = false; } function clearFormService() { @@ -754,6 +756,8 @@ function clearFormService() { selectProduct.value = []; dialogService.value = false; dialogServiceEdit.value = false; + profileUrl.value = ''; + profileSubmit.value = false; } function assignFormDataProductServiceCreate() { @@ -1059,6 +1063,7 @@ watch(inputSearchProductAndService, async () => { @click=" () => { clearFormGroup(); + clearFormService(); currentServiceTab = 'serviceInformation'; dialogService = true; } @@ -2184,16 +2189,9 @@ watch(inputSearchProductAndService, async () => { v-if="currentServiceTab === 'serviceInformation'" dense service - @service-properties=" - () => { - tempValueProperties = formDataProductService.attributes; - openPropertiesDialog('service'); - } - " v-model:service-code="formDataProductService.code" v-model:service-description="formDataProductService.detail" v-model:service-name-th="formDataProductService.name" - @input-file="inputFile.click()" />