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'
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;
// 1是阿里云oss服务器, 2是本地文件服务器
// 2020/10/21 本地文件服务器关闭, 现全部上传到oss - xjm
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;
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]: '合同内清算',
};
/*
* @Author: XieZhiXiong
* @Date: 2021-05-18 17:36:53
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-19 15:40:57
* @Description: 会员相关常量
*/
/* --------------------------------- 会员类型 -------------------------------- */
/**
* 企业会员
*/
export const MEMBER_TYPE_CORPORATE = 1;
/**
* 个人会员
*/
export const MEMBER_TYPE_INDIVIDUAL = 2;
/**
* 渠道企业会员
*/
export const MEMBER_TYPE_CHANNEL_CORPORATE = 3;
/**
* 渠道个人会员
*/
export const MEMBER_TYPE_CHANNEL_INDIVIDUAL = 4;
/**
* 会员类型对应中文
*/
export const MEMBER_TYPE = {
[MEMBER_TYPE_CORPORATE]: '企业会员',
[MEMBER_TYPE_INDIVIDUAL]: '个人会员',
[MEMBER_TYPE_CHANNEL_CORPORATE]: '渠道企业会员',
[MEMBER_TYPE_CHANNEL_INDIVIDUAL]: '渠道个人会员',
};
/* --------------------------------- 会员状态 -------------------------------- */
/**
* 正常的
*/
export const MEMBER_STATUS_NORMAL = 1;
/**
* 冻结的
*/
export const MEMBER_STATUS_FROZEN = 2;
export const MEMBER_STATUS = {
[MEMBER_STATUS_NORMAL]: '正常',
[MEMBER_STATUS_FROZEN]: '冻结',
};
/* --------------------------------- 会员外部状态 -------------------------------- */
/**
* 待提交审核
*/
export const MEMBER_OUTER_STATUS_UNCOMMITTED = 0;
/**
* 待审核
*/
export const MEMBER_OUTER_STATUS_UNREVIEWED = 1;
/**
* 审核不通过
*/
export const MEMBER_OUTER_STATUS_FAILED = 2;
/**
* 审核通过
*/
export const MEMBER_OUTER_STATUS_SUCCESS = 3;
/**
* 会员外部状态对应中文
*/
export const MEMBER_OUTER_STATUS = {
[MEMBER_OUTER_STATUS_UNCOMMITTED]: '待提交',
[MEMBER_OUTER_STATUS_UNREVIEWED]: '待审核',
[MEMBER_OUTER_STATUS_FAILED]: '审核不通过',
[MEMBER_OUTER_STATUS_SUCCESS]: '审核通过',
};
/* --------------------------------- 会员内部状态 -------------------------------- */
/**
* 申请注册(已注册)
*/
export const MEMBER_INNER_STATUS_REGISTERED = 0;
/**
* 待提交审核
*/
export const MEMBER_INNER_STATUS_UNCOMMITTED = 1;
/**
* 待一级审核
*/
export const MEMBER_INNER_STATUS_UNREVIEWED_1 = 2;
/**
* 待二级审核
*/
export const MEMBER_INNER_STATUS_UNREVIEWED_2 = 3;
/**
* 审核不通过
*/
export const MEMBER_INNER_STATUS_FAILED = 4;
/**
* 审核通过
*/
export const MEMBER_INNER_STATUS_SUCCESS = 5;
/**
* 会员内部状态对应中文
*/
export const MEMBER_INNER_STATUS = {
[MEMBER_INNER_STATUS_REGISTERED]: '申请注册',
[MEMBER_INNER_STATUS_UNCOMMITTED]: '待提交审核',
[MEMBER_INNER_STATUS_UNREVIEWED_1]: '待一级审核',
[MEMBER_INNER_STATUS_UNREVIEWED_2]: '待二级审核',
[MEMBER_INNER_STATUS_FAILED]: '审核不通过',
[MEMBER_INNER_STATUS_SUCCESS]: '审核通过',
};
/* --------------------------------- 会员等级类型枚举 -------------------------------- */
/**
* 平台会员
*/
export const MEMBER_LEVEL_TYPE_PLATFORM = 1;
/**
* 商户会员
*/
export const MEMBER_LEVEL_TYPE_MERCHANT = 2;
/**
* 渠道会员
*/
export const MEMBER_LEVEL_TYPE_CHANNEL = 3;
/**
* 会员等级类型枚举对应中文
*/
export const MEMBER_LEVEL_TYPE = {
[MEMBER_LEVEL_TYPE_PLATFORM]: '平台会员',
[MEMBER_LEVEL_TYPE_MERCHANT]: '商户会员',
[MEMBER_LEVEL_TYPE_CHANNEL]: '渠道会员',
};
\ No newline at end of file
/*
* @Author: XieZhiXiong
* @Date: 2021-05-18 17:36:53
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-19 15:40:57
* @Description: 会员相关常量
*/
/* --------------------------------- 会员类型 -------------------------------- */
/**
* 企业会员
*/
export const MEMBER_TYPE_CORPORATE = 1;
/**
* 个人会员
*/
export const MEMBER_TYPE_INDIVIDUAL = 2;
/**
* 渠道企业会员
*/
export const MEMBER_TYPE_CHANNEL_CORPORATE = 3;
/**
* 渠道个人会员
*/
export const MEMBER_TYPE_CHANNEL_INDIVIDUAL = 4;
/**
* 会员类型对应中文
*/
export const MEMBER_TYPE = {
[MEMBER_TYPE_CORPORATE]: '企业会员',
[MEMBER_TYPE_INDIVIDUAL]: '个人会员',
[MEMBER_TYPE_CHANNEL_CORPORATE]: '渠道企业会员',
[MEMBER_TYPE_CHANNEL_INDIVIDUAL]: '渠道个人会员',
};
/* --------------------------------- 会员状态 -------------------------------- */
/**
* 正常的
*/
export const MEMBER_STATUS_NORMAL = 1;
/**
* 冻结的
*/
export const MEMBER_STATUS_FROZEN = 2;
export const MEMBER_STATUS = {
[MEMBER_STATUS_NORMAL]: '正常',
[MEMBER_STATUS_FROZEN]: '冻结',
};
/* --------------------------------- 会员外部状态 -------------------------------- */
/**
* 待提交审核
*/
export const MEMBER_OUTER_STATUS_UNCOMMITTED = 0;
/**
* 待审核
*/
export const MEMBER_OUTER_STATUS_UNREVIEWED = 1;
/**
* 审核不通过
*/
export const MEMBER_OUTER_STATUS_FAILED = 2;
/**
* 审核通过
*/
export const MEMBER_OUTER_STATUS_SUCCESS = 3;
/**
* 会员外部状态对应中文
*/
export const MEMBER_OUTER_STATUS = {
[MEMBER_OUTER_STATUS_UNCOMMITTED]: '待提交',
[MEMBER_OUTER_STATUS_UNREVIEWED]: '待审核',
[MEMBER_OUTER_STATUS_FAILED]: '审核不通过',
[MEMBER_OUTER_STATUS_SUCCESS]: '审核通过',
};
/* --------------------------------- 会员内部状态 -------------------------------- */
/**
* 申请注册(已注册)
*/
export const MEMBER_INNER_STATUS_REGISTERED = 0;
/**
* 待提交审核
*/
export const MEMBER_INNER_STATUS_UNCOMMITTED = 1;
/**
* 待一级审核
*/
export const MEMBER_INNER_STATUS_UNREVIEWED_1 = 2;
/**
* 待二级审核
*/
export const MEMBER_INNER_STATUS_UNREVIEWED_2 = 3;
/**
* 审核不通过
*/
export const MEMBER_INNER_STATUS_FAILED = 4;
/**
* 审核通过
*/
export const MEMBER_INNER_STATUS_SUCCESS = 5;
/**
* 会员内部状态对应中文
*/
export const MEMBER_INNER_STATUS = {
[MEMBER_INNER_STATUS_REGISTERED]: '申请注册',
[MEMBER_INNER_STATUS_UNCOMMITTED]: '待提交审核',
[MEMBER_INNER_STATUS_UNREVIEWED_1]: '待一级审核',
[MEMBER_INNER_STATUS_UNREVIEWED_2]: '待二级审核',
[MEMBER_INNER_STATUS_FAILED]: '审核不通过',
[MEMBER_INNER_STATUS_SUCCESS]: '审核通过',
};
/* --------------------------------- 会员等级类型枚举 -------------------------------- */
/**
* 平台会员
*/
export const MEMBER_LEVEL_TYPE_PLATFORM = 1;
/**
* 商户会员
*/
export const MEMBER_LEVEL_TYPE_MERCHANT = 2;
/**
* 渠道会员
*/
export const MEMBER_LEVEL_TYPE_CHANNEL = 3;
/**
* 会员等级类型枚举对应中文
*/
export const MEMBER_LEVEL_TYPE = {
[MEMBER_LEVEL_TYPE_PLATFORM]: '平台会员',
[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;
......@@ -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: '不接受报价',
}
......@@ -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]: '合同内清算',
};
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 = ['',
......
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]: {
......
......@@ -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'
......
......@@ -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,
......
......@@ -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 = [
......
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'
......
......@@ -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'
......
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
......
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 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'
......
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 {}
......
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';
// 新增规则
export const ruleDetailSchema: ISchema = padRequiredMessage({
type: 'object',
properties: {
REPOSIT_TABS: {
type: 'object',
"x-component": "tab",
"x-component-props": {
type: 'card',
},
properties: {
"tab-1": {
"type": "object",
"x-component": "tabpane",
"x-component-props": {
"tab": "基本信息"
},
"properties": {
MEGA_LAYOUT1: {
type: 'object',
"x-component": 'mega-layout',
"x-component-props": {
labelCol: 4,
wrapperCol: 8,
labelAlign: 'left',
style: { height: '400px' }
},
properties: {
"name": {
type: 'string',
title: '规则名称',
"x-component-props": {
placeholder: '请输入规则名称'
},
"x-rules": [
{
required: true,
},
{
limitByte: true,
maxByte: 48
}
]
},
"transactionProcesssId": {
type: 'string',
title: '流程选择',
"x-component": 'SelectProcesss',
"x-mega-props": {
style: {
full: true
}
},
"x-component-props": {
dataSource: []
},
"x-rules": [
{
required: true,
message: '请选择流程配置'
}
],
// required: true,
// "x-component": 'SearchSelect',
// "x-component-props": {
// placeholder: '请选择交易流程',
// className: 'fixed-ant-selected-down',
// fetchSearch: PublicApi.getOrderTradingRulesTransactionProcessList,
// },
},
MEGA_LAYOUT1_1: {
type: 'object',
'x-component': 'mega-layout',
'x-component-props': {
label: '电子合同',
wrapperCol: 24,
},
properties: {
"isElectronicContract": {
type: 'string',
"x-component-props": {
children: "使用电子合同"
},
"x-component": "checkboxsingle",
default: false
},
"electronicContractId": {
type: 'string',
required: true,
enum: [],
"x-component-props": {
placeholder: '请选择电子合同模板'
},
visible: false
}
}
}
}
}
}
},
"tab-2": {
"type": "object",
"x-component": "tabpane",
"x-component-props": {
"tab": "适用商城"
},
"properties": {
MEGA_LAYOUT2: {
type: 'object',
"x-component": 'mega-layout',
"x-component-props": {
labelCol: 4,
labelAlign: 'left'
},
properties: {
"shopIds": {
"type": "array:number",
"x-component": 'CardCheckBox',
"x-component-props": {
dataSource: GlobalConfig.web.shopInfo.sort((a, b)=>a.type-b.type),
type: 'radio' // CardCheckBox 单选模式
},
"title": "适用商城",
required: true,
}
}
}
}
},
"tab-3": {
type: 'object',
"x-component": 'tabpane',
"x-component-props": {
"tab": "适用商品"
},
properties: {
MEGA_LAYOUT3: {
type: 'object',
"x-component": 'mega-layout',
"x-component-props": {
labelCol: 4,
labelAlign: 'left'
},
properties: {
"isTacitlyApprove": {
"type": "radio",
enum: [
{ label: '所有商品(默认)', value: 1 },
{ label: '指定商品', value: 2 },
],
"title": "适用商品",
default: 1,
required: true,
"x-linkages": [
{
type: 'value:visible',
target: 'products',
"condition": "{{$value === 2}}"
}
]
},
"products": {
type: 'array:number',
"x-component": 'MultTable',
"x-component-props": {
rowKey: 'id',
columns: "{{tableColumns}}",
prefix: "{{tableAddButton}}",
}
}
}
}
}
}
}
}
}
})
import React from 'react'
import { ISchema } from '@formily/antd';
import { GlobalConfig } from '@/global/config';
import { padRequiredMessage } from '@/utils';
// 新增规则
export const ruleDetailSchema: ISchema = padRequiredMessage({
type: 'object',
properties: {
REPOSIT_TABS: {
type: 'object',
"x-component": "tab",
"x-component-props": {
type: 'card',
},
properties: {
"tab-1": {
"type": "object",
"x-component": "tabpane",
"x-component-props": {
"tab": "基本信息"
},
"properties": {
MEGA_LAYOUT1: {
type: 'object',
"x-component": 'mega-layout',
"x-component-props": {
labelCol: 4,
wrapperCol: 8,
labelAlign: 'left',
style: { height: '400px' }
},
properties: {
"name": {
type: 'string',
title: '规则名称',
"x-component-props": {
placeholder: '请输入规则名称'
},
"x-rules": [
{
required: true,
},
{
limitByte: true,
maxByte: 48
}
]
},
"transactionProcesssId": {
type: 'string',
title: '流程选择',
"x-component": 'SelectProcesss',
"x-mega-props": {
style: {
full: true
}
},
"x-component-props": {
dataSource: []
},
"x-rules": [
{
required: true,
message: '请选择流程配置'
}
],
// required: true,
// "x-component": 'SearchSelect',
// "x-component-props": {
// placeholder: '请选择交易流程',
// className: 'fixed-ant-selected-down',
// fetchSearch: PublicApi.getOrderTradingRulesTransactionProcessList,
// },
},
MEGA_LAYOUT1_1: {
type: 'object',
'x-component': 'mega-layout',
'x-component-props': {
label: '电子合同',
wrapperCol: 24,
},
properties: {
"isElectronicContract": {
type: 'string',
"x-component-props": {
children: "使用电子合同"
},
"x-component": "checkboxsingle",
default: false
},
"electronicContractId": {
type: 'string',
required: true,
enum: [],
"x-component-props": {
placeholder: '请选择电子合同模板'
},
visible: false
}
}
}
}
}
}
},
"tab-2": {
"type": "object",
"x-component": "tabpane",
"x-component-props": {
"tab": "适用商城"
},
"properties": {
MEGA_LAYOUT2: {
type: 'object',
"x-component": 'mega-layout',
"x-component-props": {
labelCol: 4,
labelAlign: 'left'
},
properties: {
"shopIds": {
"type": "array:number",
"x-component": 'CardCheckBox',
"x-component-props": {
dataSource: GlobalConfig.web.shopInfo.sort((a, b)=>a.type-b.type),
type: 'radio' // CardCheckBox 单选模式
},
"title": "适用商城",
required: true,
}
}
}
}
},
"tab-3": {
type: 'object',
"x-component": 'tabpane',
"x-component-props": {
"tab": "适用商品"
},
properties: {
MEGA_LAYOUT3: {
type: 'object',
"x-component": 'mega-layout',
"x-component-props": {
labelCol: 4,
labelAlign: 'left'
},
properties: {
"isTacitlyApprove": {
"type": "radio",
enum: [
{ label: '所有商品(默认)', value: 1 },
{ label: '指定商品', value: 2 },
],
"title": "适用商品",
default: 1,
required: true,
"x-linkages": [
{
type: 'value:visible',
target: 'products',
"condition": "{{$value === 2}}"
}
]
},
"products": {
type: 'array:number',
"x-component": 'MultTable',
"x-component-props": {
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