mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
Invoice (#2435)
* 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>
This commit is contained in:
@@ -44,6 +44,7 @@ export enum BillPayWayEnum {
|
||||
balance = 'balance',
|
||||
wx = 'wx'
|
||||
}
|
||||
|
||||
export const billPayWayMap = {
|
||||
[BillPayWayEnum.balance]: {
|
||||
label: 'support.wallet.bill.payWay.balance'
|
||||
|
4
packages/global/support/wallet/bill/invoice/constants.ts
Normal file
4
packages/global/support/wallet/bill/invoice/constants.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum InvoiceStatusEnum {
|
||||
submitted = 1,
|
||||
completed = 2
|
||||
}
|
15
packages/global/support/wallet/bill/type.d.ts
vendored
15
packages/global/support/wallet/bill/type.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import { StandardSubLevelEnum, SubModeEnum, SubTypeEnum } from '../sub/constants';
|
||||
import { BillPayWayEnum, BillTypeEnum } from './constants';
|
||||
|
||||
import { TeamInvoiceHeaderType } from '../../user/team/type';
|
||||
export type BillSchemaType = {
|
||||
_id: string;
|
||||
userId: string;
|
||||
@@ -29,3 +29,16 @@ export type ChatNodeUsageType = {
|
||||
moduleName: string;
|
||||
model?: string;
|
||||
};
|
||||
|
||||
export type InvoiceType = {
|
||||
amount: number;
|
||||
billIdList: string[];
|
||||
} & TeamInvoiceHeaderType;
|
||||
|
||||
export type InvoiceSchemaType = {
|
||||
teamId: string;
|
||||
_id: string;
|
||||
status: 1 | 2;
|
||||
createTime: Date;
|
||||
finishTime?: Date;
|
||||
} & InvoiceType;
|
||||
|
Reference in New Issue
Block a user