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)}
-
- )} -