Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
149aaed6
Commit
149aaed6
authored
Feb 20, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 拆分可编辑状态
parent
cf3c15c8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
14 deletions
+23
-14
index.tsx
...rvice/exchangeApplication/components/DetailInfo/index.tsx
+17
-7
verify.tsx
...vice/exchangeApplication/exchangePrConfirmBack/verify.tsx
+1
-1
verify.tsx
...rService/exchangeApplication/exchangePrDeliver/verify.tsx
+2
-2
verify.tsx
...Service/exchangeApplication/exchangePrFinished/verify.tsx
+1
-2
verify.tsx
...Service/exchangeApplication/exchangePrReceived/verify.tsx
+2
-2
No files found.
src/pages/afterService/exchangeApplication/components/DetailInfo/index.tsx
View file @
149aaed6
...
...
@@ -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=
{
isEdit
RefundDeliver
}
/>
</
Suspense
>
</
Col
>
...
...
@@ -389,7 +399,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
isPurchaser=
{
true
}
innerStatus=
{
detailInfo
?.
innerStatus
}
target=
{
target
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
ExchangeDeliver
}
/>
</
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=
{
isEdit
Address
&&
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=
{
isEdit
Address
&&
detailInfo
?.
innerStatus
===
EXCHANGE_INNER_STATUS_UNCOMMITTED
}
onSubmit=
{
()
=>
{}
}
/>
</
Suspense
>
...
...
src/pages/afterService/exchangeApplication/exchangePrConfirmBack/verify.tsx
View file @
149aaed6
...
...
@@ -141,7 +141,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
</
Space
>
)
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrConfirmBack"
isEdit
isEdit
RefundDeliver
/>
</>
);
...
...
src/pages/afterService/exchangeApplication/exchangePrDeliver/verify.tsx
View file @
149aaed6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-29 15:47:54
* @LastEditTime: 2021-0
2-20 17:18:35
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -59,7 +59,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
</>
)
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
isEdit
isEdit
RefundDeliver
/>
<
ManualDeliveryModal
...
...
src/pages/afterService/exchangeApplication/exchangePrFinished/verify.tsx
View file @
149aaed6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 17:21:54
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-08 10:26:31
* @LastEditTime: 2021-0
2-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
...
...
src/pages/afterService/exchangeApplication/exchangePrReceived/verify.tsx
View file @
149aaed6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-29 15:48:28
* @LastEditTime: 2021-0
2-20 17:20:22
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -82,7 +82,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
)
}
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrReceived"
isEdit
isEdit
ExchangeDeliver
/>
</>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment