From 60b852761d06ee4986b87eb8b8e61ee30742117c Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:21:50 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B8=81=E0=B8=94=20=E0=B8=AA=E0=B8=A3?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=20=E0=B9=83=E0=B8=AB=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=A5=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87=E0=B8=84=E0=B9=88=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 6e9a7d87..df0d1422 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -101,7 +101,7 @@ const profileUrl = ref(''); const groupName = ref('งาน MOU'); const dialogProductServiceType = ref(false); -const dialogTotalProduct = ref(true); +const dialogTotalProduct = ref(false); const productMode = ref<'group' | 'type' | 'service' | 'product'>('group'); const productGroup = ref(); @@ -418,6 +418,8 @@ async function assignFormDataProductService(id: string) { } function assignFormDataProduct(data: ProductList) { + console.log(data.detail); + formDataProduct.value = { productTypeId: data.productTypeId, remark: data.remark, @@ -425,7 +427,7 @@ function assignFormDataProduct(data: ProductList) { agentPrice: data.agentPrice, price: data.price, process: data.process, - detail: data.detail, + detail: data.detail === '' ? '-' : data.detail, name: data.name, code: data.code, image: undefined, @@ -588,6 +590,7 @@ watch(currentStatus, async () => { icon="mdi-folder-multiple-plus" @click=" () => { + clearFormProduct(); dialogProduct = true; } " @@ -1048,6 +1051,7 @@ watch(currentStatus, async () => { @viewDetail=" () => { currentIdProduct = i.id; + infoProductEdit = false; assignFormDataProduct(i); dialogProductEdit = true; }