@@ -129,6 +129,7 @@ export interface AdminProductSkuInput {
|
||||
id?: string;
|
||||
/** 规格值 id;无规格时为空数组 */
|
||||
specValueIds?: string[];
|
||||
/** 忽略;服务端自动生成 DK 码 */
|
||||
skuCode?: string;
|
||||
barcode69: string;
|
||||
price: number;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
export type InvoiceTitleType = 'PERSONAL' | 'ENTERPRISE';
|
||||
export type InvoiceKind = 'NORMAL' | 'SPECIAL';
|
||||
/** C 端开票品类:酒水类 / 餐饮类(票种固定增值税普通发票) */
|
||||
export type InvoiceCategory = 'LIQUOR' | 'CATERING';
|
||||
export type InvoiceStatus = 'PENDING' | 'ISSUED' | 'REJECTED';
|
||||
|
||||
export const INVOICE_TITLE_TYPE_LABELS: Record<InvoiceTitleType, string> = {
|
||||
@@ -12,6 +14,11 @@ export const INVOICE_KIND_LABELS: Record<InvoiceKind, string> = {
|
||||
SPECIAL: '增值税专用发票',
|
||||
};
|
||||
|
||||
export const INVOICE_CATEGORY_LABELS: Record<InvoiceCategory, string> = {
|
||||
LIQUOR: '酒水类',
|
||||
CATERING: '餐饮类',
|
||||
};
|
||||
|
||||
export const INVOICE_STATUS_LABELS: Record<InvoiceStatus, string> = {
|
||||
PENDING: '待开票',
|
||||
ISSUED: '已开票',
|
||||
@@ -21,6 +28,7 @@ export const INVOICE_STATUS_LABELS: Record<InvoiceStatus, string> = {
|
||||
export interface CreateInvoiceRequest {
|
||||
titleType: InvoiceTitleType;
|
||||
invoiceKind: InvoiceKind;
|
||||
invoiceCategory?: InvoiceCategory;
|
||||
titleName: string;
|
||||
taxNo?: string;
|
||||
addressPhone?: string;
|
||||
@@ -37,6 +45,7 @@ export interface InvoiceDto {
|
||||
userId: string;
|
||||
titleType: InvoiceTitleType;
|
||||
invoiceKind: InvoiceKind;
|
||||
invoiceCategory?: InvoiceCategory;
|
||||
titleName: string;
|
||||
taxNo?: string | null;
|
||||
addressPhone?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user