|
|
|
|
@ -3,7 +3,7 @@ import { useParams, Link } from 'react-router-dom';
|
|
|
|
|
import { Button, Drawer, Card, Table } from 'antd';
|
|
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
|
import useProductsStore, { getAgencyAllExtrasAction } from '@/stores/Products/Index';
|
|
|
|
|
import { useProductsTypes, formatGroupSize, useProductsTypesMapVal } from '@/hooks/useProductsSets';
|
|
|
|
|
import { useProductsTypes, formatGroupSize, useProductsTypesMapVal, formatGroupSizeRender } from '@/hooks/useProductsSets';
|
|
|
|
|
import { chunkBy, splitTable_6, splitTable_7, splitTable_8, splitTable_B, splitTable_D, splitTable_J, splitTable_Q, splitTable_R } from '@/hooks/useProductsQuotationFormat';
|
|
|
|
|
import { groupBy, isNotEmpty } from '@haina/utils-commons';
|
|
|
|
|
import useAuthStore from '@/stores/Auth';
|
|
|
|
|
@ -259,7 +259,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
...cols.map((col) => ({
|
|
|
|
|
title: formatGroupSize(...col),
|
|
|
|
|
title: formatGroupSizeRender(...col),
|
|
|
|
|
// dataIndex: [formatGroupSize(...col), 'adult_cost'],
|
|
|
|
|
key: col[0],
|
|
|
|
|
children: [
|
|
|
|
|
@ -378,7 +378,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
...cols.map((col) => ({
|
|
|
|
|
title: formatGroupSize(...col),
|
|
|
|
|
title: formatGroupSizeRender(...col),
|
|
|
|
|
// dataIndex: [formatGroupSize(...col), 'adult_cost'],
|
|
|
|
|
key: col[0],
|
|
|
|
|
children: [
|
|
|
|
|
@ -502,7 +502,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
...cols.map((col) => ({
|
|
|
|
|
title: formatGroupSize(...col),
|
|
|
|
|
title: formatGroupSizeRender(...col),
|
|
|
|
|
// dataIndex: [formatGroupSize(...col), 'adult_cost'],
|
|
|
|
|
key: col[0],
|
|
|
|
|
// children1: [
|
|
|
|
|
@ -965,7 +965,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
...cols.map((col) => ({
|
|
|
|
|
title: formatGroupSize(...col),
|
|
|
|
|
title: formatGroupSizeRender(...col),
|
|
|
|
|
// dataIndex: [formatGroupSize(...col), 'adult_cost'],
|
|
|
|
|
key: col[0],
|
|
|
|
|
children: [
|
|
|
|
|
@ -1100,7 +1100,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
...cols.map((col) => ({
|
|
|
|
|
title: formatGroupSize(...col),
|
|
|
|
|
title: formatGroupSizeRender(...col),
|
|
|
|
|
// dataIndex: [formatGroupSize(...col), 'adult_cost'],
|
|
|
|
|
key: col[0],
|
|
|
|
|
children: [
|
|
|
|
|
|