Commit 2a6d1e50 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 售后能力常量分离

parent 4d7a0681
/**
* ****售后能力 相关常量****
*/
/**
*
* 其中包括:售后换货,售后退货,售后维修
*
*/
// 售后维修内部状态
/**
* 待提交维修
*/
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 },
]
...@@ -4,6 +4,8 @@ export const NOT_CHANGE_VALUE = 'hello, world' ...@@ -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') export const SOCKET_URL = process.env.SOCKET_URL?.replace('http|https', 'ws') || process.env.BACK_GATEWAY?.replace('http|https', 'ws')
console.log(SOCKET_URL); console.log(SOCKET_URL);
export const MALL_TYPE = { export const MALL_TYPE = {
1: '企业商城', 1: '企业商城',
2: '积分商城', 2: '积分商城',
...@@ -12,6 +14,8 @@ export const MALL_TYPE = { ...@@ -12,6 +14,8 @@ export const MALL_TYPE = {
5: '渠道积分商城' 5: '渠道积分商城'
} }
export enum SHOP_TYPE { export enum SHOP_TYPE {
/** 企业商城 */ /** 企业商城 */
mall = 1, mall = 1,
...@@ -26,6 +30,7 @@ export enum SHOP_TYPE { ...@@ -26,6 +30,7 @@ export enum SHOP_TYPE {
} }
export enum LAYOUT_TYPE { export enum LAYOUT_TYPE {
/** /**
* 企业商城 * 企业商城
...@@ -65,9 +70,14 @@ export enum LAYOUT_TYPE { ...@@ -65,9 +70,14 @@ export enum LAYOUT_TYPE {
purchaseOnline = 'purchaseOnline' purchaseOnline = 'purchaseOnline'
} }
// 本地环境跳过权限校验 // 本地环境跳过权限校验
export const isDev = process.env.NODE_ENV === "development" export const isDev = process.env.NODE_ENV === "development"
// 暂时将权限访问关闭 // 暂时将权限访问关闭
// export const isDev = false // export const isDev = false
...@@ -79,6 +89,8 @@ export const Environment_Status = { ...@@ -79,6 +89,8 @@ export const Environment_Status = {
4: "APP" 4: "APP"
} }
export enum FILTER_TYPE { export enum FILTER_TYPE {
/** /**
* 常用筛选 * 常用筛选
...@@ -222,7 +234,10 @@ export enum FILTER_TYPE { ...@@ -222,7 +234,10 @@ export enum FILTER_TYPE {
shopArea = 'shopArea' shopArea = 'shopArea'
} }
// 商城类型 // 商城类型
export const SHOP_TYPES = [ export const SHOP_TYPES = [
{ {
value: 1, value: 1,
...@@ -246,6 +261,7 @@ export const SHOP_TYPES = [ ...@@ -246,6 +261,7 @@ export const SHOP_TYPES = [
}, },
] ]
export const STATUS_ENUM = [ export const STATUS_ENUM = [
{ {
label: '全部', label: '全部',
...@@ -261,45 +277,12 @@ export const STATUS_ENUM = [ ...@@ -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;
// 1是阿里云oss服务器, 2是本地文件服务器
// 2020/10/21 本地文件服务器关闭, 现全部上传到oss - xjm
export const DELIVERY_TYPE_ENUM = [ export const UPLOAD_TYPE = 1
{ 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;
...@@ -317,706 +300,3 @@ export enum COMMODITY_TYPE { ...@@ -317,706 +300,3 @@ export enum COMMODITY_TYPE {
*/ */
integral = 3 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]: '合同内清算',
};
/* /*
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-18 17:36:53 * @Date: 2021-05-18 17:36:53
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-19 15:40:57 * @LastEditTime: 2021-05-19 15:40:57
* @Description: 会员相关常量 * @Description: 会员相关常量
*/ */
/* --------------------------------- 会员类型 -------------------------------- */ /* --------------------------------- 会员类型 -------------------------------- */
/** /**
* 企业会员 * 企业会员
*/ */
export const MEMBER_TYPE_CORPORATE = 1; export const MEMBER_TYPE_CORPORATE = 1;
/** /**
* 个人会员 * 个人会员
*/ */
export const MEMBER_TYPE_INDIVIDUAL = 2; export const MEMBER_TYPE_INDIVIDUAL = 2;
/** /**
* 渠道企业会员 * 渠道企业会员
*/ */
export const MEMBER_TYPE_CHANNEL_CORPORATE = 3; export const MEMBER_TYPE_CHANNEL_CORPORATE = 3;
/** /**
* 渠道个人会员 * 渠道个人会员
*/ */
export const MEMBER_TYPE_CHANNEL_INDIVIDUAL = 4; export const MEMBER_TYPE_CHANNEL_INDIVIDUAL = 4;
/** /**
* 会员类型对应中文 * 会员类型对应中文
*/ */
export const MEMBER_TYPE = { export const MEMBER_TYPE = {
[MEMBER_TYPE_CORPORATE]: '企业会员', [MEMBER_TYPE_CORPORATE]: '企业会员',
[MEMBER_TYPE_INDIVIDUAL]: '个人会员', [MEMBER_TYPE_INDIVIDUAL]: '个人会员',
[MEMBER_TYPE_CHANNEL_CORPORATE]: '渠道企业会员', [MEMBER_TYPE_CHANNEL_CORPORATE]: '渠道企业会员',
[MEMBER_TYPE_CHANNEL_INDIVIDUAL]: '渠道个人会员', [MEMBER_TYPE_CHANNEL_INDIVIDUAL]: '渠道个人会员',
}; };
/* --------------------------------- 会员状态 -------------------------------- */ /* --------------------------------- 会员状态 -------------------------------- */
/** /**
* 正常的 * 正常的
*/ */
export const MEMBER_STATUS_NORMAL = 1; export const MEMBER_STATUS_NORMAL = 1;
/** /**
* 冻结的 * 冻结的
*/ */
export const MEMBER_STATUS_FROZEN = 2; export const MEMBER_STATUS_FROZEN = 2;
export const MEMBER_STATUS = { export const MEMBER_STATUS = {
[MEMBER_STATUS_NORMAL]: '正常', [MEMBER_STATUS_NORMAL]: '正常',
[MEMBER_STATUS_FROZEN]: '冻结', [MEMBER_STATUS_FROZEN]: '冻结',
}; };
/* --------------------------------- 会员外部状态 -------------------------------- */ /* --------------------------------- 会员外部状态 -------------------------------- */
/** /**
* 待提交审核 * 待提交审核
*/ */
export const MEMBER_OUTER_STATUS_UNCOMMITTED = 0; export const MEMBER_OUTER_STATUS_UNCOMMITTED = 0;
/** /**
* 待审核 * 待审核
*/ */
export const MEMBER_OUTER_STATUS_UNREVIEWED = 1; export const MEMBER_OUTER_STATUS_UNREVIEWED = 1;
/** /**
* 审核不通过 * 审核不通过
*/ */
export const MEMBER_OUTER_STATUS_FAILED = 2; export const MEMBER_OUTER_STATUS_FAILED = 2;
/** /**
* 审核通过 * 审核通过
*/ */
export const MEMBER_OUTER_STATUS_SUCCESS = 3; export const MEMBER_OUTER_STATUS_SUCCESS = 3;
/** /**
* 会员外部状态对应中文 * 会员外部状态对应中文
*/ */
export const MEMBER_OUTER_STATUS = { export const MEMBER_OUTER_STATUS = {
[MEMBER_OUTER_STATUS_UNCOMMITTED]: '待提交', [MEMBER_OUTER_STATUS_UNCOMMITTED]: '待提交',
[MEMBER_OUTER_STATUS_UNREVIEWED]: '待审核', [MEMBER_OUTER_STATUS_UNREVIEWED]: '待审核',
[MEMBER_OUTER_STATUS_FAILED]: '审核不通过', [MEMBER_OUTER_STATUS_FAILED]: '审核不通过',
[MEMBER_OUTER_STATUS_SUCCESS]: '审核通过', [MEMBER_OUTER_STATUS_SUCCESS]: '审核通过',
}; };
/* --------------------------------- 会员内部状态 -------------------------------- */ /* --------------------------------- 会员内部状态 -------------------------------- */
/** /**
* 申请注册(已注册) * 申请注册(已注册)
*/ */
export const MEMBER_INNER_STATUS_REGISTERED = 0; export const MEMBER_INNER_STATUS_REGISTERED = 0;
/** /**
* 待提交审核 * 待提交审核
*/ */
export const MEMBER_INNER_STATUS_UNCOMMITTED = 1; export const MEMBER_INNER_STATUS_UNCOMMITTED = 1;
/** /**
* 待一级审核 * 待一级审核
*/ */
export const MEMBER_INNER_STATUS_UNREVIEWED_1 = 2; export const MEMBER_INNER_STATUS_UNREVIEWED_1 = 2;
/** /**
* 待二级审核 * 待二级审核
*/ */
export const MEMBER_INNER_STATUS_UNREVIEWED_2 = 3; export const MEMBER_INNER_STATUS_UNREVIEWED_2 = 3;
/** /**
* 审核不通过 * 审核不通过
*/ */
export const MEMBER_INNER_STATUS_FAILED = 4; export const MEMBER_INNER_STATUS_FAILED = 4;
/** /**
* 审核通过 * 审核通过
*/ */
export const MEMBER_INNER_STATUS_SUCCESS = 5; export const MEMBER_INNER_STATUS_SUCCESS = 5;
/** /**
* 会员内部状态对应中文 * 会员内部状态对应中文
*/ */
export const MEMBER_INNER_STATUS = { export const MEMBER_INNER_STATUS = {
[MEMBER_INNER_STATUS_REGISTERED]: '申请注册', [MEMBER_INNER_STATUS_REGISTERED]: '申请注册',
[MEMBER_INNER_STATUS_UNCOMMITTED]: '待提交审核', [MEMBER_INNER_STATUS_UNCOMMITTED]: '待提交审核',
[MEMBER_INNER_STATUS_UNREVIEWED_1]: '待一级审核', [MEMBER_INNER_STATUS_UNREVIEWED_1]: '待一级审核',
[MEMBER_INNER_STATUS_UNREVIEWED_2]: '待二级审核', [MEMBER_INNER_STATUS_UNREVIEWED_2]: '待二级审核',
[MEMBER_INNER_STATUS_FAILED]: '审核不通过', [MEMBER_INNER_STATUS_FAILED]: '审核不通过',
[MEMBER_INNER_STATUS_SUCCESS]: '审核通过', [MEMBER_INNER_STATUS_SUCCESS]: '审核通过',
}; };
/* --------------------------------- 会员等级类型枚举 -------------------------------- */ /* --------------------------------- 会员等级类型枚举 -------------------------------- */
/** /**
* 平台会员 * 平台会员
*/ */
export const MEMBER_LEVEL_TYPE_PLATFORM = 1; export const MEMBER_LEVEL_TYPE_PLATFORM = 1;
/** /**
* 商户会员 * 商户会员
*/ */
export const MEMBER_LEVEL_TYPE_MERCHANT = 2; export const MEMBER_LEVEL_TYPE_MERCHANT = 2;
/** /**
* 渠道会员 * 渠道会员
*/ */
export const MEMBER_LEVEL_TYPE_CHANNEL = 3; export const MEMBER_LEVEL_TYPE_CHANNEL = 3;
/** /**
* 会员等级类型枚举对应中文 * 会员等级类型枚举对应中文
*/ */
export const MEMBER_LEVEL_TYPE = { export const MEMBER_LEVEL_TYPE = {
[MEMBER_LEVEL_TYPE_PLATFORM]: '平台会员', [MEMBER_LEVEL_TYPE_PLATFORM]: '平台会员',
[MEMBER_LEVEL_TYPE_MERCHANT]: '商户会员', [MEMBER_LEVEL_TYPE_MERCHANT]: '商户会员',
[MEMBER_LEVEL_TYPE_CHANNEL]: '渠道会员', [MEMBER_LEVEL_TYPE_CHANNEL]: '渠道会员',
}; };
\ No newline at end of file
/* --------------------------------- 会员规则类型 -------------------------------- */
/**
* 交易
*/
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;
...@@ -653,3 +653,124 @@ export enum DeliverySideState { ...@@ -653,3 +653,124 @@ export enum DeliverySideState {
*/ */
CONFIRM_RETURN_ORDER 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: '不接受报价',
}
...@@ -233,3 +233,49 @@ export const BILL_TRADE_OPERATION = { ...@@ -233,3 +233,49 @@ export const BILL_TRADE_OPERATION = {
[PAY_CHANNEL_CREDIT]: '授信', [PAY_CHANNEL_CREDIT]: '授信',
[PAY_CHANNEL_COD]: '货到付款', [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]: '合同内清算',
};
import { ISchema } from '@formily/antd' import { ISchema } from '@formily/antd'
import { FORM_FILTER_PATH } from '@/formSchema/const' import { FORM_FILTER_PATH } from '@/formSchema/const'
import { OrderTypeMap, PurchaseOrderInsideWorkStateTexts, PurchaseOrderOutWorkStateTexts } from '@/constants' import { OrderTypeMap, PurchaseOrderInsideWorkStateTexts, PurchaseOrderOutWorkStateTexts } from '@/constants/order'
export const orderTypeLabel = ['', export const orderTypeLabel = ['',
......
import React from 'react' import React from 'react'
import { Tag } from 'antd' 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 { export interface IStatusColor {
[key: string]: { [key: string]: {
......
...@@ -5,7 +5,7 @@ import { formatTimeString } from '@/utils' ...@@ -5,7 +5,7 @@ import { formatTimeString } from '@/utils'
import { OrderDetailContext } from '../../_public/order/context' import { OrderDetailContext } from '../../_public/order/context'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import NestTable from '@/components/NestTable' import NestTable from '@/components/NestTable'
import { SaleOrderInsideWorkState, DeliverySideState } from '@/constants' import { DeliverySideState } from '@/constants/order'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { history } from 'umi' import { history } from 'umi'
......
...@@ -8,7 +8,7 @@ import OrderMergeInfo from '../../components/orderMergeInfo' ...@@ -8,7 +8,7 @@ import OrderMergeInfo from '../../components/orderMergeInfo'
import OrderDeleveRecord from '../../components/orderDeleveRecord' import OrderDeleveRecord from '../../components/orderDeleveRecord'
import OrderTransformRecord from '../../components/orderTransformRecord' import OrderTransformRecord from '../../components/orderTransformRecord'
import OrderSaleRecord from '../orderSaleRecord' 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 { export interface OrderDetailSectionProps {
formContext: any, formContext: any,
......
...@@ -3,11 +3,10 @@ import { Row, Col, Tag, Modal } from 'antd' ...@@ -3,11 +3,10 @@ import { Row, Col, Tag, Modal } from 'antd'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import { OrderDetailContext } from '../../_public/order/context' import { OrderDetailContext } from '../../_public/order/context'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { DELIVERY_TYPE } from '@/constants' import { DELIVERY_TYPE } from '@/constants/order'
import style from './index.less' import style from './index.less'
import ContractList from '../ContractList' import ContractList from '../ContractList'
import cx from 'classnames' import cx from 'classnames'
import { PublicApi } from '@/services/api'
export interface OrderMergeInfoProps { } export interface OrderMergeInfoProps { }
const payInfo = [ const payInfo = [
......
import React, { useState, useEffect, useContext, useRef } from 'react' 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 { usePageStatus } from '@/hooks/usePageStatus'
import { OrderDetailContext } from '../../_public/order/context' import { OrderDetailContext } from '../../_public/order/context'
import { PayOutWorkState } from '@/constants' import { PayOutWorkState } from '@/constants/order'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { history, Link } from 'umi' import { history } from 'umi'
import OverflowText from '@/components/OverflowText' import OverflowText from '@/components/OverflowText'
import { useHttpRequest } from '@/hooks/useHttpRequest' import { useHttpRequest } from '@/hooks/useHttpRequest'
import ImagePreview from '@/components/ImagePreview' import ImagePreview from '@/components/ImagePreview'
......
...@@ -5,7 +5,7 @@ import { OrderDetailContext } from '../../_public/order/context' ...@@ -5,7 +5,7 @@ import { OrderDetailContext } from '../../_public/order/context'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import StatusColors from '../StatusColors' import StatusColors from '../StatusColors'
import moment from 'moment' import moment from 'moment'
import { PayOutWorkState } from '@/constants' import { PayOutWorkState } from '@/constants/order'
import OverflowText from '@/components/OverflowText' import OverflowText from '@/components/OverflowText'
import { QuestionCircleOutlined } from '@ant-design/icons' import { QuestionCircleOutlined } from '@ant-design/icons'
......
import React, { useContext, useState, useRef, useEffect } from 'react' import React, { useContext, useState, useRef, useEffect } from 'react'
import { StandardTable } from 'god' import { Table, Form, Input, Row, Col } from 'antd'
import { Card, Table, Form, Input, Row, Col, Button, Modal } from 'antd'
import { OrderDetailContext } from '../../_public/order/context' import { OrderDetailContext } from '../../_public/order/context'
import { EditOutlined, SettingOutlined } from '@ant-design/icons' import { EditOutlined } from '@ant-design/icons'
import style from './index.less'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import styled from 'styled-components' import styled from 'styled-components'
import ModalForm from '@/components/ModalForm'
import { createFormActions } from '@formily/antd' import { createFormActions } from '@formily/antd'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import { AddressPop } from '../../purchaseOrder/orderCollect/components/productModalTable' import { AddressPop } from '../../purchaseOrder/orderCollect/components/productModalTable'
import { DELIVERY_TYPE, OrderModalType } from '@/constants' import { DELIVERY_TYPE, OrderModalType } from '@/constants/order'
export interface OrderProductTableProps { export interface OrderProductTableProps {
editable: boolean editable: boolean
......
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react' import React, { useCallback, useContext, useRef, useState } from 'react'
import { Tabs, Table, Button, Space,Modal } from 'antd' import { Tabs, Table, Button, Space,Modal } from 'antd'
import StatusColors from '@/pages/transaction/components/StatusColors' import StatusColors from '@/pages/transaction/components/StatusColors'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { OrderDetailContext } from '../../_public/order/context' import { OrderDetailContext } from '../../_public/order/context'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import NestTable from '@/components/NestTable' import NestTable from '@/components/NestTable'
import { DeliverySideState } from '@/constants' import { DeliverySideState } from '@/constants/order'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { history } from 'umi' import { history } from 'umi'
import { ExclamationCircleOutlined } from '@ant-design/icons' import { ExclamationCircleOutlined } from '@ant-design/icons'
......
import React, { useContext, useState, useRef, useEffect, useCallback } from 'react' 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 { OrderDetailContext } from '../../_public/order/context'
import { EditOutlined, SettingOutlined } from '@ant-design/icons' import { EditOutlined, SettingOutlined } from '@ant-design/icons'
import style from './index.less'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import styled from 'styled-components' import styled from 'styled-components'
import ModalForm from '@/components/ModalForm' import ModalForm from '@/components/ModalForm'
import { createFormActions } from '@formily/antd' import { createFormActions } from '@formily/antd'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import { SALE_ORDER_STATUS } from '../../_public/order/constant'
import { usePageStatus } from '@/hooks/usePageStatus' import { usePageStatus } from '@/hooks/usePageStatus'
import ModalTable from '@/components/ModalTable' import ModalTable from '@/components/ModalTable'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { AddressPop } from '../../purchaseOrder/orderCollect/components/productModalTable' 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 {} export interface OrderProductTableProps {}
......
import React from 'react' import React from 'react'
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { GlobalConfig } from '@/global/config';
import { GlobalConfig } from '@/global/config'; import { padRequiredMessage } from '@/utils';
import { PublicApi } from '@/services/api';
import { SHOP_TYPES } from '@/constants';
import { padRequiredMessage } from '@/utils'; // 新增规则
export const ruleDetailSchema: ISchema = padRequiredMessage({
type: 'object',
// 新增规则 properties: {
export const ruleDetailSchema: ISchema = padRequiredMessage({ REPOSIT_TABS: {
type: 'object', type: 'object',
properties: { "x-component": "tab",
REPOSIT_TABS: { "x-component-props": {
type: 'object', type: 'card',
"x-component": "tab", },
"x-component-props": { properties: {
type: 'card', "tab-1": {
}, "type": "object",
properties: { "x-component": "tabpane",
"tab-1": { "x-component-props": {
"type": "object", "tab": "基本信息"
"x-component": "tabpane", },
"x-component-props": { "properties": {
"tab": "基本信息" MEGA_LAYOUT1: {
}, type: 'object',
"properties": { "x-component": 'mega-layout',
MEGA_LAYOUT1: { "x-component-props": {
type: 'object', labelCol: 4,
"x-component": 'mega-layout', wrapperCol: 8,
"x-component-props": { labelAlign: 'left',
labelCol: 4, style: { height: '400px' }
wrapperCol: 8, },
labelAlign: 'left', properties: {
style: { height: '400px' } "name": {
}, type: 'string',
properties: { title: '规则名称',
"name": { "x-component-props": {
type: 'string', placeholder: '请输入规则名称'
title: '规则名称', },
"x-component-props": { "x-rules": [
placeholder: '请输入规则名称' {
}, required: true,
"x-rules": [ },
{ {
required: true, limitByte: true,
}, maxByte: 48
{ }
limitByte: true, ]
maxByte: 48 },
} "transactionProcesssId": {
] type: 'string',
}, title: '流程选择',
"transactionProcesssId": { "x-component": 'SelectProcesss',
type: 'string', "x-mega-props": {
title: '流程选择', style: {
"x-component": 'SelectProcesss', full: true
"x-mega-props": { }
style: { },
full: true "x-component-props": {
} dataSource: []
}, },
"x-component-props": { "x-rules": [
dataSource: [] {
}, required: true,
"x-rules": [ message: '请选择流程配置'
{ }
required: true, ],
message: '请选择流程配置' // required: true,
} // "x-component": 'SearchSelect',
], // "x-component-props": {
// required: true, // placeholder: '请选择交易流程',
// "x-component": 'SearchSelect', // className: 'fixed-ant-selected-down',
// "x-component-props": { // fetchSearch: PublicApi.getOrderTradingRulesTransactionProcessList,
// placeholder: '请选择交易流程', // },
// className: 'fixed-ant-selected-down', },
// fetchSearch: PublicApi.getOrderTradingRulesTransactionProcessList, MEGA_LAYOUT1_1: {
// }, type: 'object',
}, 'x-component': 'mega-layout',
MEGA_LAYOUT1_1: { 'x-component-props': {
type: 'object', label: '电子合同',
'x-component': 'mega-layout', wrapperCol: 24,
'x-component-props': { },
label: '电子合同', properties: {
wrapperCol: 24, "isElectronicContract": {
}, type: 'string',
properties: { "x-component-props": {
"isElectronicContract": { children: "使用电子合同"
type: 'string', },
"x-component-props": { "x-component": "checkboxsingle",
children: "使用电子合同" default: false
}, },
"x-component": "checkboxsingle", "electronicContractId": {
default: false type: 'string',
}, required: true,
"electronicContractId": { enum: [],
type: 'string', "x-component-props": {
required: true, placeholder: '请选择电子合同模板'
enum: [], },
"x-component-props": { visible: false
placeholder: '请选择电子合同模板' }
}, }
visible: false }
} }
} }
} }
} },
} "tab-2": {
} "type": "object",
}, "x-component": "tabpane",
"tab-2": { "x-component-props": {
"type": "object", "tab": "适用商城"
"x-component": "tabpane", },
"x-component-props": { "properties": {
"tab": "适用商城" MEGA_LAYOUT2: {
}, type: 'object',
"properties": { "x-component": 'mega-layout',
MEGA_LAYOUT2: { "x-component-props": {
type: 'object', labelCol: 4,
"x-component": 'mega-layout', labelAlign: 'left'
"x-component-props": { },
labelCol: 4, properties: {
labelAlign: 'left' "shopIds": {
}, "type": "array:number",
properties: { "x-component": 'CardCheckBox',
"shopIds": { "x-component-props": {
"type": "array:number", dataSource: GlobalConfig.web.shopInfo.sort((a, b)=>a.type-b.type),
"x-component": 'CardCheckBox', type: 'radio' // CardCheckBox 单选模式
"x-component-props": { },
dataSource: GlobalConfig.web.shopInfo.sort((a, b)=>a.type-b.type), "title": "适用商城",
type: 'radio' // CardCheckBox 单选模式 required: true,
}, }
"title": "适用商城", }
required: true, }
} }
} },
} "tab-3": {
} type: 'object',
}, "x-component": 'tabpane',
"tab-3": { "x-component-props": {
type: 'object', "tab": "适用商品"
"x-component": 'tabpane', },
"x-component-props": { properties: {
"tab": "适用商品" MEGA_LAYOUT3: {
}, type: 'object',
properties: { "x-component": 'mega-layout',
MEGA_LAYOUT3: { "x-component-props": {
type: 'object', labelCol: 4,
"x-component": 'mega-layout', labelAlign: 'left'
"x-component-props": { },
labelCol: 4, properties: {
labelAlign: 'left' "isTacitlyApprove": {
}, "type": "radio",
properties: { enum: [
"isTacitlyApprove": { { label: '所有商品(默认)', value: 1 },
"type": "radio", { label: '指定商品', value: 2 },
enum: [ ],
{ label: '所有商品(默认)', value: 1 }, "title": "适用商品",
{ label: '指定商品', value: 2 }, default: 1,
], required: true,
"title": "适用商品", "x-linkages": [
default: 1, {
required: true, type: 'value:visible',
"x-linkages": [ target: 'products',
{ "condition": "{{$value === 2}}"
type: 'value:visible', }
target: 'products', ]
"condition": "{{$value === 2}}" },
} "products": {
] type: 'array:number',
}, "x-component": 'MultTable',
"products": { "x-component-props": {
type: 'array:number', rowKey: 'id',
"x-component": 'MultTable', columns: "{{tableColumns}}",
"x-component-props": { prefix: "{{tableAddButton}}",
rowKey: 'id', }
columns: "{{tableColumns}}", }
prefix: "{{tableAddButton}}", }
} }
} }
} }
} }
} }
} }
} })
}
}
})
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