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
linweijiong
jinfa-platform
Commits
d4423b22
Commit
d4423b22
authored
Jan 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 添加新的内部状态相关
parent
7eeb371d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
139 additions
and
112 deletions
+139
-112
index.ts
src/constants/index.ts
+65
-15
styles.less
src/pages/afterService/common/styles.less
+0
-69
constants.ts
src/pages/afterService/constants.ts
+30
-10
verify.tsx
.../afterService/exchangeManage/exchangePrConfirm/verify.tsx
+13
-3
verify.tsx
...ages/afterService/repairManage/repairPrConfirm/verify.tsx
+10
-2
verify.tsx
...ages/afterService/returnManage/returnPrConfirm/verify.tsx
+11
-3
constants.ts
src/pages/logistics/addLogistics/constants.ts
+10
-10
No files found.
src/constants/index.ts
View file @
d4423b22
...
...
@@ -1343,9 +1343,9 @@ export const CREDIT_OUTER_STATUS = {
*/
export
const
REPAIR_INNER_STATUS_UNCOMMITTED
=
1
;
/**
*
已提交
*
审核通过(提交)
*/
export
const
REPAIR_INNER_STATUS_COMMIT
TED
=
2
;
export
const
REPAIR_INNER_STATUS_COMMIT
_SUCCESS
=
2
;
/**
* 一级审核通过
*/
...
...
@@ -1355,9 +1355,9 @@ export const REPAIR_INNER_STATUS_SUCCESS_1 = 3;
*/
export
const
REPAIR_INNER_STATUS_SUCCESS_2
=
4
;
/**
*
审核不通过(不接受申请)
*
二级审核不通过
*/
export
const
REPAIR_INNER_STATUS_FAILED
=
5
;
export
const
REPAIR_INNER_STATUS_FAILED
_2
=
5
;
/**
* 确认审核通过
*/
...
...
@@ -1370,15 +1370,25 @@ export const REPAIR_INNER_STATUS_CONFIRM_FAILED = 7;
* 确认售后完成
*/
export
const
REPAIR_INNER_STATUS_FINISHED
=
8
;
/**
* 审核不通过(提交)
*/
export
const
REPAIR_INNER_STATUS_COMMIT_FAILED
=
9
;
/**
* 审核不通过(一级)
*/
export
const
REPAIR_INNER_STATUS_FAILED_1
=
10
;
export
const
REPAIR_INNER_STATUS
=
{
[
REPAIR_INNER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
REPAIR_INNER_STATUS_COMMIT
TED
]:
'已提交
'
,
[
REPAIR_INNER_STATUS_COMMIT
_SUCCESS
]:
'审核通过(提交)
'
,
[
REPAIR_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
REPAIR_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
REPAIR_INNER_STATUS_FAILED
]:
'
审核不通过'
,
[
REPAIR_INNER_STATUS_FAILED
_2
]:
'二级
审核不通过'
,
[
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
]:
'确认审核通过'
,
[
REPAIR_INNER_STATUS_CONFIRM_FAILED
]:
'确认审核不通过'
,
[
REPAIR_INNER_STATUS_FINISHED
]:
'确认售后完成'
,
[
REPAIR_INNER_STATUS_COMMIT_FAILED
]:
'审核不通过(提交)'
,
[
REPAIR_INNER_STATUS_FAILED_1
]:
'审核不通过(一级)'
,
};
// 售后维修外部状态
...
...
@@ -1416,9 +1426,9 @@ export const REPAIR_OUTER_STATUS = {
*/
export
const
EXCHANGE_INNER_STATUS_UNCOMMITTED
=
1
;
/**
*
已提交
*
审核通过(提交)
*/
export
const
EXCHANGE_INNER_STATUS_COMMIT
TED
=
2
;
export
const
EXCHANGE_INNER_STATUS_COMMIT
_SUCCESS
=
2
;
/**
* 一级审核通过
*/
...
...
@@ -1519,9 +1529,29 @@ export const EXCHANGE_INNER_STATUS_UNCONFIRMED_FINISHED = 26;
* 已确认售后完成
*/
export
const
EXCHANGE_INNER_STATUS_FINISHED
=
27
;
/**
* 不接受退货物流单
*/
export
const
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_LOGISTICS
=
28
;
/**
* 不接受换货物流单
*/
export
const
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_EXCHANGE
=
29
;
/**
* 审核不通过(提交)
*/
export
const
EXCHANGE_INNER_STATUS_COMMIT_FAILED
=
30
;
/**
* 审核不通过(一级)
*/
export
const
EXCHANGE_INNER_STATUS_FAILED_1
=
31
;
/**
* 审核不通过(二级)
*/
export
const
EXCHANGE_INNER_STATUS_FAILED_2
=
32
;
export
const
EXCHANGE_INNER_STATUS
=
{
[
EXCHANGE_INNER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
EXCHANGE_INNER_STATUS_COMMIT
TED
]:
'已提交
'
,
[
EXCHANGE_INNER_STATUS_COMMIT
_SUCCESS
]:
'审核通过(提交)
'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
EXCHANGE_INNER_STATUS_FAILED
]:
'审核不通过'
,
...
...
@@ -1547,6 +1577,11 @@ export const EXCHANGE_INNER_STATUS = {
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
]:
'待确认换货回单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_FINISHED
]:
'待确认售后完成'
,
[
EXCHANGE_INNER_STATUS_FINISHED
]:
'已确认售后完成'
,
[
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_LOGISTICS
]:
'不接受退货物流单'
,
[
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_EXCHANGE
]:
'不接受换货物流单'
,
[
EXCHANGE_INNER_STATUS_COMMIT_FAILED
]:
'审核不通过(提交)'
,
[
EXCHANGE_INNER_STATUS_FAILED_1
]:
'审核不通过(一级)'
,
[
EXCHANGE_INNER_STATUS_FAILED_2
]:
'审核不通过(二级)'
,
};
// 售后换货外部状态
...
...
@@ -1649,9 +1684,9 @@ export const EXCHANGE_OUTER_STATUS = {
*/
export
const
RETURN_INNER_STATUS_UNCOMMITTED
=
1
;
/**
*
已提交
*
审核通过(提交)
*/
export
const
RETURN_INNER_STATUS_COMMIT
TED
=
2
;
export
const
RETURN_INNER_STATUS_COMMIT
_SUCCESS
=
2
;
/**
* 一级审核通过
*/
...
...
@@ -1661,9 +1696,9 @@ export const RETURN_INNER_STATUS_SUCCESS_1 = 3;
*/
export
const
RETURN_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 审核不通过
(不接受申请)
* 审核不通过
(二级)
*/
export
const
RETURN_INNER_STATUS_FAILED
=
5
;
export
const
RETURN_INNER_STATUS_FAILED
_2
=
5
;
/**
* 确认审核通过
*/
...
...
@@ -1732,12 +1767,24 @@ export const RETURN_INNER_STATUS_UNCONFIRMED_FINISHED = 21;
* 已确认售后完成
*/
export
const
RETURN_INNER_STATUS_FINISHED
=
22
;
/**
* 不接受物流单
*/
export
const
RETURN_INNER_STATUS_UNACCEPTED_LOGISTICS
=
23
;
/**
* 审核不通过(提交)
*/
export
const
RETURN_INNER_STATUS_COMMIT_FAILED
=
24
;
/**
* 审核不通过(一级)
*/
export
const
RETURN_INNER_STATUS_FAILED_1
=
25
;
export
const
RETURN_INNER_STATUS
=
{
[
RETURN_INNER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
RETURN_INNER_STATUS_COMMIT
TED
]:
'已提交
'
,
[
RETURN_INNER_STATUS_COMMIT
_SUCCESS
]:
'审核通过(提交)
'
,
[
RETURN_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
RETURN_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
RETURN_INNER_STATUS_FAILED
]:
'
审核不通过'
,
[
RETURN_INNER_STATUS_FAILED
_2
]:
'二级
审核不通过'
,
[
RETURN_INNER_STATUS_CONFIRM_SUCCESS
]:
'确认审核通过'
,
[
RETURN_INNER_STATUS_CONFIRM_FAILED
]:
'确认审核不通过'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
...
...
@@ -1755,6 +1802,9 @@ export const RETURN_INNER_STATUS = {
[
RETURN_INNER_STATUS_REFUNDED_SUCCESS
]:
'待确认退款'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_FINISHED
]:
'待确认售后完成'
,
[
RETURN_INNER_STATUS_FINISHED
]:
'已确认售后完成'
,
[
RETURN_INNER_STATUS_UNACCEPTED_LOGISTICS
]:
'不接受物流单'
,
[
RETURN_INNER_STATUS_COMMIT_FAILED
]:
'审核不通过(提交)'
,
[
RETURN_INNER_STATUS_FAILED_1
]:
'审核不通过(一级)'
,
};
// 售后退货外部状态
...
...
src/pages/afterService/common/styles.less
deleted
100644 → 0
View file @
7eeb371d
:global {
.god-table-control {
margin-bottom: 0;
}
}
.common_comfirm {
position: relative;
}
.common_tb {
position: relative;
:global {
.ant-table-thead>tr>th {
background-color: #FFF;
color: #303133;
}
}
}
.tb_bg {
background-color: #FAFBFC;
}
.operation_btn_group {
display: flex;
align-items: center;
.opration_btn_split {
position: relative;
height: 16px;
width: 1px;
background: #EEF0F3;
margin: 0 15px;
}
.operation_btn {
position: relative;
padding: 5.6px 0;
}
}
.form_tabs {
position: relative;
:global {
.ant-tabs-nav {
margin-bottom: 24px;
}
.ant-tabs-tab {
border: 1px solid #FFFFFF !important;
border-bottom: 1px solid #f0f0f0 !important;
&-active {
border: 1px solid #DCDFE6 !important;
border-bottom: 1px solid #ffffff !important;
}
}
.ant-form-item-label>label {
font-size: 12px !important;
color: #909399;
}
}
}
\ No newline at end of file
src/pages/afterService/constants.ts
View file @
d4423b22
...
...
@@ -6,13 +6,15 @@ import {
REPAIR_OUTER_STATUS_FINISHED
,
REPAIR_INNER_STATUS_UNCOMMITTED
,
REPAIR_INNER_STATUS_COMMIT
TED
,
REPAIR_INNER_STATUS_COMMIT
_SUCCESS
,
REPAIR_INNER_STATUS_SUCCESS_1
,
REPAIR_INNER_STATUS_SUCCESS_2
,
REPAIR_INNER_STATUS_FAILED
,
REPAIR_INNER_STATUS_FAILED
_2
,
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
,
REPAIR_INNER_STATUS_CONFIRM_FAILED
,
REPAIR_INNER_STATUS_FINISHED
,
REPAIR_INNER_STATUS_COMMIT_FAILED
,
REPAIR_INNER_STATUS_FAILED_1
,
EXCHANGE_OUTER_STATUS_UNCOMMITTED
,
EXCHANGE_OUTER_UNCONFIRMED
,
...
...
@@ -34,7 +36,7 @@ import {
EXCHANGE_OUTER_STATUS_FINISHED
,
EXCHANGE_INNER_STATUS_UNCOMMITTED
,
EXCHANGE_INNER_STATUS_COMMIT
TED
,
EXCHANGE_INNER_STATUS_COMMIT
_SUCCESS
,
EXCHANGE_INNER_STATUS_SUCCESS_1
,
EXCHANGE_INNER_STATUS_SUCCESS_2
,
EXCHANGE_INNER_STATUS_FAILED
,
...
...
@@ -60,12 +62,17 @@ import {
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
,
EXCHANGE_INNER_STATUS_UNCONFIRMED_FINISHED
,
EXCHANGE_INNER_STATUS_FINISHED
,
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_LOGISTICS
,
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_EXCHANGE
,
EXCHANGE_INNER_STATUS_COMMIT_FAILED
,
EXCHANGE_INNER_STATUS_FAILED_1
,
EXCHANGE_INNER_STATUS_FAILED_2
,
RETURN_INNER_STATUS_UNCOMMITTED
,
RETURN_INNER_STATUS_COMMIT
TED
,
RETURN_INNER_STATUS_COMMIT
_SUCCESS
,
RETURN_INNER_STATUS_SUCCESS_1
,
RETURN_INNER_STATUS_SUCCESS_2
,
RETURN_INNER_STATUS_FAILED
,
RETURN_INNER_STATUS_FAILED
_2
,
RETURN_INNER_STATUS_CONFIRM_SUCCESS
,
RETURN_INNER_STATUS_CONFIRM_FAILED
,
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
,
...
...
@@ -83,6 +90,9 @@ import {
RETURN_INNER_STATUS_REFUNDED_SUCCESS
,
RETURN_INNER_STATUS_UNCONFIRMED_FINISHED
,
RETURN_INNER_STATUS_FINISHED
,
RETURN_INNER_STATUS_UNACCEPTED_LOGISTICS
,
RETURN_INNER_STATUS_COMMIT_FAILED
,
RETURN_INNER_STATUS_FAILED_1
,
RETURN_OUTER_STATUS_UNCOMMITTED
,
RETURN_OUTER_UNCONFIRMED
,
...
...
@@ -113,13 +123,15 @@ export const REPAIR_OUTER_STATUS_TAG_MAP = {
// 售后维修内部部状态 Badge map
export
const
REPAIR_INNER_STATUS_BADGE_MAP
=
{
[
REPAIR_INNER_STATUS_UNCOMMITTED
]:
'#669EDE'
,
[
REPAIR_INNER_STATUS_COMMIT
TED
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_COMMIT
_SUCCESS
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_SUCCESS_1
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_SUCCESS_2
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_FAILED
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_FAILED
_2
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
]:
'#6C9CEB'
,
[
REPAIR_INNER_STATUS_CONFIRM_FAILED
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_FINISHED
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_COMMIT_FAILED
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_FAILED_1
]:
'#EF6260'
,
};
// 售后换货外部状态 StatusTag map
...
...
@@ -147,7 +159,7 @@ export const EXCHANGE_OUTER_STATUS_TAG_MAP = {
// 售后换货内部状态 Badge map
export
const
EXCHANGE_INNER_STATUS_BADGE_MAP
=
{
[
EXCHANGE_INNER_STATUS_UNCOMMITTED
]:
'#669EDE'
,
[
EXCHANGE_INNER_STATUS_COMMIT
TED
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_COMMIT
_SUCCESS
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_1
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_2
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_FAILED
]:
'#EF6260'
,
...
...
@@ -173,6 +185,11 @@ export const EXCHANGE_INNER_STATUS_BADGE_MAP = {
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
]:
'#6C9CEB'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_FINISHED
]:
'#6C9CEB'
,
[
EXCHANGE_INNER_STATUS_FINISHED
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_LOGISTICS
]:
'#E63F3B'
,
[
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_EXCHANGE
]:
'#E63F3B'
,
[
EXCHANGE_INNER_STATUS_COMMIT_FAILED
]:
'#E63F3B'
,
[
EXCHANGE_INNER_STATUS_FAILED_1
]:
'#E63F3B'
,
[
EXCHANGE_INNER_STATUS_FAILED_2
]:
'#E63F3B'
,
};
// 退货明细内部状态
...
...
@@ -215,10 +232,10 @@ export const RETURN_OUTER_STATUS_TAG_MAP = {
// 售后退货内部状态 Badge map
export
const
RETURN_INNER_STATUS_BADGE_MAP
=
{
[
RETURN_INNER_STATUS_UNCOMMITTED
]:
'#669EDE'
,
[
RETURN_INNER_STATUS_COMMIT
TED
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_COMMIT
_SUCCESS
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_SUCCESS_1
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_SUCCESS_2
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_FAILED
]:
'#EF6260'
,
[
RETURN_INNER_STATUS_FAILED
_2
]:
'#EF6260'
,
[
RETURN_INNER_STATUS_CONFIRM_SUCCESS
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_CONFIRM_FAILED
]:
'#EF6260'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'#E63F3B'
,
...
...
@@ -236,6 +253,9 @@ export const RETURN_INNER_STATUS_BADGE_MAP = {
[
RETURN_INNER_STATUS_REFUNDED_SUCCESS
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_FINISHED
]:
'#6C9CEB'
,
[
RETURN_INNER_STATUS_FINISHED
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_UNACCEPTED_LOGISTICS
]:
'#E63F3B'
,
[
RETURN_INNER_STATUS_COMMIT_FAILED
]:
'#E63F3B'
,
[
RETURN_INNER_STATUS_FAILED_1
]:
'#E63F3B'
,
};
// 退款内部状态
...
...
src/pages/afterService/exchangeManage/exchangePrConfirm/verify.tsx
View file @
d4423b22
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-
08 11:29:21
* @LastEditTime: 2021-01-
21 15:43:19
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -11,7 +11,12 @@ import { history } from 'umi';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
EXCHANGE_INNER_STATUS_FAILED
}
from
'@/constants'
;
import
{
EXCHANGE_INNER_STATUS_FAILED
,
EXCHANGE_INNER_STATUS_COMMIT_FAILED
,
EXCHANGE_INNER_STATUS_FAILED_1
,
EXCHANGE_INNER_STATUS_FAILED_2
,
}
from
'@/constants'
;
import
DetailInfo
from
'../components/DetailInfo'
;
import
VerifyModal
from
'../../components/VerifyModal'
;
...
...
@@ -39,7 +44,12 @@ const ExchangePrConfirmVerify: React.FC = () => {
};
const
handleVerify
=
(
info
)
=>
{
if
(
info
.
innerStatus
===
EXCHANGE_INNER_STATUS_FAILED
)
{
if
(
info
.
innerStatus
===
EXCHANGE_INNER_STATUS_FAILED
||
info
.
innerStatus
===
EXCHANGE_INNER_STATUS_COMMIT_FAILED
||
info
.
innerStatus
===
EXCHANGE_INNER_STATUS_FAILED_1
||
info
.
innerStatus
===
EXCHANGE_INNER_STATUS_FAILED_2
)
{
setRejected
(
true
);
}
setVisible
(
true
);
...
...
src/pages/afterService/repairManage/repairPrConfirm/verify.tsx
View file @
d4423b22
...
...
@@ -11,7 +11,11 @@ import { history } from 'umi';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
REPAIR_INNER_STATUS_FAILED
}
from
'@/constants'
;
import
{
REPAIR_INNER_STATUS_FAILED_2
,
REPAIR_INNER_STATUS_COMMIT_FAILED
,
REPAIR_INNER_STATUS_FAILED_1
,
}
from
'@/constants'
;
import
DetailInfo
from
'../components/DetailInfo'
;
import
VerifyModal
from
'../../components/VerifyModal'
;
...
...
@@ -39,7 +43,11 @@ const RepairPrConfirmVerify: React.FC = () => {
};
const
handleVerify
=
(
info
)
=>
{
if
(
info
.
innerStatus
===
REPAIR_INNER_STATUS_FAILED
)
{
if
(
info
.
innerStatus
===
REPAIR_INNER_STATUS_FAILED_2
||
info
.
innerStatus
===
REPAIR_INNER_STATUS_COMMIT_FAILED
||
info
.
innerStatus
===
REPAIR_INNER_STATUS_FAILED_1
)
{
setRejected
(
true
);
}
setVisible
(
true
);
...
...
src/pages/afterService/returnManage/returnPrConfirm/verify.tsx
View file @
d4423b22
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-
07 18:51:37
* @LastEditTime: 2021-01-
21 15:55:44
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -11,7 +11,11 @@ import { history } from 'umi';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
RETURN_INNER_STATUS_FAILED
}
from
'@/constants'
;
import
{
RETURN_INNER_STATUS_COMMIT_FAILED
,
RETURN_INNER_STATUS_FAILED_1
,
RETURN_INNER_STATUS_FAILED_2
,
}
from
'@/constants'
;
import
DetailInfo
from
'../components/DetailInfo'
;
import
VerifyModal
from
'../../components/VerifyModal'
;
...
...
@@ -39,7 +43,11 @@ const ReturnPrConfirmVerify: React.FC = () => {
};
const
handleVerify
=
(
info
)
=>
{
if
(
info
.
innerStatus
===
RETURN_INNER_STATUS_FAILED
)
{
if
(
info
.
innerStatus
===
RETURN_INNER_STATUS_COMMIT_FAILED
||
info
.
innerStatus
===
RETURN_INNER_STATUS_FAILED_1
||
info
.
innerStatus
===
RETURN_INNER_STATUS_FAILED_2
)
{
setRejected
(
true
);
}
setVisible
(
true
);
...
...
src/pages/logistics/addLogistics/constants.ts
View file @
d4423b22
...
...
@@ -6,10 +6,10 @@ import {
REPAIR_OUTER_STATUS_FINISHED
,
REPAIR_INNER_STATUS_UNCOMMITTED
,
REPAIR_INNER_STATUS_COMMIT
TED
,
REPAIR_INNER_STATUS_COMMIT
_SUCCESS
,
REPAIR_INNER_STATUS_SUCCESS_1
,
REPAIR_INNER_STATUS_SUCCESS_2
,
REPAIR_INNER_STATUS_FAILED
,
REPAIR_INNER_STATUS_FAILED
_2
,
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
,
REPAIR_INNER_STATUS_CONFIRM_FAILED
,
REPAIR_INNER_STATUS_FINISHED
,
...
...
@@ -34,7 +34,7 @@ import {
EXCHANGE_OUTER_STATUS_FINISHED
,
EXCHANGE_INNER_STATUS_UNCOMMITTED
,
EXCHANGE_INNER_STATUS_COMMIT
TED
,
EXCHANGE_INNER_STATUS_COMMIT
_SUCCESS
,
EXCHANGE_INNER_STATUS_SUCCESS_1
,
EXCHANGE_INNER_STATUS_SUCCESS_2
,
EXCHANGE_INNER_STATUS_FAILED
,
...
...
@@ -62,10 +62,10 @@ import {
EXCHANGE_INNER_STATUS_FINISHED
,
RETURN_INNER_STATUS_UNCOMMITTED
,
RETURN_INNER_STATUS_COMMIT
TED
,
RETURN_INNER_STATUS_COMMIT
_SUCCESS
,
RETURN_INNER_STATUS_SUCCESS_1
,
RETURN_INNER_STATUS_SUCCESS_2
,
RETURN_INNER_STATUS_FAILED
,
RETURN_INNER_STATUS_FAILED
_2
,
RETURN_INNER_STATUS_CONFIRM_SUCCESS
,
RETURN_INNER_STATUS_CONFIRM_FAILED
,
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
,
...
...
@@ -113,10 +113,10 @@ export const REPAIR_OUTER_STATUS_TAG_MAP = {
// 售后维修内部部状态 Badge map
export
const
REPAIR_INNER_STATUS_BADGE_MAP
=
{
[
REPAIR_INNER_STATUS_UNCOMMITTED
]:
'#669EDE'
,
[
REPAIR_INNER_STATUS_COMMIT
TED
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_COMMIT
_SUCCESS
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_SUCCESS_1
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_SUCCESS_2
]:
'#41CC9E'
,
[
REPAIR_INNER_STATUS_FAILED
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_FAILED
_2
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
]:
'#6C9CEB'
,
[
REPAIR_INNER_STATUS_CONFIRM_FAILED
]:
'#EF6260'
,
[
REPAIR_INNER_STATUS_FINISHED
]:
'#41CC9E'
,
...
...
@@ -147,7 +147,7 @@ export const EXCHANGE_OUTER_STATUS_TAG_MAP = {
// 售后换货内部状态 Badge map
export
const
EXCHANGE_INNER_STATUS_BADGE_MAP
=
{
[
EXCHANGE_INNER_STATUS_UNCOMMITTED
]:
'#669EDE'
,
[
EXCHANGE_INNER_STATUS_COMMIT
TED
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_COMMIT
_SUCCESS
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_1
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_2
]:
'#41CC9E'
,
[
EXCHANGE_INNER_STATUS_FAILED
]:
'#EF6260'
,
...
...
@@ -215,10 +215,10 @@ export const RETURN_OUTER_STATUS_TAG_MAP = {
// 售后退货内部状态 Badge map
export
const
RETURN_INNER_STATUS_BADGE_MAP
=
{
[
RETURN_INNER_STATUS_UNCOMMITTED
]:
'#669EDE'
,
[
RETURN_INNER_STATUS_COMMIT
TED
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_COMMIT
_SUCCESS
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_SUCCESS_1
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_SUCCESS_2
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_FAILED
]:
'#EF6260'
,
[
RETURN_INNER_STATUS_FAILED
_2
]:
'#EF6260'
,
[
RETURN_INNER_STATUS_CONFIRM_SUCCESS
]:
'#41CC9E'
,
[
RETURN_INNER_STATUS_CONFIRM_FAILED
]:
'#EF6260'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'#E63F3B'
,
...
...
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