|
|
|
@ -7,7 +7,7 @@ import { useShallow } from 'zustand/react/shallow';
|
|
|
|
|
import { copy, isEmpty } from "@/utils/commons";
|
|
|
|
|
import { Conditional } from "@/components/Conditional";
|
|
|
|
|
import useConversationStore from "@/stores/ConversationStore";
|
|
|
|
|
import { useOrderStore, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions, fetchSetRemindStateAction } from "@/stores/OrderStore";
|
|
|
|
|
import { useOrderStore, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions, fetchSetRemindStateAction, remindStatusOptionsMapped } from "@/stores/OrderStore";
|
|
|
|
|
import useAuthStore from "@/stores/AuthStore";
|
|
|
|
|
import QuotesHistory from "./QuotesHistory";
|
|
|
|
|
import ConversationBind from "./../ConversationBind";
|
|
|
|
@ -18,7 +18,7 @@ import { postEditConversationItemColiAction } from "@/actions/ConversationAction
|
|
|
|
|
import useStyleStore from '@/stores/StyleStore';
|
|
|
|
|
import SupplierEmailDrawer from "../Components/EmailListDrawer";
|
|
|
|
|
|
|
|
|
|
const CustomerProfile = () => {
|
|
|
|
|
const CustomerProfile = ({ disabled }) => {
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
const { notification, message } = App.useApp();
|
|
|
|
|
const [loading, setLoading] = useState(false);
|
|
|
|
@ -169,7 +169,7 @@ const CustomerProfile = () => {
|
|
|
|
|
onChange={handleOrderSwitch}
|
|
|
|
|
/>}
|
|
|
|
|
actions={[
|
|
|
|
|
<Select
|
|
|
|
|
<Select disabled={disabled} className={`[&_.ant-select-selection-item]:text-gray-950`}
|
|
|
|
|
key={"orderlabel"}
|
|
|
|
|
size="small"
|
|
|
|
|
style={{
|
|
|
|
@ -193,7 +193,7 @@ const CustomerProfile = () => {
|
|
|
|
|
value={orderDetail.tags}
|
|
|
|
|
options={orderLabelOptions}
|
|
|
|
|
/>,
|
|
|
|
|
<Select
|
|
|
|
|
<Select disabled={disabled} className={`[&_.ant-select-selection-item]:text-gray-950`}
|
|
|
|
|
key={"orderstatus"}
|
|
|
|
|
size="small"
|
|
|
|
|
style={{
|
|
|
|
@ -269,7 +269,9 @@ const CustomerProfile = () => {
|
|
|
|
|
<Divider orientation="left">
|
|
|
|
|
<Typography.Text strong>催信:</Typography.Text>
|
|
|
|
|
</Divider>
|
|
|
|
|
<Checkbox.Group key='substatus' className="px-2" value={[orderRemindState]} options={remindStatusOptions} onChange={handleSetRemindState} />
|
|
|
|
|
{disabled ? (<div className="px-2">✅<span>{remindStatusOptionsMapped[orderRemindState]?.label}</span></div>) : <Checkbox.Group key='substatus' className="px-2" value={[orderRemindState]} options={remindStatusOptions} onChange={handleSetRemindState} />}
|
|
|
|
|
|
|
|
|
|
{/*
|
|
|
|
|
<Divider orientation="left">
|
|
|
|
|
<Typography.Text strong>最新报价</Typography.Text>
|
|
|
|
|
</Divider>
|
|
|
|
@ -320,11 +322,11 @@ const CustomerProfile = () => {
|
|
|
|
|
</Flex>
|
|
|
|
|
</List.Item>
|
|
|
|
|
)}
|
|
|
|
|
/>
|
|
|
|
|
/> */}
|
|
|
|
|
<Divider orientation="left">
|
|
|
|
|
<Typography.Text strong>表单信息</Typography.Text>
|
|
|
|
|
<Button className="ml-2"
|
|
|
|
|
size={"small"}
|
|
|
|
|
size={"small"} disabled={disabled}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
setIsModalOpen(true);
|
|
|
|
|
}}>
|
|
|
|
|