Commit 149aaed6 authored by XieZhiXiong's avatar XieZhiXiong

feat: 拆分可编辑状态

parent cf3c15c8
......@@ -50,9 +50,17 @@ interface DetailInfoProps {
*/
id: string;
/**
* 是否是编辑
* 是否是 可以编辑 地址
*/
isEdit?: boolean;
isEditAddress?: boolean;
/**
* 是否是 可以编辑 退货发货相关
*/
isEditRefundDeliver?: boolean;
/**
* 是否是 可以编辑 换货发货相关
*/
isEditExchangeDeliver?: boolean;
/**
* 历史记录目标路径
*/
......@@ -69,7 +77,9 @@ interface DetailInfo extends GetAsReplaceGoodsGetDetailByConsumerResponse {
const DetailInfo: React.FC<DetailInfoProps> = ({
id,
isEdit = false,
isEditAddress = false,
isEditRefundDeliver = false,
isEditExchangeDeliver = false,
target,
headExtra,
}) => {
......@@ -368,7 +378,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
isPurchaser={true}
innerStatus={detailInfo?.innerStatus}
target={target}
isEdit={isEdit}
isEdit={isEditRefundDeliver}
/>
</Suspense>
</Col>
......@@ -389,7 +399,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
isPurchaser={true}
innerStatus={detailInfo?.innerStatus}
target={target}
isEdit={isEdit}
isEdit={isEditExchangeDeliver}
/>
</Suspense>
</Col>
......@@ -424,7 +434,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
fullAddress: detailInfo?.returnGoodsAddress?.sendAddress,
}}
onSubmit={() => {}}
isEdit={isEdit && detailInfo?.innerStatus === EXCHANGE_INNER_STATUS_UNCOMMITTED}
isEdit={isEditAddress && detailInfo?.innerStatus === EXCHANGE_INNER_STATUS_UNCOMMITTED}
/>
</Suspense>
</Col>
......@@ -445,7 +455,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
phone: detailInfo?.replaceGoodsAddress?.sendUserTel,
fullAddress: detailInfo?.replaceGoodsAddress?.sendAddress,
}}
isEdit={isEdit && detailInfo?.innerStatus === EXCHANGE_INNER_STATUS_UNCOMMITTED}
isEdit={isEditAddress && detailInfo?.innerStatus === EXCHANGE_INNER_STATUS_UNCOMMITTED}
onSubmit={() => {}}
/>
</Suspense>
......
......@@ -141,7 +141,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
</Space>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrConfirmBack"
isEdit
isEditRefundDeliver
/>
</>
);
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-29 15:47:54
* @LastEditTime: 2021-02-20 17:18:35
* @Description:
*/
import React, { useState } from 'react';
......@@ -59,7 +59,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
</>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
isEdit
isEditRefundDeliver
/>
<ManualDeliveryModal
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 17:21:54
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-08 10:26:31
* @LastEditTime: 2021-02-20 17:21:25
* @Description: 确认售后完成
*/
import React, { useState } from 'react';
......@@ -50,7 +50,6 @@ const ExchangePrFinishedDetailVerify: React.FC = () => {
</Button>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrFinished"
isEdit
/>
<FinishedModal
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-29 15:48:28
* @LastEditTime: 2021-02-20 17:20:22
* @Description:
*/
import React, { useState } from 'react';
......@@ -82,7 +82,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
)
}}
target="/memberCenter/afterService/exchangeApplication/exchangePrReceived"
isEdit
isEditExchangeDeliver
/>
</>
);
......
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