|
|
|
@ -126,26 +126,26 @@ const PriceTable = ({ productType, dataSource, refresh }) => {
|
|
|
|
|
</RequireAuth>
|
|
|
|
|
) : null,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '',
|
|
|
|
|
key: 'action2',
|
|
|
|
|
width: '6rem',
|
|
|
|
|
className: 'bg-white',
|
|
|
|
|
onCell: (r, index) => ({ rowSpan: r.rowSpan }),
|
|
|
|
|
render: (_, r) => {
|
|
|
|
|
const showPublicBtn = null; // r.pendingQuotation ? <Popover title='查看已发布的价格' trigger={['click']}> <Button size='small' className='ml-2' onClick={() => { }}>✈</Button></Popover> : null;
|
|
|
|
|
const btn2 = r.showPublicBtn ? (
|
|
|
|
|
<ProductQuotationLogPopover
|
|
|
|
|
method={'published'}
|
|
|
|
|
{...{ travel_agency_id, product_id: r.info.id, price_id: r.id, use_year }}
|
|
|
|
|
triggerProps={{ type: 'primary', ghost: true, size: 'small' }}
|
|
|
|
|
placement='bottom'
|
|
|
|
|
className='max-w-[1000px]'
|
|
|
|
|
/>
|
|
|
|
|
) : null;
|
|
|
|
|
return <div className='absolute bottom-2 right-1'>{btn2}</div>;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '',
|
|
|
|
|
// key: 'action2',
|
|
|
|
|
// width: '6rem',
|
|
|
|
|
// className: 'bg-white',
|
|
|
|
|
// onCell: (r, index) => ({ rowSpan: r.rowSpan }),
|
|
|
|
|
// render: (_, r) => {
|
|
|
|
|
// const showPublicBtn = null; // r.pendingQuotation ? <Popover title='查看已发布的价格' trigger={['click']}> <Button size='small' className='ml-2' onClick={() => { }}>✈</Button></Popover> : null;
|
|
|
|
|
// const btn2 = r.showPublicBtn ? (
|
|
|
|
|
// <ProductQuotationLogPopover
|
|
|
|
|
// method={'published'}
|
|
|
|
|
// {...{ travel_agency_id, product_id: r.info.id, price_id: r.id, use_year }}
|
|
|
|
|
// triggerProps={{ type: 'primary', ghost: true, size: 'small' }}
|
|
|
|
|
// placement='bottom'
|
|
|
|
|
// className='max-w-[1000px]'
|
|
|
|
|
// />
|
|
|
|
|
// ) : null;
|
|
|
|
|
// return <div className='absolute bottom-2 right-1'>{btn2}</div>;
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
];
|
|
|
|
|
return (
|
|
|
|
|
<Table
|
|
|
|
|