|
|
@ -24,27 +24,26 @@ const NewAddonModal = ({ onPick, ...props }) => {
|
|
|
|
const { starttime, endtime, ...param } = copyObject;
|
|
|
|
const { starttime, endtime, ...param } = copyObject;
|
|
|
|
setSearchLoading(true);
|
|
|
|
setSearchLoading(true);
|
|
|
|
setSearchResult([]);
|
|
|
|
setSearchResult([]);
|
|
|
|
const result = await getAgencyProductsAction({ ...param, audit_state: '1', travel_agency_id, use_year });
|
|
|
|
// debug: audit_state: '1',
|
|
|
|
|
|
|
|
const result = await getAgencyProductsAction({ ...param, audit_state: '0', travel_agency_id, use_year });
|
|
|
|
setSearchResult(result?.products || []);
|
|
|
|
setSearchResult(result?.products || []);
|
|
|
|
setSearchLoading(false);
|
|
|
|
setSearchLoading(false);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const handleAddExtras = async (item) => {
|
|
|
|
const handleAddExtras = async (item) => {
|
|
|
|
// const success = await fetchBindOrder({ coli_sn, conversationid: currentConversationID });
|
|
|
|
|
|
|
|
// success ? message.success('绑定成功') : message.error('绑定失败');
|
|
|
|
|
|
|
|
// setOpen(false);
|
|
|
|
|
|
|
|
if (typeof onPick === 'function') {
|
|
|
|
if (typeof onPick === 'function') {
|
|
|
|
onPick(item);
|
|
|
|
onPick(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// todo:
|
|
|
|
// todo: 如何显示价格表
|
|
|
|
const searchResultColumns = [
|
|
|
|
const searchResultColumns = [
|
|
|
|
|
|
|
|
{ key: 'ptype', dataIndex: ['info', 'product_type_name'], width: '6rem', title: t('products:ProductType') },
|
|
|
|
{ key: 'title', dataIndex: ['info', 'title'], width: '16rem', title: t('products:Title') },
|
|
|
|
{ key: 'title', dataIndex: ['info', 'title'], width: '16rem', title: t('products:Title') },
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: t('products:price'),
|
|
|
|
title: t('products:price'),
|
|
|
|
dataIndex: ['quotation', '0', 'value'],
|
|
|
|
dataIndex: ['quotation', '0', 'adult_cost'],
|
|
|
|
width: '10rem',
|
|
|
|
width: '10rem',
|
|
|
|
render: (_, { quotation }) => `${quotation[0].value} ${quotation[0].currency} / ${quotation[0].unit_name}`, // todo: 成人 儿童
|
|
|
|
render: (_, { quotation }) => `${quotation[0].adult_cost} ${quotation[0].currency} / ${quotation[0].unit_name}`, // todo: 成人 儿童
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
key: 'action',
|
|
|
|
key: 'action',
|
|
|
@ -143,7 +142,7 @@ const Extras = ({ productId, onChange, ...props }) => {
|
|
|
|
dataIndex: ['quotation', '0', 'value'],
|
|
|
|
dataIndex: ['quotation', '0', 'value'],
|
|
|
|
width: '10rem',
|
|
|
|
width: '10rem',
|
|
|
|
|
|
|
|
|
|
|
|
render: (_, { quotation }) => `${quotation[0].value} ${quotation[0].currency} / ${quotation[0].unit_name}`, // todo: 成人 儿童
|
|
|
|
render: (_, { quotation }) => `${quotation[0].adult_cost} ${quotation[0].currency} / ${quotation[0].unit_name}`, // todo: 成人 儿童
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// { title: t('products:Types'), dataIndex: 'age_type', width: '40%', },
|
|
|
|
// { title: t('products:Types'), dataIndex: 'age_type', width: '40%', },
|
|
|
|
{
|
|
|
|
{
|
|
|
|