From 7fb85e308d76850c402413576d2920684b1e9dca Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Tue, 6 Aug 2024 11:39:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E8=B0=83=E8=AF=95=20JSON=EF=BC=9B=E4=BF=AE=E5=A4=8D=E5=91=A8?= =?UTF-8?q?=E6=9C=AB=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/Products/Index.js | 2 ++ src/views/products/Detail/ProductInfoQuotation.jsx | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/stores/Products/Index.js b/src/stores/Products/Index.js index ea0da01..8f2bb12 100644 --- a/src/stores/Products/Index.js +++ b/src/stores/Products/Index.js @@ -201,6 +201,7 @@ export const useProductsStore = create( }, saveOrUpdateQuotation: (formValues) => { + const { activeAgency, editingProduct, quotationList } = get() let mergedList = [] @@ -208,6 +209,7 @@ export const useProductsStore = create( formValues.WPP_VEI_SN = activeAgency.travel_agency_id formValues.use_dates_start = formValues.use_dates[0].format('YYYY-MM-DD') formValues.use_dates_end = formValues.use_dates[1].format('YYYY-MM-DD') + formValues.weekdays = formValues.weekdays.join(',') if (isEmpty(formValues.id)) { formValues.lastedit_changed = '' diff --git a/src/views/products/Detail/ProductInfoQuotation.jsx b/src/views/products/Detail/ProductInfoQuotation.jsx index 31cf003..0305607 100644 --- a/src/views/products/Detail/ProductInfoQuotation.jsx +++ b/src/views/products/Detail/ProductInfoQuotation.jsx @@ -454,13 +454,6 @@ const ProductInfoQuotation = ({ editable, ...props }) => { )} - - {() => ( - -
{JSON.stringify(batchSetupForm.getFieldsValue(), null, 2)}
-
- )} -