|
|
|
@ -43,19 +43,19 @@ const NewAddonModal = ({ onPick, ...props }) => {
|
|
|
|
|
const searchResultColumns = [
|
|
|
|
|
{ key: 'ptype', dataIndex: ['info', 'product_type_id'], width: '6rem', title: t('products:ProductType'), render: (text, r) => productsTypesMapVal[text].label },
|
|
|
|
|
{ key: 'title', dataIndex: ['info', 'title'], width: '16rem', title: t('products:Title') },
|
|
|
|
|
{
|
|
|
|
|
title: t('products:price'),
|
|
|
|
|
dataIndex: ['quotation', '0', 'adult_cost'],
|
|
|
|
|
width: '10rem',
|
|
|
|
|
render: (_, { quotation }) => `${quotation[0].adult_cost} ${quotation[0].currency} / ${quotation[0].unit_name}`,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: t('products:price'),
|
|
|
|
|
// dataIndex: ['quotation', '0', 'adult_cost'],
|
|
|
|
|
// width: '10rem',
|
|
|
|
|
// render: (_, { quotation }) => `${quotation[0].adult_cost} ${quotation[0].currency} / ${quotation[0].unit_name}`,
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
key: 'action',
|
|
|
|
|
title: '',
|
|
|
|
|
width: 150,
|
|
|
|
|
render: (_, record) => (
|
|
|
|
|
<Button className='text-primary' onClick={() => handleAddExtras(record)}>
|
|
|
|
|
附加此项目
|
|
|
|
|
绑定此项目
|
|
|
|
|
</Button>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
@ -141,13 +141,13 @@ const Extras = ({ productId, onChange, ...props }) => {
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
|
{ title: t('products:Title'), dataIndex: ['info', 'title'], width: '16rem', },
|
|
|
|
|
{
|
|
|
|
|
title: t('products:Offer'),
|
|
|
|
|
dataIndex: ['quotation', '0', 'value'],
|
|
|
|
|
width: '10rem',
|
|
|
|
|
// {
|
|
|
|
|
// title: t('products:Offer'),
|
|
|
|
|
// dataIndex: ['quotation', '0', 'value'],
|
|
|
|
|
// width: '10rem',
|
|
|
|
|
|
|
|
|
|
render: (_, { quotation }) => `${quotation[0].adult_cost} ${quotation[0].currency} / ${quotation[0].unit_name}`, // todo: 成人 儿童
|
|
|
|
|
},
|
|
|
|
|
// render: (_, { quotation }) => `${quotation[0].adult_cost} ${quotation[0].currency} / ${quotation[0].unit_name}`,
|
|
|
|
|
// },
|
|
|
|
|
// { title: t('products:Types'), dataIndex: 'age_type', width: '40%', },
|
|
|
|
|
{
|
|
|
|
|
title: '',
|
|
|
|
|