|
|
|
@ -155,7 +155,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
rowClassName={cityRowHighlights}
|
|
|
|
|
columns={[
|
|
|
|
|
{
|
|
|
|
|
title: '超公里项目',
|
|
|
|
|
title: '超公里项目'+` (${ti+1})`,
|
|
|
|
|
dataIndex: ['info', 'product_title'],
|
|
|
|
|
key: 'product_title',
|
|
|
|
|
width: '12rem', maxWidth: '12rem', className: 'max-w-48',
|
|
|
|
@ -233,7 +233,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
rowClassName={cityRowHighlights}
|
|
|
|
|
columns={[
|
|
|
|
|
{
|
|
|
|
|
title: '车费项目',
|
|
|
|
|
title: '车费项目'+` (${ti+1})`,
|
|
|
|
|
dataIndex: ['info', 'product_title'],
|
|
|
|
|
key: 'product_title',
|
|
|
|
|
width: '12rem',
|
|
|
|
@ -290,14 +290,12 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
&& r[formatGroupSize(...col)]?.unit_id !== '1';
|
|
|
|
|
// && r[formatGroupSize(...col)]?.unit_id !== r.unit_id;
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
children: (
|
|
|
|
|
<>
|
|
|
|
|
{text}
|
|
|
|
|
{_warning ? ` /${r[formatGroupSize(...col)].unit_name}` : ''}
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
};
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{text}
|
|
|
|
|
{_warning ? ` /${r[formatGroupSize(...col)].unit_name}` : ''}
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -318,14 +316,12 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
const _warning = r.info?.isCityRow !== true && text
|
|
|
|
|
&& r[formatGroupSize(...col)]?.unit_id !== '1';
|
|
|
|
|
// && r[formatGroupSize(...col)]?.unit_id !== r.unit_id;
|
|
|
|
|
return {
|
|
|
|
|
children: (
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{text}
|
|
|
|
|
{_warning ? ` /${r[formatGroupSize(...col)].unit_name}` : ''}
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
};
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
@ -343,6 +339,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const renderTable_D = () => {
|
|
|
|
|
// console.clear();
|
|
|
|
|
// console.log('DDDDDDDDDDDDDDDDDDDDDDDDDDDDDD');
|
|
|
|
|
if (!('D' in agencyProducts)) {
|
|
|
|
|
return null;
|
|
|
|
@ -361,7 +358,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
rowClassName={cityRowHighlights}
|
|
|
|
|
columns={[
|
|
|
|
|
{
|
|
|
|
|
title: '包价线路项目',
|
|
|
|
|
title: '包价线路项目'+` (${ti+1})`,
|
|
|
|
|
dataIndex: ['info', 'product_title'],
|
|
|
|
|
key: 'product_title',
|
|
|
|
|
width: '12rem',
|
|
|
|
@ -420,14 +417,12 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
const _warning = r.info?.isCityRow !== true && text
|
|
|
|
|
&& r[formatGroupSize(...col)]?.unit_id !== '1';
|
|
|
|
|
// && r[formatGroupSize(...col)]?.unit_id !== r.unit_id;
|
|
|
|
|
return {
|
|
|
|
|
children: (
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{text}
|
|
|
|
|
{_warning ? ` /${r[formatGroupSize(...col)].unit_name}` : ''}
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
};
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -448,14 +443,12 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
const _warning = r.info?.isCityRow !== true && text
|
|
|
|
|
&& r[formatGroupSize(...col)]?.unit_id !== '1';
|
|
|
|
|
// && r[formatGroupSize(...col)]?.unit_id !== r.unit_id;
|
|
|
|
|
return {
|
|
|
|
|
children: (
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{text}
|
|
|
|
|
{_warning ? ` /${r[formatGroupSize(...col)].unit_name}` : ''}
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
};
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
@ -800,7 +793,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
rowClassName={cityRowHighlights}
|
|
|
|
|
columns={[
|
|
|
|
|
{
|
|
|
|
|
title: '餐费项目',
|
|
|
|
|
title: '餐费项目'+` (${ti+1})`,
|
|
|
|
|
dataIndex: ['info', 'product_title'],
|
|
|
|
|
key: 'product_title',
|
|
|
|
|
width: '12rem',
|
|
|
|
@ -890,11 +883,13 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const renderTable_8 = () => {
|
|
|
|
|
// console.clear();
|
|
|
|
|
// console.log('888888');
|
|
|
|
|
if (!('8' in agencyProducts)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
const tablesQuote = splitTable_8(use_year, agencyProducts['8']);
|
|
|
|
|
// console.log('---- tablesQuote ----', tablesQuote)
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{tablesQuote.map(({ cols, colsKey, data }, ti) => (
|
|
|
|
@ -907,7 +902,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
rowClassName={cityRowHighlights}
|
|
|
|
|
columns={[
|
|
|
|
|
{
|
|
|
|
|
title: '附加项目',
|
|
|
|
|
title: '附加项目'+` (${ti+1})`,
|
|
|
|
|
dataIndex: ['info', 'product_title'],
|
|
|
|
|
key: 'product_title',
|
|
|
|
|
width: '12rem',
|
|
|
|
@ -915,14 +910,14 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
className: 'max-w-48',
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
onCell: (record) => {
|
|
|
|
|
return { rowSpan: record.rowSpan };
|
|
|
|
|
return { rowSpan: record.rowSpan, };
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '时段',
|
|
|
|
|
dataIndex: 'dateText',
|
|
|
|
|
key: 'dateText',
|
|
|
|
|
width: '5rem',
|
|
|
|
|
width: '8rem',
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
render: (_, { quote_season, use_dates_start, use_dates_end, rowSpan }) =>
|
|
|
|
|
quote_season === 'SS' ? (
|
|
|
|
@ -952,6 +947,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
dataIndex: [formatGroupSize(...col), 'adult_cost'],
|
|
|
|
|
key: 'adult_cost',
|
|
|
|
|
width: '4rem',
|
|
|
|
|
className: 'max-w-16',
|
|
|
|
|
onCell: (r, ) => {
|
|
|
|
|
const text = r[formatGroupSize(...col)]?.adult_cost
|
|
|
|
|
const _warning = r.info?.isCityRow !== true
|
|
|
|
@ -973,6 +969,7 @@ const AgencyPreview = ({ params, ...props }) => {
|
|
|
|
|
dataIndex: [formatGroupSize(...col), 'child_cost'],
|
|
|
|
|
key: 'child_cost',
|
|
|
|
|
width: '4rem',
|
|
|
|
|
className: 'max-w-16',
|
|
|
|
|
onCell: (r, ) => {
|
|
|
|
|
const text = r[formatGroupSize(...col)]?.child_cost
|
|
|
|
|
const _warning = r.info?.isCityRow !== true
|
|
|
|
|