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
2a6d1e50
Commit
2a6d1e50
authored
Jun 02, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 售后能力常量分离
parent
4d7a0681
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
832 additions
and
764 deletions
+832
-764
afterService.ts
src/constants/afterService.ts
+585
-0
index.ts
src/constants/index.ts
+19
-739
member.ts
src/constants/member.ts
+26
-0
order.ts
src/constants/order.ts
+121
-0
payment.ts
src/constants/payment.ts
+46
-0
constant.ts
src/pages/transaction/_public/order/constant.ts
+1
-1
index.tsx
src/pages/transaction/components/StatusColors/index.tsx
+13
-1
index.tsx
src/pages/transaction/components/orderDeleveRecord/index.tsx
+1
-1
index.tsx
...pages/transaction/components/orderDetailSection/index.tsx
+1
-1
index.tsx
src/pages/transaction/components/orderMergeInfo/index.tsx
+1
-2
index.tsx
...ages/transaction/components/orderPayResultModal/index.tsx
+3
-3
index.tsx
src/pages/transaction/components/orderPayTabs/index.tsx
+1
-1
index.tsx
src/pages/transaction/components/orderProductTable/index.tsx
+3
-6
index.tsx
src/pages/transaction/components/orderSaleRecord/index.tsx
+2
-2
index.tsx
...es/transaction/components/saleOrderProductTable/index.tsx
+9
-4
index.tsx
src/pages/transaction/transactionRules/schema/index.tsx
+0
-3
No files found.
src/constants/afterService.ts
0 → 100644
View file @
2a6d1e50
/**
* ****售后能力 相关常量****
*/
/**
*
* 其中包括:售后换货,售后退货,售后维修
*
*/
// 售后维修内部状态
/**
* 待提交维修
*/
export
const
REPAIR_INNER_STATUS_UNCOMMITTED
=
1
;
/**
* 审核通过(提交)
*/
export
const
REPAIR_INNER_STATUS_COMMIT_SUCCESS
=
2
;
/**
* 一级审核通过
*/
export
const
REPAIR_INNER_STATUS_SUCCESS_1
=
3
;
/**
* 二级审核通过
*/
export
const
REPAIR_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 二级审核不通过
*/
export
const
REPAIR_INNER_STATUS_FAILED_2
=
5
;
/**
* 确认审核通过
*/
export
const
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
=
6
;
/**
* 确认审核不通过
*/
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_SUCCESS
]:
'审核通过(提交)'
,
[
REPAIR_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
REPAIR_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
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
]:
'审核不通过(一级)'
,
};
// 售后维修外部状态
/**
* 待提交申请单
*/
export
const
REPAIR_OUTER_STATUS_UNCOMMITTED
=
1
;
/**
* 待确认
*/
export
const
REPAIR_OUTER_STATUS_UNCONFIRMED
=
2
;
/**
* 不接受申请
*/
export
const
REPAIR_OUTER_STATUS_FAILED
=
3
;
/**
* 接受申请
*/
export
const
REPAIR_OUTER_STATUS_SUCCESS
=
4
;
/**
* 售后完成
*/
export
const
REPAIR_OUTER_STATUS_FINISHED
=
5
;
export
const
REPAIR_OUTER_STATUS
=
{
[
REPAIR_OUTER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
REPAIR_OUTER_STATUS_UNCONFIRMED
]:
'待确认'
,
[
REPAIR_OUTER_STATUS_FAILED
]:
'不接受申请'
,
[
REPAIR_OUTER_STATUS_SUCCESS
]:
'接受申请'
,
[
REPAIR_OUTER_STATUS_FINISHED
]:
'售后完成'
,
};
// 售后换货内部状态
/**
* 待提交换货
*/
export
const
EXCHANGE_INNER_STATUS_UNCOMMITTED
=
1
;
/**
* 审核通过(提交)
*/
export
const
EXCHANGE_INNER_STATUS_COMMIT_SUCCESS
=
2
;
/**
* 一级审核通过
*/
export
const
EXCHANGE_INNER_STATUS_SUCCESS_1
=
3
;
/**
* 二级审核通过
*/
export
const
EXCHANGE_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 审核不通过(不接受申请)
*/
export
const
EXCHANGE_INNER_STATUS_FAILED
=
5
;
/**
* 确认审核通过
*/
export
const
EXCHANGE_INNER_STATUS_CONFIRM_SUCCESS
=
6
;
/**
* 确认审核不通过
*/
export
const
EXCHANGE_INNER_STATUS_CONFIRM_FAILED
=
7
;
/**
* 待新增退货发货单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
8
;
/**
* 待审核退货发货单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
=
9
;
/**
* 采购商待新增物流单
*/
export
const
EXCHANGE_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
10
;
/**
* 采购商待确认物流单
*/
export
const
EXCHANGE_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
=
11
;
/**
* 待确认退货发货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
=
12
;
/**
* 待新增退货入库单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
=
13
;
/**
* 待审核退货入库单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
=
14
;
/**
* 待确认退货收货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
=
15
;
/**
* 待确认退货回单
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
16
;
/**
* 待新增换货发货单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_DELIVERY
=
17
;
/**
* 待审核换货发货单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_DELIVERY
=
18
;
/**
* 供应商待新增物流单
*/
export
const
EXCHANGE_INNER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
=
19
;
/**
* 供应商待确认物流单
*/
export
const
EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS
=
20
;
/**
* 待确认换货发货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_DELIVERY
=
21
;
/**
* 待新增换货入库单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_STORAGE
=
22
;
/**
* 待审核换货入库单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_STORAGE
=
23
;
/**
* 待确认换货收货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIVE
=
24
;
/**
* 待确认换货回单
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
=
25
;
/**
* 待确认售后完成
*/
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_SUCCESS
]:
'审核通过(提交)'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
EXCHANGE_INNER_STATUS_FAILED
]:
'审核不通过'
,
[
EXCHANGE_INNER_STATUS_CONFIRM_SUCCESS
]:
'确认审核通过'
,
[
EXCHANGE_INNER_STATUS_CONFIRM_FAILED
]:
'确认审核不通过'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
]:
'待审核退货发货单'
,
[
EXCHANGE_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
EXCHANGE_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
]:
'采购商待确认物流单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
]:
'待确认退货发货'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
]:
'待审核退货入库单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
]:
'待确认退货收货'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_DELIVERY
]:
'待新增换货发货单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_DELIVERY
]:
'待审核换货发货单'
,
[
EXCHANGE_INNER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
]:
'供应商待新增物流单'
,
[
EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS
]:
'供应商待确认物流单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_DELIVERY
]:
'待确认换货发货'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_STORAGE
]:
'待新增换货入库单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_STORAGE
]:
'待审核换货入库单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIVE
]:
'待确认换货收货'
,
[
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
]:
'审核不通过(二级)'
,
};
// 售后换货外部状态
/**
* 待提交
*/
export
const
EXCHANGE_OUTER_STATUS_UNCOMMITTED
=
1
;
/**
* 待确认申请单
*/
export
const
EXCHANGE_OUTER_UNCONFIRMED
=
2
;
/**
* 不接受申请
*/
export
const
EXCHANGE_OUTER_STATUS_FAILED
=
3
;
/**
* 接受申请
*/
export
const
EXCHANGE_OUTER_STATUS_SUCCESS
=
4
;
/**
* 待新增退货发货单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
5
;
/**
* 采购商待新增物流单
*/
export
const
EXCHANGE_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
6
;
/**
* 待退货发货
*/
export
const
EXCHANGE_OUTER_STATUS_RETURN_DELIVERY
=
7
;
/**
* 待新增退货入库单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
=
8
;
/**
* 待退货收货
*/
export
const
EXCHANGE_OUTER_STATUS_RETURN_RECEIVE
=
9
;
/**
* 待确认退货回单
*/
export
const
EXCHANGE_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
10
;
/**
* 待新增换货发货单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_DELIVERY
=
11
;
/**
* 供应商待新增物流单
*/
export
const
EXCHANGE_OUTER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
=
12
;
/**
* 待换货发货
*/
export
const
EXCHANGE_OUTER_STATUS_REPLACE_DELIVERY
=
13
;
/**
* 待新增换货入库单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_STORAGE
=
14
;
/**
* 待换货收货
*/
export
const
EXCHANGE_OUTER_STATUS_REPLACE_RECEIVE
=
15
;
/**
* 待确认换货回单
*/
export
const
EXCHANGE_OUTER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
=
16
;
/**
* 待确认售后完成
*/
export
const
EXCHANGE_OUTER_STATUS_UNCONFIRMED_FINISHED
=
17
;
/**
* 售后完成
*/
export
const
EXCHANGE_OUTER_STATUS_FINISHED
=
18
;
export
const
EXCHANGE_OUTER_STATUS
=
{
[
EXCHANGE_OUTER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
EXCHANGE_OUTER_UNCONFIRMED
]:
'待确认申请单'
,
[
EXCHANGE_OUTER_STATUS_FAILED
]:
'不接受申请'
,
[
EXCHANGE_OUTER_STATUS_SUCCESS
]:
'接受申请'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
EXCHANGE_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
EXCHANGE_OUTER_STATUS_RETURN_DELIVERY
]:
'待退货发货'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
EXCHANGE_OUTER_STATUS_RETURN_RECEIVE
]:
'待退货收货'
,
[
EXCHANGE_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_DELIVERY
]:
'待新增换货发货单'
,
[
EXCHANGE_OUTER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
]:
'供应商待新增物流单'
,
[
EXCHANGE_OUTER_STATUS_REPLACE_DELIVERY
]:
'待换货发货'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_STORAGE
]:
'待新增换货入库单'
,
[
EXCHANGE_OUTER_STATUS_REPLACE_RECEIVE
]:
'待换货收货'
,
[
EXCHANGE_OUTER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
]:
'待确认换货回单'
,
[
EXCHANGE_OUTER_STATUS_UNCONFIRMED_FINISHED
]:
'待确认售后完成'
,
[
EXCHANGE_OUTER_STATUS_FINISHED
]:
'售后完成'
,
};
// 售后退货内部状态
/**
* 待提交退货
*/
export
const
RETURN_INNER_STATUS_UNCOMMITTED
=
1
;
/**
* 审核通过(提交)
*/
export
const
RETURN_INNER_STATUS_COMMIT_SUCCESS
=
2
;
/**
* 一级审核通过
*/
export
const
RETURN_INNER_STATUS_SUCCESS_1
=
3
;
/**
* 二级审核通过
*/
export
const
RETURN_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 审核不通过(二级)
*/
export
const
RETURN_INNER_STATUS_FAILED_2
=
5
;
/**
* 确认审核通过
*/
export
const
RETURN_INNER_STATUS_CONFIRM_SUCCESS
=
6
;
/**
* 确认审核不通过
*/
export
const
RETURN_INNER_STATUS_CONFIRM_FAILED
=
7
;
/**
* 待新增退货发货单
*/
export
const
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
8
;
/**
* 待审核退货发货单
*/
export
const
RETURN_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
=
9
;
/**
* 采购商待新增物流单
*/
export
const
RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
10
;
/**
* 采购商待确认物流单
*/
export
const
RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
=
11
;
/**
* 待确认退货发货
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
=
12
;
/**
* 待新增退货入库单
*/
export
const
RETURN_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
=
13
;
/**
* 待审核退货入库单
*/
export
const
RETURN_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
=
14
;
/**
* 待确认退货收货
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
=
15
;
/**
* 待确认退货回单
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
16
;
/**
* 待退款
*/
export
const
RETURN_INNER_STATUS_TO_BE_REFUNDED
=
17
;
/**
* 待确认退款
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_REFUNDED
=
18
;
/**
* 退款失败
*/
export
const
RETURN_INNER_STATUS_REFUNDED_FAIL
=
19
;
/**
* 退款成功
*/
export
const
RETURN_INNER_STATUS_REFUNDED_SUCCESS
=
20
;
/**
* 待确认售后完成
*/
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_SUCCESS
]:
'审核通过(提交)'
,
[
RETURN_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
RETURN_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
RETURN_INNER_STATUS_FAILED_2
]:
'二级审核不通过'
,
[
RETURN_INNER_STATUS_CONFIRM_SUCCESS
]:
'确认审核通过'
,
[
RETURN_INNER_STATUS_CONFIRM_FAILED
]:
'确认审核不通过'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
RETURN_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
]:
'待审核退货发货单'
,
[
RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
]:
'采购商待确认物流单'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
]:
'待确认退货发货'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
RETURN_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
]:
'待审核退货入库单'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
]:
'待确认退货收货'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
RETURN_INNER_STATUS_TO_BE_REFUNDED
]:
'待退款'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_REFUNDED
]:
'待确认退款'
,
[
RETURN_INNER_STATUS_REFUNDED_FAIL
]:
'待确认退款'
,
[
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
]:
'审核不通过(一级)'
,
};
// 售后退货外部状态
/**
* 待提交
*/
export
const
RETURN_OUTER_STATUS_UNCOMMITTED
=
1
;
/**
* 待确认申请单
*/
export
const
RETURN_OUTER_UNCONFIRMED
=
2
;
/**
* 不接受申请
*/
export
const
RETURN_OUTER_STATUS_FAILED
=
3
;
/**
* 接受申请
*/
export
const
RETURN_OUTER_STATUS_SUCCESS
=
4
;
/**
* 待新增退货发货单
*/
export
const
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
5
;
/**
* 采购商待新增物流单
*/
export
const
RETURN_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
6
;
/**
* 待退货发货
*/
export
const
RETURN_OUTER_STATUS_RETURN_DELIVERY
=
7
;
/**
* 待新增退货入库单
*/
export
const
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
=
8
;
/**
* 待退货收货
*/
export
const
RETURN_OUTER_STATUS_RETURN_RECEIVE
=
9
;
/**
* 待确认退货回单
*/
export
const
RETURN_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
10
;
/**
* 待退款
*/
export
const
RETURN_OUTER_STATUS_TO_BE_REFUNDED
=
11
;
/**
* 待确认退款
*/
export
const
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
=
12
;
/**
* 确认退款未到账
*/
export
const
RETURN_OUTER_STATUS_NOT_RECEIVED
=
13
;
/**
* 待确认售后完成
*/
export
const
RETURN_OUTER_STATUS_UNCONFIRMED_FINISHED
=
14
;
/**
* 售后完成
*/
export
const
RETURN_OUTER_STATUS_FINISHED
=
15
;
export
const
RETURN_OUTER_STATUS
=
{
[
RETURN_OUTER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
RETURN_OUTER_UNCONFIRMED
]:
'待确认申请单'
,
[
RETURN_OUTER_STATUS_FAILED
]:
'不接受申请'
,
[
RETURN_OUTER_STATUS_SUCCESS
]:
'接受申请'
,
[
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
RETURN_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
RETURN_OUTER_STATUS_RETURN_DELIVERY
]:
'待退货发货'
,
[
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
RETURN_OUTER_STATUS_RETURN_RECEIVE
]:
'待退货收货'
,
[
RETURN_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
RETURN_OUTER_STATUS_TO_BE_REFUNDED
]:
'待退款'
,
[
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
]:
'待确认退款'
,
[
RETURN_OUTER_STATUS_NOT_RECEIVED
]:
'确认退款未到账'
,
[
RETURN_OUTER_STATUS_UNCONFIRMED_FINISHED
]:
'待确认售后完成'
,
[
RETURN_OUTER_STATUS_FINISHED
]:
'售后完成'
,
}
export
const
DELIVERY_TYPE_ENUM
=
[
{
label
:
'物流'
,
value
:
1
},
{
label
:
'自提'
,
value
:
2
},
{
label
:
'无需配送'
,
value
:
3
},
]
src/constants/index.ts
View file @
2a6d1e50
...
...
@@ -4,6 +4,8 @@ export const NOT_CHANGE_VALUE = 'hello, world'
export
const
SOCKET_URL
=
process
.
env
.
SOCKET_URL
?.
replace
(
'http|https'
,
'ws'
)
||
process
.
env
.
BACK_GATEWAY
?.
replace
(
'http|https'
,
'ws'
)
console
.
log
(
SOCKET_URL
);
export
const
MALL_TYPE
=
{
1
:
'企业商城'
,
2
:
'积分商城'
,
...
...
@@ -12,6 +14,8 @@ export const MALL_TYPE = {
5
:
'渠道积分商城'
}
export
enum
SHOP_TYPE
{
/** 企业商城 */
mall
=
1
,
...
...
@@ -26,6 +30,7 @@ export enum SHOP_TYPE {
}
export
enum
LAYOUT_TYPE
{
/**
* 企业商城
...
...
@@ -65,9 +70,14 @@ export enum LAYOUT_TYPE {
purchaseOnline
=
'purchaseOnline'
}
// 本地环境跳过权限校验
export
const
isDev
=
process
.
env
.
NODE_ENV
===
"development"
// 暂时将权限访问关闭
// export const isDev = false
...
...
@@ -79,6 +89,8 @@ export const Environment_Status = {
4
:
"APP"
}
export
enum
FILTER_TYPE
{
/**
* 常用筛选
...
...
@@ -222,7 +234,10 @@ export enum FILTER_TYPE {
shopArea
=
'shopArea'
}
// 商城类型
export
const
SHOP_TYPES
=
[
{
value
:
1
,
...
...
@@ -246,6 +261,7 @@ export const SHOP_TYPES = [
},
]
export
const
STATUS_ENUM
=
[
{
label
:
'全部'
,
...
...
@@ -261,45 +277,12 @@ export const STATUS_ENUM = [
}
]
// 1是阿里云oss服务器, 2是本地文件服务器
// 2020/10/21 本地文件服务器关闭, 现全部上传到oss - xjm
export
const
UPLOAD_TYPE
=
1
// 会员规则类型
/**
* 交易
*/
export
const
VIP_RULE_TRANSACTION
=
1
;
/**
* 登录
*/
export
const
VIP_RULE_LOGIN
=
2
;
/**
* 评论
*/
export
const
VIP_RULE_COMMENT
=
3
;
export
const
DELIVERY_TYPE_ENUM
=
[
{
label
:
'物流'
,
value
:
1
},
{
label
:
'自提'
,
value
:
2
},
{
label
:
'无需配送'
,
value
:
3
},
]
// 会员角色类型
/**
* 服务提供者
*/
export
const
MEMBER_ROLE_TYPE_SERVICE_PROVIDER
=
1
;
/**
* 服务消费者
*/
export
const
MEMBER_ROLE_TYPE_SERVICE_CONSUMER
=
2
;
// 1是阿里云oss服务器, 2是本地文件服务器
// 2020/10/21 本地文件服务器关闭, 现全部上传到oss - xjm
export
const
UPLOAD_TYPE
=
1
...
...
@@ -317,706 +300,3 @@ export enum COMMODITY_TYPE {
*/
integral
=
3
}
// 支付外部状态
export
enum
PayOutWorkState
{
READY_PAY
=
1
,
READY_CONFIRM_RESULT
,
CONFIRM_ACCOUNT
,
CONFIRM_NOT_ACCOUNT
}
// 订单流转记录外部状态
export
const
OrderTransformOutWorkStateTexts
=
{
"-1"
:
'取消订单'
,
0
:
'订单完成'
,
1
:
'待确认'
,
2
:
'待确认电子合同'
,
3
:
'待支付'
,
4
:
'待确认支付结果'
,
5
:
'待新增销售发货单'
,
6
:
'待新增物流单'
,
7
:
'待确认发货订单'
,
8
:
'待新增采购入库单'
,
9
:
'待确认收货订单'
,
10
:
'待确认收货订单'
,
11
:
'待确认回单'
,
12
:
'待归档'
,
13
:
'待归档'
,
14
:
'不接受订单'
,
15
:
'确认未到账'
,
16
:
'待新增采购入库单'
,
17
:
'手工确认发货'
,
}
// 采购订单流转记录内部状态
export
const
PurchaseOrderTransformInsideWorkStateTexts
=
{
"-1"
:
'取消订单'
,
0
:
'订单完成'
,
1
:
'待提交审核'
,
2
:
'提交审核通过'
,
3
:
'审核通过(一级)'
,
4
:
'审核通过(二级)'
,
5
:
'审核通过'
,
6
:
'已确认电子合同'
,
7
:
'审核不通过(一级)'
,
8
:
'审核不通过(二级)'
,
9
:
'支付成功'
,
10
:
'支付失败'
,
11
:
'已审核采购入库单'
,
12
:
'已确认收货'
,
13
:
'订单归档完成'
,
14
:
'修改订单'
,
15
:
'手工收货'
}
// 销售订单流转记录内部状态
export
const
SaleOrderTransformInsideWorkStateTexts
=
{
"-1"
:
'取消订单'
,
0
:
'完成订单'
,
1
:
'审核通过'
,
2
:
'审核通过(一级)'
,
3
:
'审核通过(二级)'
,
4
:
'接受订单'
,
5
:
'确认到账'
,
6
:
'已审核销售发货单'
,
7
:
'接受物流单'
,
8
:
'已确认发货'
,
9
:
'已确认回单'
,
10
:
'已归档'
,
11
:
'审核不通过(一级)'
,
12
:
'审核不通过(二级)'
,
13
:
'不接受订单'
,
14
:
'确认未到账'
,
15
:
'审核不通过'
,
16
:
'不接受物流单'
,
17
:
'审核不通过'
,
}
export
const
PayOutWorkStateTexts
=
{
1
:
'待支付'
,
2
:
'待确认支付结果'
,
3
:
'确认到账'
,
4
:
'确认未到账'
}
// 收货/发货内部状态文案
export
const
DeliverySideStateTexts
=
{
1
:
'新增销售发货单'
,
2
:
'待确认发货订单'
,
3
:
'待新增入库单'
,
// 采购-新增入库单
4
:
'待确认收货订单'
,
5
:
'待回单订单'
,
6
:
'已回单'
,
}
// 询价外部状态
export
const
InquiryStateTexts
=
{
1
:
'待提交'
,
2
:
'待确认'
,
3
:
'接受报价'
,
4
:
'不接受报价'
,
}
// 售后维修内部状态
/**
* 待提交维修
*/
export
const
REPAIR_INNER_STATUS_UNCOMMITTED
=
1
;
/**
* 审核通过(提交)
*/
export
const
REPAIR_INNER_STATUS_COMMIT_SUCCESS
=
2
;
/**
* 一级审核通过
*/
export
const
REPAIR_INNER_STATUS_SUCCESS_1
=
3
;
/**
* 二级审核通过
*/
export
const
REPAIR_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 二级审核不通过
*/
export
const
REPAIR_INNER_STATUS_FAILED_2
=
5
;
/**
* 确认审核通过
*/
export
const
REPAIR_INNER_STATUS_CONFIRM_SUCCESS
=
6
;
/**
* 确认审核不通过
*/
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_SUCCESS
]:
'审核通过(提交)'
,
[
REPAIR_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
REPAIR_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
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
]:
'审核不通过(一级)'
,
};
// 售后维修外部状态
/**
* 待提交申请单
*/
export
const
REPAIR_OUTER_STATUS_UNCOMMITTED
=
1
;
/**
* 待确认
*/
export
const
REPAIR_OUTER_STATUS_UNCONFIRMED
=
2
;
/**
* 不接受申请
*/
export
const
REPAIR_OUTER_STATUS_FAILED
=
3
;
/**
* 接受申请
*/
export
const
REPAIR_OUTER_STATUS_SUCCESS
=
4
;
/**
* 售后完成
*/
export
const
REPAIR_OUTER_STATUS_FINISHED
=
5
;
export
const
REPAIR_OUTER_STATUS
=
{
[
REPAIR_OUTER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
REPAIR_OUTER_STATUS_UNCONFIRMED
]:
'待确认'
,
[
REPAIR_OUTER_STATUS_FAILED
]:
'不接受申请'
,
[
REPAIR_OUTER_STATUS_SUCCESS
]:
'接受申请'
,
[
REPAIR_OUTER_STATUS_FINISHED
]:
'售后完成'
,
};
// 售后换货内部状态
/**
* 待提交换货
*/
export
const
EXCHANGE_INNER_STATUS_UNCOMMITTED
=
1
;
/**
* 审核通过(提交)
*/
export
const
EXCHANGE_INNER_STATUS_COMMIT_SUCCESS
=
2
;
/**
* 一级审核通过
*/
export
const
EXCHANGE_INNER_STATUS_SUCCESS_1
=
3
;
/**
* 二级审核通过
*/
export
const
EXCHANGE_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 审核不通过(不接受申请)
*/
export
const
EXCHANGE_INNER_STATUS_FAILED
=
5
;
/**
* 确认审核通过
*/
export
const
EXCHANGE_INNER_STATUS_CONFIRM_SUCCESS
=
6
;
/**
* 确认审核不通过
*/
export
const
EXCHANGE_INNER_STATUS_CONFIRM_FAILED
=
7
;
/**
* 待新增退货发货单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
8
;
/**
* 待审核退货发货单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
=
9
;
/**
* 采购商待新增物流单
*/
export
const
EXCHANGE_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
10
;
/**
* 采购商待确认物流单
*/
export
const
EXCHANGE_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
=
11
;
/**
* 待确认退货发货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
=
12
;
/**
* 待新增退货入库单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
=
13
;
/**
* 待审核退货入库单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
=
14
;
/**
* 待确认退货收货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
=
15
;
/**
* 待确认退货回单
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
16
;
/**
* 待新增换货发货单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_DELIVERY
=
17
;
/**
* 待审核换货发货单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_DELIVERY
=
18
;
/**
* 供应商待新增物流单
*/
export
const
EXCHANGE_INNER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
=
19
;
/**
* 供应商待确认物流单
*/
export
const
EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS
=
20
;
/**
* 待确认换货发货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_DELIVERY
=
21
;
/**
* 待新增换货入库单
*/
export
const
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_STORAGE
=
22
;
/**
* 待审核换货入库单
*/
export
const
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_STORAGE
=
23
;
/**
* 待确认换货收货
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIVE
=
24
;
/**
* 待确认换货回单
*/
export
const
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
=
25
;
/**
* 待确认售后完成
*/
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_SUCCESS
]:
'审核通过(提交)'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
EXCHANGE_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
EXCHANGE_INNER_STATUS_FAILED
]:
'审核不通过'
,
[
EXCHANGE_INNER_STATUS_CONFIRM_SUCCESS
]:
'确认审核通过'
,
[
EXCHANGE_INNER_STATUS_CONFIRM_FAILED
]:
'确认审核不通过'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
]:
'待审核退货发货单'
,
[
EXCHANGE_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
EXCHANGE_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
]:
'采购商待确认物流单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
]:
'待确认退货发货'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
]:
'待审核退货入库单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
]:
'待确认退货收货'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_DELIVERY
]:
'待新增换货发货单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_DELIVERY
]:
'待审核换货发货单'
,
[
EXCHANGE_INNER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
]:
'供应商待新增物流单'
,
[
EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS
]:
'供应商待确认物流单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_DELIVERY
]:
'待确认换货发货'
,
[
EXCHANGE_INNER_STATUS_NOT_ADDED_REPLACE_STORAGE
]:
'待新增换货入库单'
,
[
EXCHANGE_INNER_STATUS_UNREVIEWED_REPLACE_STORAGE
]:
'待审核换货入库单'
,
[
EXCHANGE_INNER_STATUS_UNCONFIRMED_REPLACE_RECEIVE
]:
'待确认换货收货'
,
[
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
]:
'审核不通过(二级)'
,
};
// 售后换货外部状态
/**
* 待提交
*/
export
const
EXCHANGE_OUTER_STATUS_UNCOMMITTED
=
1
;
/**
* 待确认申请单
*/
export
const
EXCHANGE_OUTER_UNCONFIRMED
=
2
;
/**
* 不接受申请
*/
export
const
EXCHANGE_OUTER_STATUS_FAILED
=
3
;
/**
* 接受申请
*/
export
const
EXCHANGE_OUTER_STATUS_SUCCESS
=
4
;
/**
* 待新增退货发货单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
5
;
/**
* 采购商待新增物流单
*/
export
const
EXCHANGE_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
6
;
/**
* 待退货发货
*/
export
const
EXCHANGE_OUTER_STATUS_RETURN_DELIVERY
=
7
;
/**
* 待新增退货入库单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
=
8
;
/**
* 待退货收货
*/
export
const
EXCHANGE_OUTER_STATUS_RETURN_RECEIVE
=
9
;
/**
* 待确认退货回单
*/
export
const
EXCHANGE_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
10
;
/**
* 待新增换货发货单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_DELIVERY
=
11
;
/**
* 供应商待新增物流单
*/
export
const
EXCHANGE_OUTER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
=
12
;
/**
* 待换货发货
*/
export
const
EXCHANGE_OUTER_STATUS_REPLACE_DELIVERY
=
13
;
/**
* 待新增换货入库单
*/
export
const
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_STORAGE
=
14
;
/**
* 待换货收货
*/
export
const
EXCHANGE_OUTER_STATUS_REPLACE_RECEIVE
=
15
;
/**
* 待确认换货回单
*/
export
const
EXCHANGE_OUTER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
=
16
;
/**
* 待确认售后完成
*/
export
const
EXCHANGE_OUTER_STATUS_UNCONFIRMED_FINISHED
=
17
;
/**
* 售后完成
*/
export
const
EXCHANGE_OUTER_STATUS_FINISHED
=
18
;
export
const
EXCHANGE_OUTER_STATUS
=
{
[
EXCHANGE_OUTER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
EXCHANGE_OUTER_UNCONFIRMED
]:
'待确认申请单'
,
[
EXCHANGE_OUTER_STATUS_FAILED
]:
'不接受申请'
,
[
EXCHANGE_OUTER_STATUS_SUCCESS
]:
'接受申请'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
EXCHANGE_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
EXCHANGE_OUTER_STATUS_RETURN_DELIVERY
]:
'待退货发货'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
EXCHANGE_OUTER_STATUS_RETURN_RECEIVE
]:
'待退货收货'
,
[
EXCHANGE_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_DELIVERY
]:
'待新增换货发货单'
,
[
EXCHANGE_OUTER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS
]:
'供应商待新增物流单'
,
[
EXCHANGE_OUTER_STATUS_REPLACE_DELIVERY
]:
'待换货发货'
,
[
EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_STORAGE
]:
'待新增换货入库单'
,
[
EXCHANGE_OUTER_STATUS_REPLACE_RECEIVE
]:
'待换货收货'
,
[
EXCHANGE_OUTER_STATUS_UNCONFIRMED_REPLACE_RECEIPT
]:
'待确认换货回单'
,
[
EXCHANGE_OUTER_STATUS_UNCONFIRMED_FINISHED
]:
'待确认售后完成'
,
[
EXCHANGE_OUTER_STATUS_FINISHED
]:
'售后完成'
,
};
// 售后退货内部状态
/**
* 待提交退货
*/
export
const
RETURN_INNER_STATUS_UNCOMMITTED
=
1
;
/**
* 审核通过(提交)
*/
export
const
RETURN_INNER_STATUS_COMMIT_SUCCESS
=
2
;
/**
* 一级审核通过
*/
export
const
RETURN_INNER_STATUS_SUCCESS_1
=
3
;
/**
* 二级审核通过
*/
export
const
RETURN_INNER_STATUS_SUCCESS_2
=
4
;
/**
* 审核不通过(二级)
*/
export
const
RETURN_INNER_STATUS_FAILED_2
=
5
;
/**
* 确认审核通过
*/
export
const
RETURN_INNER_STATUS_CONFIRM_SUCCESS
=
6
;
/**
* 确认审核不通过
*/
export
const
RETURN_INNER_STATUS_CONFIRM_FAILED
=
7
;
/**
* 待新增退货发货单
*/
export
const
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
8
;
/**
* 待审核退货发货单
*/
export
const
RETURN_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
=
9
;
/**
* 采购商待新增物流单
*/
export
const
RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
10
;
/**
* 采购商待确认物流单
*/
export
const
RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
=
11
;
/**
* 待确认退货发货
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
=
12
;
/**
* 待新增退货入库单
*/
export
const
RETURN_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
=
13
;
/**
* 待审核退货入库单
*/
export
const
RETURN_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
=
14
;
/**
* 待确认退货收货
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
=
15
;
/**
* 待确认退货回单
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
16
;
/**
* 待退款
*/
export
const
RETURN_INNER_STATUS_TO_BE_REFUNDED
=
17
;
/**
* 待确认退款
*/
export
const
RETURN_INNER_STATUS_UNCONFIRMED_REFUNDED
=
18
;
/**
* 退款失败
*/
export
const
RETURN_INNER_STATUS_REFUNDED_FAIL
=
19
;
/**
* 退款成功
*/
export
const
RETURN_INNER_STATUS_REFUNDED_SUCCESS
=
20
;
/**
* 待确认售后完成
*/
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_SUCCESS
]:
'审核通过(提交)'
,
[
RETURN_INNER_STATUS_SUCCESS_1
]:
'一级审核通过'
,
[
RETURN_INNER_STATUS_SUCCESS_2
]:
'二级审核通过'
,
[
RETURN_INNER_STATUS_FAILED_2
]:
'二级审核不通过'
,
[
RETURN_INNER_STATUS_CONFIRM_SUCCESS
]:
'确认审核通过'
,
[
RETURN_INNER_STATUS_CONFIRM_FAILED
]:
'确认审核不通过'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
RETURN_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY
]:
'待审核退货发货单'
,
[
RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS
]:
'采购商待确认物流单'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY
]:
'待确认退货发货'
,
[
RETURN_INNER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
RETURN_INNER_STATUS_UNREVIEWED_RETURN_STORAGE
]:
'待审核退货入库单'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIVE
]:
'待确认退货收货'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
RETURN_INNER_STATUS_TO_BE_REFUNDED
]:
'待退款'
,
[
RETURN_INNER_STATUS_UNCONFIRMED_REFUNDED
]:
'待确认退款'
,
[
RETURN_INNER_STATUS_REFUNDED_FAIL
]:
'待确认退款'
,
[
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
]:
'审核不通过(一级)'
,
};
// 售后退货外部状态
/**
* 待提交
*/
export
const
RETURN_OUTER_STATUS_UNCOMMITTED
=
1
;
/**
* 待确认申请单
*/
export
const
RETURN_OUTER_UNCONFIRMED
=
2
;
/**
* 不接受申请
*/
export
const
RETURN_OUTER_STATUS_FAILED
=
3
;
/**
* 接受申请
*/
export
const
RETURN_OUTER_STATUS_SUCCESS
=
4
;
/**
* 待新增退货发货单
*/
export
const
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
=
5
;
/**
* 采购商待新增物流单
*/
export
const
RETURN_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
=
6
;
/**
* 待退货发货
*/
export
const
RETURN_OUTER_STATUS_RETURN_DELIVERY
=
7
;
/**
* 待新增退货入库单
*/
export
const
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
=
8
;
/**
* 待退货收货
*/
export
const
RETURN_OUTER_STATUS_RETURN_RECEIVE
=
9
;
/**
* 待确认退货回单
*/
export
const
RETURN_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
=
10
;
/**
* 待退款
*/
export
const
RETURN_OUTER_STATUS_TO_BE_REFUNDED
=
11
;
/**
* 待确认退款
*/
export
const
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
=
12
;
/**
* 确认退款未到账
*/
export
const
RETURN_OUTER_STATUS_NOT_RECEIVED
=
13
;
/**
* 待确认售后完成
*/
export
const
RETURN_OUTER_STATUS_UNCONFIRMED_FINISHED
=
14
;
/**
* 售后完成
*/
export
const
RETURN_OUTER_STATUS_FINISHED
=
15
;
export
const
RETURN_OUTER_STATUS
=
{
[
RETURN_OUTER_STATUS_UNCOMMITTED
]:
'待提交'
,
[
RETURN_OUTER_UNCONFIRMED
]:
'待确认申请单'
,
[
RETURN_OUTER_STATUS_FAILED
]:
'不接受申请'
,
[
RETURN_OUTER_STATUS_SUCCESS
]:
'接受申请'
,
[
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY
]:
'待新增退货发货单'
,
[
RETURN_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS
]:
'采购商待新增物流单'
,
[
RETURN_OUTER_STATUS_RETURN_DELIVERY
]:
'待退货发货'
,
[
RETURN_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE
]:
'待新增退货入库单'
,
[
RETURN_OUTER_STATUS_RETURN_RECEIVE
]:
'待退货收货'
,
[
RETURN_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT
]:
'待确认退货回单'
,
[
RETURN_OUTER_STATUS_TO_BE_REFUNDED
]:
'待退款'
,
[
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
]:
'待确认退款'
,
[
RETURN_OUTER_STATUS_NOT_RECEIVED
]:
'确认退款未到账'
,
[
RETURN_OUTER_STATUS_UNCONFIRMED_FINISHED
]:
'待确认售后完成'
,
[
RETURN_OUTER_STATUS_FINISHED
]:
'售后完成'
,
}
// 支付方式
/**
* 线上支付
*/
export
const
PAY_WAY_ONLINE
=
1
;
/**
* 线下支付
*/
export
const
PAY_WAY_OFFLINE
=
2
;
/**
* 授信支付
*/
export
const
PAY_WAY_CREDIT
=
3
;
/**
* 货到付款
*/
export
const
PAY_WAY_COD
=
4
;
/**
* 账期
*/
export
const
PAY_WAY_DEADLINE
=
5
;
/**
* 月结
*/
export
const
PAY_WAY_MONTH
=
6
;
/**
* 合同内清算
*/
export
const
PAY_WAY_CONTRACT
=
7
;
/**
* 支付方式对应中文
*/
export
const
PAYWAY
=
{
[
PAY_WAY_ONLINE
]:
'线上支付'
,
[
PAY_WAY_OFFLINE
]:
'线下支付'
,
[
PAY_WAY_CREDIT
]:
'授信支付'
,
[
PAY_WAY_COD
]:
'货到付款'
,
[
PAY_WAY_DEADLINE
]:
'账期'
,
[
PAY_WAY_MONTH
]:
'月结'
,
[
PAY_WAY_CONTRACT
]:
'合同内清算'
,
};
src/constants/member.ts
View file @
2a6d1e50
...
...
@@ -131,3 +131,29 @@ export const MEMBER_INNER_STATUS = {
[
MEMBER_LEVEL_TYPE_MERCHANT
]:
'商户会员'
,
[
MEMBER_LEVEL_TYPE_CHANNEL
]:
'渠道会员'
,
};
/* --------------------------------- 会员规则类型 -------------------------------- */
/**
* 交易
*/
export
const
VIP_RULE_TRANSACTION
=
1
;
/**
* 登录
*/
export
const
VIP_RULE_LOGIN
=
2
;
/**
* 评论
*/
export
const
VIP_RULE_COMMENT
=
3
;
/* --------------------------------- 会员角色类型 -------------------------------- */
/**
* 服务提供者
*/
export
const
MEMBER_ROLE_TYPE_SERVICE_PROVIDER
=
1
;
/**
* 服务消费者
*/
export
const
MEMBER_ROLE_TYPE_SERVICE_CONSUMER
=
2
;
src/constants/order.ts
View file @
2a6d1e50
...
...
@@ -653,3 +653,124 @@ export enum DeliverySideState {
*/
CONFIRM_RETURN_ORDER
}
// 订单支付外部状态
export
enum
PayOutWorkState
{
READY_PAY
=
1
,
READY_CONFIRM_RESULT
,
CONFIRM_ACCOUNT
,
CONFIRM_NOT_ACCOUNT
}
// 订单流转记录外部状态
export
const
OrderTransformOutWorkStateTexts
=
{
"-1"
:
'取消订单'
,
0
:
'订单完成'
,
1
:
'待确认'
,
2
:
'待确认电子合同'
,
3
:
'待支付'
,
4
:
'待确认支付结果'
,
5
:
'待新增销售发货单'
,
6
:
'待新增物流单'
,
7
:
'待确认发货订单'
,
8
:
'待新增采购入库单'
,
9
:
'待确认收货订单'
,
10
:
'待确认收货订单'
,
11
:
'待确认回单'
,
12
:
'待归档'
,
13
:
'待归档'
,
14
:
'不接受订单'
,
15
:
'确认未到账'
,
16
:
'待新增采购入库单'
,
17
:
'手工确认发货'
,
}
// 采购订单流转记录内部状态
export
const
PurchaseOrderTransformInsideWorkStateTexts
=
{
"-1"
:
'取消订单'
,
0
:
'订单完成'
,
1
:
'待提交审核'
,
2
:
'提交审核通过'
,
3
:
'审核通过(一级)'
,
4
:
'审核通过(二级)'
,
5
:
'审核通过'
,
6
:
'已确认电子合同'
,
7
:
'审核不通过(一级)'
,
8
:
'审核不通过(二级)'
,
9
:
'支付成功'
,
10
:
'支付失败'
,
11
:
'已审核采购入库单'
,
12
:
'已确认收货'
,
13
:
'订单归档完成'
,
14
:
'修改订单'
,
15
:
'手工收货'
}
// 销售订单流转记录内部状态
export
const
SaleOrderTransformInsideWorkStateTexts
=
{
"-1"
:
'取消订单'
,
0
:
'完成订单'
,
1
:
'审核通过'
,
2
:
'审核通过(一级)'
,
3
:
'审核通过(二级)'
,
4
:
'接受订单'
,
5
:
'确认到账'
,
6
:
'已审核销售发货单'
,
7
:
'接受物流单'
,
8
:
'已确认发货'
,
9
:
'已确认回单'
,
10
:
'已归档'
,
11
:
'审核不通过(一级)'
,
12
:
'审核不通过(二级)'
,
13
:
'不接受订单'
,
14
:
'确认未到账'
,
15
:
'审核不通过'
,
16
:
'不接受物流单'
,
17
:
'审核不通过'
,
}
export
const
PayOutWorkStateTexts
=
{
1
:
'待支付'
,
2
:
'待确认支付结果'
,
3
:
'确认到账'
,
4
:
'确认未到账'
}
// 收货/发货内部状态文案
export
const
DeliverySideStateTexts
=
{
1
:
'新增销售发货单'
,
2
:
'待确认发货订单'
,
3
:
'待新增入库单'
,
// 采购-新增入库单
4
:
'待确认收货订单'
,
5
:
'待回单订单'
,
6
:
'已回单'
,
}
// 询价外部状态
export
const
InquiryStateTexts
=
{
1
:
'待提交'
,
2
:
'待确认'
,
3
:
'接受报价'
,
4
:
'不接受报价'
,
}
src/constants/payment.ts
View file @
2a6d1e50
...
...
@@ -233,3 +233,49 @@ export const BILL_TRADE_OPERATION = {
[
PAY_CHANNEL_CREDIT
]:
'授信'
,
[
PAY_CHANNEL_COD
]:
'货到付款'
,
};
// 支付方式
/**
* 线上支付
*/
export
const
PAY_WAY_ONLINE
=
1
;
/**
* 线下支付
*/
export
const
PAY_WAY_OFFLINE
=
2
;
/**
* 授信支付
*/
export
const
PAY_WAY_CREDIT
=
3
;
/**
* 货到付款
*/
export
const
PAY_WAY_COD
=
4
;
/**
* 账期
*/
export
const
PAY_WAY_DEADLINE
=
5
;
/**
* 月结
*/
export
const
PAY_WAY_MONTH
=
6
;
/**
* 合同内清算
*/
export
const
PAY_WAY_CONTRACT
=
7
;
/**
* 支付方式对应中文
*/
export
const
PAYWAY
=
{
[
PAY_WAY_ONLINE
]:
'线上支付'
,
[
PAY_WAY_OFFLINE
]:
'线下支付'
,
[
PAY_WAY_CREDIT
]:
'授信支付'
,
[
PAY_WAY_COD
]:
'货到付款'
,
[
PAY_WAY_DEADLINE
]:
'账期'
,
[
PAY_WAY_MONTH
]:
'月结'
,
[
PAY_WAY_CONTRACT
]:
'合同内清算'
,
};
src/pages/transaction/_public/order/constant.ts
View file @
2a6d1e50
import
{
ISchema
}
from
'@formily/antd'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
OrderTypeMap
,
PurchaseOrderInsideWorkStateTexts
,
PurchaseOrderOutWorkStateTexts
}
from
'@/constants'
import
{
OrderTypeMap
,
PurchaseOrderInsideWorkStateTexts
,
PurchaseOrderOutWorkStateTexts
}
from
'@/constants
/order
'
export
const
orderTypeLabel
=
[
''
,
...
...
src/pages/transaction/components/StatusColors/index.tsx
View file @
2a6d1e50
import
React
from
'react'
import
{
Tag
}
from
'antd'
import
{
PurchaseOrderInsideWorkStateTexts
,
PurchaseOrderOutWorkStateTexts
,
PurchaseOrderInsideWorkState
,
PurchaseOrderOutWorkState
,
SaleOrderInsideWorkState
,
SaleOrderInsideWorkStateTexts
,
PayOutWorkStateTexts
,
DeliverySideState
,
DeliverySideStateTexts
,
InquiryStateTexts
,
OrderTransformOutWorkStateTexts
,
PurchaseOrderTransformInsideWorkStateTexts
,
SaleOrderTransformInsideWorkStateTexts
}
from
'@/constants'
import
{
PurchaseOrderInsideWorkStateTexts
,
PurchaseOrderOutWorkStateTexts
,
PurchaseOrderInsideWorkState
,
PurchaseOrderOutWorkState
,
SaleOrderInsideWorkStateTexts
,
PayOutWorkStateTexts
,
DeliverySideStateTexts
,
InquiryStateTexts
,
OrderTransformOutWorkStateTexts
,
PurchaseOrderTransformInsideWorkStateTexts
,
SaleOrderTransformInsideWorkStateTexts
}
from
'@/constants/order'
export
interface
IStatusColor
{
[
key
:
string
]:
{
...
...
src/pages/transaction/components/orderDeleveRecord/index.tsx
View file @
2a6d1e50
...
...
@@ -5,7 +5,7 @@ import { formatTimeString } from '@/utils'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
MellowCard
from
'@/components/MellowCard'
import
NestTable
from
'@/components/NestTable'
import
{
SaleOrderInsideWorkState
,
DeliverySideState
}
from
'@/constants
'
import
{
DeliverySideState
}
from
'@/constants/order
'
import
{
PublicApi
}
from
'@/services/api'
import
{
history
}
from
'umi'
...
...
src/pages/transaction/components/orderDetailSection/index.tsx
View file @
2a6d1e50
...
...
@@ -8,7 +8,7 @@ import OrderMergeInfo from '../../components/orderMergeInfo'
import
OrderDeleveRecord
from
'../../components/orderDeleveRecord'
import
OrderTransformRecord
from
'../../components/orderTransformRecord'
import
OrderSaleRecord
from
'../orderSaleRecord'
import
{
ORDER_TYPE2_BIDDING_CONTRACT
,
ORDER_TYPE2_ENQUIRY_CONTRACT
,
ORDER_TYPE2_TENDER_CONTRACT
}
from
'@/constants'
import
{
ORDER_TYPE2_BIDDING_CONTRACT
,
ORDER_TYPE2_ENQUIRY_CONTRACT
,
ORDER_TYPE2_TENDER_CONTRACT
}
from
'@/constants
/order
'
export
interface
OrderDetailSectionProps
{
formContext
:
any
,
...
...
src/pages/transaction/components/orderMergeInfo/index.tsx
View file @
2a6d1e50
...
...
@@ -3,11 +3,10 @@ import { Row, Col, Tag, Modal } from 'antd'
import
MellowCard
from
'@/components/MellowCard'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
{
formatTimeString
}
from
'@/utils'
import
{
DELIVERY_TYPE
}
from
'@/constants'
import
{
DELIVERY_TYPE
}
from
'@/constants
/order
'
import
style
from
'./index.less'
import
ContractList
from
'../ContractList'
import
cx
from
'classnames'
import
{
PublicApi
}
from
'@/services/api'
export
interface
OrderMergeInfoProps
{
}
const
payInfo
=
[
...
...
src/pages/transaction/components/orderPayResultModal/index.tsx
View file @
2a6d1e50
import
React
,
{
useState
,
useEffect
,
useContext
,
useRef
}
from
'react'
import
{
Modal
,
List
,
Avatar
,
Button
,
Space
}
from
'antd'
import
{
Modal
,
List
,
Button
,
Space
}
from
'antd'
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
{
PayOutWorkState
}
from
'@/constants'
import
{
PayOutWorkState
}
from
'@/constants
/order
'
import
{
PublicApi
}
from
'@/services/api'
import
{
history
,
Link
}
from
'umi'
import
{
history
}
from
'umi'
import
OverflowText
from
'@/components/OverflowText'
import
{
useHttpRequest
}
from
'@/hooks/useHttpRequest'
import
ImagePreview
from
'@/components/ImagePreview'
...
...
src/pages/transaction/components/orderPayTabs/index.tsx
View file @
2a6d1e50
...
...
@@ -5,7 +5,7 @@ import { OrderDetailContext } from '../../_public/order/context'
import
MellowCard
from
'@/components/MellowCard'
import
StatusColors
from
'../StatusColors'
import
moment
from
'moment'
import
{
PayOutWorkState
}
from
'@/constants'
import
{
PayOutWorkState
}
from
'@/constants
/order
'
import
OverflowText
from
'@/components/OverflowText'
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
...
...
src/pages/transaction/components/orderProductTable/index.tsx
View file @
2a6d1e50
import
React
,
{
useContext
,
useState
,
useRef
,
useEffect
}
from
'react'
import
{
StandardTable
}
from
'god'
import
{
Card
,
Table
,
Form
,
Input
,
Row
,
Col
,
Button
,
Modal
}
from
'antd'
import
{
Table
,
Form
,
Input
,
Row
,
Col
}
from
'antd'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
{
EditOutlined
,
SettingOutlined
}
from
'@ant-design/icons'
import
style
from
'./index.less'
import
{
EditOutlined
}
from
'@ant-design/icons'
import
{
PublicApi
}
from
'@/services/api'
import
styled
from
'styled-components'
import
ModalForm
from
'@/components/ModalForm'
import
{
createFormActions
}
from
'@formily/antd'
import
MellowCard
from
'@/components/MellowCard'
import
{
AddressPop
}
from
'../../purchaseOrder/orderCollect/components/productModalTable'
import
{
DELIVERY_TYPE
,
OrderModalType
}
from
'@/constants'
import
{
DELIVERY_TYPE
,
OrderModalType
}
from
'@/constants
/order
'
export
interface
OrderProductTableProps
{
editable
:
boolean
...
...
src/pages/transaction/components/orderSaleRecord/index.tsx
View file @
2a6d1e50
import
React
,
{
useCallback
,
useContext
,
use
Effect
,
use
Ref
,
useState
}
from
'react'
import
React
,
{
useCallback
,
useContext
,
useRef
,
useState
}
from
'react'
import
{
Tabs
,
Table
,
Button
,
Space
,
Modal
}
from
'antd'
import
StatusColors
from
'@/pages/transaction/components/StatusColors'
import
{
formatTimeString
}
from
'@/utils'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
MellowCard
from
'@/components/MellowCard'
import
NestTable
from
'@/components/NestTable'
import
{
DeliverySideState
}
from
'@/constants'
import
{
DeliverySideState
}
from
'@/constants
/order
'
import
{
PublicApi
}
from
'@/services/api'
import
{
history
}
from
'umi'
import
{
ExclamationCircleOutlined
}
from
'@ant-design/icons'
...
...
src/pages/transaction/components/saleOrderProductTable/index.tsx
View file @
2a6d1e50
import
React
,
{
useContext
,
useState
,
useRef
,
useEffect
,
useCallback
}
from
'react'
import
{
Card
,
Table
,
Form
,
Input
,
Row
,
Col
,
Button
,
Modal
}
from
'antd'
import
{
Table
,
Form
,
Input
,
Row
,
Col
,
Button
}
from
'antd'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
{
EditOutlined
,
SettingOutlined
}
from
'@ant-design/icons'
import
style
from
'./index.less'
import
{
PublicApi
}
from
'@/services/api'
import
styled
from
'styled-components'
import
ModalForm
from
'@/components/ModalForm'
import
{
createFormActions
}
from
'@formily/antd'
import
MellowCard
from
'@/components/MellowCard'
import
{
SALE_ORDER_STATUS
}
from
'../../_public/order/constant'
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
import
ModalTable
from
'@/components/ModalTable'
import
{
formatTimeString
}
from
'@/utils'
import
{
AddressPop
}
from
'../../purchaseOrder/orderCollect/components/productModalTable'
import
{
DELIVERY_TYPE
,
OrderModalType
,
ORDER_TYPE2_BIDDING_CONTRACT
,
ORDER_TYPE2_ENQUIRY_CONTRACT
,
ORDER_TYPE2_TENDER_CONTRACT
,
SaleOrderInsideWorkStateTexts
}
from
'@/constants'
import
{
DELIVERY_TYPE
,
OrderModalType
,
ORDER_TYPE2_BIDDING_CONTRACT
,
ORDER_TYPE2_ENQUIRY_CONTRACT
,
ORDER_TYPE2_TENDER_CONTRACT
,
SaleOrderInsideWorkStateTexts
}
from
'@/constants/order'
export
interface
OrderProductTableProps
{}
...
...
src/pages/transaction/transactionRules/schema/index.tsx
View file @
2a6d1e50
import
React
from
'react'
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
SHOP_TYPES
}
from
'@/constants'
;
import
{
padRequiredMessage
}
from
'@/utils'
;
...
...
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