|
|
@ -1,7 +1,11 @@
|
|
|
|
import { createContext, useContext, useEffect, useState } from 'react';
|
|
|
|
import { createContext, useContext, useEffect, useState } from 'react';
|
|
|
|
import { Popover, Flex, Button, List, Popconfirm } from 'antd';
|
|
|
|
import { Popover, Flex, Button, List, Popconfirm } from 'antd';
|
|
|
|
|
|
|
|
import { useConversationContext } from '@/stores/Conversations/ConversationContext';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const QuotesHistory = ((props) => {
|
|
|
|
|
|
|
|
const { customerOrderProfile: orderInfo } = useConversationContext();
|
|
|
|
|
|
|
|
const { quotes, ...order } = orderInfo;
|
|
|
|
|
|
|
|
|
|
|
|
const CreatePayment = ((props) => {
|
|
|
|
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
const handleOpenChange = (newOpen) => {
|
|
|
|
const handleOpenChange = (newOpen) => {
|
|
|
|
setOpen(newOpen);
|
|
|
|
setOpen(newOpen);
|
|
|
@ -18,20 +22,18 @@ const CreatePayment = ((props) => {
|
|
|
|
<List
|
|
|
|
<List
|
|
|
|
className='w-96 h-4/6 overflow-y-auto text-slate-900'
|
|
|
|
className='w-96 h-4/6 overflow-y-auto text-slate-900'
|
|
|
|
itemLayout='horizontal'
|
|
|
|
itemLayout='horizontal'
|
|
|
|
dataSource={[
|
|
|
|
dataSource={quotes}
|
|
|
|
{ key: 1, title: 'XXX' },
|
|
|
|
|
|
|
|
{ key: 11, title: 'ZZZZ' },
|
|
|
|
|
|
|
|
]}
|
|
|
|
|
|
|
|
renderItem={(item, index) => (
|
|
|
|
renderItem={(item, index) => (
|
|
|
|
<List.Item className=''>
|
|
|
|
<List.Item className='' key={item.letterid} >
|
|
|
|
<List.Item.Meta
|
|
|
|
<List.Item.Meta
|
|
|
|
className=' text-neutral-800'
|
|
|
|
className=' text-neutral-800'
|
|
|
|
title={item.title}
|
|
|
|
title={item.lettertitle}
|
|
|
|
description={
|
|
|
|
description={
|
|
|
|
<Flex justify='space-between'>
|
|
|
|
<Flex justify='space-between'>
|
|
|
|
<Button onClick={onSend} size={'small'} type='link' key={'send'}>
|
|
|
|
<Button onClick={onSend} size={'small'} type='link' key={'send'}>
|
|
|
|
详细报价
|
|
|
|
详细报价
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<span>{item.letterdate}</span>
|
|
|
|
<Flex gap={8}>
|
|
|
|
<Flex gap={8}>
|
|
|
|
<Popconfirm title='删除报价信' description='确认要删除报价信吗?' onConfirm={() => {}} onCancel={onSend} okText='Yes' cancelText='No'>
|
|
|
|
<Popconfirm title='删除报价信' description='确认要删除报价信吗?' onConfirm={() => {}} onCancel={onSend} okText='Yes' cancelText='No'>
|
|
|
|
<Button size={'small'} type='link' danger key={'send'}>
|
|
|
|
<Button size={'small'} type='link' danger key={'send'}>
|
|
|
@ -59,4 +61,4 @@ const CreatePayment = ((props) => {
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
export default CreatePayment;
|
|
|
|
export default QuotesHistory;
|
|
|
|