mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00

* feat: invoice (#2293) * feat: default voice header * add i18n * refactor: 优化代码 * feat: 用户开票 * refactor: 代码优化&&样式联调 (#2384) * Feat: invoice upload (#2424) * refactor: 验收问题&&样式调整 * feat: 文件上传 * 小调整 * perf: invoice ui --------- Co-authored-by: papapatrick <109422393+Patrickill@users.noreply.github.com>
59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
export enum BillTypeEnum {
|
|
balance = 'balance',
|
|
standSubPlan = 'standSubPlan',
|
|
extraDatasetSub = 'extraDatasetSub',
|
|
extraPoints = 'extraPoints'
|
|
}
|
|
export const billTypeMap = {
|
|
[BillTypeEnum.balance]: {
|
|
label: 'support.wallet.subscription.type.balance'
|
|
},
|
|
[BillTypeEnum.standSubPlan]: {
|
|
label: 'support.wallet.subscription.type.standard'
|
|
},
|
|
[BillTypeEnum.extraDatasetSub]: {
|
|
label: 'support.wallet.subscription.type.extraDatasetSize'
|
|
},
|
|
[BillTypeEnum.extraPoints]: {
|
|
label: 'support.wallet.subscription.type.extraPoints'
|
|
}
|
|
};
|
|
|
|
export enum BillStatusEnum {
|
|
SUCCESS = 'SUCCESS',
|
|
REFUND = 'REFUND',
|
|
NOTPAY = 'NOTPAY',
|
|
CLOSED = 'CLOSED'
|
|
}
|
|
export const billStatusMap = {
|
|
[BillStatusEnum.SUCCESS]: {
|
|
label: 'support.wallet.bill.status.success'
|
|
},
|
|
[BillStatusEnum.REFUND]: {
|
|
label: 'support.wallet.bill.status.refund'
|
|
},
|
|
[BillStatusEnum.NOTPAY]: {
|
|
label: 'support.wallet.bill.status.notpay'
|
|
},
|
|
[BillStatusEnum.CLOSED]: {
|
|
label: 'support.wallet.bill.status.closed'
|
|
}
|
|
};
|
|
|
|
export enum BillPayWayEnum {
|
|
balance = 'balance',
|
|
wx = 'wx'
|
|
}
|
|
|
|
export const billPayWayMap = {
|
|
[BillPayWayEnum.balance]: {
|
|
label: 'support.wallet.bill.payWay.balance'
|
|
},
|
|
[BillPayWayEnum.wx]: {
|
|
label: 'support.wallet.bill.payWay.wx'
|
|
}
|
|
};
|
|
|
|
export const SUB_DATASET_SIZE_RATE = 1000;
|
|
export const SUB_EXTRA_POINT_RATE = 1000;
|