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
54b67ebf
Commit
54b67ebf
authored
Jan 29, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复操作按钮不能正确展示的问题
parent
0b7bcd97
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
66 additions
and
17 deletions
+66
-17
index.ts
src/constants/index.ts
+1
-1
index.tsx
src/pages/afterService/components/ReturnAnalysis/index.tsx
+9
-0
index.tsx
...rvice/exchangeApplication/components/DetailInfo/index.tsx
+9
-9
verify.tsx
...vice/exchangeApplication/exchangePrConfirmBack/verify.tsx
+1
-0
verify.tsx
...rService/exchangeApplication/exchangePrDeliver/verify.tsx
+8
-0
verify.tsx
...Service/exchangeApplication/exchangePrFinished/verify.tsx
+1
-0
verify.tsx
...Service/exchangeApplication/exchangePrReceived/verify.tsx
+8
-0
index.tsx
...terService/exchangeManage/components/DetailInfo/index.tsx
+6
-3
verify.tsx
src/pages/afterService/exchangeManage/exchangePr1/verify.tsx
+1
-0
verify.tsx
src/pages/afterService/exchangeManage/exchangePr2/verify.tsx
+1
-0
verify.tsx
.../afterService/exchangeManage/exchangePrConfirm/verify.tsx
+1
-0
verify.tsx
...erService/exchangeManage/exchangePrConfirmBack/verify.tsx
+1
-0
verify.tsx
.../afterService/exchangeManage/exchangePrDeliver/verify.tsx
+1
-0
verify.tsx
...afterService/exchangeManage/exchangePrReceived/verify.tsx
+1
-0
verify.tsx
...s/afterService/exchangeManage/exchangePrSubmit/verify.tsx
+1
-1
index.tsx
...Service/returnApplication/components/DetailInfo/index.tsx
+3
-1
verify.tsx
...rService/returnApplication/returnPrConfirmBack/verify.tsx
+1
-0
verify.tsx
...ervice/returnApplication/returnPrConfirmFinish/verify.tsx
+1
-0
verify.tsx
...ervice/returnApplication/returnPrConfirmResult/verify.tsx
+1
-0
verify.tsx
...afterService/returnApplication/returnPrDeliver/verify.tsx
+1
-0
index.tsx
...afterService/returnManage/components/DetailInfo/index.tsx
+3
-1
verify.tsx
src/pages/afterService/returnManage/returnPr1/verify.tsx
+1
-0
verify.tsx
src/pages/afterService/returnManage/returnPr2/verify.tsx
+1
-0
verify.tsx
...ages/afterService/returnManage/returnPrConfirm/verify.tsx
+1
-0
verify.tsx
...ges/afterService/returnManage/returnPrReceived/verify.tsx
+1
-0
verify.tsx
...pages/afterService/returnManage/returnPrReturn/verify.tsx
+1
-0
verify.tsx
...pages/afterService/returnManage/returnPrSubmit/verify.tsx
+1
-1
No files found.
src/constants/index.ts
View file @
54b67ebf
...
...
@@ -1686,7 +1686,7 @@ export const EXCHANGE_OUTER_STATUS = {
// 售后退货内部状态
/**
* 待提交
换
货
* 待提交
退
货
*/
export
const
RETURN_INNER_STATUS_UNCOMMITTED
=
1
;
/**
...
...
src/pages/afterService/components/ReturnAnalysis/index.tsx
View file @
54b67ebf
...
...
@@ -71,6 +71,11 @@ interface ReturnInfoProps {
* 历史记录目标路径
*/
target
:
string
;
/**
* 是否可编辑
*/
isEdit
?:
boolean
;
};
const
ReturnInfo
:
React
.
FC
<
ReturnInfoProps
>
=
({
...
...
@@ -82,6 +87,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
onConfirmReturnReceive
,
innerStatus
,
target
,
isEdit
=
false
,
})
=>
{
const
[
currentBatch
,
setCurrentBatch
]
=
useState
(
1
);
...
...
@@ -338,6 +344,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
</
Descriptions
.
Item
>
<
Descriptions
.
Item
>
{
(
isEdit
&&
isPurchaser
&&
item
.
innerStatus
===
MAIL_INNER_STATUS_UNCONFIRMED_DELIVER
&&
innerStatus
===
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
...
...
@@ -353,6 +360,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
</
a
>
)
}
{
(
isEdit
&&
!
isPurchaser
&&
item
.
innerStatus
===
MAIL_INNER_STATUS_CONFIRMED_DELIVER
&&
innerStatus
===
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
...
...
@@ -368,6 +376,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
</
a
>
)
}
{
(
isEdit
&&
isPurchaser
&&
item
.
innerStatus
===
MAIL_INNER_STATUS_CONFIRMED_RECEIVING
&&
innerStatus
===
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
...
...
src/pages/afterService/exchangeApplication/components/DetailInfo/index.tsx
View file @
54b67ebf
...
...
@@ -2,17 +2,13 @@ import React, { Suspense, useEffect, useState } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
Row
,
Col
,
Badge
,
Switch
,
Tooltip
,
message
,
}
from
'antd'
;
import
{
FormOutlined
,
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
...
@@ -20,12 +16,14 @@ import {
GetAsReplaceGoodsGetDetailByConsumerResponse
,
GetAsReplaceGoodsPageReturnedGoodsResponse
,
}
from
'@/services/AfterServiceApi'
;
import
{
EXCHANGE_OUTER_STATUS_FINISHED
}
from
'@/constants'
;
import
{
EXCHANGE_OUTER_STATUS_FINISHED
,
EXCHANGE_INNER_STATUS_UNCOMMITTED
,
}
from
'@/constants'
;
import
{
normalizeFiledata
,
FileData
,
findLastIndexFlowState
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
AuditProcess
from
'@/components/AuditProcess'
;
import
{
EditableColumns
}
from
'@/components/PolymericTable/interface'
;
import
{
OuterHistoryData
,
InnerHistoryData
}
from
'../../../components/FlowRecords'
;
import
{
...
...
@@ -367,6 +365,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
isPurchaser=
{
true
}
innerStatus=
{
detailInfo
?.
innerStatus
}
target=
{
target
}
isEdit=
{
isEdit
}
/>
</
Suspense
>
</
Col
>
...
...
@@ -387,6 +386,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
isPurchaser=
{
true
}
innerStatus=
{
detailInfo
?.
innerStatus
}
target=
{
target
}
isEdit=
{
isEdit
}
/>
</
Suspense
>
</
Col
>
...
...
@@ -421,7 +421,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
fullAddress
:
detailInfo
?.
returnGoodsAddress
?.
sendAddress
,
}
}
onSubmit=
{
()
=>
{}
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
&&
detailInfo
?.
innerStatus
===
EXCHANGE_INNER_STATUS_UNCOMMITTED
}
/>
</
Suspense
>
</
Col
>
...
...
@@ -442,7 +442,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
phone
:
detailInfo
?.
replaceGoodsAddress
?.
sendUserTel
,
fullAddress
:
detailInfo
?.
replaceGoodsAddress
?.
sendAddress
,
}
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
&&
detailInfo
?.
innerStatus
===
EXCHANGE_INNER_STATUS_UNCOMMITTED
}
onSubmit=
{
()
=>
{}
}
/>
</
Suspense
>
...
...
src/pages/afterService/exchangeApplication/exchangePrConfirmBack/verify.tsx
View file @
54b67ebf
...
...
@@ -141,6 +141,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
</
Space
>
)
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrConfirmBack"
isEdit
/>
</>
);
...
...
src/pages/afterService/exchangeApplication/exchangePrDeliver/verify.tsx
View file @
54b67ebf
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-29 15:47:54
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
import
{
Button
}
from
'antd'
;
import
{
history
}
from
'umi'
;
...
...
@@ -52,6 +59,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
</>
)
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
isEdit
/>
<
ManualDeliveryModal
...
...
src/pages/afterService/exchangeApplication/exchangePrFinished/verify.tsx
View file @
54b67ebf
...
...
@@ -50,6 +50,7 @@ const ExchangePrFinishedDetailVerify: React.FC = () => {
</
Button
>
)
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrFinished"
isEdit
/>
<
FinishedModal
...
...
src/pages/afterService/exchangeApplication/exchangePrReceived/verify.tsx
View file @
54b67ebf
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-29 15:48:28
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
import
{
Button
}
from
'antd'
;
import
{
history
}
from
'umi'
;
...
...
@@ -75,6 +82,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
)
}
}
target=
"/memberCenter/afterService/exchangeApplication/exchangePrReceived"
isEdit
/>
</>
);
...
...
src/pages/afterService/exchangeManage/components/DetailInfo/index.tsx
View file @
54b67ebf
...
...
@@ -20,7 +20,10 @@ import {
GetAsReplaceGoodsGetDetailBySupplierResponse
,
GetAsReplaceGoodsPageReturnedGoodsResponse
,
}
from
'@/services/AfterServiceApi'
;
import
{
EXCHANGE_OUTER_STATUS_FINISHED
}
from
'@/constants'
;
import
{
EXCHANGE_OUTER_STATUS_FINISHED
,
EXCHANGE_INNER_STATUS_UNCOMMITTED
,
}
from
'@/constants'
;
import
{
normalizeFiledata
,
FileData
,
findLastIndexFlowState
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
StatusTag
from
'@/components/StatusTag'
;
...
...
@@ -474,7 +477,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
phone
:
detailInfo
?.
returnGoodsAddress
?.
sendUserTel
,
fullAddress
:
detailInfo
?.
returnGoodsAddress
?.
sendAddress
,
}
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
&&
detailInfo
?.
innerStatus
===
EXCHANGE_INNER_STATUS_UNCOMMITTED
}
onSubmit=
{
handleReturnAddressSubmit
}
/>
</
Suspense
>
...
...
@@ -496,7 +499,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
phone
:
detailInfo
?.
replaceGoodsAddress
?.
sendUserTel
,
fullAddress
:
detailInfo
?.
replaceGoodsAddress
?.
sendAddress
,
}
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
&&
detailInfo
?.
innerStatus
===
EXCHANGE_INNER_STATUS_UNCOMMITTED
}
onSubmit=
{
handleExchangeAddressSubmit
}
/>
</
Suspense
>
...
...
src/pages/afterService/exchangeManage/exchangePr1/verify.tsx
View file @
54b67ebf
...
...
@@ -50,6 +50,7 @@ const ExchangePr1Verify: React.FC = () => {
单据审核
</
Button
>
)
}
isEdit
/>
<
VerifyModal
...
...
src/pages/afterService/exchangeManage/exchangePr2/verify.tsx
View file @
54b67ebf
...
...
@@ -50,6 +50,7 @@ const ExchangePr2Verify: React.FC = () => {
单据审核
</
Button
>
)
}
isEdit
/>
<
VerifyModal
...
...
src/pages/afterService/exchangeManage/exchangePrConfirm/verify.tsx
View file @
54b67ebf
...
...
@@ -69,6 +69,7 @@ const ExchangePrConfirmVerify: React.FC = () => {
确认单据
</
Button
>
)
}
isEdit
/>
<
VerifyModal
...
...
src/pages/afterService/exchangeManage/exchangePrConfirmBack/verify.tsx
View file @
54b67ebf
...
...
@@ -94,6 +94,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
</
Space
>
)
}
target=
"/memberCenter/afterService/exchangeManage/exchangePrConfirmBack"
isEdit
/>
</>
);
...
...
src/pages/afterService/exchangeManage/exchangePrDeliver/verify.tsx
View file @
54b67ebf
...
...
@@ -52,6 +52,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
</>
)
}
target=
"/memberCenter/afterService/exchangeManage/exchangePrDeliver"
isEdit
/>
<
ManualDeliveryModal
...
...
src/pages/afterService/exchangeManage/exchangePrReceived/verify.tsx
View file @
54b67ebf
...
...
@@ -74,6 +74,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
)
}
}
target=
"/memberCenter/afterService/exchangeManage/exchangePrReceived"
isEdit
/>
</>
);
...
...
src/pages/afterService/exchangeManage/exchangePrSubmit/verify.tsx
View file @
54b67ebf
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-29 1
4:11:59
* @LastEditTime: 2021-01-29 1
5:50:05
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
src/pages/afterService/returnApplication/components/DetailInfo/index.tsx
View file @
54b67ebf
...
...
@@ -24,6 +24,7 @@ import {
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
,
RETURN_OUTER_STATUS_NOT_RECEIVED
,
RETURN_OUTER_STATUS_UNCONFIRMED_FINISHED
,
RETURN_INNER_STATUS_UNCOMMITTED
,
}
from
'@/constants'
;
import
{
normalizeFiledata
,
FileData
,
findLastIndexFlowState
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
...
...
@@ -412,6 +413,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
isPurchaser=
{
true
}
innerStatus=
{
detailInfo
?.
innerStatus
}
target=
{
target
}
isEdit=
{
isEdit
}
/>
</
Suspense
>
</
Col
>
...
...
@@ -472,7 +474,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
fullAddress
:
detailInfo
?.
returnGoodsAddress
?.
sendAddress
,
}
}
onSubmit=
{
()
=>
{}
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
&&
detailInfo
?.
innerStatus
===
RETURN_INNER_STATUS_UNCOMMITTED
}
/>
</
Suspense
>
</
Col
>
...
...
src/pages/afterService/returnApplication/returnPrConfirmBack/verify.tsx
View file @
54b67ebf
...
...
@@ -141,6 +141,7 @@ const ReturnPrConfirmBackVerify: React.FC = () => {
</
Space
>
)
}
target=
"/memberCenter/afterService/returnApplication/returnPrConfirmBack"
isEdit
/>
</>
);
...
...
src/pages/afterService/returnApplication/returnPrConfirmFinish/verify.tsx
View file @
54b67ebf
...
...
@@ -43,6 +43,7 @@ const ReturnPrConfirmFinishVerify: React.FC = () => {
</
Button
>
)
}
target=
"/memberCenter/afterService/returnApplication/returnPrConfirmFinish"
isEdit
/>
<
FinishedModal
...
...
src/pages/afterService/returnApplication/returnPrConfirmResult/verify.tsx
View file @
54b67ebf
...
...
@@ -41,6 +41,7 @@ const ReturnPrConfirmResultVerify: React.FC = () => {
</
Button
>
)
}
target=
"/memberCenter/afterService/returnApplication/returnPrConfirmResult"
isEdit
/>
</>
);
...
...
src/pages/afterService/returnApplication/returnPrDeliver/verify.tsx
View file @
54b67ebf
...
...
@@ -52,6 +52,7 @@ const ReturnPrDeliverVerify: React.FC = () => {
</>
)
}
target=
"/memberCenter/afterService/returnApplication/returnPrDeliver"
isEdit
/>
<
ManualDeliveryModal
...
...
src/pages/afterService/returnManage/components/DetailInfo/index.tsx
View file @
54b67ebf
...
...
@@ -26,6 +26,7 @@ import {
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
,
RETURN_OUTER_STATUS_NOT_RECEIVED
,
RETURN_OUTER_STATUS_UNCONFIRMED_FINISHED
,
RETURN_INNER_STATUS_UNCOMMITTED
,
}
from
'@/constants'
;
import
{
normalizeFiledata
,
FileData
,
findLastIndexFlowState
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
...
...
@@ -451,6 +452,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
onConfirmReturnReceive=
{
handleReceivedConfirmReturnReceive
}
innerStatus=
{
detailInfo
?.
innerStatus
}
target=
{
target
}
isEdit=
{
isEdit
}
/>
</
Suspense
>
</
Col
>
...
...
@@ -510,7 +512,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
fullAddress
:
detailInfo
?.
returnGoodsAddress
?.
sendAddress
,
}
}
onSubmit=
{
handleReturnAddressSubmit
}
isEdit=
{
isEdit
}
isEdit=
{
isEdit
&&
detailInfo
?.
innerStatus
===
RETURN_INNER_STATUS_UNCOMMITTED
}
/>
</
Suspense
>
</
Col
>
...
...
src/pages/afterService/returnManage/returnPr1/verify.tsx
View file @
54b67ebf
...
...
@@ -50,6 +50,7 @@ const ReturnPr1Verify: React.FC = () => {
单据审核
</
Button
>
)
}
isEdit
/>
<
VerifyModal
...
...
src/pages/afterService/returnManage/returnPr2/verify.tsx
View file @
54b67ebf
...
...
@@ -50,6 +50,7 @@ const ReturnPr2Verify: React.FC = () => {
单据审核
</
Button
>
)
}
isEdit
/>
<
VerifyModal
...
...
src/pages/afterService/returnManage/returnPrConfirm/verify.tsx
View file @
54b67ebf
...
...
@@ -67,6 +67,7 @@ const ReturnPrConfirmVerify: React.FC = () => {
确认单据
</
Button
>
)
}
isEdit
/>
<
VerifyModal
...
...
src/pages/afterService/returnManage/returnPrReceived/verify.tsx
View file @
54b67ebf
...
...
@@ -75,6 +75,7 @@ const ReturnPrReceivedVerify: React.FC = () => {
)
}
}
target=
"/memberCenter/afterService/returnManage/returnPrReceived"
isEdit
/>
</>
...
...
src/pages/afterService/returnManage/returnPrReturn/verify.tsx
View file @
54b67ebf
...
...
@@ -49,6 +49,7 @@ const ReturnPrReturnVerify: React.FC = () => {
确认本单已完成所有退款
</
Button
>
)
}
isEdit
/>
</>
);
...
...
src/pages/afterService/returnManage/returnPrSubmit/verify.tsx
View file @
54b67ebf
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 202
0-12-14 18:07:20
* @LastEditTime: 202
1-01-29 15:55:33
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
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