|
|
|
@ -9,18 +9,18 @@ import {
|
|
|
|
CalendarOutlined,
|
|
|
|
CalendarOutlined,
|
|
|
|
EditOutlined,
|
|
|
|
EditOutlined,
|
|
|
|
CheckOutlined,
|
|
|
|
CheckOutlined,
|
|
|
|
ReloadOutlined,
|
|
|
|
|
|
|
|
} from '@ant-design/icons'
|
|
|
|
} from '@ant-design/icons'
|
|
|
|
|
|
|
|
|
|
|
|
import { useEffect, useState } from 'react'
|
|
|
|
import { useEffect, useState } from 'react'
|
|
|
|
import { Link } from 'react-router-dom'
|
|
|
|
import { Link } from 'react-router-dom'
|
|
|
|
import { App, Flex, Select, Tooltip, Divider, Typography, Skeleton, Checkbox, Drawer, Button, Form, Input } from 'antd'
|
|
|
|
import { App, Flex, Select, Tooltip, Divider, Typography, Skeleton, Checkbox, Drawer, Button, Empty, Form, Input } from 'antd'
|
|
|
|
import { useOrderStore, fetchSetRemindStateAction, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions } from '@/stores/OrderStore'
|
|
|
|
import { useOrderStore, fetchSetRemindStateAction, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions } from '@/stores/OrderStore'
|
|
|
|
import { copy, isEmpty } from '@/utils/commons'
|
|
|
|
import { copy, isEmpty } from '@/utils/commons'
|
|
|
|
import { useShallow } from 'zustand/react/shallow'
|
|
|
|
import { useShallow } from 'zustand/react/shallow'
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
|
|
|
|
|
|
|
|
const { notification, message } = App.useApp()
|
|
|
|
const { notification, message } = App.useApp()
|
|
|
|
const [formComment] = Form.useForm()
|
|
|
|
const [formComment] = Form.useForm()
|
|
|
|
const [formWhatsApp] = Form.useForm()
|
|
|
|
const [formWhatsApp] = Form.useForm()
|
|
|
|
@ -97,6 +97,7 @@ const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
return orderDetail.DidPlan === 0 ? '未做计划' : '已做计划'
|
|
|
|
return orderDetail.DidPlan === 0 ? '未做计划' : '已做计划'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderOrderDetail = () => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
<Skeleton active loading={loading}>
|
|
|
|
<Skeleton active loading={loading}>
|
|
|
|
@ -226,12 +227,8 @@ const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
<Typography.Text>{orderDetail.customer_request}</Typography.Text>
|
|
|
|
<Typography.Text>{orderDetail.customer_request}</Typography.Text>
|
|
|
|
<Divider orientation='left'>
|
|
|
|
<Divider orientation='left'>
|
|
|
|
<Typography.Text strong>外联备注</Typography.Text>
|
|
|
|
<Typography.Text strong>外联备注</Typography.Text>
|
|
|
|
{/* <Tooltip title='修改'>
|
|
|
|
|
|
|
|
<EditOutlined className='pl-1' />
|
|
|
|
|
|
|
|
</Tooltip> */}
|
|
|
|
|
|
|
|
</Divider>
|
|
|
|
</Divider>
|
|
|
|
<Typography.Text>{orderDetail.wl_memo}</Typography.Text>
|
|
|
|
<Typography.Text>{orderDetail.wl_memo}</Typography.Text>
|
|
|
|
|
|
|
|
|
|
|
|
<Divider orientation='left'>
|
|
|
|
<Divider orientation='left'>
|
|
|
|
<Typography.Text strong>附加信息</Typography.Text>
|
|
|
|
<Typography.Text strong>附加信息</Typography.Text>
|
|
|
|
<Tooltip title='修改'>
|
|
|
|
<Tooltip title='修改'>
|
|
|
|
@ -353,4 +350,18 @@ const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderDefaultEmpty = () => {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<Empty description={<span>没有订单关联</span>}>
|
|
|
|
|
|
|
|
</Empty>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (orderId) {
|
|
|
|
|
|
|
|
return renderOrderDetail()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return props.renderEmpty ? props.renderEmpty() : renderDefaultEmpty()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default OrderProfile
|
|
|
|
export default OrderProfile
|
|
|
|
|