|
|
@ -1,7 +1,7 @@
|
|
|
|
import { Card, Flex, Avatar, Typography, Radio, Button, Table } from 'antd';
|
|
|
|
import { Card, Flex, Avatar, Typography, Radio, Button, Table } from 'antd';
|
|
|
|
import { useAuthContext } from '@/stores/AuthContext.js';
|
|
|
|
import { useAuthContext } from '@/stores/AuthContext.js';
|
|
|
|
import { useConversationState } from '@/stores/ConversationContext';
|
|
|
|
// import { useConversationState } from '@/stores/ConversationContext';
|
|
|
|
import { useLocation } from 'react-router-dom'
|
|
|
|
import { useLocation, useParams } from 'react-router-dom'
|
|
|
|
import { HomeOutlined, LoadingOutlined, SettingFilled, SmileOutlined, SyncOutlined, PhoneOutlined, MailOutlined, WhatsAppOutlined, SmileTwoTone } from '@ant-design/icons';
|
|
|
|
import { HomeOutlined, LoadingOutlined, SettingFilled, SmileOutlined, SyncOutlined, PhoneOutlined, MailOutlined, WhatsAppOutlined, SmileTwoTone } from '@ant-design/icons';
|
|
|
|
|
|
|
|
|
|
|
|
import CreatePayment from './CreatePayment';
|
|
|
|
import CreatePayment from './CreatePayment';
|
|
|
@ -22,13 +22,15 @@ const orderStatus = [
|
|
|
|
|
|
|
|
|
|
|
|
const { Meta } = Card;
|
|
|
|
const { Meta } = Card;
|
|
|
|
|
|
|
|
|
|
|
|
const CustomerProfile = (({ colisn }) => {
|
|
|
|
const CustomerProfile = (() => {
|
|
|
|
let { state } = useLocation()
|
|
|
|
let { state } = useLocation()
|
|
|
|
console.info(state)
|
|
|
|
console.info(state)
|
|
|
|
|
|
|
|
console.log(useParams());
|
|
|
|
|
|
|
|
const { order_sn: colisn } = useParams();
|
|
|
|
console.log('invoke customer profile+++++++++++++++++++++++++++++++++++++++++++++', colisn);
|
|
|
|
console.log('invoke customer profile+++++++++++++++++++++++++++++++++++++++++++++', colisn);
|
|
|
|
const { customerOrderProfile: orderInfo } = useConversationState();
|
|
|
|
// const { customerOrderProfile: orderInfo } = useConversationState();
|
|
|
|
const { loginUser: currentUser } = useAuthContext();
|
|
|
|
const { loginUser: currentUser } = useAuthContext();
|
|
|
|
const { quotes, contact, last_contact, ...order } = orderInfo;
|
|
|
|
const { quotes, contact, last_contact, ...order } = {}; // orderInfo;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className=' divide-x-0 divide-y divide-dashed divide-gray-300 '>
|
|
|
|
<div className=' divide-x-0 divide-y divide-dashed divide-gray-300 '>
|
|
|
|