Commit 4d454f70 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改商城询价跳转的问题

parent 01aabd83
...@@ -33,12 +33,14 @@ interface AddedFormLayoutProps { ...@@ -33,12 +33,14 @@ interface AddedFormLayoutProps {
title?: string, title?: string,
/** 二次询价 */ /** 二次询价 */
two?: boolean, two?: boolean,
/** 商城来询价 */
rfq?: boolean,
/** 二次询价地址显示 */ /** 二次询价地址显示 */
isDefault?: boolean isDefault?: boolean
} }
const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => { const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
const { isEdit, id, fetchRequest, spam, title, two, shopId, isDefault } = props; const { isEdit, id, fetchRequest, spam, title, two, shopId, rfq, isDefault } = props;
const [form] = Form.useForm(); const [form] = Form.useForm();
const [loading, setLoading] = useState<boolean>(false) const [loading, setLoading] = useState<boolean>(false)
const [unsaved, setUnsaved] = useState<boolean>(false); const [unsaved, setUnsaved] = useState<boolean>(false);
...@@ -83,7 +85,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => { ...@@ -83,7 +85,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
} }
setUnsaved(false); setUnsaved(false);
setLoading(false); setLoading(false);
if (two) { if (two || rfq) {
history.push(`/memberCenter/tranactionAbility/productInquiry/waitAddInquiry`) history.push(`/memberCenter/tranactionAbility/productInquiry/waitAddInquiry`)
return return
} }
......
...@@ -12,6 +12,7 @@ const RfqEnquiryOrder = (props: any) => { ...@@ -12,6 +12,7 @@ const RfqEnquiryOrder = (props: any) => {
title={props.route.name} title={props.route.name}
fetchRequest={postTransactionInquiryListAdd} fetchRequest={postTransactionInquiryListAdd}
spam={spam_id} spam={spam_id}
rfq
/> />
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment